From a36fe358848892cb206d1057ae99710889d43bcd Mon Sep 17 00:00:00 2001 From: Frank Natividad Date: Wed, 12 Sep 2018 15:42:17 -0700 Subject: [PATCH 01/21] Update download sample --- .../storage/snippets/StorageSnippets.java | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/google-cloud-examples/src/main/java/com/google/cloud/examples/storage/snippets/StorageSnippets.java b/google-cloud-examples/src/main/java/com/google/cloud/examples/storage/snippets/StorageSnippets.java index 438f3c1a455f..58d7fc02b7b1 100644 --- a/google-cloud-examples/src/main/java/com/google/cloud/examples/storage/snippets/StorageSnippets.java +++ b/google-cloud-examples/src/main/java/com/google/cloud/examples/storage/snippets/StorageSnippets.java @@ -1133,6 +1133,32 @@ public Bucket getRequesterPaysStatus(String bucketName) throws StorageException return bucket; } + /** + * Example of downloading a file. + */ + public void downloadFile(String projectId, String bucketName, + String srcFilename, Path destFilePath) throws IOException { + // [START storage_download_file] + // The name of the bucket to access + // String bucketName = "my-bucket"; + + // The name of the remote file to download + // String srcFilename = "file.txt"; + + // The path to which the file should be downloaded + // Path destFilePath = Paths.get("/local/path/to/file.txt"); + + // Instantiate a Google Cloud Storage client + Storage storage = StorageOptions.getDefaultInstance().getService(); + + // Get specific file from specified bucket + Blob blob = storage.get(BlobId.of(bucketName, srcFilename)); + + // Download file to specified path + blob.downloadTo(destFilePath); + // [END storage_download_file] + } + /** * Example of downloading a file using Requester pay. */ From 7873c4c9a4127f8a2ba84fb26ac6b47560bceb12 Mon Sep 17 00:00:00 2001 From: Frank Natividad Date: Wed, 12 Sep 2018 15:44:40 -0700 Subject: [PATCH 02/21] Update test for download sample --- .../examples/storage/snippets/ITStorageSnippets.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/google-cloud-examples/src/test/java/com/google/cloud/examples/storage/snippets/ITStorageSnippets.java b/google-cloud-examples/src/test/java/com/google/cloud/examples/storage/snippets/ITStorageSnippets.java index 470a761ff645..9450d71f2859 100644 --- a/google-cloud-examples/src/test/java/com/google/cloud/examples/storage/snippets/ITStorageSnippets.java +++ b/google-cloud-examples/src/test/java/com/google/cloud/examples/storage/snippets/ITStorageSnippets.java @@ -421,6 +421,16 @@ public void testAuthListBuckets() { assertNotNull(bucket); } + @Test + public void testBlobDownload() { + String blobName = "test-create-empty-blob"; + Blob remoteBlob = bucket.create(blobName, BLOB_BYTE_CONTENT); + assertNotNull(remoteBlob); + storageSnippets.downloadFile(BUCKET, blobName, Paths.get(blobName)); + byte[] readBytes = Files.readAllBytes(Paths.get(blobName)); + assertArrayEquals(BLOB_BYTE_CONTENT, readBytes); + } + @Test public void testRequesterPays() throws Exception { Bucket bucket = storageSnippets.enableRequesterPays(BUCKET); From 49332561099b06496feeaab82a1334b16a428ac0 Mon Sep 17 00:00:00 2001 From: Frank Natividad Date: Wed, 12 Sep 2018 15:46:06 -0700 Subject: [PATCH 03/21] Remove projectid --- .../cloud/examples/storage/snippets/StorageSnippets.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-examples/src/main/java/com/google/cloud/examples/storage/snippets/StorageSnippets.java b/google-cloud-examples/src/main/java/com/google/cloud/examples/storage/snippets/StorageSnippets.java index 58d7fc02b7b1..638642b8f834 100644 --- a/google-cloud-examples/src/main/java/com/google/cloud/examples/storage/snippets/StorageSnippets.java +++ b/google-cloud-examples/src/main/java/com/google/cloud/examples/storage/snippets/StorageSnippets.java @@ -1136,8 +1136,8 @@ public Bucket getRequesterPaysStatus(String bucketName) throws StorageException /** * Example of downloading a file. */ - public void downloadFile(String projectId, String bucketName, - String srcFilename, Path destFilePath) throws IOException { + public void downloadFile(String bucketName, String srcFilename, + Path destFilePath) throws IOException { // [START storage_download_file] // The name of the bucket to access // String bucketName = "my-bucket"; From eadf7bcd9eeece0354e1e83cf8be538d482a33d5 Mon Sep 17 00:00:00 2001 From: Garrett Jones Date: Wed, 12 Sep 2018 15:49:35 -0700 Subject: [PATCH 04/21] Adding redis-v1 and video-intelligence-v1p2beta1 (#3669) --- .../grpc-google-cloud-redis-v1/pom.xml | 31 + .../google/cloud/redis/v1/CloudRedisGrpc.java | 804 ++++ .../pom.xml | 31 + .../VideoIntelligenceServiceGrpc.java | 325 ++ google-api-grpc/pom.xml | 24 + .../proto-google-cloud-redis-v1/pom.xml | 31 + .../redis/v1/CloudRedisServiceV1Proto.java | 271 ++ .../cloud/redis/v1/CreateInstanceRequest.java | 1017 +++++ .../v1/CreateInstanceRequestOrBuilder.java | 86 + .../cloud/redis/v1/DeleteInstanceRequest.java | 591 +++ .../v1/DeleteInstanceRequestOrBuilder.java | 31 + .../cloud/redis/v1/GetInstanceRequest.java | 591 +++ .../redis/v1/GetInstanceRequestOrBuilder.java | 31 + .../com/google/cloud/redis/v1/Instance.java | 3770 ++++++++++++++++ .../google/cloud/redis/v1/InstanceName.java | 212 + .../cloud/redis/v1/InstanceOrBuilder.java | 450 ++ .../cloud/redis/v1/ListInstancesRequest.java | 847 ++++ .../v1/ListInstancesRequestOrBuilder.java | 65 + .../cloud/redis/v1/ListInstancesResponse.java | 1208 ++++++ .../v1/ListInstancesResponseOrBuilder.java | 113 + .../cloud/redis/v1/LocationMetadata.java | 780 ++++ .../redis/v1/LocationMetadataOrBuilder.java | 78 + .../google/cloud/redis/v1/LocationName.java | 189 + .../cloud/redis/v1/OperationMetadata.java | 1575 +++++++ .../redis/v1/OperationMetadataOrBuilder.java | 140 + .../cloud/redis/v1/UpdateInstanceRequest.java | 964 +++++ .../v1/UpdateInstanceRequestOrBuilder.java | 80 + .../google/cloud/redis/v1/ZoneMetadata.java | 423 ++ .../cloud/redis/v1/ZoneMetadataOrBuilder.java | 9 + .../google/cloud/redis/v1/cloud_redis.proto | 368 ++ .../pom.xml | 26 + .../v1p2beta1/AnnotateVideoProgress.java | 863 ++++ .../AnnotateVideoProgressOrBuilder.java | 53 + .../v1p2beta1/AnnotateVideoRequest.java | 1619 +++++++ .../AnnotateVideoRequestOrBuilder.java | 173 + .../v1p2beta1/AnnotateVideoResponse.java | 863 ++++ .../AnnotateVideoResponseOrBuilder.java | 53 + .../videointelligence/v1p2beta1/Entity.java | 901 ++++ .../v1p2beta1/EntityOrBuilder.java | 67 + .../v1p2beta1/ExplicitContentAnnotation.java | 863 ++++ .../ExplicitContentAnnotationOrBuilder.java | 53 + .../ExplicitContentDetectionConfig.java | 591 +++ ...plicitContentDetectionConfigOrBuilder.java | 31 + .../v1p2beta1/ExplicitContentFrame.java | 776 ++++ .../ExplicitContentFrameOrBuilder.java | 54 + .../videointelligence/v1p2beta1/Feature.java | 191 + .../v1p2beta1/LabelAnnotation.java | 2030 +++++++++ .../v1p2beta1/LabelAnnotationOrBuilder.java | 181 + .../v1p2beta1/LabelDetectionConfig.java | 801 ++++ .../LabelDetectionConfigOrBuilder.java | 63 + .../v1p2beta1/LabelDetectionMode.java | 157 + .../v1p2beta1/LabelFrame.java | 740 ++++ .../v1p2beta1/LabelFrameOrBuilder.java | 46 + .../v1p2beta1/LabelSegment.java | 728 ++++ .../v1p2beta1/LabelSegmentOrBuilder.java | 43 + .../v1p2beta1/Likelihood.java | 191 + .../v1p2beta1/NormalizedBoundingBox.java | 734 ++++ .../NormalizedBoundingBoxOrBuilder.java | 45 + .../v1p2beta1/NormalizedBoundingPoly.java | 887 ++++ .../NormalizedBoundingPolyOrBuilder.java | 53 + .../v1p2beta1/NormalizedVertex.java | 580 +++ .../v1p2beta1/NormalizedVertexOrBuilder.java | 27 + .../v1p2beta1/ObjectTrackingAnnotation.java | 1397 ++++++ .../ObjectTrackingAnnotationOrBuilder.java | 112 + .../v1p2beta1/ObjectTrackingFrame.java | 882 ++++ .../ObjectTrackingFrameOrBuilder.java | 59 + .../v1p2beta1/ShotChangeDetectionConfig.java | 591 +++ .../ShotChangeDetectionConfigOrBuilder.java | 31 + .../v1p2beta1/TextAnnotation.java | 1537 +++++++ .../v1p2beta1/TextAnnotationOrBuilder.java | 125 + .../v1p2beta1/TextDetectionConfig.java | 685 +++ .../TextDetectionConfigOrBuilder.java | 56 + .../v1p2beta1/TextFrame.java | 884 ++++ .../v1p2beta1/TextFrameOrBuilder.java | 59 + .../v1p2beta1/TextSegment.java | 651 +++ .../v1p2beta1/TextSegmentOrBuilder.java | 34 + .../v1p2beta1/VideoAnnotationProgress.java | 1120 +++++ .../VideoAnnotationProgressOrBuilder.java | 89 + .../v1p2beta1/VideoAnnotationResults.java | 3784 +++++++++++++++++ .../VideoAnnotationResultsOrBuilder.java | 371 ++ .../v1p2beta1/VideoContext.java | 1824 ++++++++ .../v1p2beta1/VideoContextOrBuilder.java | 163 + .../VideoIntelligenceServiceProto.java | 467 ++ .../v1p2beta1/VideoSegment.java | 904 ++++ .../v1p2beta1/VideoSegmentOrBuilder.java | 65 + .../v1p2beta1/video_intelligence.proto | 466 ++ google-cloud-bom/pom.xml | 20 + .../google-cloud-redis/pom.xml | 8 + .../cloud/redis/v1/CloudRedisClient.java | 1080 +++++ .../cloud/redis/v1/CloudRedisSettings.java | 270 ++ .../google/cloud/redis/v1/package-info.java | 49 + .../cloud/redis/v1/stub/CloudRedisStub.java | 97 + .../redis/v1/stub/CloudRedisStubSettings.java | 578 +++ .../stub/GrpcCloudRedisCallableFactory.java | 116 + .../redis/v1/stub/GrpcCloudRedisStub.java | 295 ++ .../cloud/redis/v1/CloudRedisClientTest.java | 411 ++ .../google/cloud/redis/v1/MockCloudRedis.java | 57 + .../cloud/redis/v1/MockCloudRedisImpl.java | 133 + .../google-cloud-video-intelligence/pom.xml | 9 + .../VideoIntelligenceServiceClient.java | 328 ++ .../VideoIntelligenceServiceSettings.java | 197 + .../v1p2beta1/package-info.java | 39 + ...deoIntelligenceServiceCallableFactory.java | 116 + .../GrpcVideoIntelligenceServiceStub.java | 171 + .../stub/VideoIntelligenceServiceStub.java | 56 + .../VideoIntelligenceServiceStubSettings.java | 322 ++ .../MockVideoIntelligenceService.java | 57 + .../MockVideoIntelligenceServiceImpl.java | 74 + .../VideoIntelligenceServiceClientTest.java | 130 + .../VideoIntelligenceServiceSmokeTest.java | 66 + google-cloud-clients/pom.xml | 2 +- versions.txt | 4 + 112 files changed, 50658 insertions(+), 1 deletion(-) create mode 100644 google-api-grpc/grpc-google-cloud-redis-v1/pom.xml create mode 100644 google-api-grpc/grpc-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CloudRedisGrpc.java create mode 100644 google-api-grpc/grpc-google-cloud-video-intelligence-v1p2beta1/pom.xml create mode 100644 google-api-grpc/grpc-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoIntelligenceServiceGrpc.java create mode 100644 google-api-grpc/proto-google-cloud-redis-v1/pom.xml create mode 100644 google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CloudRedisServiceV1Proto.java create mode 100644 google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CreateInstanceRequest.java create mode 100644 google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CreateInstanceRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/DeleteInstanceRequest.java create mode 100644 google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/DeleteInstanceRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceRequest.java create mode 100644 google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/Instance.java create mode 100644 google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceName.java create mode 100644 google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesRequest.java create mode 100644 google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesResponse.java create mode 100644 google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesResponseOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationMetadata.java create mode 100644 google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationMetadataOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationName.java create mode 100644 google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OperationMetadata.java create mode 100644 google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OperationMetadataOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpdateInstanceRequest.java create mode 100644 google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpdateInstanceRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ZoneMetadata.java create mode 100644 google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ZoneMetadataOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-redis-v1/src/main/proto/google/cloud/redis/v1/cloud_redis.proto create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/AnnotateVideoProgress.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/AnnotateVideoProgressOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/AnnotateVideoRequest.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/AnnotateVideoRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/AnnotateVideoResponse.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/AnnotateVideoResponseOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/Entity.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/EntityOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ExplicitContentAnnotation.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ExplicitContentAnnotationOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ExplicitContentDetectionConfig.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ExplicitContentDetectionConfigOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ExplicitContentFrame.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ExplicitContentFrameOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/Feature.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelAnnotation.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelAnnotationOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelDetectionConfig.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelDetectionConfigOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelDetectionMode.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelFrame.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelFrameOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelSegment.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelSegmentOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/Likelihood.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/NormalizedBoundingBox.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/NormalizedBoundingBoxOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/NormalizedBoundingPoly.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/NormalizedBoundingPolyOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/NormalizedVertex.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/NormalizedVertexOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ObjectTrackingAnnotation.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ObjectTrackingAnnotationOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ObjectTrackingFrame.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ObjectTrackingFrameOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ShotChangeDetectionConfig.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ShotChangeDetectionConfigOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextAnnotation.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextAnnotationOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextDetectionConfig.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextDetectionConfigOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextFrame.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextFrameOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextSegment.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextSegmentOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoAnnotationProgress.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoAnnotationProgressOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoAnnotationResults.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoAnnotationResultsOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoContext.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoContextOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoIntelligenceServiceProto.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoSegment.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoSegmentOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/proto/google/cloud/videointelligence/v1p2beta1/video_intelligence.proto create mode 100644 google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisClient.java create mode 100644 google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisSettings.java create mode 100644 google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/package-info.java create mode 100644 google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStub.java create mode 100644 google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStubSettings.java create mode 100644 google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/GrpcCloudRedisCallableFactory.java create mode 100644 google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/GrpcCloudRedisStub.java create mode 100644 google-cloud-clients/google-cloud-redis/src/test/java/com/google/cloud/redis/v1/CloudRedisClientTest.java create mode 100644 google-cloud-clients/google-cloud-redis/src/test/java/com/google/cloud/redis/v1/MockCloudRedis.java create mode 100644 google-cloud-clients/google-cloud-redis/src/test/java/com/google/cloud/redis/v1/MockCloudRedisImpl.java create mode 100644 google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoIntelligenceServiceClient.java create mode 100644 google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoIntelligenceServiceSettings.java create mode 100644 google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/package-info.java create mode 100644 google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/stub/GrpcVideoIntelligenceServiceCallableFactory.java create mode 100644 google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/stub/GrpcVideoIntelligenceServiceStub.java create mode 100644 google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/stub/VideoIntelligenceServiceStub.java create mode 100644 google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/stub/VideoIntelligenceServiceStubSettings.java create mode 100644 google-cloud-clients/google-cloud-video-intelligence/src/test/java/com/google/cloud/videointelligence/v1p2beta1/MockVideoIntelligenceService.java create mode 100644 google-cloud-clients/google-cloud-video-intelligence/src/test/java/com/google/cloud/videointelligence/v1p2beta1/MockVideoIntelligenceServiceImpl.java create mode 100644 google-cloud-clients/google-cloud-video-intelligence/src/test/java/com/google/cloud/videointelligence/v1p2beta1/VideoIntelligenceServiceClientTest.java create mode 100644 google-cloud-clients/google-cloud-video-intelligence/src/test/java/com/google/cloud/videointelligence/v1p2beta1/VideoIntelligenceServiceSmokeTest.java diff --git a/google-api-grpc/grpc-google-cloud-redis-v1/pom.xml b/google-api-grpc/grpc-google-cloud-redis-v1/pom.xml new file mode 100644 index 000000000000..c4887b7cdf39 --- /dev/null +++ b/google-api-grpc/grpc-google-cloud-redis-v1/pom.xml @@ -0,0 +1,31 @@ + + 4.0.0 + grpc-google-cloud-redis-v1 + 0.26.1-SNAPSHOT + grpc-google-cloud-redis-v1 + GRPC library for grpc-google-cloud-redis-v1 + + com.google.api.grpc + google-api-grpc + 0.26.1-SNAPSHOT + + + + io.grpc + grpc-stub + compile + + + io.grpc + grpc-protobuf + compile + + + com.google.api.grpc + proto-google-cloud-redis-v1 + compile + + + diff --git a/google-api-grpc/grpc-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CloudRedisGrpc.java b/google-api-grpc/grpc-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CloudRedisGrpc.java new file mode 100644 index 000000000000..0db0b35a8275 --- /dev/null +++ b/google-api-grpc/grpc-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CloudRedisGrpc.java @@ -0,0 +1,804 @@ +package com.google.cloud.redis.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; +import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; +import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; +import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; +import static io.grpc.stub.ClientCalls.asyncUnaryCall; +import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; +import static io.grpc.stub.ClientCalls.blockingUnaryCall; +import static io.grpc.stub.ClientCalls.futureUnaryCall; +import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; +import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; +import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; +import static io.grpc.stub.ServerCalls.asyncUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; + +/** + *
+ * Configures and manages Cloud Memorystore for Redis instances
+ * Google Cloud Memorystore for Redis v1
+ * The `redis.googleapis.com` service implements the Google Cloud Memorystore
+ * for Redis API and defines the following resource model for managing Redis
+ * instances:
+ * * The service works with a collection of cloud projects, named: `/projects/*`
+ * * Each project has a collection of available locations, named: `/locations/*`
+ * * Each location has a collection of Redis instances, named: `/instances/*`
+ * * As such, Redis instances are resources of the form:
+ *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+ * Note that location_id must be refering to a GCP `region`; for example:
+ * * `projects/redpepper-1290/locations/us-central1/instances/my-redis`
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.10.0)", + comments = "Source: google/cloud/redis/v1/cloud_redis.proto") +public final class CloudRedisGrpc { + + private CloudRedisGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.redis.v1.CloudRedis"; + + // Static method descriptors that strictly reflect the proto. + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getListInstancesMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_LIST_INSTANCES = getListInstancesMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getListInstancesMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getListInstancesMethod() { + return getListInstancesMethodHelper(); + } + + private static io.grpc.MethodDescriptor getListInstancesMethodHelper() { + io.grpc.MethodDescriptor getListInstancesMethod; + if ((getListInstancesMethod = CloudRedisGrpc.getListInstancesMethod) == null) { + synchronized (CloudRedisGrpc.class) { + if ((getListInstancesMethod = CloudRedisGrpc.getListInstancesMethod) == null) { + CloudRedisGrpc.getListInstancesMethod = getListInstancesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.cloud.redis.v1.CloudRedis", "ListInstances")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.v1.ListInstancesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.v1.ListInstancesResponse.getDefaultInstance())) + .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("ListInstances")) + .build(); + } + } + } + return getListInstancesMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getGetInstanceMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_GET_INSTANCE = getGetInstanceMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getGetInstanceMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getGetInstanceMethod() { + return getGetInstanceMethodHelper(); + } + + private static io.grpc.MethodDescriptor getGetInstanceMethodHelper() { + io.grpc.MethodDescriptor getGetInstanceMethod; + if ((getGetInstanceMethod = CloudRedisGrpc.getGetInstanceMethod) == null) { + synchronized (CloudRedisGrpc.class) { + if ((getGetInstanceMethod = CloudRedisGrpc.getGetInstanceMethod) == null) { + CloudRedisGrpc.getGetInstanceMethod = getGetInstanceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.cloud.redis.v1.CloudRedis", "GetInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.v1.GetInstanceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.v1.Instance.getDefaultInstance())) + .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("GetInstance")) + .build(); + } + } + } + return getGetInstanceMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getCreateInstanceMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_CREATE_INSTANCE = getCreateInstanceMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getCreateInstanceMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getCreateInstanceMethod() { + return getCreateInstanceMethodHelper(); + } + + private static io.grpc.MethodDescriptor getCreateInstanceMethodHelper() { + io.grpc.MethodDescriptor getCreateInstanceMethod; + if ((getCreateInstanceMethod = CloudRedisGrpc.getCreateInstanceMethod) == null) { + synchronized (CloudRedisGrpc.class) { + if ((getCreateInstanceMethod = CloudRedisGrpc.getCreateInstanceMethod) == null) { + CloudRedisGrpc.getCreateInstanceMethod = getCreateInstanceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.cloud.redis.v1.CloudRedis", "CreateInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.v1.CreateInstanceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("CreateInstance")) + .build(); + } + } + } + return getCreateInstanceMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getUpdateInstanceMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_UPDATE_INSTANCE = getUpdateInstanceMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getUpdateInstanceMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getUpdateInstanceMethod() { + return getUpdateInstanceMethodHelper(); + } + + private static io.grpc.MethodDescriptor getUpdateInstanceMethodHelper() { + io.grpc.MethodDescriptor getUpdateInstanceMethod; + if ((getUpdateInstanceMethod = CloudRedisGrpc.getUpdateInstanceMethod) == null) { + synchronized (CloudRedisGrpc.class) { + if ((getUpdateInstanceMethod = CloudRedisGrpc.getUpdateInstanceMethod) == null) { + CloudRedisGrpc.getUpdateInstanceMethod = getUpdateInstanceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.cloud.redis.v1.CloudRedis", "UpdateInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.v1.UpdateInstanceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("UpdateInstance")) + .build(); + } + } + } + return getUpdateInstanceMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getDeleteInstanceMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_DELETE_INSTANCE = getDeleteInstanceMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getDeleteInstanceMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getDeleteInstanceMethod() { + return getDeleteInstanceMethodHelper(); + } + + private static io.grpc.MethodDescriptor getDeleteInstanceMethodHelper() { + io.grpc.MethodDescriptor getDeleteInstanceMethod; + if ((getDeleteInstanceMethod = CloudRedisGrpc.getDeleteInstanceMethod) == null) { + synchronized (CloudRedisGrpc.class) { + if ((getDeleteInstanceMethod = CloudRedisGrpc.getDeleteInstanceMethod) == null) { + CloudRedisGrpc.getDeleteInstanceMethod = getDeleteInstanceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.cloud.redis.v1.CloudRedis", "DeleteInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.v1.DeleteInstanceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CloudRedisMethodDescriptorSupplier("DeleteInstance")) + .build(); + } + } + } + return getDeleteInstanceMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static CloudRedisStub newStub(io.grpc.Channel channel) { + return new CloudRedisStub(channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static CloudRedisBlockingStub newBlockingStub( + io.grpc.Channel channel) { + return new CloudRedisBlockingStub(channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static CloudRedisFutureStub newFutureStub( + io.grpc.Channel channel) { + return new CloudRedisFutureStub(channel); + } + + /** + *
+   * Configures and manages Cloud Memorystore for Redis instances
+   * Google Cloud Memorystore for Redis v1
+   * The `redis.googleapis.com` service implements the Google Cloud Memorystore
+   * for Redis API and defines the following resource model for managing Redis
+   * instances:
+   * * The service works with a collection of cloud projects, named: `/projects/*`
+   * * Each project has a collection of available locations, named: `/locations/*`
+   * * Each location has a collection of Redis instances, named: `/instances/*`
+   * * As such, Redis instances are resources of the form:
+   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * Note that location_id must be refering to a GCP `region`; for example:
+   * * `projects/redpepper-1290/locations/us-central1/instances/my-redis`
+   * 
+ */ + public static abstract class CloudRedisImplBase implements io.grpc.BindableService { + + /** + *
+     * Lists all Redis instances owned by a project in either the specified
+     * location (region) or all locations.
+     * The location should have the following format:
+     * * `projects/{project_id}/locations/{location_id}`
+     * If `location_id` is specified as `-` (wildcard), then all regions
+     * available to the project are queried, and the results are aggregated.
+     * 
+ */ + public void listInstances(com.google.cloud.redis.v1.ListInstancesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getListInstancesMethodHelper(), responseObserver); + } + + /** + *
+     * Gets the details of a specific Redis instance.
+     * 
+ */ + public void getInstance(com.google.cloud.redis.v1.GetInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetInstanceMethodHelper(), responseObserver); + } + + /** + *
+     * Creates a Redis instance based on the specified tier and memory size.
+     * By default, the instance is accessible from the project's
+     * [default network](/compute/docs/networks-and-firewalls#networks).
+     * The creation is executed asynchronously and callers may check the returned
+     * operation to track its progress. Once the operation is completed the Redis
+     * instance will be fully functional. Completed longrunning.Operation will
+     * contain the new instance object in the response field.
+     * The returned operation is automatically deleted after a few hours, so there
+     * is no need to call DeleteOperation.
+     * 
+ */ + public void createInstance(com.google.cloud.redis.v1.CreateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getCreateInstanceMethodHelper(), responseObserver); + } + + /** + *
+     * Updates the metadata and configuration of a specific Redis instance.
+     * Completed longrunning.Operation will contain the new instance object
+     * in the response field. The returned operation is automatically deleted
+     * after a few hours, so there is no need to call DeleteOperation.
+     * 
+ */ + public void updateInstance(com.google.cloud.redis.v1.UpdateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getUpdateInstanceMethodHelper(), responseObserver); + } + + /** + *
+     * Deletes a specific Redis instance.  Instance stops serving and data is
+     * deleted.
+     * 
+ */ + public void deleteInstance(com.google.cloud.redis.v1.DeleteInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getDeleteInstanceMethodHelper(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListInstancesMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.v1.ListInstancesRequest, + com.google.cloud.redis.v1.ListInstancesResponse>( + this, METHODID_LIST_INSTANCES))) + .addMethod( + getGetInstanceMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.v1.GetInstanceRequest, + com.google.cloud.redis.v1.Instance>( + this, METHODID_GET_INSTANCE))) + .addMethod( + getCreateInstanceMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.v1.CreateInstanceRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_INSTANCE))) + .addMethod( + getUpdateInstanceMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.v1.UpdateInstanceRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_INSTANCE))) + .addMethod( + getDeleteInstanceMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.v1.DeleteInstanceRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_INSTANCE))) + .build(); + } + } + + /** + *
+   * Configures and manages Cloud Memorystore for Redis instances
+   * Google Cloud Memorystore for Redis v1
+   * The `redis.googleapis.com` service implements the Google Cloud Memorystore
+   * for Redis API and defines the following resource model for managing Redis
+   * instances:
+   * * The service works with a collection of cloud projects, named: `/projects/*`
+   * * Each project has a collection of available locations, named: `/locations/*`
+   * * Each location has a collection of Redis instances, named: `/instances/*`
+   * * As such, Redis instances are resources of the form:
+   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * Note that location_id must be refering to a GCP `region`; for example:
+   * * `projects/redpepper-1290/locations/us-central1/instances/my-redis`
+   * 
+ */ + public static final class CloudRedisStub extends io.grpc.stub.AbstractStub { + private CloudRedisStub(io.grpc.Channel channel) { + super(channel); + } + + private CloudRedisStub(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CloudRedisStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + return new CloudRedisStub(channel, callOptions); + } + + /** + *
+     * Lists all Redis instances owned by a project in either the specified
+     * location (region) or all locations.
+     * The location should have the following format:
+     * * `projects/{project_id}/locations/{location_id}`
+     * If `location_id` is specified as `-` (wildcard), then all regions
+     * available to the project are queried, and the results are aggregated.
+     * 
+ */ + public void listInstances(com.google.cloud.redis.v1.ListInstancesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getListInstancesMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets the details of a specific Redis instance.
+     * 
+ */ + public void getInstance(com.google.cloud.redis.v1.GetInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetInstanceMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a Redis instance based on the specified tier and memory size.
+     * By default, the instance is accessible from the project's
+     * [default network](/compute/docs/networks-and-firewalls#networks).
+     * The creation is executed asynchronously and callers may check the returned
+     * operation to track its progress. Once the operation is completed the Redis
+     * instance will be fully functional. Completed longrunning.Operation will
+     * contain the new instance object in the response field.
+     * The returned operation is automatically deleted after a few hours, so there
+     * is no need to call DeleteOperation.
+     * 
+ */ + public void createInstance(com.google.cloud.redis.v1.CreateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getCreateInstanceMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the metadata and configuration of a specific Redis instance.
+     * Completed longrunning.Operation will contain the new instance object
+     * in the response field. The returned operation is automatically deleted
+     * after a few hours, so there is no need to call DeleteOperation.
+     * 
+ */ + public void updateInstance(com.google.cloud.redis.v1.UpdateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getUpdateInstanceMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a specific Redis instance.  Instance stops serving and data is
+     * deleted.
+     * 
+ */ + public void deleteInstance(com.google.cloud.redis.v1.DeleteInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getDeleteInstanceMethodHelper(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Configures and manages Cloud Memorystore for Redis instances
+   * Google Cloud Memorystore for Redis v1
+   * The `redis.googleapis.com` service implements the Google Cloud Memorystore
+   * for Redis API and defines the following resource model for managing Redis
+   * instances:
+   * * The service works with a collection of cloud projects, named: `/projects/*`
+   * * Each project has a collection of available locations, named: `/locations/*`
+   * * Each location has a collection of Redis instances, named: `/instances/*`
+   * * As such, Redis instances are resources of the form:
+   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * Note that location_id must be refering to a GCP `region`; for example:
+   * * `projects/redpepper-1290/locations/us-central1/instances/my-redis`
+   * 
+ */ + public static final class CloudRedisBlockingStub extends io.grpc.stub.AbstractStub { + private CloudRedisBlockingStub(io.grpc.Channel channel) { + super(channel); + } + + private CloudRedisBlockingStub(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CloudRedisBlockingStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + return new CloudRedisBlockingStub(channel, callOptions); + } + + /** + *
+     * Lists all Redis instances owned by a project in either the specified
+     * location (region) or all locations.
+     * The location should have the following format:
+     * * `projects/{project_id}/locations/{location_id}`
+     * If `location_id` is specified as `-` (wildcard), then all regions
+     * available to the project are queried, and the results are aggregated.
+     * 
+ */ + public com.google.cloud.redis.v1.ListInstancesResponse listInstances(com.google.cloud.redis.v1.ListInstancesRequest request) { + return blockingUnaryCall( + getChannel(), getListInstancesMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Gets the details of a specific Redis instance.
+     * 
+ */ + public com.google.cloud.redis.v1.Instance getInstance(com.google.cloud.redis.v1.GetInstanceRequest request) { + return blockingUnaryCall( + getChannel(), getGetInstanceMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Creates a Redis instance based on the specified tier and memory size.
+     * By default, the instance is accessible from the project's
+     * [default network](/compute/docs/networks-and-firewalls#networks).
+     * The creation is executed asynchronously and callers may check the returned
+     * operation to track its progress. Once the operation is completed the Redis
+     * instance will be fully functional. Completed longrunning.Operation will
+     * contain the new instance object in the response field.
+     * The returned operation is automatically deleted after a few hours, so there
+     * is no need to call DeleteOperation.
+     * 
+ */ + public com.google.longrunning.Operation createInstance(com.google.cloud.redis.v1.CreateInstanceRequest request) { + return blockingUnaryCall( + getChannel(), getCreateInstanceMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Updates the metadata and configuration of a specific Redis instance.
+     * Completed longrunning.Operation will contain the new instance object
+     * in the response field. The returned operation is automatically deleted
+     * after a few hours, so there is no need to call DeleteOperation.
+     * 
+ */ + public com.google.longrunning.Operation updateInstance(com.google.cloud.redis.v1.UpdateInstanceRequest request) { + return blockingUnaryCall( + getChannel(), getUpdateInstanceMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Deletes a specific Redis instance.  Instance stops serving and data is
+     * deleted.
+     * 
+ */ + public com.google.longrunning.Operation deleteInstance(com.google.cloud.redis.v1.DeleteInstanceRequest request) { + return blockingUnaryCall( + getChannel(), getDeleteInstanceMethodHelper(), getCallOptions(), request); + } + } + + /** + *
+   * Configures and manages Cloud Memorystore for Redis instances
+   * Google Cloud Memorystore for Redis v1
+   * The `redis.googleapis.com` service implements the Google Cloud Memorystore
+   * for Redis API and defines the following resource model for managing Redis
+   * instances:
+   * * The service works with a collection of cloud projects, named: `/projects/*`
+   * * Each project has a collection of available locations, named: `/locations/*`
+   * * Each location has a collection of Redis instances, named: `/instances/*`
+   * * As such, Redis instances are resources of the form:
+   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * Note that location_id must be refering to a GCP `region`; for example:
+   * * `projects/redpepper-1290/locations/us-central1/instances/my-redis`
+   * 
+ */ + public static final class CloudRedisFutureStub extends io.grpc.stub.AbstractStub { + private CloudRedisFutureStub(io.grpc.Channel channel) { + super(channel); + } + + private CloudRedisFutureStub(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CloudRedisFutureStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + return new CloudRedisFutureStub(channel, callOptions); + } + + /** + *
+     * Lists all Redis instances owned by a project in either the specified
+     * location (region) or all locations.
+     * The location should have the following format:
+     * * `projects/{project_id}/locations/{location_id}`
+     * If `location_id` is specified as `-` (wildcard), then all regions
+     * available to the project are queried, and the results are aggregated.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listInstances( + com.google.cloud.redis.v1.ListInstancesRequest request) { + return futureUnaryCall( + getChannel().newCall(getListInstancesMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Gets the details of a specific Redis instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getInstance( + com.google.cloud.redis.v1.GetInstanceRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetInstanceMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Creates a Redis instance based on the specified tier and memory size.
+     * By default, the instance is accessible from the project's
+     * [default network](/compute/docs/networks-and-firewalls#networks).
+     * The creation is executed asynchronously and callers may check the returned
+     * operation to track its progress. Once the operation is completed the Redis
+     * instance will be fully functional. Completed longrunning.Operation will
+     * contain the new instance object in the response field.
+     * The returned operation is automatically deleted after a few hours, so there
+     * is no need to call DeleteOperation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createInstance( + com.google.cloud.redis.v1.CreateInstanceRequest request) { + return futureUnaryCall( + getChannel().newCall(getCreateInstanceMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Updates the metadata and configuration of a specific Redis instance.
+     * Completed longrunning.Operation will contain the new instance object
+     * in the response field. The returned operation is automatically deleted
+     * after a few hours, so there is no need to call DeleteOperation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateInstance( + com.google.cloud.redis.v1.UpdateInstanceRequest request) { + return futureUnaryCall( + getChannel().newCall(getUpdateInstanceMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Deletes a specific Redis instance.  Instance stops serving and data is
+     * deleted.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteInstance( + com.google.cloud.redis.v1.DeleteInstanceRequest request) { + return futureUnaryCall( + getChannel().newCall(getDeleteInstanceMethodHelper(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_INSTANCES = 0; + private static final int METHODID_GET_INSTANCE = 1; + private static final int METHODID_CREATE_INSTANCE = 2; + private static final int METHODID_UPDATE_INSTANCE = 3; + private static final int METHODID_DELETE_INSTANCE = 4; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final CloudRedisImplBase serviceImpl; + private final int methodId; + + MethodHandlers(CloudRedisImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_INSTANCES: + serviceImpl.listInstances((com.google.cloud.redis.v1.ListInstancesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_INSTANCE: + serviceImpl.getInstance((com.google.cloud.redis.v1.GetInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_INSTANCE: + serviceImpl.createInstance((com.google.cloud.redis.v1.CreateInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_INSTANCE: + serviceImpl.updateInstance((com.google.cloud.redis.v1.UpdateInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_INSTANCE: + serviceImpl.deleteInstance((com.google.cloud.redis.v1.DeleteInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class CloudRedisBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + CloudRedisBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("CloudRedis"); + } + } + + private static final class CloudRedisFileDescriptorSupplier + extends CloudRedisBaseDescriptorSupplier { + CloudRedisFileDescriptorSupplier() {} + } + + private static final class CloudRedisMethodDescriptorSupplier + extends CloudRedisBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + CloudRedisMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (CloudRedisGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new CloudRedisFileDescriptorSupplier()) + .addMethod(getListInstancesMethodHelper()) + .addMethod(getGetInstanceMethodHelper()) + .addMethod(getCreateInstanceMethodHelper()) + .addMethod(getUpdateInstanceMethodHelper()) + .addMethod(getDeleteInstanceMethodHelper()) + .build(); + } + } + } + return result; + } +} diff --git a/google-api-grpc/grpc-google-cloud-video-intelligence-v1p2beta1/pom.xml b/google-api-grpc/grpc-google-cloud-video-intelligence-v1p2beta1/pom.xml new file mode 100644 index 000000000000..6ab2e5463e1d --- /dev/null +++ b/google-api-grpc/grpc-google-cloud-video-intelligence-v1p2beta1/pom.xml @@ -0,0 +1,31 @@ + + 4.0.0 + grpc-google-cloud-video-intelligence-v1p2beta1 + 0.26.1-SNAPSHOT + grpc-google-cloud-video-intelligence-v1p2beta1 + GRPC library for grpc-google-cloud-video-intelligence-v1p2beta1 + + com.google.api.grpc + google-api-grpc + 0.26.1-SNAPSHOT + + + + io.grpc + grpc-stub + compile + + + io.grpc + grpc-protobuf + compile + + + com.google.api.grpc + proto-google-cloud-video-intelligence-v1p2beta1 + compile + + + diff --git a/google-api-grpc/grpc-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoIntelligenceServiceGrpc.java b/google-api-grpc/grpc-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoIntelligenceServiceGrpc.java new file mode 100644 index 000000000000..a299f0e900aa --- /dev/null +++ b/google-api-grpc/grpc-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoIntelligenceServiceGrpc.java @@ -0,0 +1,325 @@ +package com.google.cloud.videointelligence.v1p2beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; +import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; +import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; +import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; +import static io.grpc.stub.ClientCalls.asyncUnaryCall; +import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; +import static io.grpc.stub.ClientCalls.blockingUnaryCall; +import static io.grpc.stub.ClientCalls.futureUnaryCall; +import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; +import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; +import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; +import static io.grpc.stub.ServerCalls.asyncUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; + +/** + *
+ * Service that implements Google Cloud Video Intelligence API.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.10.0)", + comments = "Source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto") +public final class VideoIntelligenceServiceGrpc { + + private VideoIntelligenceServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.videointelligence.v1p2beta1.VideoIntelligenceService"; + + // Static method descriptors that strictly reflect the proto. + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getAnnotateVideoMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_ANNOTATE_VIDEO = getAnnotateVideoMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getAnnotateVideoMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getAnnotateVideoMethod() { + return getAnnotateVideoMethodHelper(); + } + + private static io.grpc.MethodDescriptor getAnnotateVideoMethodHelper() { + io.grpc.MethodDescriptor getAnnotateVideoMethod; + if ((getAnnotateVideoMethod = VideoIntelligenceServiceGrpc.getAnnotateVideoMethod) == null) { + synchronized (VideoIntelligenceServiceGrpc.class) { + if ((getAnnotateVideoMethod = VideoIntelligenceServiceGrpc.getAnnotateVideoMethod) == null) { + VideoIntelligenceServiceGrpc.getAnnotateVideoMethod = getAnnotateVideoMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.cloud.videointelligence.v1p2beta1.VideoIntelligenceService", "AnnotateVideo")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new VideoIntelligenceServiceMethodDescriptorSupplier("AnnotateVideo")) + .build(); + } + } + } + return getAnnotateVideoMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static VideoIntelligenceServiceStub newStub(io.grpc.Channel channel) { + return new VideoIntelligenceServiceStub(channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static VideoIntelligenceServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + return new VideoIntelligenceServiceBlockingStub(channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static VideoIntelligenceServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + return new VideoIntelligenceServiceFutureStub(channel); + } + + /** + *
+   * Service that implements Google Cloud Video Intelligence API.
+   * 
+ */ + public static abstract class VideoIntelligenceServiceImplBase implements io.grpc.BindableService { + + /** + *
+     * Performs asynchronous video annotation. Progress and results can be
+     * retrieved through the `google.longrunning.Operations` interface.
+     * `Operation.metadata` contains `AnnotateVideoProgress` (progress).
+     * `Operation.response` contains `AnnotateVideoResponse` (results).
+     * 
+ */ + public void annotateVideo(com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getAnnotateVideoMethodHelper(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getAnnotateVideoMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest, + com.google.longrunning.Operation>( + this, METHODID_ANNOTATE_VIDEO))) + .build(); + } + } + + /** + *
+   * Service that implements Google Cloud Video Intelligence API.
+   * 
+ */ + public static final class VideoIntelligenceServiceStub extends io.grpc.stub.AbstractStub { + private VideoIntelligenceServiceStub(io.grpc.Channel channel) { + super(channel); + } + + private VideoIntelligenceServiceStub(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected VideoIntelligenceServiceStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + return new VideoIntelligenceServiceStub(channel, callOptions); + } + + /** + *
+     * Performs asynchronous video annotation. Progress and results can be
+     * retrieved through the `google.longrunning.Operations` interface.
+     * `Operation.metadata` contains `AnnotateVideoProgress` (progress).
+     * `Operation.response` contains `AnnotateVideoResponse` (results).
+     * 
+ */ + public void annotateVideo(com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getAnnotateVideoMethodHelper(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Service that implements Google Cloud Video Intelligence API.
+   * 
+ */ + public static final class VideoIntelligenceServiceBlockingStub extends io.grpc.stub.AbstractStub { + private VideoIntelligenceServiceBlockingStub(io.grpc.Channel channel) { + super(channel); + } + + private VideoIntelligenceServiceBlockingStub(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected VideoIntelligenceServiceBlockingStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + return new VideoIntelligenceServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Performs asynchronous video annotation. Progress and results can be
+     * retrieved through the `google.longrunning.Operations` interface.
+     * `Operation.metadata` contains `AnnotateVideoProgress` (progress).
+     * `Operation.response` contains `AnnotateVideoResponse` (results).
+     * 
+ */ + public com.google.longrunning.Operation annotateVideo(com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest request) { + return blockingUnaryCall( + getChannel(), getAnnotateVideoMethodHelper(), getCallOptions(), request); + } + } + + /** + *
+   * Service that implements Google Cloud Video Intelligence API.
+   * 
+ */ + public static final class VideoIntelligenceServiceFutureStub extends io.grpc.stub.AbstractStub { + private VideoIntelligenceServiceFutureStub(io.grpc.Channel channel) { + super(channel); + } + + private VideoIntelligenceServiceFutureStub(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected VideoIntelligenceServiceFutureStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + return new VideoIntelligenceServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Performs asynchronous video annotation. Progress and results can be
+     * retrieved through the `google.longrunning.Operations` interface.
+     * `Operation.metadata` contains `AnnotateVideoProgress` (progress).
+     * `Operation.response` contains `AnnotateVideoResponse` (results).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture annotateVideo( + com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest request) { + return futureUnaryCall( + getChannel().newCall(getAnnotateVideoMethodHelper(), getCallOptions()), request); + } + } + + private static final int METHODID_ANNOTATE_VIDEO = 0; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final VideoIntelligenceServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(VideoIntelligenceServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_ANNOTATE_VIDEO: + serviceImpl.annotateVideo((com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class VideoIntelligenceServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + VideoIntelligenceServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("VideoIntelligenceService"); + } + } + + private static final class VideoIntelligenceServiceFileDescriptorSupplier + extends VideoIntelligenceServiceBaseDescriptorSupplier { + VideoIntelligenceServiceFileDescriptorSupplier() {} + } + + private static final class VideoIntelligenceServiceMethodDescriptorSupplier + extends VideoIntelligenceServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + VideoIntelligenceServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (VideoIntelligenceServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new VideoIntelligenceServiceFileDescriptorSupplier()) + .addMethod(getAnnotateVideoMethodHelper()) + .build(); + } + } + } + return result; + } +} diff --git a/google-api-grpc/pom.xml b/google-api-grpc/pom.xml index a48a1ec96cda..6ecbe1d820ec 100644 --- a/google-api-grpc/pom.xml +++ b/google-api-grpc/pom.xml @@ -546,6 +546,16 @@ grpc-google-cloud-video-intelligence-v1p1beta1 0.26.1-SNAPSHOT + + com.google.api.grpc + proto-google-cloud-video-intelligence-v1p2beta1 + 0.26.1-SNAPSHOT + + + com.google.api.grpc + grpc-google-cloud-video-intelligence-v1p2beta1 + 0.26.1-SNAPSHOT + com.google.api.grpc proto-google-cloud-iot-v1 @@ -566,6 +576,16 @@ grpc-google-cloud-redis-v1beta1 0.26.1-SNAPSHOT + + com.google.api.grpc + proto-google-cloud-redis-v1 + 0.26.1-SNAPSHOT + + + com.google.api.grpc + grpc-google-cloud-redis-v1 + 0.26.1-SNAPSHOT + com.google.api.grpc proto-google-cloud-websecurityscanner-v1alpha @@ -617,12 +637,14 @@ grpc-google-cloud-video-intelligence-v1beta1 grpc-google-cloud-video-intelligence-v1beta2 grpc-google-cloud-video-intelligence-v1p1beta1 + grpc-google-cloud-video-intelligence-v1p2beta1 grpc-google-cloud-vision-v1 grpc-google-cloud-vision-v1p1beta1 grpc-google-cloud-vision-v1p2beta1 grpc-google-cloud-vision-v1p3beta1 grpc-google-cloud-iot-v1 grpc-google-cloud-redis-v1beta1 + grpc-google-cloud-redis-v1 grpc-google-cloud-websecurityscanner-v1alpha proto-google-cloud-asset-v1beta1 @@ -663,12 +685,14 @@ proto-google-cloud-video-intelligence-v1beta1 proto-google-cloud-video-intelligence-v1beta2 proto-google-cloud-video-intelligence-v1p1beta1 + proto-google-cloud-video-intelligence-v1p2beta1 proto-google-cloud-vision-v1 proto-google-cloud-vision-v1p1beta1 proto-google-cloud-vision-v1p2beta1 proto-google-cloud-vision-v1p3beta1 proto-google-cloud-iot-v1 proto-google-cloud-redis-v1beta1 + proto-google-cloud-redis-v1 proto-google-cloud-websecurityscanner-v1alpha diff --git a/google-api-grpc/proto-google-cloud-redis-v1/pom.xml b/google-api-grpc/proto-google-cloud-redis-v1/pom.xml new file mode 100644 index 000000000000..01ec8d4eb648 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-redis-v1/pom.xml @@ -0,0 +1,31 @@ + + 4.0.0 + proto-google-cloud-redis-v1 + 0.26.1-SNAPSHOT + proto-google-cloud-redis-v1 + PROTO library for proto-google-cloud-redis-v1 + + com.google.api.grpc + google-api-grpc + 0.26.1-SNAPSHOT + + + + com.google.protobuf + protobuf-java + compile + + + com.google.api + api-common + compile + + + com.google.api.grpc + proto-google-common-protos + compile + + + diff --git a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CloudRedisServiceV1Proto.java b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CloudRedisServiceV1Proto.java new file mode 100644 index 000000000000..f6817b9cadc5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CloudRedisServiceV1Proto.java @@ -0,0 +1,271 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/v1/cloud_redis.proto + +package com.google.cloud.redis.v1; + +public final class CloudRedisServiceV1Proto { + private CloudRedisServiceV1Proto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_Instance_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_Instance_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_Instance_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_Instance_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_Instance_RedisConfigsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_Instance_RedisConfigsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_ListInstancesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_ListInstancesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_ListInstancesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_ListInstancesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_GetInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_GetInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_CreateInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_CreateInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_UpdateInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_UpdateInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_DeleteInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_DeleteInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_OperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_LocationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_LocationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_LocationMetadata_AvailableZonesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_LocationMetadata_AvailableZonesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_v1_ZoneMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_v1_ZoneMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\'google/cloud/redis/v1/cloud_redis.prot" + + "o\022\025google.cloud.redis.v1\032\034google/api/ann" + + "otations.proto\032#google/longrunning/opera" + + "tions.proto\032 google/protobuf/field_mask." + + "proto\032\037google/protobuf/timestamp.proto\"\320" + + "\006\n\010Instance\022\014\n\004name\030\001 \001(\t\022\024\n\014display_nam" + + "e\030\002 \001(\t\022;\n\006labels\030\003 \003(\0132+.google.cloud.r" + + "edis.v1.Instance.LabelsEntry\022\023\n\013location" + + "_id\030\004 \001(\t\022\037\n\027alternative_location_id\030\005 \001" + + "(\t\022\025\n\rredis_version\030\007 \001(\t\022\031\n\021reserved_ip" + + "_range\030\t \001(\t\022\014\n\004host\030\n \001(\t\022\014\n\004port\030\013 \001(\005" + + "\022\033\n\023current_location_id\030\014 \001(\t\022/\n\013create_" + + "time\030\r \001(\0132\032.google.protobuf.Timestamp\0224" + + "\n\005state\030\016 \001(\0162%.google.cloud.redis.v1.In" + + "stance.State\022\026\n\016status_message\030\017 \001(\t\022H\n\r" + + "redis_configs\030\020 \003(\01321.google.cloud.redis" + + ".v1.Instance.RedisConfigsEntry\0222\n\004tier\030\021" + + " \001(\0162$.google.cloud.redis.v1.Instance.Ti" + + "er\022\026\n\016memory_size_gb\030\022 \001(\005\022\032\n\022authorized" + + "_network\030\024 \001(\t\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001" + + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0323\n\021RedisConfigsEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"s\n\005St" + + "ate\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001" + + "\022\t\n\005READY\020\002\022\014\n\010UPDATING\020\003\022\014\n\010DELETING\020\004\022" + + "\r\n\tREPAIRING\020\005\022\017\n\013MAINTENANCE\020\006\"8\n\004Tier\022" + + "\024\n\020TIER_UNSPECIFIED\020\000\022\t\n\005BASIC\020\001\022\017\n\013STAN" + + "DARD_HA\020\003\"M\n\024ListInstancesRequest\022\016\n\006par" + + "ent\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_tok" + + "en\030\003 \001(\t\"d\n\025ListInstancesResponse\0222\n\tins" + + "tances\030\001 \003(\0132\037.google.cloud.redis.v1.Ins" + + "tance\022\027\n\017next_page_token\030\002 \001(\t\"\"\n\022GetIns" + + "tanceRequest\022\014\n\004name\030\001 \001(\t\"o\n\025CreateInst" + + "anceRequest\022\016\n\006parent\030\001 \001(\t\022\023\n\013instance_" + + "id\030\002 \001(\t\0221\n\010instance\030\003 \001(\0132\037.google.clou" + + "d.redis.v1.Instance\"{\n\025UpdateInstanceReq" + + "uest\022/\n\013update_mask\030\001 \001(\0132\032.google.proto" + + "buf.FieldMask\0221\n\010instance\030\002 \001(\0132\037.google" + + ".cloud.redis.v1.Instance\"%\n\025DeleteInstan" + + "ceRequest\022\014\n\004name\030\001 \001(\t\"\326\001\n\021OperationMet" + + "adata\022/\n\013create_time\030\001 \001(\0132\032.google.prot" + + "obuf.Timestamp\022,\n\010end_time\030\002 \001(\0132\032.googl" + + "e.protobuf.Timestamp\022\016\n\006target\030\003 \001(\t\022\014\n\004" + + "verb\030\004 \001(\t\022\025\n\rstatus_detail\030\005 \001(\t\022\030\n\020can" + + "cel_requested\030\006 \001(\010\022\023\n\013api_version\030\007 \001(\t" + + "\"\304\001\n\020LocationMetadata\022T\n\017available_zones" + + "\030\001 \003(\0132;.google.cloud.redis.v1.LocationM" + + "etadata.AvailableZonesEntry\032Z\n\023Available" + + "ZonesEntry\022\013\n\003key\030\001 \001(\t\0222\n\005value\030\002 \001(\0132#" + + ".google.cloud.redis.v1.ZoneMetadata:\0028\001\"" + + "\016\n\014ZoneMetadata2\245\006\n\nCloudRedis\022\241\001\n\rListI" + + "nstances\022+.google.cloud.redis.v1.ListIns" + + "tancesRequest\032,.google.cloud.redis.v1.Li" + + "stInstancesResponse\"5\202\323\344\223\002/\022-/v1/{parent" + + "=projects/*/locations/*}/instances\022\220\001\n\013G" + + "etInstance\022).google.cloud.redis.v1.GetIn" + + "stanceRequest\032\037.google.cloud.redis.v1.In" + + "stance\"5\202\323\344\223\002/\022-/v1/{name=projects/*/loc" + + "ations/*/instances/*}\022\236\001\n\016CreateInstance" + + "\022,.google.cloud.redis.v1.CreateInstanceR" + + "equest\032\035.google.longrunning.Operation\"?\202" + + "\323\344\223\0029\"-/v1/{parent=projects/*/locations/" + + "*}/instances:\010instance\022\247\001\n\016UpdateInstanc" + + "e\022,.google.cloud.redis.v1.UpdateInstance" + + "Request\032\035.google.longrunning.Operation\"H" + + "\202\323\344\223\002B26/v1/{instance.name=projects/*/lo" + + "cations/*/instances/*}:\010instance\022\224\001\n\016Del" + + "eteInstance\022,.google.cloud.redis.v1.Dele" + + "teInstanceRequest\032\035.google.longrunning.O" + + "peration\"5\202\323\344\223\002/*-/v1/{name=projects/*/l" + + "ocations/*/instances/*}Bs\n\031com.google.cl" + + "oud.redis.v1B\030CloudRedisServiceV1ProtoP\001" + + "Z:google.golang.org/genproto/googleapis/" + + "cloud/redis/v1;redisb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }, assigner); + internal_static_google_cloud_redis_v1_Instance_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_redis_v1_Instance_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_Instance_descriptor, + new java.lang.String[] { "Name", "DisplayName", "Labels", "LocationId", "AlternativeLocationId", "RedisVersion", "ReservedIpRange", "Host", "Port", "CurrentLocationId", "CreateTime", "State", "StatusMessage", "RedisConfigs", "Tier", "MemorySizeGb", "AuthorizedNetwork", }); + internal_static_google_cloud_redis_v1_Instance_LabelsEntry_descriptor = + internal_static_google_cloud_redis_v1_Instance_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_redis_v1_Instance_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_Instance_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_redis_v1_Instance_RedisConfigsEntry_descriptor = + internal_static_google_cloud_redis_v1_Instance_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_redis_v1_Instance_RedisConfigsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_Instance_RedisConfigsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_redis_v1_ListInstancesRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_redis_v1_ListInstancesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_ListInstancesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_redis_v1_ListInstancesResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_redis_v1_ListInstancesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_ListInstancesResponse_descriptor, + new java.lang.String[] { "Instances", "NextPageToken", }); + internal_static_google_cloud_redis_v1_GetInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_redis_v1_GetInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_GetInstanceRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_redis_v1_CreateInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_redis_v1_CreateInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_CreateInstanceRequest_descriptor, + new java.lang.String[] { "Parent", "InstanceId", "Instance", }); + internal_static_google_cloud_redis_v1_UpdateInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_redis_v1_UpdateInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_UpdateInstanceRequest_descriptor, + new java.lang.String[] { "UpdateMask", "Instance", }); + internal_static_google_cloud_redis_v1_DeleteInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_redis_v1_DeleteInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_DeleteInstanceRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_redis_v1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_redis_v1_OperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_OperationMetadata_descriptor, + new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusDetail", "CancelRequested", "ApiVersion", }); + internal_static_google_cloud_redis_v1_LocationMetadata_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_redis_v1_LocationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_LocationMetadata_descriptor, + new java.lang.String[] { "AvailableZones", }); + internal_static_google_cloud_redis_v1_LocationMetadata_AvailableZonesEntry_descriptor = + internal_static_google_cloud_redis_v1_LocationMetadata_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_redis_v1_LocationMetadata_AvailableZonesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_LocationMetadata_AvailableZonesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_redis_v1_ZoneMetadata_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_redis_v1_ZoneMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_v1_ZoneMetadata_descriptor, + new java.lang.String[] { }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.AnnotationsProto.http); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CreateInstanceRequest.java b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CreateInstanceRequest.java new file mode 100644 index 000000000000..7b1317f9ae77 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CreateInstanceRequest.java @@ -0,0 +1,1017 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/v1/cloud_redis.proto + +package com.google.cloud.redis.v1; + +/** + *
+ * Request for [CreateInstance][google.cloud.redis.v1.CloudRedis.CreateInstance].
+ * 
+ * + * Protobuf type {@code google.cloud.redis.v1.CreateInstanceRequest} + */ +public final class CreateInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.CreateInstanceRequest) + CreateInstanceRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreateInstanceRequest.newBuilder() to construct. + private CreateInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateInstanceRequest() { + parent_ = ""; + instanceId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateInstanceRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + instanceId_ = s; + break; + } + case 26: { + com.google.cloud.redis.v1.Instance.Builder subBuilder = null; + if (instance_ != null) { + subBuilder = instance_.toBuilder(); + } + instance_ = input.readMessage(com.google.cloud.redis.v1.Instance.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(instance_); + instance_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_CreateInstanceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_CreateInstanceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.v1.CreateInstanceRequest.class, com.google.cloud.redis.v1.CreateInstanceRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + *
+   * Required. The resource name of the instance location using the form:
+   *     `projects/{project_id}/locations/{location_id}`
+   * where `location_id` refers to a GCP region
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + *
+   * Required. The resource name of the instance location using the form:
+   *     `projects/{project_id}/locations/{location_id}`
+   * where `location_id` refers to a GCP region
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INSTANCE_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object instanceId_; + /** + *
+   * Required. The logical name of the Redis instance in the customer project
+   * with the following restrictions:
+   * * Must contain only lowercase letters, numbers, and hyphens.
+   * * Must start with a letter.
+   * * Must be between 1-40 characters.
+   * * Must end with a number or a letter.
+   * * Must be unique within the customer project / location
+   * 
+ * + * string instance_id = 2; + */ + public java.lang.String getInstanceId() { + java.lang.Object ref = instanceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instanceId_ = s; + return s; + } + } + /** + *
+   * Required. The logical name of the Redis instance in the customer project
+   * with the following restrictions:
+   * * Must contain only lowercase letters, numbers, and hyphens.
+   * * Must start with a letter.
+   * * Must be between 1-40 characters.
+   * * Must end with a number or a letter.
+   * * Must be unique within the customer project / location
+   * 
+ * + * string instance_id = 2; + */ + public com.google.protobuf.ByteString + getInstanceIdBytes() { + java.lang.Object ref = instanceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + instanceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INSTANCE_FIELD_NUMBER = 3; + private com.google.cloud.redis.v1.Instance instance_; + /** + *
+   * Required. A Redis [Instance] resource
+   * 
+ * + * .google.cloud.redis.v1.Instance instance = 3; + */ + public boolean hasInstance() { + return instance_ != null; + } + /** + *
+   * Required. A Redis [Instance] resource
+   * 
+ * + * .google.cloud.redis.v1.Instance instance = 3; + */ + public com.google.cloud.redis.v1.Instance getInstance() { + return instance_ == null ? com.google.cloud.redis.v1.Instance.getDefaultInstance() : instance_; + } + /** + *
+   * Required. A Redis [Instance] resource
+   * 
+ * + * .google.cloud.redis.v1.Instance instance = 3; + */ + public com.google.cloud.redis.v1.InstanceOrBuilder getInstanceOrBuilder() { + return getInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!getInstanceIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, instanceId_); + } + if (instance_ != null) { + output.writeMessage(3, getInstance()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!getInstanceIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceId_); + } + if (instance_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getInstance()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.v1.CreateInstanceRequest)) { + return super.equals(obj); + } + com.google.cloud.redis.v1.CreateInstanceRequest other = (com.google.cloud.redis.v1.CreateInstanceRequest) obj; + + boolean result = true; + result = result && getParent() + .equals(other.getParent()); + result = result && getInstanceId() + .equals(other.getInstanceId()); + result = result && (hasInstance() == other.hasInstance()); + if (hasInstance()) { + result = result && getInstance() + .equals(other.getInstance()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + INSTANCE_ID_FIELD_NUMBER; + hash = (53 * hash) + getInstanceId().hashCode(); + if (hasInstance()) { + hash = (37 * hash) + INSTANCE_FIELD_NUMBER; + hash = (53 * hash) + getInstance().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.v1.CreateInstanceRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.redis.v1.CreateInstanceRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.redis.v1.CreateInstanceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.redis.v1.CreateInstanceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.redis.v1.CreateInstanceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.redis.v1.CreateInstanceRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.redis.v1.CreateInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.redis.v1.CreateInstanceRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.redis.v1.CreateInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.redis.v1.CreateInstanceRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.redis.v1.CreateInstanceRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.redis.v1.CreateInstanceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.redis.v1.CreateInstanceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request for [CreateInstance][google.cloud.redis.v1.CloudRedis.CreateInstance].
+   * 
+ * + * Protobuf type {@code google.cloud.redis.v1.CreateInstanceRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.CreateInstanceRequest) + com.google.cloud.redis.v1.CreateInstanceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_CreateInstanceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_CreateInstanceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.v1.CreateInstanceRequest.class, com.google.cloud.redis.v1.CreateInstanceRequest.Builder.class); + } + + // Construct using com.google.cloud.redis.v1.CreateInstanceRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + instanceId_ = ""; + + if (instanceBuilder_ == null) { + instance_ = null; + } else { + instance_ = null; + instanceBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_CreateInstanceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.v1.CreateInstanceRequest getDefaultInstanceForType() { + return com.google.cloud.redis.v1.CreateInstanceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.v1.CreateInstanceRequest build() { + com.google.cloud.redis.v1.CreateInstanceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.v1.CreateInstanceRequest buildPartial() { + com.google.cloud.redis.v1.CreateInstanceRequest result = new com.google.cloud.redis.v1.CreateInstanceRequest(this); + result.parent_ = parent_; + result.instanceId_ = instanceId_; + if (instanceBuilder_ == null) { + result.instance_ = instance_; + } else { + result.instance_ = instanceBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.v1.CreateInstanceRequest) { + return mergeFrom((com.google.cloud.redis.v1.CreateInstanceRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.v1.CreateInstanceRequest other) { + if (other == com.google.cloud.redis.v1.CreateInstanceRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getInstanceId().isEmpty()) { + instanceId_ = other.instanceId_; + onChanged(); + } + if (other.hasInstance()) { + mergeInstance(other.getInstance()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.redis.v1.CreateInstanceRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.redis.v1.CreateInstanceRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + *
+     * Required. The resource name of the instance location using the form:
+     *     `projects/{project_id}/locations/{location_id}`
+     * where `location_id` refers to a GCP region
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The resource name of the instance location using the form:
+     *     `projects/{project_id}/locations/{location_id}`
+     * where `location_id` refers to a GCP region
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The resource name of the instance location using the form:
+     *     `projects/{project_id}/locations/{location_id}`
+     * where `location_id` refers to a GCP region
+     * 
+ * + * string parent = 1; + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. The resource name of the instance location using the form:
+     *     `projects/{project_id}/locations/{location_id}`
+     * where `location_id` refers to a GCP region
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + *
+     * Required. The resource name of the instance location using the form:
+     *     `projects/{project_id}/locations/{location_id}`
+     * where `location_id` refers to a GCP region
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private java.lang.Object instanceId_ = ""; + /** + *
+     * Required. The logical name of the Redis instance in the customer project
+     * with the following restrictions:
+     * * Must contain only lowercase letters, numbers, and hyphens.
+     * * Must start with a letter.
+     * * Must be between 1-40 characters.
+     * * Must end with a number or a letter.
+     * * Must be unique within the customer project / location
+     * 
+ * + * string instance_id = 2; + */ + public java.lang.String getInstanceId() { + java.lang.Object ref = instanceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instanceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The logical name of the Redis instance in the customer project
+     * with the following restrictions:
+     * * Must contain only lowercase letters, numbers, and hyphens.
+     * * Must start with a letter.
+     * * Must be between 1-40 characters.
+     * * Must end with a number or a letter.
+     * * Must be unique within the customer project / location
+     * 
+ * + * string instance_id = 2; + */ + public com.google.protobuf.ByteString + getInstanceIdBytes() { + java.lang.Object ref = instanceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + instanceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The logical name of the Redis instance in the customer project
+     * with the following restrictions:
+     * * Must contain only lowercase letters, numbers, and hyphens.
+     * * Must start with a letter.
+     * * Must be between 1-40 characters.
+     * * Must end with a number or a letter.
+     * * Must be unique within the customer project / location
+     * 
+ * + * string instance_id = 2; + */ + public Builder setInstanceId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + instanceId_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. The logical name of the Redis instance in the customer project
+     * with the following restrictions:
+     * * Must contain only lowercase letters, numbers, and hyphens.
+     * * Must start with a letter.
+     * * Must be between 1-40 characters.
+     * * Must end with a number or a letter.
+     * * Must be unique within the customer project / location
+     * 
+ * + * string instance_id = 2; + */ + public Builder clearInstanceId() { + + instanceId_ = getDefaultInstance().getInstanceId(); + onChanged(); + return this; + } + /** + *
+     * Required. The logical name of the Redis instance in the customer project
+     * with the following restrictions:
+     * * Must contain only lowercase letters, numbers, and hyphens.
+     * * Must start with a letter.
+     * * Must be between 1-40 characters.
+     * * Must end with a number or a letter.
+     * * Must be unique within the customer project / location
+     * 
+ * + * string instance_id = 2; + */ + public Builder setInstanceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + instanceId_ = value; + onChanged(); + return this; + } + + private com.google.cloud.redis.v1.Instance instance_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.v1.Instance, com.google.cloud.redis.v1.Instance.Builder, com.google.cloud.redis.v1.InstanceOrBuilder> instanceBuilder_; + /** + *
+     * Required. A Redis [Instance] resource
+     * 
+ * + * .google.cloud.redis.v1.Instance instance = 3; + */ + public boolean hasInstance() { + return instanceBuilder_ != null || instance_ != null; + } + /** + *
+     * Required. A Redis [Instance] resource
+     * 
+ * + * .google.cloud.redis.v1.Instance instance = 3; + */ + public com.google.cloud.redis.v1.Instance getInstance() { + if (instanceBuilder_ == null) { + return instance_ == null ? com.google.cloud.redis.v1.Instance.getDefaultInstance() : instance_; + } else { + return instanceBuilder_.getMessage(); + } + } + /** + *
+     * Required. A Redis [Instance] resource
+     * 
+ * + * .google.cloud.redis.v1.Instance instance = 3; + */ + public Builder setInstance(com.google.cloud.redis.v1.Instance value) { + if (instanceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + instance_ = value; + onChanged(); + } else { + instanceBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Required. A Redis [Instance] resource
+     * 
+ * + * .google.cloud.redis.v1.Instance instance = 3; + */ + public Builder setInstance( + com.google.cloud.redis.v1.Instance.Builder builderForValue) { + if (instanceBuilder_ == null) { + instance_ = builderForValue.build(); + onChanged(); + } else { + instanceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Required. A Redis [Instance] resource
+     * 
+ * + * .google.cloud.redis.v1.Instance instance = 3; + */ + public Builder mergeInstance(com.google.cloud.redis.v1.Instance value) { + if (instanceBuilder_ == null) { + if (instance_ != null) { + instance_ = + com.google.cloud.redis.v1.Instance.newBuilder(instance_).mergeFrom(value).buildPartial(); + } else { + instance_ = value; + } + onChanged(); + } else { + instanceBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Required. A Redis [Instance] resource
+     * 
+ * + * .google.cloud.redis.v1.Instance instance = 3; + */ + public Builder clearInstance() { + if (instanceBuilder_ == null) { + instance_ = null; + onChanged(); + } else { + instance_ = null; + instanceBuilder_ = null; + } + + return this; + } + /** + *
+     * Required. A Redis [Instance] resource
+     * 
+ * + * .google.cloud.redis.v1.Instance instance = 3; + */ + public com.google.cloud.redis.v1.Instance.Builder getInstanceBuilder() { + + onChanged(); + return getInstanceFieldBuilder().getBuilder(); + } + /** + *
+     * Required. A Redis [Instance] resource
+     * 
+ * + * .google.cloud.redis.v1.Instance instance = 3; + */ + public com.google.cloud.redis.v1.InstanceOrBuilder getInstanceOrBuilder() { + if (instanceBuilder_ != null) { + return instanceBuilder_.getMessageOrBuilder(); + } else { + return instance_ == null ? + com.google.cloud.redis.v1.Instance.getDefaultInstance() : instance_; + } + } + /** + *
+     * Required. A Redis [Instance] resource
+     * 
+ * + * .google.cloud.redis.v1.Instance instance = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.v1.Instance, com.google.cloud.redis.v1.Instance.Builder, com.google.cloud.redis.v1.InstanceOrBuilder> + getInstanceFieldBuilder() { + if (instanceBuilder_ == null) { + instanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.v1.Instance, com.google.cloud.redis.v1.Instance.Builder, com.google.cloud.redis.v1.InstanceOrBuilder>( + getInstance(), + getParentForChildren(), + isClean()); + instance_ = null; + } + return instanceBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.CreateInstanceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.CreateInstanceRequest) + private static final com.google.cloud.redis.v1.CreateInstanceRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.v1.CreateInstanceRequest(); + } + + public static com.google.cloud.redis.v1.CreateInstanceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateInstanceRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.v1.CreateInstanceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CreateInstanceRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CreateInstanceRequestOrBuilder.java new file mode 100644 index 000000000000..f4f2361ee463 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CreateInstanceRequestOrBuilder.java @@ -0,0 +1,86 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/v1/cloud_redis.proto + +package com.google.cloud.redis.v1; + +public interface CreateInstanceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.CreateInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the instance location using the form:
+   *     `projects/{project_id}/locations/{location_id}`
+   * where `location_id` refers to a GCP region
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + *
+   * Required. The resource name of the instance location using the form:
+   *     `projects/{project_id}/locations/{location_id}`
+   * where `location_id` refers to a GCP region
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. The logical name of the Redis instance in the customer project
+   * with the following restrictions:
+   * * Must contain only lowercase letters, numbers, and hyphens.
+   * * Must start with a letter.
+   * * Must be between 1-40 characters.
+   * * Must end with a number or a letter.
+   * * Must be unique within the customer project / location
+   * 
+ * + * string instance_id = 2; + */ + java.lang.String getInstanceId(); + /** + *
+   * Required. The logical name of the Redis instance in the customer project
+   * with the following restrictions:
+   * * Must contain only lowercase letters, numbers, and hyphens.
+   * * Must start with a letter.
+   * * Must be between 1-40 characters.
+   * * Must end with a number or a letter.
+   * * Must be unique within the customer project / location
+   * 
+ * + * string instance_id = 2; + */ + com.google.protobuf.ByteString + getInstanceIdBytes(); + + /** + *
+   * Required. A Redis [Instance] resource
+   * 
+ * + * .google.cloud.redis.v1.Instance instance = 3; + */ + boolean hasInstance(); + /** + *
+   * Required. A Redis [Instance] resource
+   * 
+ * + * .google.cloud.redis.v1.Instance instance = 3; + */ + com.google.cloud.redis.v1.Instance getInstance(); + /** + *
+   * Required. A Redis [Instance] resource
+   * 
+ * + * .google.cloud.redis.v1.Instance instance = 3; + */ + com.google.cloud.redis.v1.InstanceOrBuilder getInstanceOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/DeleteInstanceRequest.java b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/DeleteInstanceRequest.java new file mode 100644 index 000000000000..66dc702fd799 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/DeleteInstanceRequest.java @@ -0,0 +1,591 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/v1/cloud_redis.proto + +package com.google.cloud.redis.v1; + +/** + *
+ * Request for [DeleteInstance][google.cloud.redis.v1.CloudRedis.DeleteInstance].
+ * 
+ * + * Protobuf type {@code google.cloud.redis.v1.DeleteInstanceRequest} + */ +public final class DeleteInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.DeleteInstanceRequest) + DeleteInstanceRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use DeleteInstanceRequest.newBuilder() to construct. + private DeleteInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeleteInstanceRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeleteInstanceRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_DeleteInstanceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_DeleteInstanceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.v1.DeleteInstanceRequest.class, com.google.cloud.redis.v1.DeleteInstanceRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * Required. Redis instance resource name using the form:
+   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * where `location_id` refers to a GCP region
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Required. Redis instance resource name using the form:
+   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * where `location_id` refers to a GCP region
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.v1.DeleteInstanceRequest)) { + return super.equals(obj); + } + com.google.cloud.redis.v1.DeleteInstanceRequest other = (com.google.cloud.redis.v1.DeleteInstanceRequest) obj; + + boolean result = true; + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.v1.DeleteInstanceRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.redis.v1.DeleteInstanceRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.redis.v1.DeleteInstanceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.redis.v1.DeleteInstanceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.redis.v1.DeleteInstanceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.redis.v1.DeleteInstanceRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.redis.v1.DeleteInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.redis.v1.DeleteInstanceRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.redis.v1.DeleteInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.redis.v1.DeleteInstanceRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.redis.v1.DeleteInstanceRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.redis.v1.DeleteInstanceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.redis.v1.DeleteInstanceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request for [DeleteInstance][google.cloud.redis.v1.CloudRedis.DeleteInstance].
+   * 
+ * + * Protobuf type {@code google.cloud.redis.v1.DeleteInstanceRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.DeleteInstanceRequest) + com.google.cloud.redis.v1.DeleteInstanceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_DeleteInstanceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_DeleteInstanceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.v1.DeleteInstanceRequest.class, com.google.cloud.redis.v1.DeleteInstanceRequest.Builder.class); + } + + // Construct using com.google.cloud.redis.v1.DeleteInstanceRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_DeleteInstanceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.v1.DeleteInstanceRequest getDefaultInstanceForType() { + return com.google.cloud.redis.v1.DeleteInstanceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.v1.DeleteInstanceRequest build() { + com.google.cloud.redis.v1.DeleteInstanceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.v1.DeleteInstanceRequest buildPartial() { + com.google.cloud.redis.v1.DeleteInstanceRequest result = new com.google.cloud.redis.v1.DeleteInstanceRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.v1.DeleteInstanceRequest) { + return mergeFrom((com.google.cloud.redis.v1.DeleteInstanceRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.v1.DeleteInstanceRequest other) { + if (other == com.google.cloud.redis.v1.DeleteInstanceRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.redis.v1.DeleteInstanceRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.redis.v1.DeleteInstanceRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * Required. Redis instance resource name using the form:
+     *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+     * where `location_id` refers to a GCP region
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. Redis instance resource name using the form:
+     *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+     * where `location_id` refers to a GCP region
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. Redis instance resource name using the form:
+     *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+     * where `location_id` refers to a GCP region
+     * 
+ * + * string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. Redis instance resource name using the form:
+     *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+     * where `location_id` refers to a GCP region
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * Required. Redis instance resource name using the form:
+     *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+     * where `location_id` refers to a GCP region
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.DeleteInstanceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.DeleteInstanceRequest) + private static final com.google.cloud.redis.v1.DeleteInstanceRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.v1.DeleteInstanceRequest(); + } + + public static com.google.cloud.redis.v1.DeleteInstanceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteInstanceRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.v1.DeleteInstanceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/DeleteInstanceRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/DeleteInstanceRequestOrBuilder.java new file mode 100644 index 000000000000..7b16eaab4f42 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/DeleteInstanceRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/v1/cloud_redis.proto + +package com.google.cloud.redis.v1; + +public interface DeleteInstanceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.DeleteInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Redis instance resource name using the form:
+   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * where `location_id` refers to a GCP region
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + *
+   * Required. Redis instance resource name using the form:
+   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * where `location_id` refers to a GCP region
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceRequest.java b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceRequest.java new file mode 100644 index 000000000000..9c9c11b27549 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceRequest.java @@ -0,0 +1,591 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/v1/cloud_redis.proto + +package com.google.cloud.redis.v1; + +/** + *
+ * Request for [GetInstance][google.cloud.redis.v1.CloudRedis.GetInstance].
+ * 
+ * + * Protobuf type {@code google.cloud.redis.v1.GetInstanceRequest} + */ +public final class GetInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.GetInstanceRequest) + GetInstanceRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetInstanceRequest.newBuilder() to construct. + private GetInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetInstanceRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetInstanceRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_GetInstanceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_GetInstanceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.v1.GetInstanceRequest.class, com.google.cloud.redis.v1.GetInstanceRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * Required. Redis instance resource name using the form:
+   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * where `location_id` refers to a GCP region
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Required. Redis instance resource name using the form:
+   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * where `location_id` refers to a GCP region
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.v1.GetInstanceRequest)) { + return super.equals(obj); + } + com.google.cloud.redis.v1.GetInstanceRequest other = (com.google.cloud.redis.v1.GetInstanceRequest) obj; + + boolean result = true; + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.v1.GetInstanceRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.redis.v1.GetInstanceRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.redis.v1.GetInstanceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.redis.v1.GetInstanceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.redis.v1.GetInstanceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.redis.v1.GetInstanceRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.redis.v1.GetInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.redis.v1.GetInstanceRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.redis.v1.GetInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.redis.v1.GetInstanceRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.redis.v1.GetInstanceRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.redis.v1.GetInstanceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.redis.v1.GetInstanceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request for [GetInstance][google.cloud.redis.v1.CloudRedis.GetInstance].
+   * 
+ * + * Protobuf type {@code google.cloud.redis.v1.GetInstanceRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.GetInstanceRequest) + com.google.cloud.redis.v1.GetInstanceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_GetInstanceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_GetInstanceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.v1.GetInstanceRequest.class, com.google.cloud.redis.v1.GetInstanceRequest.Builder.class); + } + + // Construct using com.google.cloud.redis.v1.GetInstanceRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_GetInstanceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.v1.GetInstanceRequest getDefaultInstanceForType() { + return com.google.cloud.redis.v1.GetInstanceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.v1.GetInstanceRequest build() { + com.google.cloud.redis.v1.GetInstanceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.v1.GetInstanceRequest buildPartial() { + com.google.cloud.redis.v1.GetInstanceRequest result = new com.google.cloud.redis.v1.GetInstanceRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.v1.GetInstanceRequest) { + return mergeFrom((com.google.cloud.redis.v1.GetInstanceRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.v1.GetInstanceRequest other) { + if (other == com.google.cloud.redis.v1.GetInstanceRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.redis.v1.GetInstanceRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.redis.v1.GetInstanceRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * Required. Redis instance resource name using the form:
+     *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+     * where `location_id` refers to a GCP region
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. Redis instance resource name using the form:
+     *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+     * where `location_id` refers to a GCP region
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. Redis instance resource name using the form:
+     *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+     * where `location_id` refers to a GCP region
+     * 
+ * + * string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. Redis instance resource name using the form:
+     *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+     * where `location_id` refers to a GCP region
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * Required. Redis instance resource name using the form:
+     *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+     * where `location_id` refers to a GCP region
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.GetInstanceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.GetInstanceRequest) + private static final com.google.cloud.redis.v1.GetInstanceRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.v1.GetInstanceRequest(); + } + + public static com.google.cloud.redis.v1.GetInstanceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetInstanceRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.v1.GetInstanceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceRequestOrBuilder.java new file mode 100644 index 000000000000..cd5f046f92bd --- /dev/null +++ b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/v1/cloud_redis.proto + +package com.google.cloud.redis.v1; + +public interface GetInstanceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.GetInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Redis instance resource name using the form:
+   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * where `location_id` refers to a GCP region
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + *
+   * Required. Redis instance resource name using the form:
+   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * where `location_id` refers to a GCP region
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/Instance.java b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/Instance.java new file mode 100644 index 000000000000..3a345b260597 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/Instance.java @@ -0,0 +1,3770 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/v1/cloud_redis.proto + +package com.google.cloud.redis.v1; + +/** + *
+ * A Google Cloud Redis instance.
+ * 
+ * + * Protobuf type {@code google.cloud.redis.v1.Instance} + */ +public final class Instance extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.Instance) + InstanceOrBuilder { +private static final long serialVersionUID = 0L; + // Use Instance.newBuilder() to construct. + private Instance(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Instance() { + name_ = ""; + displayName_ = ""; + locationId_ = ""; + alternativeLocationId_ = ""; + redisVersion_ = ""; + reservedIpRange_ = ""; + host_ = ""; + port_ = 0; + currentLocationId_ = ""; + state_ = 0; + statusMessage_ = ""; + tier_ = 0; + memorySizeGb_ = 0; + authorizedNetwork_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Instance( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000004; + } + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + locationId_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + alternativeLocationId_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + redisVersion_ = s; + break; + } + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + + reservedIpRange_ = s; + break; + } + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + + host_ = s; + break; + } + case 88: { + + port_ = input.readInt32(); + break; + } + case 98: { + java.lang.String s = input.readStringRequireUtf8(); + + currentLocationId_ = s; + break; + } + case 106: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; + } + case 112: { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + case 122: { + java.lang.String s = input.readStringRequireUtf8(); + + statusMessage_ = s; + break; + } + case 130: { + if (!((mutable_bitField0_ & 0x00002000) == 0x00002000)) { + redisConfigs_ = com.google.protobuf.MapField.newMapField( + RedisConfigsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00002000; + } + com.google.protobuf.MapEntry + redisConfigs__ = input.readMessage( + RedisConfigsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + redisConfigs_.getMutableMap().put( + redisConfigs__.getKey(), redisConfigs__.getValue()); + break; + } + case 136: { + int rawValue = input.readEnum(); + + tier_ = rawValue; + break; + } + case 144: { + + memorySizeGb_ = input.readInt32(); + break; + } + case 162: { + java.lang.String s = input.readStringRequireUtf8(); + + authorizedNetwork_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_Instance_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 3: + return internalGetLabels(); + case 16: + return internalGetRedisConfigs(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_Instance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.v1.Instance.class, com.google.cloud.redis.v1.Instance.Builder.class); + } + + /** + *
+   * Represents the different states of a Redis instance.
+   * 
+ * + * Protobuf enum {@code google.cloud.redis.v1.Instance.State} + */ + public enum State + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Not set.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + *
+     * Redis instance is being created.
+     * 
+ * + * CREATING = 1; + */ + CREATING(1), + /** + *
+     * Redis instance has been created and is fully usable.
+     * 
+ * + * READY = 2; + */ + READY(2), + /** + *
+     * Redis instance configuration is being updated. Certain kinds of updates
+     * may cause the instance to become unusable while the update is in
+     * progress.
+     * 
+ * + * UPDATING = 3; + */ + UPDATING(3), + /** + *
+     * Redis instance is being deleted.
+     * 
+ * + * DELETING = 4; + */ + DELETING(4), + /** + *
+     * Redis instance is being repaired and may be unusable. Details can be
+     * found in the `status_message` field.
+     * 
+ * + * REPAIRING = 5; + */ + REPAIRING(5), + /** + *
+     * Maintenance is being performed on this Redis instance.
+     * 
+ * + * MAINTENANCE = 6; + */ + MAINTENANCE(6), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Not set.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + *
+     * Redis instance is being created.
+     * 
+ * + * CREATING = 1; + */ + public static final int CREATING_VALUE = 1; + /** + *
+     * Redis instance has been created and is fully usable.
+     * 
+ * + * READY = 2; + */ + public static final int READY_VALUE = 2; + /** + *
+     * Redis instance configuration is being updated. Certain kinds of updates
+     * may cause the instance to become unusable while the update is in
+     * progress.
+     * 
+ * + * UPDATING = 3; + */ + public static final int UPDATING_VALUE = 3; + /** + *
+     * Redis instance is being deleted.
+     * 
+ * + * DELETING = 4; + */ + public static final int DELETING_VALUE = 4; + /** + *
+     * Redis instance is being repaired and may be unusable. Details can be
+     * found in the `status_message` field.
+     * 
+ * + * REPAIRING = 5; + */ + public static final int REPAIRING_VALUE = 5; + /** + *
+     * Maintenance is being performed on this Redis instance.
+     * 
+ * + * MAINTENANCE = 6; + */ + public static final int MAINTENANCE_VALUE = 6; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + public static State forNumber(int value) { + switch (value) { + case 0: return STATE_UNSPECIFIED; + case 1: return CREATING; + case 2: return READY; + case 3: return UPDATING; + case 4: return DELETING; + case 5: return REPAIRING; + case 6: return MAINTENANCE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.redis.v1.Instance.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.redis.v1.Instance.State) + } + + /** + *
+   * Available service tiers to choose from
+   * 
+ * + * Protobuf enum {@code google.cloud.redis.v1.Instance.Tier} + */ + public enum Tier + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Not set.
+     * 
+ * + * TIER_UNSPECIFIED = 0; + */ + TIER_UNSPECIFIED(0), + /** + *
+     * BASIC tier: standalone instance
+     * 
+ * + * BASIC = 1; + */ + BASIC(1), + /** + *
+     * STANDARD_HA tier: highly available primary/replica instances
+     * 
+ * + * STANDARD_HA = 3; + */ + STANDARD_HA(3), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Not set.
+     * 
+ * + * TIER_UNSPECIFIED = 0; + */ + public static final int TIER_UNSPECIFIED_VALUE = 0; + /** + *
+     * BASIC tier: standalone instance
+     * 
+ * + * BASIC = 1; + */ + public static final int BASIC_VALUE = 1; + /** + *
+     * STANDARD_HA tier: highly available primary/replica instances
+     * 
+ * + * STANDARD_HA = 3; + */ + public static final int STANDARD_HA_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Tier valueOf(int value) { + return forNumber(value); + } + + public static Tier forNumber(int value) { + switch (value) { + case 0: return TIER_UNSPECIFIED; + case 1: return BASIC; + case 3: return STANDARD_HA; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Tier> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Tier findValueByNumber(int number) { + return Tier.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.redis.v1.Instance.getDescriptor().getEnumTypes().get(1); + } + + private static final Tier[] VALUES = values(); + + public static Tier valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Tier(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.redis.v1.Instance.Tier) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * Required. Unique name of the resource in this scope including project and
+   * location using the form:
+   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * Note: Redis instances are managed and addressed at regional level so
+   * location_id here refers to a GCP region; however, users may choose which
+   * specific zone (or collection of zones for cross-zone instances) an instance
+   * should be provisioned in. Refer to [location_id] and
+   * [alternative_location_id] fields for more details.
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Required. Unique name of the resource in this scope including project and
+   * location using the form:
+   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * Note: Redis instances are managed and addressed at regional level so
+   * location_id here refers to a GCP region; however, users may choose which
+   * specific zone (or collection of zones for cross-zone instances) an instance
+   * should be provisioned in. Refer to [location_id] and
+   * [alternative_location_id] fields for more details.
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object displayName_; + /** + *
+   * An arbitrary and optional user-provided name for the instance.
+   * 
+ * + * string display_name = 2; + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + *
+   * An arbitrary and optional user-provided name for the instance.
+   * 
+ * + * string display_name = 2; + */ + public com.google.protobuf.ByteString + getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LABELS_FIELD_NUMBER = 3; + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_Instance_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+   * Resource labels to represent user provided metadata
+   * 
+ * + * map<string, string> labels = 3; + */ + + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+   * Resource labels to represent user provided metadata
+   * 
+ * + * map<string, string> labels = 3; + */ + + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+   * Resource labels to represent user provided metadata
+   * 
+ * + * map<string, string> labels = 3; + */ + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * Resource labels to represent user provided metadata
+   * 
+ * + * map<string, string> labels = 3; + */ + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int LOCATION_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object locationId_; + /** + *
+   * Optional. The zone where the instance will be provisioned. If not provided,
+   * the service will choose a zone for the instance. For STANDARD_HA tier,
+   * instances will be created across two zones for protection against zonal
+   * failures. If [alternative_location_id] is also provided, it must be
+   * different from [location_id].
+   * 
+ * + * string location_id = 4; + */ + public java.lang.String getLocationId() { + java.lang.Object ref = locationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + locationId_ = s; + return s; + } + } + /** + *
+   * Optional. The zone where the instance will be provisioned. If not provided,
+   * the service will choose a zone for the instance. For STANDARD_HA tier,
+   * instances will be created across two zones for protection against zonal
+   * failures. If [alternative_location_id] is also provided, it must be
+   * different from [location_id].
+   * 
+ * + * string location_id = 4; + */ + public com.google.protobuf.ByteString + getLocationIdBytes() { + java.lang.Object ref = locationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + locationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALTERNATIVE_LOCATION_ID_FIELD_NUMBER = 5; + private volatile java.lang.Object alternativeLocationId_; + /** + *
+   * Optional. Only applicable to STANDARD_HA tier which protects the instance
+   * against zonal failures by provisioning it across two zones. If provided, it
+   * must be a different zone from the one provided in [location_id].
+   * 
+ * + * string alternative_location_id = 5; + */ + public java.lang.String getAlternativeLocationId() { + java.lang.Object ref = alternativeLocationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + alternativeLocationId_ = s; + return s; + } + } + /** + *
+   * Optional. Only applicable to STANDARD_HA tier which protects the instance
+   * against zonal failures by provisioning it across two zones. If provided, it
+   * must be a different zone from the one provided in [location_id].
+   * 
+ * + * string alternative_location_id = 5; + */ + public com.google.protobuf.ByteString + getAlternativeLocationIdBytes() { + java.lang.Object ref = alternativeLocationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + alternativeLocationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REDIS_VERSION_FIELD_NUMBER = 7; + private volatile java.lang.Object redisVersion_; + /** + *
+   * Optional. The version of Redis software.
+   * If not provided, latest supported version will be used. Updating the
+   * version will perform an upgrade/downgrade to the new version. Currently,
+   * the supported values are `REDIS_3_2` for Redis 3.2.
+   * 
+ * + * string redis_version = 7; + */ + public java.lang.String getRedisVersion() { + java.lang.Object ref = redisVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + redisVersion_ = s; + return s; + } + } + /** + *
+   * Optional. The version of Redis software.
+   * If not provided, latest supported version will be used. Updating the
+   * version will perform an upgrade/downgrade to the new version. Currently,
+   * the supported values are `REDIS_3_2` for Redis 3.2.
+   * 
+ * + * string redis_version = 7; + */ + public com.google.protobuf.ByteString + getRedisVersionBytes() { + java.lang.Object ref = redisVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + redisVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESERVED_IP_RANGE_FIELD_NUMBER = 9; + private volatile java.lang.Object reservedIpRange_; + /** + *
+   * Optional. The CIDR range of internal addresses that are reserved for this
+   * instance. If not provided, the service will choose an unused /29 block,
+   * for example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be unique
+   * and non-overlapping with existing subnets in an authorized network.
+   * 
+ * + * string reserved_ip_range = 9; + */ + public java.lang.String getReservedIpRange() { + java.lang.Object ref = reservedIpRange_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reservedIpRange_ = s; + return s; + } + } + /** + *
+   * Optional. The CIDR range of internal addresses that are reserved for this
+   * instance. If not provided, the service will choose an unused /29 block,
+   * for example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be unique
+   * and non-overlapping with existing subnets in an authorized network.
+   * 
+ * + * string reserved_ip_range = 9; + */ + public com.google.protobuf.ByteString + getReservedIpRangeBytes() { + java.lang.Object ref = reservedIpRange_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + reservedIpRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HOST_FIELD_NUMBER = 10; + private volatile java.lang.Object host_; + /** + *
+   * Output only. Hostname or IP address of the exposed Redis endpoint used by
+   * clients to connect to the service.
+   * 
+ * + * string host = 10; + */ + public java.lang.String getHost() { + java.lang.Object ref = host_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + host_ = s; + return s; + } + } + /** + *
+   * Output only. Hostname or IP address of the exposed Redis endpoint used by
+   * clients to connect to the service.
+   * 
+ * + * string host = 10; + */ + public com.google.protobuf.ByteString + getHostBytes() { + java.lang.Object ref = host_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + host_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PORT_FIELD_NUMBER = 11; + private int port_; + /** + *
+   * Output only. The port number of the exposed Redis endpoint.
+   * 
+ * + * int32 port = 11; + */ + public int getPort() { + return port_; + } + + public static final int CURRENT_LOCATION_ID_FIELD_NUMBER = 12; + private volatile java.lang.Object currentLocationId_; + /** + *
+   * Output only. The current zone where the Redis endpoint is placed. For Basic
+   * Tier instances, this will always be the same as the [location_id]
+   * provided by the user at creation time. For Standard Tier instances,
+   * this can be either [location_id] or [alternative_location_id] and can
+   * change after a failover event.
+   * 
+ * + * string current_location_id = 12; + */ + public java.lang.String getCurrentLocationId() { + java.lang.Object ref = currentLocationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currentLocationId_ = s; + return s; + } + } + /** + *
+   * Output only. The current zone where the Redis endpoint is placed. For Basic
+   * Tier instances, this will always be the same as the [location_id]
+   * provided by the user at creation time. For Standard Tier instances,
+   * this can be either [location_id] or [alternative_location_id] and can
+   * change after a failover event.
+   * 
+ * + * string current_location_id = 12; + */ + public com.google.protobuf.ByteString + getCurrentLocationIdBytes() { + java.lang.Object ref = currentLocationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + currentLocationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 13; + private com.google.protobuf.Timestamp createTime_; + /** + *
+   * Output only. The time the instance was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 13; + */ + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + *
+   * Output only. The time the instance was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 13; + */ + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + *
+   * Output only. The time the instance was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 13; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + public static final int STATE_FIELD_NUMBER = 14; + private int state_; + /** + *
+   * Output only. The current state of this instance.
+   * 
+ * + * .google.cloud.redis.v1.Instance.State state = 14; + */ + public int getStateValue() { + return state_; + } + /** + *
+   * Output only. The current state of this instance.
+   * 
+ * + * .google.cloud.redis.v1.Instance.State state = 14; + */ + public com.google.cloud.redis.v1.Instance.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.redis.v1.Instance.State result = com.google.cloud.redis.v1.Instance.State.valueOf(state_); + return result == null ? com.google.cloud.redis.v1.Instance.State.UNRECOGNIZED : result; + } + + public static final int STATUS_MESSAGE_FIELD_NUMBER = 15; + private volatile java.lang.Object statusMessage_; + /** + *
+   * Output only. Additional information about the current status of this
+   * instance, if available.
+   * 
+ * + * string status_message = 15; + */ + public java.lang.String getStatusMessage() { + java.lang.Object ref = statusMessage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusMessage_ = s; + return s; + } + } + /** + *
+   * Output only. Additional information about the current status of this
+   * instance, if available.
+   * 
+ * + * string status_message = 15; + */ + public com.google.protobuf.ByteString + getStatusMessageBytes() { + java.lang.Object ref = statusMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REDIS_CONFIGS_FIELD_NUMBER = 16; + private static final class RedisConfigsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_Instance_RedisConfigsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> redisConfigs_; + private com.google.protobuf.MapField + internalGetRedisConfigs() { + if (redisConfigs_ == null) { + return com.google.protobuf.MapField.emptyMapField( + RedisConfigsDefaultEntryHolder.defaultEntry); + } + return redisConfigs_; + } + + public int getRedisConfigsCount() { + return internalGetRedisConfigs().getMap().size(); + } + /** + *
+   * Optional. Redis configuration parameters, according to
+   * http://redis.io/topics/config. Currently, the only supported parameters
+   * are:
+   *  *   maxmemory-policy
+   *  *   notify-keyspace-events
+   * 
+ * + * map<string, string> redis_configs = 16; + */ + + public boolean containsRedisConfigs( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetRedisConfigs().getMap().containsKey(key); + } + /** + * Use {@link #getRedisConfigsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getRedisConfigs() { + return getRedisConfigsMap(); + } + /** + *
+   * Optional. Redis configuration parameters, according to
+   * http://redis.io/topics/config. Currently, the only supported parameters
+   * are:
+   *  *   maxmemory-policy
+   *  *   notify-keyspace-events
+   * 
+ * + * map<string, string> redis_configs = 16; + */ + + public java.util.Map getRedisConfigsMap() { + return internalGetRedisConfigs().getMap(); + } + /** + *
+   * Optional. Redis configuration parameters, according to
+   * http://redis.io/topics/config. Currently, the only supported parameters
+   * are:
+   *  *   maxmemory-policy
+   *  *   notify-keyspace-events
+   * 
+ * + * map<string, string> redis_configs = 16; + */ + + public java.lang.String getRedisConfigsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetRedisConfigs().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * Optional. Redis configuration parameters, according to
+   * http://redis.io/topics/config. Currently, the only supported parameters
+   * are:
+   *  *   maxmemory-policy
+   *  *   notify-keyspace-events
+   * 
+ * + * map<string, string> redis_configs = 16; + */ + + public java.lang.String getRedisConfigsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetRedisConfigs().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int TIER_FIELD_NUMBER = 17; + private int tier_; + /** + *
+   * Required. The service tier of the instance.
+   * 
+ * + * .google.cloud.redis.v1.Instance.Tier tier = 17; + */ + public int getTierValue() { + return tier_; + } + /** + *
+   * Required. The service tier of the instance.
+   * 
+ * + * .google.cloud.redis.v1.Instance.Tier tier = 17; + */ + public com.google.cloud.redis.v1.Instance.Tier getTier() { + @SuppressWarnings("deprecation") + com.google.cloud.redis.v1.Instance.Tier result = com.google.cloud.redis.v1.Instance.Tier.valueOf(tier_); + return result == null ? com.google.cloud.redis.v1.Instance.Tier.UNRECOGNIZED : result; + } + + public static final int MEMORY_SIZE_GB_FIELD_NUMBER = 18; + private int memorySizeGb_; + /** + *
+   * Required. Redis memory size in GiB.
+   * 
+ * + * int32 memory_size_gb = 18; + */ + public int getMemorySizeGb() { + return memorySizeGb_; + } + + public static final int AUTHORIZED_NETWORK_FIELD_NUMBER = 20; + private volatile java.lang.Object authorizedNetwork_; + /** + *
+   * Optional. The full name of the Google Compute Engine
+   * [network](/compute/docs/networks-and-firewalls#networks) to which the
+   * instance is connected. If left unspecified, the `default` network
+   * will be used.
+   * 
+ * + * string authorized_network = 20; + */ + public java.lang.String getAuthorizedNetwork() { + java.lang.Object ref = authorizedNetwork_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authorizedNetwork_ = s; + return s; + } + } + /** + *
+   * Optional. The full name of the Google Compute Engine
+   * [network](/compute/docs/networks-and-firewalls#networks) to which the
+   * instance is connected. If left unspecified, the `default` network
+   * will be used.
+   * 
+ * + * string authorized_network = 20; + */ + public com.google.protobuf.ByteString + getAuthorizedNetworkBytes() { + java.lang.Object ref = authorizedNetwork_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + authorizedNetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 3); + if (!getLocationIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, locationId_); + } + if (!getAlternativeLocationIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, alternativeLocationId_); + } + if (!getRedisVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, redisVersion_); + } + if (!getReservedIpRangeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, reservedIpRange_); + } + if (!getHostBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, host_); + } + if (port_ != 0) { + output.writeInt32(11, port_); + } + if (!getCurrentLocationIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, currentLocationId_); + } + if (createTime_ != null) { + output.writeMessage(13, getCreateTime()); + } + if (state_ != com.google.cloud.redis.v1.Instance.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(14, state_); + } + if (!getStatusMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 15, statusMessage_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetRedisConfigs(), + RedisConfigsDefaultEntryHolder.defaultEntry, + 16); + if (tier_ != com.google.cloud.redis.v1.Instance.Tier.TIER_UNSPECIFIED.getNumber()) { + output.writeEnum(17, tier_); + } + if (memorySizeGb_ != 0) { + output.writeInt32(18, memorySizeGb_); + } + if (!getAuthorizedNetworkBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 20, authorizedNetwork_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, labels__); + } + if (!getLocationIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, locationId_); + } + if (!getAlternativeLocationIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, alternativeLocationId_); + } + if (!getRedisVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, redisVersion_); + } + if (!getReservedIpRangeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, reservedIpRange_); + } + if (!getHostBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, host_); + } + if (port_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(11, port_); + } + if (!getCurrentLocationIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, currentLocationId_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getCreateTime()); + } + if (state_ != com.google.cloud.redis.v1.Instance.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(14, state_); + } + if (!getStatusMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, statusMessage_); + } + for (java.util.Map.Entry entry + : internalGetRedisConfigs().getMap().entrySet()) { + com.google.protobuf.MapEntry + redisConfigs__ = RedisConfigsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, redisConfigs__); + } + if (tier_ != com.google.cloud.redis.v1.Instance.Tier.TIER_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(17, tier_); + } + if (memorySizeGb_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(18, memorySizeGb_); + } + if (!getAuthorizedNetworkBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, authorizedNetwork_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.v1.Instance)) { + return super.equals(obj); + } + com.google.cloud.redis.v1.Instance other = (com.google.cloud.redis.v1.Instance) obj; + + boolean result = true; + result = result && getName() + .equals(other.getName()); + result = result && getDisplayName() + .equals(other.getDisplayName()); + result = result && internalGetLabels().equals( + other.internalGetLabels()); + result = result && getLocationId() + .equals(other.getLocationId()); + result = result && getAlternativeLocationId() + .equals(other.getAlternativeLocationId()); + result = result && getRedisVersion() + .equals(other.getRedisVersion()); + result = result && getReservedIpRange() + .equals(other.getReservedIpRange()); + result = result && getHost() + .equals(other.getHost()); + result = result && (getPort() + == other.getPort()); + result = result && getCurrentLocationId() + .equals(other.getCurrentLocationId()); + result = result && (hasCreateTime() == other.hasCreateTime()); + if (hasCreateTime()) { + result = result && getCreateTime() + .equals(other.getCreateTime()); + } + result = result && state_ == other.state_; + result = result && getStatusMessage() + .equals(other.getStatusMessage()); + result = result && internalGetRedisConfigs().equals( + other.internalGetRedisConfigs()); + result = result && tier_ == other.tier_; + result = result && (getMemorySizeGb() + == other.getMemorySizeGb()); + result = result && getAuthorizedNetwork() + .equals(other.getAuthorizedNetwork()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + LOCATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getLocationId().hashCode(); + hash = (37 * hash) + ALTERNATIVE_LOCATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getAlternativeLocationId().hashCode(); + hash = (37 * hash) + REDIS_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getRedisVersion().hashCode(); + hash = (37 * hash) + RESERVED_IP_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getReservedIpRange().hashCode(); + hash = (37 * hash) + HOST_FIELD_NUMBER; + hash = (53 * hash) + getHost().hashCode(); + hash = (37 * hash) + PORT_FIELD_NUMBER; + hash = (53 * hash) + getPort(); + hash = (37 * hash) + CURRENT_LOCATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getCurrentLocationId().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getStatusMessage().hashCode(); + if (!internalGetRedisConfigs().getMap().isEmpty()) { + hash = (37 * hash) + REDIS_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + internalGetRedisConfigs().hashCode(); + } + hash = (37 * hash) + TIER_FIELD_NUMBER; + hash = (53 * hash) + tier_; + hash = (37 * hash) + MEMORY_SIZE_GB_FIELD_NUMBER; + hash = (53 * hash) + getMemorySizeGb(); + hash = (37 * hash) + AUTHORIZED_NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getAuthorizedNetwork().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.v1.Instance parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.redis.v1.Instance parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.redis.v1.Instance parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.redis.v1.Instance parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.redis.v1.Instance parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.redis.v1.Instance parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.redis.v1.Instance parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.redis.v1.Instance parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.redis.v1.Instance parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.redis.v1.Instance parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.redis.v1.Instance parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.redis.v1.Instance parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.redis.v1.Instance prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * A Google Cloud Redis instance.
+   * 
+ * + * Protobuf type {@code google.cloud.redis.v1.Instance} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.Instance) + com.google.cloud.redis.v1.InstanceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_Instance_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 3: + return internalGetLabels(); + case 16: + return internalGetRedisConfigs(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 3: + return internalGetMutableLabels(); + case 16: + return internalGetMutableRedisConfigs(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_Instance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.v1.Instance.class, com.google.cloud.redis.v1.Instance.Builder.class); + } + + // Construct using com.google.cloud.redis.v1.Instance.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + displayName_ = ""; + + internalGetMutableLabels().clear(); + locationId_ = ""; + + alternativeLocationId_ = ""; + + redisVersion_ = ""; + + reservedIpRange_ = ""; + + host_ = ""; + + port_ = 0; + + currentLocationId_ = ""; + + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + state_ = 0; + + statusMessage_ = ""; + + internalGetMutableRedisConfigs().clear(); + tier_ = 0; + + memorySizeGb_ = 0; + + authorizedNetwork_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_Instance_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.v1.Instance getDefaultInstanceForType() { + return com.google.cloud.redis.v1.Instance.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.v1.Instance build() { + com.google.cloud.redis.v1.Instance result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.v1.Instance buildPartial() { + com.google.cloud.redis.v1.Instance result = new com.google.cloud.redis.v1.Instance(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.name_ = name_; + result.displayName_ = displayName_; + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + result.locationId_ = locationId_; + result.alternativeLocationId_ = alternativeLocationId_; + result.redisVersion_ = redisVersion_; + result.reservedIpRange_ = reservedIpRange_; + result.host_ = host_; + result.port_ = port_; + result.currentLocationId_ = currentLocationId_; + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + result.state_ = state_; + result.statusMessage_ = statusMessage_; + result.redisConfigs_ = internalGetRedisConfigs(); + result.redisConfigs_.makeImmutable(); + result.tier_ = tier_; + result.memorySizeGb_ = memorySizeGb_; + result.authorizedNetwork_ = authorizedNetwork_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.v1.Instance) { + return mergeFrom((com.google.cloud.redis.v1.Instance)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.v1.Instance other) { + if (other == com.google.cloud.redis.v1.Instance.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); + if (!other.getLocationId().isEmpty()) { + locationId_ = other.locationId_; + onChanged(); + } + if (!other.getAlternativeLocationId().isEmpty()) { + alternativeLocationId_ = other.alternativeLocationId_; + onChanged(); + } + if (!other.getRedisVersion().isEmpty()) { + redisVersion_ = other.redisVersion_; + onChanged(); + } + if (!other.getReservedIpRange().isEmpty()) { + reservedIpRange_ = other.reservedIpRange_; + onChanged(); + } + if (!other.getHost().isEmpty()) { + host_ = other.host_; + onChanged(); + } + if (other.getPort() != 0) { + setPort(other.getPort()); + } + if (!other.getCurrentLocationId().isEmpty()) { + currentLocationId_ = other.currentLocationId_; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getStatusMessage().isEmpty()) { + statusMessage_ = other.statusMessage_; + onChanged(); + } + internalGetMutableRedisConfigs().mergeFrom( + other.internalGetRedisConfigs()); + if (other.tier_ != 0) { + setTierValue(other.getTierValue()); + } + if (other.getMemorySizeGb() != 0) { + setMemorySizeGb(other.getMemorySizeGb()); + } + if (!other.getAuthorizedNetwork().isEmpty()) { + authorizedNetwork_ = other.authorizedNetwork_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.redis.v1.Instance parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.redis.v1.Instance) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * Required. Unique name of the resource in this scope including project and
+     * location using the form:
+     *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+     * Note: Redis instances are managed and addressed at regional level so
+     * location_id here refers to a GCP region; however, users may choose which
+     * specific zone (or collection of zones for cross-zone instances) an instance
+     * should be provisioned in. Refer to [location_id] and
+     * [alternative_location_id] fields for more details.
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. Unique name of the resource in this scope including project and
+     * location using the form:
+     *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+     * Note: Redis instances are managed and addressed at regional level so
+     * location_id here refers to a GCP region; however, users may choose which
+     * specific zone (or collection of zones for cross-zone instances) an instance
+     * should be provisioned in. Refer to [location_id] and
+     * [alternative_location_id] fields for more details.
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. Unique name of the resource in this scope including project and
+     * location using the form:
+     *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+     * Note: Redis instances are managed and addressed at regional level so
+     * location_id here refers to a GCP region; however, users may choose which
+     * specific zone (or collection of zones for cross-zone instances) an instance
+     * should be provisioned in. Refer to [location_id] and
+     * [alternative_location_id] fields for more details.
+     * 
+ * + * string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. Unique name of the resource in this scope including project and
+     * location using the form:
+     *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+     * Note: Redis instances are managed and addressed at regional level so
+     * location_id here refers to a GCP region; however, users may choose which
+     * specific zone (or collection of zones for cross-zone instances) an instance
+     * should be provisioned in. Refer to [location_id] and
+     * [alternative_location_id] fields for more details.
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * Required. Unique name of the resource in this scope including project and
+     * location using the form:
+     *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+     * Note: Redis instances are managed and addressed at regional level so
+     * location_id here refers to a GCP region; however, users may choose which
+     * specific zone (or collection of zones for cross-zone instances) an instance
+     * should be provisioned in. Refer to [location_id] and
+     * [alternative_location_id] fields for more details.
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + *
+     * An arbitrary and optional user-provided name for the instance.
+     * 
+ * + * string display_name = 2; + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * An arbitrary and optional user-provided name for the instance.
+     * 
+ * + * string display_name = 2; + */ + public com.google.protobuf.ByteString + getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * An arbitrary and optional user-provided name for the instance.
+     * 
+ * + * string display_name = 2; + */ + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + *
+     * An arbitrary and optional user-provided name for the instance.
+     * 
+ * + * string display_name = 2; + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + *
+     * An arbitrary and optional user-provided name for the instance.
+     * 
+ * + * string display_name = 2; + */ + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + private com.google.protobuf.MapField + internalGetMutableLabels() { + onChanged();; + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+     * Resource labels to represent user provided metadata
+     * 
+ * + * map<string, string> labels = 3; + */ + + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+     * Resource labels to represent user provided metadata
+     * 
+ * + * map<string, string> labels = 3; + */ + + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+     * Resource labels to represent user provided metadata
+     * 
+ * + * map<string, string> labels = 3; + */ + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Resource labels to represent user provided metadata
+     * 
+ * + * map<string, string> labels = 3; + */ + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + internalGetMutableLabels().getMutableMap() + .clear(); + return this; + } + /** + *
+     * Resource labels to represent user provided metadata
+     * 
+ * + * map<string, string> labels = 3; + */ + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableLabels().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableLabels() { + return internalGetMutableLabels().getMutableMap(); + } + /** + *
+     * Resource labels to represent user provided metadata
+     * 
+ * + * map<string, string> labels = 3; + */ + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableLabels().getMutableMap() + .put(key, value); + return this; + } + /** + *
+     * Resource labels to represent user provided metadata
+     * 
+ * + * map<string, string> labels = 3; + */ + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); + return this; + } + + private java.lang.Object locationId_ = ""; + /** + *
+     * Optional. The zone where the instance will be provisioned. If not provided,
+     * the service will choose a zone for the instance. For STANDARD_HA tier,
+     * instances will be created across two zones for protection against zonal
+     * failures. If [alternative_location_id] is also provided, it must be
+     * different from [location_id].
+     * 
+ * + * string location_id = 4; + */ + public java.lang.String getLocationId() { + java.lang.Object ref = locationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + locationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Optional. The zone where the instance will be provisioned. If not provided,
+     * the service will choose a zone for the instance. For STANDARD_HA tier,
+     * instances will be created across two zones for protection against zonal
+     * failures. If [alternative_location_id] is also provided, it must be
+     * different from [location_id].
+     * 
+ * + * string location_id = 4; + */ + public com.google.protobuf.ByteString + getLocationIdBytes() { + java.lang.Object ref = locationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + locationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Optional. The zone where the instance will be provisioned. If not provided,
+     * the service will choose a zone for the instance. For STANDARD_HA tier,
+     * instances will be created across two zones for protection against zonal
+     * failures. If [alternative_location_id] is also provided, it must be
+     * different from [location_id].
+     * 
+ * + * string location_id = 4; + */ + public Builder setLocationId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + locationId_ = value; + onChanged(); + return this; + } + /** + *
+     * Optional. The zone where the instance will be provisioned. If not provided,
+     * the service will choose a zone for the instance. For STANDARD_HA tier,
+     * instances will be created across two zones for protection against zonal
+     * failures. If [alternative_location_id] is also provided, it must be
+     * different from [location_id].
+     * 
+ * + * string location_id = 4; + */ + public Builder clearLocationId() { + + locationId_ = getDefaultInstance().getLocationId(); + onChanged(); + return this; + } + /** + *
+     * Optional. The zone where the instance will be provisioned. If not provided,
+     * the service will choose a zone for the instance. For STANDARD_HA tier,
+     * instances will be created across two zones for protection against zonal
+     * failures. If [alternative_location_id] is also provided, it must be
+     * different from [location_id].
+     * 
+ * + * string location_id = 4; + */ + public Builder setLocationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + locationId_ = value; + onChanged(); + return this; + } + + private java.lang.Object alternativeLocationId_ = ""; + /** + *
+     * Optional. Only applicable to STANDARD_HA tier which protects the instance
+     * against zonal failures by provisioning it across two zones. If provided, it
+     * must be a different zone from the one provided in [location_id].
+     * 
+ * + * string alternative_location_id = 5; + */ + public java.lang.String getAlternativeLocationId() { + java.lang.Object ref = alternativeLocationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + alternativeLocationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Optional. Only applicable to STANDARD_HA tier which protects the instance
+     * against zonal failures by provisioning it across two zones. If provided, it
+     * must be a different zone from the one provided in [location_id].
+     * 
+ * + * string alternative_location_id = 5; + */ + public com.google.protobuf.ByteString + getAlternativeLocationIdBytes() { + java.lang.Object ref = alternativeLocationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + alternativeLocationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Optional. Only applicable to STANDARD_HA tier which protects the instance
+     * against zonal failures by provisioning it across two zones. If provided, it
+     * must be a different zone from the one provided in [location_id].
+     * 
+ * + * string alternative_location_id = 5; + */ + public Builder setAlternativeLocationId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + alternativeLocationId_ = value; + onChanged(); + return this; + } + /** + *
+     * Optional. Only applicable to STANDARD_HA tier which protects the instance
+     * against zonal failures by provisioning it across two zones. If provided, it
+     * must be a different zone from the one provided in [location_id].
+     * 
+ * + * string alternative_location_id = 5; + */ + public Builder clearAlternativeLocationId() { + + alternativeLocationId_ = getDefaultInstance().getAlternativeLocationId(); + onChanged(); + return this; + } + /** + *
+     * Optional. Only applicable to STANDARD_HA tier which protects the instance
+     * against zonal failures by provisioning it across two zones. If provided, it
+     * must be a different zone from the one provided in [location_id].
+     * 
+ * + * string alternative_location_id = 5; + */ + public Builder setAlternativeLocationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + alternativeLocationId_ = value; + onChanged(); + return this; + } + + private java.lang.Object redisVersion_ = ""; + /** + *
+     * Optional. The version of Redis software.
+     * If not provided, latest supported version will be used. Updating the
+     * version will perform an upgrade/downgrade to the new version. Currently,
+     * the supported values are `REDIS_3_2` for Redis 3.2.
+     * 
+ * + * string redis_version = 7; + */ + public java.lang.String getRedisVersion() { + java.lang.Object ref = redisVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + redisVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Optional. The version of Redis software.
+     * If not provided, latest supported version will be used. Updating the
+     * version will perform an upgrade/downgrade to the new version. Currently,
+     * the supported values are `REDIS_3_2` for Redis 3.2.
+     * 
+ * + * string redis_version = 7; + */ + public com.google.protobuf.ByteString + getRedisVersionBytes() { + java.lang.Object ref = redisVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + redisVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Optional. The version of Redis software.
+     * If not provided, latest supported version will be used. Updating the
+     * version will perform an upgrade/downgrade to the new version. Currently,
+     * the supported values are `REDIS_3_2` for Redis 3.2.
+     * 
+ * + * string redis_version = 7; + */ + public Builder setRedisVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + redisVersion_ = value; + onChanged(); + return this; + } + /** + *
+     * Optional. The version of Redis software.
+     * If not provided, latest supported version will be used. Updating the
+     * version will perform an upgrade/downgrade to the new version. Currently,
+     * the supported values are `REDIS_3_2` for Redis 3.2.
+     * 
+ * + * string redis_version = 7; + */ + public Builder clearRedisVersion() { + + redisVersion_ = getDefaultInstance().getRedisVersion(); + onChanged(); + return this; + } + /** + *
+     * Optional. The version of Redis software.
+     * If not provided, latest supported version will be used. Updating the
+     * version will perform an upgrade/downgrade to the new version. Currently,
+     * the supported values are `REDIS_3_2` for Redis 3.2.
+     * 
+ * + * string redis_version = 7; + */ + public Builder setRedisVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + redisVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object reservedIpRange_ = ""; + /** + *
+     * Optional. The CIDR range of internal addresses that are reserved for this
+     * instance. If not provided, the service will choose an unused /29 block,
+     * for example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be unique
+     * and non-overlapping with existing subnets in an authorized network.
+     * 
+ * + * string reserved_ip_range = 9; + */ + public java.lang.String getReservedIpRange() { + java.lang.Object ref = reservedIpRange_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reservedIpRange_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Optional. The CIDR range of internal addresses that are reserved for this
+     * instance. If not provided, the service will choose an unused /29 block,
+     * for example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be unique
+     * and non-overlapping with existing subnets in an authorized network.
+     * 
+ * + * string reserved_ip_range = 9; + */ + public com.google.protobuf.ByteString + getReservedIpRangeBytes() { + java.lang.Object ref = reservedIpRange_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + reservedIpRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Optional. The CIDR range of internal addresses that are reserved for this
+     * instance. If not provided, the service will choose an unused /29 block,
+     * for example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be unique
+     * and non-overlapping with existing subnets in an authorized network.
+     * 
+ * + * string reserved_ip_range = 9; + */ + public Builder setReservedIpRange( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + reservedIpRange_ = value; + onChanged(); + return this; + } + /** + *
+     * Optional. The CIDR range of internal addresses that are reserved for this
+     * instance. If not provided, the service will choose an unused /29 block,
+     * for example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be unique
+     * and non-overlapping with existing subnets in an authorized network.
+     * 
+ * + * string reserved_ip_range = 9; + */ + public Builder clearReservedIpRange() { + + reservedIpRange_ = getDefaultInstance().getReservedIpRange(); + onChanged(); + return this; + } + /** + *
+     * Optional. The CIDR range of internal addresses that are reserved for this
+     * instance. If not provided, the service will choose an unused /29 block,
+     * for example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be unique
+     * and non-overlapping with existing subnets in an authorized network.
+     * 
+ * + * string reserved_ip_range = 9; + */ + public Builder setReservedIpRangeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + reservedIpRange_ = value; + onChanged(); + return this; + } + + private java.lang.Object host_ = ""; + /** + *
+     * Output only. Hostname or IP address of the exposed Redis endpoint used by
+     * clients to connect to the service.
+     * 
+ * + * string host = 10; + */ + public java.lang.String getHost() { + java.lang.Object ref = host_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + host_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. Hostname or IP address of the exposed Redis endpoint used by
+     * clients to connect to the service.
+     * 
+ * + * string host = 10; + */ + public com.google.protobuf.ByteString + getHostBytes() { + java.lang.Object ref = host_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + host_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. Hostname or IP address of the exposed Redis endpoint used by
+     * clients to connect to the service.
+     * 
+ * + * string host = 10; + */ + public Builder setHost( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + host_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. Hostname or IP address of the exposed Redis endpoint used by
+     * clients to connect to the service.
+     * 
+ * + * string host = 10; + */ + public Builder clearHost() { + + host_ = getDefaultInstance().getHost(); + onChanged(); + return this; + } + /** + *
+     * Output only. Hostname or IP address of the exposed Redis endpoint used by
+     * clients to connect to the service.
+     * 
+ * + * string host = 10; + */ + public Builder setHostBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + host_ = value; + onChanged(); + return this; + } + + private int port_ ; + /** + *
+     * Output only. The port number of the exposed Redis endpoint.
+     * 
+ * + * int32 port = 11; + */ + public int getPort() { + return port_; + } + /** + *
+     * Output only. The port number of the exposed Redis endpoint.
+     * 
+ * + * int32 port = 11; + */ + public Builder setPort(int value) { + + port_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. The port number of the exposed Redis endpoint.
+     * 
+ * + * int32 port = 11; + */ + public Builder clearPort() { + + port_ = 0; + onChanged(); + return this; + } + + private java.lang.Object currentLocationId_ = ""; + /** + *
+     * Output only. The current zone where the Redis endpoint is placed. For Basic
+     * Tier instances, this will always be the same as the [location_id]
+     * provided by the user at creation time. For Standard Tier instances,
+     * this can be either [location_id] or [alternative_location_id] and can
+     * change after a failover event.
+     * 
+ * + * string current_location_id = 12; + */ + public java.lang.String getCurrentLocationId() { + java.lang.Object ref = currentLocationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currentLocationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. The current zone where the Redis endpoint is placed. For Basic
+     * Tier instances, this will always be the same as the [location_id]
+     * provided by the user at creation time. For Standard Tier instances,
+     * this can be either [location_id] or [alternative_location_id] and can
+     * change after a failover event.
+     * 
+ * + * string current_location_id = 12; + */ + public com.google.protobuf.ByteString + getCurrentLocationIdBytes() { + java.lang.Object ref = currentLocationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + currentLocationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. The current zone where the Redis endpoint is placed. For Basic
+     * Tier instances, this will always be the same as the [location_id]
+     * provided by the user at creation time. For Standard Tier instances,
+     * this can be either [location_id] or [alternative_location_id] and can
+     * change after a failover event.
+     * 
+ * + * string current_location_id = 12; + */ + public Builder setCurrentLocationId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + currentLocationId_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. The current zone where the Redis endpoint is placed. For Basic
+     * Tier instances, this will always be the same as the [location_id]
+     * provided by the user at creation time. For Standard Tier instances,
+     * this can be either [location_id] or [alternative_location_id] and can
+     * change after a failover event.
+     * 
+ * + * string current_location_id = 12; + */ + public Builder clearCurrentLocationId() { + + currentLocationId_ = getDefaultInstance().getCurrentLocationId(); + onChanged(); + return this; + } + /** + *
+     * Output only. The current zone where the Redis endpoint is placed. For Basic
+     * Tier instances, this will always be the same as the [location_id]
+     * provided by the user at creation time. For Standard Tier instances,
+     * this can be either [location_id] or [alternative_location_id] and can
+     * change after a failover event.
+     * 
+ * + * string current_location_id = 12; + */ + public Builder setCurrentLocationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + currentLocationId_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + /** + *
+     * Output only. The time the instance was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 13; + */ + public boolean hasCreateTime() { + return createTimeBuilder_ != null || createTime_ != null; + } + /** + *
+     * Output only. The time the instance was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 13; + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + *
+     * Output only. The time the instance was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 13; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Output only. The time the instance was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 13; + */ + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Output only. The time the instance was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 13; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (createTime_ != null) { + createTime_ = + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Output only. The time the instance was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 13; + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * Output only. The time the instance was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 13; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Output only. The time the instance was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 13; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + } + /** + *
+     * Output only. The time the instance was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 13; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private int state_ = 0; + /** + *
+     * Output only. The current state of this instance.
+     * 
+ * + * .google.cloud.redis.v1.Instance.State state = 14; + */ + public int getStateValue() { + return state_; + } + /** + *
+     * Output only. The current state of this instance.
+     * 
+ * + * .google.cloud.redis.v1.Instance.State state = 14; + */ + public Builder setStateValue(int value) { + state_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. The current state of this instance.
+     * 
+ * + * .google.cloud.redis.v1.Instance.State state = 14; + */ + public com.google.cloud.redis.v1.Instance.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.redis.v1.Instance.State result = com.google.cloud.redis.v1.Instance.State.valueOf(state_); + return result == null ? com.google.cloud.redis.v1.Instance.State.UNRECOGNIZED : result; + } + /** + *
+     * Output only. The current state of this instance.
+     * 
+ * + * .google.cloud.redis.v1.Instance.State state = 14; + */ + public Builder setState(com.google.cloud.redis.v1.Instance.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Output only. The current state of this instance.
+     * 
+ * + * .google.cloud.redis.v1.Instance.State state = 14; + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object statusMessage_ = ""; + /** + *
+     * Output only. Additional information about the current status of this
+     * instance, if available.
+     * 
+ * + * string status_message = 15; + */ + public java.lang.String getStatusMessage() { + java.lang.Object ref = statusMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. Additional information about the current status of this
+     * instance, if available.
+     * 
+ * + * string status_message = 15; + */ + public com.google.protobuf.ByteString + getStatusMessageBytes() { + java.lang.Object ref = statusMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. Additional information about the current status of this
+     * instance, if available.
+     * 
+ * + * string status_message = 15; + */ + public Builder setStatusMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + statusMessage_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. Additional information about the current status of this
+     * instance, if available.
+     * 
+ * + * string status_message = 15; + */ + public Builder clearStatusMessage() { + + statusMessage_ = getDefaultInstance().getStatusMessage(); + onChanged(); + return this; + } + /** + *
+     * Output only. Additional information about the current status of this
+     * instance, if available.
+     * 
+ * + * string status_message = 15; + */ + public Builder setStatusMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + statusMessage_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> redisConfigs_; + private com.google.protobuf.MapField + internalGetRedisConfigs() { + if (redisConfigs_ == null) { + return com.google.protobuf.MapField.emptyMapField( + RedisConfigsDefaultEntryHolder.defaultEntry); + } + return redisConfigs_; + } + private com.google.protobuf.MapField + internalGetMutableRedisConfigs() { + onChanged();; + if (redisConfigs_ == null) { + redisConfigs_ = com.google.protobuf.MapField.newMapField( + RedisConfigsDefaultEntryHolder.defaultEntry); + } + if (!redisConfigs_.isMutable()) { + redisConfigs_ = redisConfigs_.copy(); + } + return redisConfigs_; + } + + public int getRedisConfigsCount() { + return internalGetRedisConfigs().getMap().size(); + } + /** + *
+     * Optional. Redis configuration parameters, according to
+     * http://redis.io/topics/config. Currently, the only supported parameters
+     * are:
+     *  *   maxmemory-policy
+     *  *   notify-keyspace-events
+     * 
+ * + * map<string, string> redis_configs = 16; + */ + + public boolean containsRedisConfigs( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetRedisConfigs().getMap().containsKey(key); + } + /** + * Use {@link #getRedisConfigsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getRedisConfigs() { + return getRedisConfigsMap(); + } + /** + *
+     * Optional. Redis configuration parameters, according to
+     * http://redis.io/topics/config. Currently, the only supported parameters
+     * are:
+     *  *   maxmemory-policy
+     *  *   notify-keyspace-events
+     * 
+ * + * map<string, string> redis_configs = 16; + */ + + public java.util.Map getRedisConfigsMap() { + return internalGetRedisConfigs().getMap(); + } + /** + *
+     * Optional. Redis configuration parameters, according to
+     * http://redis.io/topics/config. Currently, the only supported parameters
+     * are:
+     *  *   maxmemory-policy
+     *  *   notify-keyspace-events
+     * 
+ * + * map<string, string> redis_configs = 16; + */ + + public java.lang.String getRedisConfigsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetRedisConfigs().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Optional. Redis configuration parameters, according to
+     * http://redis.io/topics/config. Currently, the only supported parameters
+     * are:
+     *  *   maxmemory-policy
+     *  *   notify-keyspace-events
+     * 
+ * + * map<string, string> redis_configs = 16; + */ + + public java.lang.String getRedisConfigsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetRedisConfigs().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearRedisConfigs() { + internalGetMutableRedisConfigs().getMutableMap() + .clear(); + return this; + } + /** + *
+     * Optional. Redis configuration parameters, according to
+     * http://redis.io/topics/config. Currently, the only supported parameters
+     * are:
+     *  *   maxmemory-policy
+     *  *   notify-keyspace-events
+     * 
+ * + * map<string, string> redis_configs = 16; + */ + + public Builder removeRedisConfigs( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableRedisConfigs().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableRedisConfigs() { + return internalGetMutableRedisConfigs().getMutableMap(); + } + /** + *
+     * Optional. Redis configuration parameters, according to
+     * http://redis.io/topics/config. Currently, the only supported parameters
+     * are:
+     *  *   maxmemory-policy
+     *  *   notify-keyspace-events
+     * 
+ * + * map<string, string> redis_configs = 16; + */ + public Builder putRedisConfigs( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableRedisConfigs().getMutableMap() + .put(key, value); + return this; + } + /** + *
+     * Optional. Redis configuration parameters, according to
+     * http://redis.io/topics/config. Currently, the only supported parameters
+     * are:
+     *  *   maxmemory-policy
+     *  *   notify-keyspace-events
+     * 
+ * + * map<string, string> redis_configs = 16; + */ + + public Builder putAllRedisConfigs( + java.util.Map values) { + internalGetMutableRedisConfigs().getMutableMap() + .putAll(values); + return this; + } + + private int tier_ = 0; + /** + *
+     * Required. The service tier of the instance.
+     * 
+ * + * .google.cloud.redis.v1.Instance.Tier tier = 17; + */ + public int getTierValue() { + return tier_; + } + /** + *
+     * Required. The service tier of the instance.
+     * 
+ * + * .google.cloud.redis.v1.Instance.Tier tier = 17; + */ + public Builder setTierValue(int value) { + tier_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. The service tier of the instance.
+     * 
+ * + * .google.cloud.redis.v1.Instance.Tier tier = 17; + */ + public com.google.cloud.redis.v1.Instance.Tier getTier() { + @SuppressWarnings("deprecation") + com.google.cloud.redis.v1.Instance.Tier result = com.google.cloud.redis.v1.Instance.Tier.valueOf(tier_); + return result == null ? com.google.cloud.redis.v1.Instance.Tier.UNRECOGNIZED : result; + } + /** + *
+     * Required. The service tier of the instance.
+     * 
+ * + * .google.cloud.redis.v1.Instance.Tier tier = 17; + */ + public Builder setTier(com.google.cloud.redis.v1.Instance.Tier value) { + if (value == null) { + throw new NullPointerException(); + } + + tier_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Required. The service tier of the instance.
+     * 
+ * + * .google.cloud.redis.v1.Instance.Tier tier = 17; + */ + public Builder clearTier() { + + tier_ = 0; + onChanged(); + return this; + } + + private int memorySizeGb_ ; + /** + *
+     * Required. Redis memory size in GiB.
+     * 
+ * + * int32 memory_size_gb = 18; + */ + public int getMemorySizeGb() { + return memorySizeGb_; + } + /** + *
+     * Required. Redis memory size in GiB.
+     * 
+ * + * int32 memory_size_gb = 18; + */ + public Builder setMemorySizeGb(int value) { + + memorySizeGb_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. Redis memory size in GiB.
+     * 
+ * + * int32 memory_size_gb = 18; + */ + public Builder clearMemorySizeGb() { + + memorySizeGb_ = 0; + onChanged(); + return this; + } + + private java.lang.Object authorizedNetwork_ = ""; + /** + *
+     * Optional. The full name of the Google Compute Engine
+     * [network](/compute/docs/networks-and-firewalls#networks) to which the
+     * instance is connected. If left unspecified, the `default` network
+     * will be used.
+     * 
+ * + * string authorized_network = 20; + */ + public java.lang.String getAuthorizedNetwork() { + java.lang.Object ref = authorizedNetwork_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authorizedNetwork_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Optional. The full name of the Google Compute Engine
+     * [network](/compute/docs/networks-and-firewalls#networks) to which the
+     * instance is connected. If left unspecified, the `default` network
+     * will be used.
+     * 
+ * + * string authorized_network = 20; + */ + public com.google.protobuf.ByteString + getAuthorizedNetworkBytes() { + java.lang.Object ref = authorizedNetwork_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + authorizedNetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Optional. The full name of the Google Compute Engine
+     * [network](/compute/docs/networks-and-firewalls#networks) to which the
+     * instance is connected. If left unspecified, the `default` network
+     * will be used.
+     * 
+ * + * string authorized_network = 20; + */ + public Builder setAuthorizedNetwork( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + authorizedNetwork_ = value; + onChanged(); + return this; + } + /** + *
+     * Optional. The full name of the Google Compute Engine
+     * [network](/compute/docs/networks-and-firewalls#networks) to which the
+     * instance is connected. If left unspecified, the `default` network
+     * will be used.
+     * 
+ * + * string authorized_network = 20; + */ + public Builder clearAuthorizedNetwork() { + + authorizedNetwork_ = getDefaultInstance().getAuthorizedNetwork(); + onChanged(); + return this; + } + /** + *
+     * Optional. The full name of the Google Compute Engine
+     * [network](/compute/docs/networks-and-firewalls#networks) to which the
+     * instance is connected. If left unspecified, the `default` network
+     * will be used.
+     * 
+ * + * string authorized_network = 20; + */ + public Builder setAuthorizedNetworkBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + authorizedNetwork_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.Instance) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.Instance) + private static final com.google.cloud.redis.v1.Instance DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.v1.Instance(); + } + + public static com.google.cloud.redis.v1.Instance getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Instance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Instance(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.v1.Instance getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceName.java b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceName.java new file mode 100644 index 000000000000..fd8383bd1326 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceName.java @@ -0,0 +1,212 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.cloud.redis.v1; + +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import java.util.Map; +import java.util.ArrayList; +import java.util.List; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class InstanceName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}/instances/{instance}"); + + private volatile Map fieldValuesMap; + + private final String project; + private final String location; + private final String instance; + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getInstance() { + return instance; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private InstanceName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + instance = Preconditions.checkNotNull(builder.getInstance()); + } + + public static InstanceName of(String project, String location, String instance) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setInstance(instance) + .build(); + } + + public static String format(String project, String location, String instance) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setInstance(instance) + .build() + .toString(); + } + + public static InstanceName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch(formattedString, "InstanceName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("instance")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (InstanceName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldMapBuilder.put("location", location); + fieldMapBuilder.put("instance", instance); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("project", project, "location", location, "instance", instance); + } + + /** Builder for InstanceName. */ + public static class Builder { + + private String project; + private String location; + private String instance; + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getInstance() { + return instance; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setInstance(String instance) { + this.instance = instance; + return this; + } + + private Builder() { + } + + private Builder(InstanceName instanceName) { + project = instanceName.project; + location = instanceName.location; + instance = instanceName.instance; + } + + public InstanceName build() { + return new InstanceName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof InstanceName) { + InstanceName that = (InstanceName) o; + return (this.project.equals(that.project)) + && (this.location.equals(that.location)) + && (this.instance.equals(that.instance)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + h *= 1000003; + h ^= location.hashCode(); + h *= 1000003; + h ^= instance.hashCode(); + return h; + } +} + diff --git a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceOrBuilder.java b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceOrBuilder.java new file mode 100644 index 000000000000..13c091496f92 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceOrBuilder.java @@ -0,0 +1,450 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/v1/cloud_redis.proto + +package com.google.cloud.redis.v1; + +public interface InstanceOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.Instance) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Unique name of the resource in this scope including project and
+   * location using the form:
+   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * Note: Redis instances are managed and addressed at regional level so
+   * location_id here refers to a GCP region; however, users may choose which
+   * specific zone (or collection of zones for cross-zone instances) an instance
+   * should be provisioned in. Refer to [location_id] and
+   * [alternative_location_id] fields for more details.
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + *
+   * Required. Unique name of the resource in this scope including project and
+   * location using the form:
+   *     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * Note: Redis instances are managed and addressed at regional level so
+   * location_id here refers to a GCP region; however, users may choose which
+   * specific zone (or collection of zones for cross-zone instances) an instance
+   * should be provisioned in. Refer to [location_id] and
+   * [alternative_location_id] fields for more details.
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * An arbitrary and optional user-provided name for the instance.
+   * 
+ * + * string display_name = 2; + */ + java.lang.String getDisplayName(); + /** + *
+   * An arbitrary and optional user-provided name for the instance.
+   * 
+ * + * string display_name = 2; + */ + com.google.protobuf.ByteString + getDisplayNameBytes(); + + /** + *
+   * Resource labels to represent user provided metadata
+   * 
+ * + * map<string, string> labels = 3; + */ + int getLabelsCount(); + /** + *
+   * Resource labels to represent user provided metadata
+   * 
+ * + * map<string, string> labels = 3; + */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getLabels(); + /** + *
+   * Resource labels to represent user provided metadata
+   * 
+ * + * map<string, string> labels = 3; + */ + java.util.Map + getLabelsMap(); + /** + *
+   * Resource labels to represent user provided metadata
+   * 
+ * + * map<string, string> labels = 3; + */ + + java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + *
+   * Resource labels to represent user provided metadata
+   * 
+ * + * map<string, string> labels = 3; + */ + + java.lang.String getLabelsOrThrow( + java.lang.String key); + + /** + *
+   * Optional. The zone where the instance will be provisioned. If not provided,
+   * the service will choose a zone for the instance. For STANDARD_HA tier,
+   * instances will be created across two zones for protection against zonal
+   * failures. If [alternative_location_id] is also provided, it must be
+   * different from [location_id].
+   * 
+ * + * string location_id = 4; + */ + java.lang.String getLocationId(); + /** + *
+   * Optional. The zone where the instance will be provisioned. If not provided,
+   * the service will choose a zone for the instance. For STANDARD_HA tier,
+   * instances will be created across two zones for protection against zonal
+   * failures. If [alternative_location_id] is also provided, it must be
+   * different from [location_id].
+   * 
+ * + * string location_id = 4; + */ + com.google.protobuf.ByteString + getLocationIdBytes(); + + /** + *
+   * Optional. Only applicable to STANDARD_HA tier which protects the instance
+   * against zonal failures by provisioning it across two zones. If provided, it
+   * must be a different zone from the one provided in [location_id].
+   * 
+ * + * string alternative_location_id = 5; + */ + java.lang.String getAlternativeLocationId(); + /** + *
+   * Optional. Only applicable to STANDARD_HA tier which protects the instance
+   * against zonal failures by provisioning it across two zones. If provided, it
+   * must be a different zone from the one provided in [location_id].
+   * 
+ * + * string alternative_location_id = 5; + */ + com.google.protobuf.ByteString + getAlternativeLocationIdBytes(); + + /** + *
+   * Optional. The version of Redis software.
+   * If not provided, latest supported version will be used. Updating the
+   * version will perform an upgrade/downgrade to the new version. Currently,
+   * the supported values are `REDIS_3_2` for Redis 3.2.
+   * 
+ * + * string redis_version = 7; + */ + java.lang.String getRedisVersion(); + /** + *
+   * Optional. The version of Redis software.
+   * If not provided, latest supported version will be used. Updating the
+   * version will perform an upgrade/downgrade to the new version. Currently,
+   * the supported values are `REDIS_3_2` for Redis 3.2.
+   * 
+ * + * string redis_version = 7; + */ + com.google.protobuf.ByteString + getRedisVersionBytes(); + + /** + *
+   * Optional. The CIDR range of internal addresses that are reserved for this
+   * instance. If not provided, the service will choose an unused /29 block,
+   * for example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be unique
+   * and non-overlapping with existing subnets in an authorized network.
+   * 
+ * + * string reserved_ip_range = 9; + */ + java.lang.String getReservedIpRange(); + /** + *
+   * Optional. The CIDR range of internal addresses that are reserved for this
+   * instance. If not provided, the service will choose an unused /29 block,
+   * for example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be unique
+   * and non-overlapping with existing subnets in an authorized network.
+   * 
+ * + * string reserved_ip_range = 9; + */ + com.google.protobuf.ByteString + getReservedIpRangeBytes(); + + /** + *
+   * Output only. Hostname or IP address of the exposed Redis endpoint used by
+   * clients to connect to the service.
+   * 
+ * + * string host = 10; + */ + java.lang.String getHost(); + /** + *
+   * Output only. Hostname or IP address of the exposed Redis endpoint used by
+   * clients to connect to the service.
+   * 
+ * + * string host = 10; + */ + com.google.protobuf.ByteString + getHostBytes(); + + /** + *
+   * Output only. The port number of the exposed Redis endpoint.
+   * 
+ * + * int32 port = 11; + */ + int getPort(); + + /** + *
+   * Output only. The current zone where the Redis endpoint is placed. For Basic
+   * Tier instances, this will always be the same as the [location_id]
+   * provided by the user at creation time. For Standard Tier instances,
+   * this can be either [location_id] or [alternative_location_id] and can
+   * change after a failover event.
+   * 
+ * + * string current_location_id = 12; + */ + java.lang.String getCurrentLocationId(); + /** + *
+   * Output only. The current zone where the Redis endpoint is placed. For Basic
+   * Tier instances, this will always be the same as the [location_id]
+   * provided by the user at creation time. For Standard Tier instances,
+   * this can be either [location_id] or [alternative_location_id] and can
+   * change after a failover event.
+   * 
+ * + * string current_location_id = 12; + */ + com.google.protobuf.ByteString + getCurrentLocationIdBytes(); + + /** + *
+   * Output only. The time the instance was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 13; + */ + boolean hasCreateTime(); + /** + *
+   * Output only. The time the instance was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 13; + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + *
+   * Output only. The time the instance was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 13; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + *
+   * Output only. The current state of this instance.
+   * 
+ * + * .google.cloud.redis.v1.Instance.State state = 14; + */ + int getStateValue(); + /** + *
+   * Output only. The current state of this instance.
+   * 
+ * + * .google.cloud.redis.v1.Instance.State state = 14; + */ + com.google.cloud.redis.v1.Instance.State getState(); + + /** + *
+   * Output only. Additional information about the current status of this
+   * instance, if available.
+   * 
+ * + * string status_message = 15; + */ + java.lang.String getStatusMessage(); + /** + *
+   * Output only. Additional information about the current status of this
+   * instance, if available.
+   * 
+ * + * string status_message = 15; + */ + com.google.protobuf.ByteString + getStatusMessageBytes(); + + /** + *
+   * Optional. Redis configuration parameters, according to
+   * http://redis.io/topics/config. Currently, the only supported parameters
+   * are:
+   *  *   maxmemory-policy
+   *  *   notify-keyspace-events
+   * 
+ * + * map<string, string> redis_configs = 16; + */ + int getRedisConfigsCount(); + /** + *
+   * Optional. Redis configuration parameters, according to
+   * http://redis.io/topics/config. Currently, the only supported parameters
+   * are:
+   *  *   maxmemory-policy
+   *  *   notify-keyspace-events
+   * 
+ * + * map<string, string> redis_configs = 16; + */ + boolean containsRedisConfigs( + java.lang.String key); + /** + * Use {@link #getRedisConfigsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getRedisConfigs(); + /** + *
+   * Optional. Redis configuration parameters, according to
+   * http://redis.io/topics/config. Currently, the only supported parameters
+   * are:
+   *  *   maxmemory-policy
+   *  *   notify-keyspace-events
+   * 
+ * + * map<string, string> redis_configs = 16; + */ + java.util.Map + getRedisConfigsMap(); + /** + *
+   * Optional. Redis configuration parameters, according to
+   * http://redis.io/topics/config. Currently, the only supported parameters
+   * are:
+   *  *   maxmemory-policy
+   *  *   notify-keyspace-events
+   * 
+ * + * map<string, string> redis_configs = 16; + */ + + java.lang.String getRedisConfigsOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + *
+   * Optional. Redis configuration parameters, according to
+   * http://redis.io/topics/config. Currently, the only supported parameters
+   * are:
+   *  *   maxmemory-policy
+   *  *   notify-keyspace-events
+   * 
+ * + * map<string, string> redis_configs = 16; + */ + + java.lang.String getRedisConfigsOrThrow( + java.lang.String key); + + /** + *
+   * Required. The service tier of the instance.
+   * 
+ * + * .google.cloud.redis.v1.Instance.Tier tier = 17; + */ + int getTierValue(); + /** + *
+   * Required. The service tier of the instance.
+   * 
+ * + * .google.cloud.redis.v1.Instance.Tier tier = 17; + */ + com.google.cloud.redis.v1.Instance.Tier getTier(); + + /** + *
+   * Required. Redis memory size in GiB.
+   * 
+ * + * int32 memory_size_gb = 18; + */ + int getMemorySizeGb(); + + /** + *
+   * Optional. The full name of the Google Compute Engine
+   * [network](/compute/docs/networks-and-firewalls#networks) to which the
+   * instance is connected. If left unspecified, the `default` network
+   * will be used.
+   * 
+ * + * string authorized_network = 20; + */ + java.lang.String getAuthorizedNetwork(); + /** + *
+   * Optional. The full name of the Google Compute Engine
+   * [network](/compute/docs/networks-and-firewalls#networks) to which the
+   * instance is connected. If left unspecified, the `default` network
+   * will be used.
+   * 
+ * + * string authorized_network = 20; + */ + com.google.protobuf.ByteString + getAuthorizedNetworkBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesRequest.java b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesRequest.java new file mode 100644 index 000000000000..d7be57b6b1d3 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesRequest.java @@ -0,0 +1,847 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/v1/cloud_redis.proto + +package com.google.cloud.redis.v1; + +/** + *
+ * Request for [ListInstances][google.cloud.redis.v1.CloudRedis.ListInstances].
+ * 
+ * + * Protobuf type {@code google.cloud.redis.v1.ListInstancesRequest} + */ +public final class ListInstancesRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.ListInstancesRequest) + ListInstancesRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListInstancesRequest.newBuilder() to construct. + private ListInstancesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListInstancesRequest() { + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListInstancesRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 16: { + + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ListInstancesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ListInstancesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.v1.ListInstancesRequest.class, com.google.cloud.redis.v1.ListInstancesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + *
+   * Required. The resource name of the instance location using the form:
+   *     `projects/{project_id}/locations/{location_id}`
+   * where `location_id` refers to a GCP region
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + *
+   * Required. The resource name of the instance location using the form:
+   *     `projects/{project_id}/locations/{location_id}`
+   * where `location_id` refers to a GCP region
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_; + /** + *
+   * The maximum number of items to return.
+   * If not specified, a default value of 1000 will be used by the service.
+   * Regardless of the page_size value, the response may include a partial list
+   * and a caller should only rely on response's
+   * [next_page_token][CloudRedis.ListInstancesResponse.next_page_token]
+   * to determine if there are more instances left to be queried.
+   * 
+ * + * int32 page_size = 2; + */ + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object pageToken_; + /** + *
+   * The next_page_token value returned from a previous List request,
+   * if any.
+   * 
+ * + * string page_token = 3; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + *
+   * The next_page_token value returned from a previous List request,
+   * if any.
+   * 
+ * + * string page_token = 3; + */ + public com.google.protobuf.ByteString + getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.v1.ListInstancesRequest)) { + return super.equals(obj); + } + com.google.cloud.redis.v1.ListInstancesRequest other = (com.google.cloud.redis.v1.ListInstancesRequest) obj; + + boolean result = true; + result = result && getParent() + .equals(other.getParent()); + result = result && (getPageSize() + == other.getPageSize()); + result = result && getPageToken() + .equals(other.getPageToken()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.v1.ListInstancesRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.redis.v1.ListInstancesRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.redis.v1.ListInstancesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.redis.v1.ListInstancesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.redis.v1.ListInstancesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.redis.v1.ListInstancesRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.redis.v1.ListInstancesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.redis.v1.ListInstancesRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.redis.v1.ListInstancesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.redis.v1.ListInstancesRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.redis.v1.ListInstancesRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.redis.v1.ListInstancesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.redis.v1.ListInstancesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request for [ListInstances][google.cloud.redis.v1.CloudRedis.ListInstances].
+   * 
+ * + * Protobuf type {@code google.cloud.redis.v1.ListInstancesRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.ListInstancesRequest) + com.google.cloud.redis.v1.ListInstancesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ListInstancesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ListInstancesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.v1.ListInstancesRequest.class, com.google.cloud.redis.v1.ListInstancesRequest.Builder.class); + } + + // Construct using com.google.cloud.redis.v1.ListInstancesRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ListInstancesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.v1.ListInstancesRequest getDefaultInstanceForType() { + return com.google.cloud.redis.v1.ListInstancesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.v1.ListInstancesRequest build() { + com.google.cloud.redis.v1.ListInstancesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.v1.ListInstancesRequest buildPartial() { + com.google.cloud.redis.v1.ListInstancesRequest result = new com.google.cloud.redis.v1.ListInstancesRequest(this); + result.parent_ = parent_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.v1.ListInstancesRequest) { + return mergeFrom((com.google.cloud.redis.v1.ListInstancesRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.v1.ListInstancesRequest other) { + if (other == com.google.cloud.redis.v1.ListInstancesRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.redis.v1.ListInstancesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.redis.v1.ListInstancesRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + *
+     * Required. The resource name of the instance location using the form:
+     *     `projects/{project_id}/locations/{location_id}`
+     * where `location_id` refers to a GCP region
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The resource name of the instance location using the form:
+     *     `projects/{project_id}/locations/{location_id}`
+     * where `location_id` refers to a GCP region
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The resource name of the instance location using the form:
+     *     `projects/{project_id}/locations/{location_id}`
+     * where `location_id` refers to a GCP region
+     * 
+ * + * string parent = 1; + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. The resource name of the instance location using the form:
+     *     `projects/{project_id}/locations/{location_id}`
+     * where `location_id` refers to a GCP region
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + *
+     * Required. The resource name of the instance location using the form:
+     *     `projects/{project_id}/locations/{location_id}`
+     * where `location_id` refers to a GCP region
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private int pageSize_ ; + /** + *
+     * The maximum number of items to return.
+     * If not specified, a default value of 1000 will be used by the service.
+     * Regardless of the page_size value, the response may include a partial list
+     * and a caller should only rely on response's
+     * [next_page_token][CloudRedis.ListInstancesResponse.next_page_token]
+     * to determine if there are more instances left to be queried.
+     * 
+ * + * int32 page_size = 2; + */ + public int getPageSize() { + return pageSize_; + } + /** + *
+     * The maximum number of items to return.
+     * If not specified, a default value of 1000 will be used by the service.
+     * Regardless of the page_size value, the response may include a partial list
+     * and a caller should only rely on response's
+     * [next_page_token][CloudRedis.ListInstancesResponse.next_page_token]
+     * to determine if there are more instances left to be queried.
+     * 
+ * + * int32 page_size = 2; + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + *
+     * The maximum number of items to return.
+     * If not specified, a default value of 1000 will be used by the service.
+     * Regardless of the page_size value, the response may include a partial list
+     * and a caller should only rely on response's
+     * [next_page_token][CloudRedis.ListInstancesResponse.next_page_token]
+     * to determine if there are more instances left to be queried.
+     * 
+ * + * int32 page_size = 2; + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + *
+     * The next_page_token value returned from a previous List request,
+     * if any.
+     * 
+ * + * string page_token = 3; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The next_page_token value returned from a previous List request,
+     * if any.
+     * 
+ * + * string page_token = 3; + */ + public com.google.protobuf.ByteString + getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The next_page_token value returned from a previous List request,
+     * if any.
+     * 
+ * + * string page_token = 3; + */ + public Builder setPageToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + *
+     * The next_page_token value returned from a previous List request,
+     * if any.
+     * 
+ * + * string page_token = 3; + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + *
+     * The next_page_token value returned from a previous List request,
+     * if any.
+     * 
+ * + * string page_token = 3; + */ + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.ListInstancesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.ListInstancesRequest) + private static final com.google.cloud.redis.v1.ListInstancesRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.v1.ListInstancesRequest(); + } + + public static com.google.cloud.redis.v1.ListInstancesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListInstancesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListInstancesRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.v1.ListInstancesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesRequestOrBuilder.java new file mode 100644 index 000000000000..dfe9d0579680 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesRequestOrBuilder.java @@ -0,0 +1,65 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/v1/cloud_redis.proto + +package com.google.cloud.redis.v1; + +public interface ListInstancesRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.ListInstancesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the instance location using the form:
+   *     `projects/{project_id}/locations/{location_id}`
+   * where `location_id` refers to a GCP region
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + *
+   * Required. The resource name of the instance location using the form:
+   *     `projects/{project_id}/locations/{location_id}`
+   * where `location_id` refers to a GCP region
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * The maximum number of items to return.
+   * If not specified, a default value of 1000 will be used by the service.
+   * Regardless of the page_size value, the response may include a partial list
+   * and a caller should only rely on response's
+   * [next_page_token][CloudRedis.ListInstancesResponse.next_page_token]
+   * to determine if there are more instances left to be queried.
+   * 
+ * + * int32 page_size = 2; + */ + int getPageSize(); + + /** + *
+   * The next_page_token value returned from a previous List request,
+   * if any.
+   * 
+ * + * string page_token = 3; + */ + java.lang.String getPageToken(); + /** + *
+   * The next_page_token value returned from a previous List request,
+   * if any.
+   * 
+ * + * string page_token = 3; + */ + com.google.protobuf.ByteString + getPageTokenBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesResponse.java b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesResponse.java new file mode 100644 index 000000000000..7c210959a23f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesResponse.java @@ -0,0 +1,1208 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/v1/cloud_redis.proto + +package com.google.cloud.redis.v1; + +/** + *
+ * Response for [ListInstances][google.cloud.redis.v1.CloudRedis.ListInstances].
+ * 
+ * + * Protobuf type {@code google.cloud.redis.v1.ListInstancesResponse} + */ +public final class ListInstancesResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.ListInstancesResponse) + ListInstancesResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListInstancesResponse.newBuilder() to construct. + private ListInstancesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListInstancesResponse() { + instances_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListInstancesResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + instances_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + instances_.add( + input.readMessage(com.google.cloud.redis.v1.Instance.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + instances_ = java.util.Collections.unmodifiableList(instances_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ListInstancesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ListInstancesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.v1.ListInstancesResponse.class, com.google.cloud.redis.v1.ListInstancesResponse.Builder.class); + } + + private int bitField0_; + public static final int INSTANCES_FIELD_NUMBER = 1; + private java.util.List instances_; + /** + *
+   * A list of Redis instances in the project in the specified location,
+   * or across all locations.
+   * If the `location_id` in the parent field of the request is "-", all regions
+   * available to the project are queried, and the results aggregated.
+   * If in such an aggregated query a location is unavailable, a dummy Redis
+   * entry is included in the response with the "name" field set to a value of
+   * the form projects/{project_id}/locations/{location_id}/instances/- and the
+   * "status" field set to ERROR and "status_message" field set to "location not
+   * available for ListInstances".
+   * 
+ * + * repeated .google.cloud.redis.v1.Instance instances = 1; + */ + public java.util.List getInstancesList() { + return instances_; + } + /** + *
+   * A list of Redis instances in the project in the specified location,
+   * or across all locations.
+   * If the `location_id` in the parent field of the request is "-", all regions
+   * available to the project are queried, and the results aggregated.
+   * If in such an aggregated query a location is unavailable, a dummy Redis
+   * entry is included in the response with the "name" field set to a value of
+   * the form projects/{project_id}/locations/{location_id}/instances/- and the
+   * "status" field set to ERROR and "status_message" field set to "location not
+   * available for ListInstances".
+   * 
+ * + * repeated .google.cloud.redis.v1.Instance instances = 1; + */ + public java.util.List + getInstancesOrBuilderList() { + return instances_; + } + /** + *
+   * A list of Redis instances in the project in the specified location,
+   * or across all locations.
+   * If the `location_id` in the parent field of the request is "-", all regions
+   * available to the project are queried, and the results aggregated.
+   * If in such an aggregated query a location is unavailable, a dummy Redis
+   * entry is included in the response with the "name" field set to a value of
+   * the form projects/{project_id}/locations/{location_id}/instances/- and the
+   * "status" field set to ERROR and "status_message" field set to "location not
+   * available for ListInstances".
+   * 
+ * + * repeated .google.cloud.redis.v1.Instance instances = 1; + */ + public int getInstancesCount() { + return instances_.size(); + } + /** + *
+   * A list of Redis instances in the project in the specified location,
+   * or across all locations.
+   * If the `location_id` in the parent field of the request is "-", all regions
+   * available to the project are queried, and the results aggregated.
+   * If in such an aggregated query a location is unavailable, a dummy Redis
+   * entry is included in the response with the "name" field set to a value of
+   * the form projects/{project_id}/locations/{location_id}/instances/- and the
+   * "status" field set to ERROR and "status_message" field set to "location not
+   * available for ListInstances".
+   * 
+ * + * repeated .google.cloud.redis.v1.Instance instances = 1; + */ + public com.google.cloud.redis.v1.Instance getInstances(int index) { + return instances_.get(index); + } + /** + *
+   * A list of Redis instances in the project in the specified location,
+   * or across all locations.
+   * If the `location_id` in the parent field of the request is "-", all regions
+   * available to the project are queried, and the results aggregated.
+   * If in such an aggregated query a location is unavailable, a dummy Redis
+   * entry is included in the response with the "name" field set to a value of
+   * the form projects/{project_id}/locations/{location_id}/instances/- and the
+   * "status" field set to ERROR and "status_message" field set to "location not
+   * available for ListInstances".
+   * 
+ * + * repeated .google.cloud.redis.v1.Instance instances = 1; + */ + public com.google.cloud.redis.v1.InstanceOrBuilder getInstancesOrBuilder( + int index) { + return instances_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * string next_page_token = 2; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * string next_page_token = 2; + */ + public com.google.protobuf.ByteString + getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < instances_.size(); i++) { + output.writeMessage(1, instances_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < instances_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, instances_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.v1.ListInstancesResponse)) { + return super.equals(obj); + } + com.google.cloud.redis.v1.ListInstancesResponse other = (com.google.cloud.redis.v1.ListInstancesResponse) obj; + + boolean result = true; + result = result && getInstancesList() + .equals(other.getInstancesList()); + result = result && getNextPageToken() + .equals(other.getNextPageToken()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getInstancesCount() > 0) { + hash = (37 * hash) + INSTANCES_FIELD_NUMBER; + hash = (53 * hash) + getInstancesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.v1.ListInstancesResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.redis.v1.ListInstancesResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.redis.v1.ListInstancesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.redis.v1.ListInstancesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.redis.v1.ListInstancesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.redis.v1.ListInstancesResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.redis.v1.ListInstancesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.redis.v1.ListInstancesResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.redis.v1.ListInstancesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.redis.v1.ListInstancesResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.redis.v1.ListInstancesResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.redis.v1.ListInstancesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.redis.v1.ListInstancesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Response for [ListInstances][google.cloud.redis.v1.CloudRedis.ListInstances].
+   * 
+ * + * Protobuf type {@code google.cloud.redis.v1.ListInstancesResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.ListInstancesResponse) + com.google.cloud.redis.v1.ListInstancesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ListInstancesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ListInstancesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.v1.ListInstancesResponse.class, com.google.cloud.redis.v1.ListInstancesResponse.Builder.class); + } + + // Construct using com.google.cloud.redis.v1.ListInstancesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getInstancesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (instancesBuilder_ == null) { + instances_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + instancesBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ListInstancesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.v1.ListInstancesResponse getDefaultInstanceForType() { + return com.google.cloud.redis.v1.ListInstancesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.v1.ListInstancesResponse build() { + com.google.cloud.redis.v1.ListInstancesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.v1.ListInstancesResponse buildPartial() { + com.google.cloud.redis.v1.ListInstancesResponse result = new com.google.cloud.redis.v1.ListInstancesResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (instancesBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + instances_ = java.util.Collections.unmodifiableList(instances_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.instances_ = instances_; + } else { + result.instances_ = instancesBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.v1.ListInstancesResponse) { + return mergeFrom((com.google.cloud.redis.v1.ListInstancesResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.v1.ListInstancesResponse other) { + if (other == com.google.cloud.redis.v1.ListInstancesResponse.getDefaultInstance()) return this; + if (instancesBuilder_ == null) { + if (!other.instances_.isEmpty()) { + if (instances_.isEmpty()) { + instances_ = other.instances_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureInstancesIsMutable(); + instances_.addAll(other.instances_); + } + onChanged(); + } + } else { + if (!other.instances_.isEmpty()) { + if (instancesBuilder_.isEmpty()) { + instancesBuilder_.dispose(); + instancesBuilder_ = null; + instances_ = other.instances_; + bitField0_ = (bitField0_ & ~0x00000001); + instancesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getInstancesFieldBuilder() : null; + } else { + instancesBuilder_.addAllMessages(other.instances_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.redis.v1.ListInstancesResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.redis.v1.ListInstancesResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List instances_ = + java.util.Collections.emptyList(); + private void ensureInstancesIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + instances_ = new java.util.ArrayList(instances_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.v1.Instance, com.google.cloud.redis.v1.Instance.Builder, com.google.cloud.redis.v1.InstanceOrBuilder> instancesBuilder_; + + /** + *
+     * A list of Redis instances in the project in the specified location,
+     * or across all locations.
+     * If the `location_id` in the parent field of the request is "-", all regions
+     * available to the project are queried, and the results aggregated.
+     * If in such an aggregated query a location is unavailable, a dummy Redis
+     * entry is included in the response with the "name" field set to a value of
+     * the form projects/{project_id}/locations/{location_id}/instances/- and the
+     * "status" field set to ERROR and "status_message" field set to "location not
+     * available for ListInstances".
+     * 
+ * + * repeated .google.cloud.redis.v1.Instance instances = 1; + */ + public java.util.List getInstancesList() { + if (instancesBuilder_ == null) { + return java.util.Collections.unmodifiableList(instances_); + } else { + return instancesBuilder_.getMessageList(); + } + } + /** + *
+     * A list of Redis instances in the project in the specified location,
+     * or across all locations.
+     * If the `location_id` in the parent field of the request is "-", all regions
+     * available to the project are queried, and the results aggregated.
+     * If in such an aggregated query a location is unavailable, a dummy Redis
+     * entry is included in the response with the "name" field set to a value of
+     * the form projects/{project_id}/locations/{location_id}/instances/- and the
+     * "status" field set to ERROR and "status_message" field set to "location not
+     * available for ListInstances".
+     * 
+ * + * repeated .google.cloud.redis.v1.Instance instances = 1; + */ + public int getInstancesCount() { + if (instancesBuilder_ == null) { + return instances_.size(); + } else { + return instancesBuilder_.getCount(); + } + } + /** + *
+     * A list of Redis instances in the project in the specified location,
+     * or across all locations.
+     * If the `location_id` in the parent field of the request is "-", all regions
+     * available to the project are queried, and the results aggregated.
+     * If in such an aggregated query a location is unavailable, a dummy Redis
+     * entry is included in the response with the "name" field set to a value of
+     * the form projects/{project_id}/locations/{location_id}/instances/- and the
+     * "status" field set to ERROR and "status_message" field set to "location not
+     * available for ListInstances".
+     * 
+ * + * repeated .google.cloud.redis.v1.Instance instances = 1; + */ + public com.google.cloud.redis.v1.Instance getInstances(int index) { + if (instancesBuilder_ == null) { + return instances_.get(index); + } else { + return instancesBuilder_.getMessage(index); + } + } + /** + *
+     * A list of Redis instances in the project in the specified location,
+     * or across all locations.
+     * If the `location_id` in the parent field of the request is "-", all regions
+     * available to the project are queried, and the results aggregated.
+     * If in such an aggregated query a location is unavailable, a dummy Redis
+     * entry is included in the response with the "name" field set to a value of
+     * the form projects/{project_id}/locations/{location_id}/instances/- and the
+     * "status" field set to ERROR and "status_message" field set to "location not
+     * available for ListInstances".
+     * 
+ * + * repeated .google.cloud.redis.v1.Instance instances = 1; + */ + public Builder setInstances( + int index, com.google.cloud.redis.v1.Instance value) { + if (instancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.set(index, value); + onChanged(); + } else { + instancesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * A list of Redis instances in the project in the specified location,
+     * or across all locations.
+     * If the `location_id` in the parent field of the request is "-", all regions
+     * available to the project are queried, and the results aggregated.
+     * If in such an aggregated query a location is unavailable, a dummy Redis
+     * entry is included in the response with the "name" field set to a value of
+     * the form projects/{project_id}/locations/{location_id}/instances/- and the
+     * "status" field set to ERROR and "status_message" field set to "location not
+     * available for ListInstances".
+     * 
+ * + * repeated .google.cloud.redis.v1.Instance instances = 1; + */ + public Builder setInstances( + int index, com.google.cloud.redis.v1.Instance.Builder builderForValue) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.set(index, builderForValue.build()); + onChanged(); + } else { + instancesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * A list of Redis instances in the project in the specified location,
+     * or across all locations.
+     * If the `location_id` in the parent field of the request is "-", all regions
+     * available to the project are queried, and the results aggregated.
+     * If in such an aggregated query a location is unavailable, a dummy Redis
+     * entry is included in the response with the "name" field set to a value of
+     * the form projects/{project_id}/locations/{location_id}/instances/- and the
+     * "status" field set to ERROR and "status_message" field set to "location not
+     * available for ListInstances".
+     * 
+ * + * repeated .google.cloud.redis.v1.Instance instances = 1; + */ + public Builder addInstances(com.google.cloud.redis.v1.Instance value) { + if (instancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.add(value); + onChanged(); + } else { + instancesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * A list of Redis instances in the project in the specified location,
+     * or across all locations.
+     * If the `location_id` in the parent field of the request is "-", all regions
+     * available to the project are queried, and the results aggregated.
+     * If in such an aggregated query a location is unavailable, a dummy Redis
+     * entry is included in the response with the "name" field set to a value of
+     * the form projects/{project_id}/locations/{location_id}/instances/- and the
+     * "status" field set to ERROR and "status_message" field set to "location not
+     * available for ListInstances".
+     * 
+ * + * repeated .google.cloud.redis.v1.Instance instances = 1; + */ + public Builder addInstances( + int index, com.google.cloud.redis.v1.Instance value) { + if (instancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.add(index, value); + onChanged(); + } else { + instancesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * A list of Redis instances in the project in the specified location,
+     * or across all locations.
+     * If the `location_id` in the parent field of the request is "-", all regions
+     * available to the project are queried, and the results aggregated.
+     * If in such an aggregated query a location is unavailable, a dummy Redis
+     * entry is included in the response with the "name" field set to a value of
+     * the form projects/{project_id}/locations/{location_id}/instances/- and the
+     * "status" field set to ERROR and "status_message" field set to "location not
+     * available for ListInstances".
+     * 
+ * + * repeated .google.cloud.redis.v1.Instance instances = 1; + */ + public Builder addInstances( + com.google.cloud.redis.v1.Instance.Builder builderForValue) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(builderForValue.build()); + onChanged(); + } else { + instancesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * A list of Redis instances in the project in the specified location,
+     * or across all locations.
+     * If the `location_id` in the parent field of the request is "-", all regions
+     * available to the project are queried, and the results aggregated.
+     * If in such an aggregated query a location is unavailable, a dummy Redis
+     * entry is included in the response with the "name" field set to a value of
+     * the form projects/{project_id}/locations/{location_id}/instances/- and the
+     * "status" field set to ERROR and "status_message" field set to "location not
+     * available for ListInstances".
+     * 
+ * + * repeated .google.cloud.redis.v1.Instance instances = 1; + */ + public Builder addInstances( + int index, com.google.cloud.redis.v1.Instance.Builder builderForValue) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(index, builderForValue.build()); + onChanged(); + } else { + instancesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * A list of Redis instances in the project in the specified location,
+     * or across all locations.
+     * If the `location_id` in the parent field of the request is "-", all regions
+     * available to the project are queried, and the results aggregated.
+     * If in such an aggregated query a location is unavailable, a dummy Redis
+     * entry is included in the response with the "name" field set to a value of
+     * the form projects/{project_id}/locations/{location_id}/instances/- and the
+     * "status" field set to ERROR and "status_message" field set to "location not
+     * available for ListInstances".
+     * 
+ * + * repeated .google.cloud.redis.v1.Instance instances = 1; + */ + public Builder addAllInstances( + java.lang.Iterable values) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, instances_); + onChanged(); + } else { + instancesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * A list of Redis instances in the project in the specified location,
+     * or across all locations.
+     * If the `location_id` in the parent field of the request is "-", all regions
+     * available to the project are queried, and the results aggregated.
+     * If in such an aggregated query a location is unavailable, a dummy Redis
+     * entry is included in the response with the "name" field set to a value of
+     * the form projects/{project_id}/locations/{location_id}/instances/- and the
+     * "status" field set to ERROR and "status_message" field set to "location not
+     * available for ListInstances".
+     * 
+ * + * repeated .google.cloud.redis.v1.Instance instances = 1; + */ + public Builder clearInstances() { + if (instancesBuilder_ == null) { + instances_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + instancesBuilder_.clear(); + } + return this; + } + /** + *
+     * A list of Redis instances in the project in the specified location,
+     * or across all locations.
+     * If the `location_id` in the parent field of the request is "-", all regions
+     * available to the project are queried, and the results aggregated.
+     * If in such an aggregated query a location is unavailable, a dummy Redis
+     * entry is included in the response with the "name" field set to a value of
+     * the form projects/{project_id}/locations/{location_id}/instances/- and the
+     * "status" field set to ERROR and "status_message" field set to "location not
+     * available for ListInstances".
+     * 
+ * + * repeated .google.cloud.redis.v1.Instance instances = 1; + */ + public Builder removeInstances(int index) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.remove(index); + onChanged(); + } else { + instancesBuilder_.remove(index); + } + return this; + } + /** + *
+     * A list of Redis instances in the project in the specified location,
+     * or across all locations.
+     * If the `location_id` in the parent field of the request is "-", all regions
+     * available to the project are queried, and the results aggregated.
+     * If in such an aggregated query a location is unavailable, a dummy Redis
+     * entry is included in the response with the "name" field set to a value of
+     * the form projects/{project_id}/locations/{location_id}/instances/- and the
+     * "status" field set to ERROR and "status_message" field set to "location not
+     * available for ListInstances".
+     * 
+ * + * repeated .google.cloud.redis.v1.Instance instances = 1; + */ + public com.google.cloud.redis.v1.Instance.Builder getInstancesBuilder( + int index) { + return getInstancesFieldBuilder().getBuilder(index); + } + /** + *
+     * A list of Redis instances in the project in the specified location,
+     * or across all locations.
+     * If the `location_id` in the parent field of the request is "-", all regions
+     * available to the project are queried, and the results aggregated.
+     * If in such an aggregated query a location is unavailable, a dummy Redis
+     * entry is included in the response with the "name" field set to a value of
+     * the form projects/{project_id}/locations/{location_id}/instances/- and the
+     * "status" field set to ERROR and "status_message" field set to "location not
+     * available for ListInstances".
+     * 
+ * + * repeated .google.cloud.redis.v1.Instance instances = 1; + */ + public com.google.cloud.redis.v1.InstanceOrBuilder getInstancesOrBuilder( + int index) { + if (instancesBuilder_ == null) { + return instances_.get(index); } else { + return instancesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * A list of Redis instances in the project in the specified location,
+     * or across all locations.
+     * If the `location_id` in the parent field of the request is "-", all regions
+     * available to the project are queried, and the results aggregated.
+     * If in such an aggregated query a location is unavailable, a dummy Redis
+     * entry is included in the response with the "name" field set to a value of
+     * the form projects/{project_id}/locations/{location_id}/instances/- and the
+     * "status" field set to ERROR and "status_message" field set to "location not
+     * available for ListInstances".
+     * 
+ * + * repeated .google.cloud.redis.v1.Instance instances = 1; + */ + public java.util.List + getInstancesOrBuilderList() { + if (instancesBuilder_ != null) { + return instancesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(instances_); + } + } + /** + *
+     * A list of Redis instances in the project in the specified location,
+     * or across all locations.
+     * If the `location_id` in the parent field of the request is "-", all regions
+     * available to the project are queried, and the results aggregated.
+     * If in such an aggregated query a location is unavailable, a dummy Redis
+     * entry is included in the response with the "name" field set to a value of
+     * the form projects/{project_id}/locations/{location_id}/instances/- and the
+     * "status" field set to ERROR and "status_message" field set to "location not
+     * available for ListInstances".
+     * 
+ * + * repeated .google.cloud.redis.v1.Instance instances = 1; + */ + public com.google.cloud.redis.v1.Instance.Builder addInstancesBuilder() { + return getInstancesFieldBuilder().addBuilder( + com.google.cloud.redis.v1.Instance.getDefaultInstance()); + } + /** + *
+     * A list of Redis instances in the project in the specified location,
+     * or across all locations.
+     * If the `location_id` in the parent field of the request is "-", all regions
+     * available to the project are queried, and the results aggregated.
+     * If in such an aggregated query a location is unavailable, a dummy Redis
+     * entry is included in the response with the "name" field set to a value of
+     * the form projects/{project_id}/locations/{location_id}/instances/- and the
+     * "status" field set to ERROR and "status_message" field set to "location not
+     * available for ListInstances".
+     * 
+ * + * repeated .google.cloud.redis.v1.Instance instances = 1; + */ + public com.google.cloud.redis.v1.Instance.Builder addInstancesBuilder( + int index) { + return getInstancesFieldBuilder().addBuilder( + index, com.google.cloud.redis.v1.Instance.getDefaultInstance()); + } + /** + *
+     * A list of Redis instances in the project in the specified location,
+     * or across all locations.
+     * If the `location_id` in the parent field of the request is "-", all regions
+     * available to the project are queried, and the results aggregated.
+     * If in such an aggregated query a location is unavailable, a dummy Redis
+     * entry is included in the response with the "name" field set to a value of
+     * the form projects/{project_id}/locations/{location_id}/instances/- and the
+     * "status" field set to ERROR and "status_message" field set to "location not
+     * available for ListInstances".
+     * 
+ * + * repeated .google.cloud.redis.v1.Instance instances = 1; + */ + public java.util.List + getInstancesBuilderList() { + return getInstancesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.v1.Instance, com.google.cloud.redis.v1.Instance.Builder, com.google.cloud.redis.v1.InstanceOrBuilder> + getInstancesFieldBuilder() { + if (instancesBuilder_ == null) { + instancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.v1.Instance, com.google.cloud.redis.v1.Instance.Builder, com.google.cloud.redis.v1.InstanceOrBuilder>( + instances_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + instances_ = null; + } + return instancesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * string next_page_token = 2; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * string next_page_token = 2; + */ + public com.google.protobuf.ByteString + getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.ListInstancesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.ListInstancesResponse) + private static final com.google.cloud.redis.v1.ListInstancesResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.v1.ListInstancesResponse(); + } + + public static com.google.cloud.redis.v1.ListInstancesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListInstancesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListInstancesResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.v1.ListInstancesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesResponseOrBuilder.java new file mode 100644 index 000000000000..f910d3c361e3 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesResponseOrBuilder.java @@ -0,0 +1,113 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/v1/cloud_redis.proto + +package com.google.cloud.redis.v1; + +public interface ListInstancesResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.ListInstancesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * A list of Redis instances in the project in the specified location,
+   * or across all locations.
+   * If the `location_id` in the parent field of the request is "-", all regions
+   * available to the project are queried, and the results aggregated.
+   * If in such an aggregated query a location is unavailable, a dummy Redis
+   * entry is included in the response with the "name" field set to a value of
+   * the form projects/{project_id}/locations/{location_id}/instances/- and the
+   * "status" field set to ERROR and "status_message" field set to "location not
+   * available for ListInstances".
+   * 
+ * + * repeated .google.cloud.redis.v1.Instance instances = 1; + */ + java.util.List + getInstancesList(); + /** + *
+   * A list of Redis instances in the project in the specified location,
+   * or across all locations.
+   * If the `location_id` in the parent field of the request is "-", all regions
+   * available to the project are queried, and the results aggregated.
+   * If in such an aggregated query a location is unavailable, a dummy Redis
+   * entry is included in the response with the "name" field set to a value of
+   * the form projects/{project_id}/locations/{location_id}/instances/- and the
+   * "status" field set to ERROR and "status_message" field set to "location not
+   * available for ListInstances".
+   * 
+ * + * repeated .google.cloud.redis.v1.Instance instances = 1; + */ + com.google.cloud.redis.v1.Instance getInstances(int index); + /** + *
+   * A list of Redis instances in the project in the specified location,
+   * or across all locations.
+   * If the `location_id` in the parent field of the request is "-", all regions
+   * available to the project are queried, and the results aggregated.
+   * If in such an aggregated query a location is unavailable, a dummy Redis
+   * entry is included in the response with the "name" field set to a value of
+   * the form projects/{project_id}/locations/{location_id}/instances/- and the
+   * "status" field set to ERROR and "status_message" field set to "location not
+   * available for ListInstances".
+   * 
+ * + * repeated .google.cloud.redis.v1.Instance instances = 1; + */ + int getInstancesCount(); + /** + *
+   * A list of Redis instances in the project in the specified location,
+   * or across all locations.
+   * If the `location_id` in the parent field of the request is "-", all regions
+   * available to the project are queried, and the results aggregated.
+   * If in such an aggregated query a location is unavailable, a dummy Redis
+   * entry is included in the response with the "name" field set to a value of
+   * the form projects/{project_id}/locations/{location_id}/instances/- and the
+   * "status" field set to ERROR and "status_message" field set to "location not
+   * available for ListInstances".
+   * 
+ * + * repeated .google.cloud.redis.v1.Instance instances = 1; + */ + java.util.List + getInstancesOrBuilderList(); + /** + *
+   * A list of Redis instances in the project in the specified location,
+   * or across all locations.
+   * If the `location_id` in the parent field of the request is "-", all regions
+   * available to the project are queried, and the results aggregated.
+   * If in such an aggregated query a location is unavailable, a dummy Redis
+   * entry is included in the response with the "name" field set to a value of
+   * the form projects/{project_id}/locations/{location_id}/instances/- and the
+   * "status" field set to ERROR and "status_message" field set to "location not
+   * available for ListInstances".
+   * 
+ * + * repeated .google.cloud.redis.v1.Instance instances = 1; + */ + com.google.cloud.redis.v1.InstanceOrBuilder getInstancesOrBuilder( + int index); + + /** + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * string next_page_token = 2; + */ + java.lang.String getNextPageToken(); + /** + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * string next_page_token = 2; + */ + com.google.protobuf.ByteString + getNextPageTokenBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationMetadata.java b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationMetadata.java new file mode 100644 index 000000000000..ed2d4b306a44 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationMetadata.java @@ -0,0 +1,780 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/v1/cloud_redis.proto + +package com.google.cloud.redis.v1; + +/** + *
+ * This location metadata represents additional configuration options for a
+ * given location where a Redis instance may be created. All fields are output
+ * only. It is returned as content of the
+ * `google.cloud.location.Location.metadata` field.
+ * 
+ * + * Protobuf type {@code google.cloud.redis.v1.LocationMetadata} + */ +public final class LocationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.LocationMetadata) + LocationMetadataOrBuilder { +private static final long serialVersionUID = 0L; + // Use LocationMetadata.newBuilder() to construct. + private LocationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LocationMetadata() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LocationMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + availableZones_ = com.google.protobuf.MapField.newMapField( + AvailableZonesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + availableZones__ = input.readMessage( + AvailableZonesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + availableZones_.getMutableMap().put( + availableZones__.getKey(), availableZones__.getValue()); + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_LocationMetadata_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetAvailableZones(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_LocationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.v1.LocationMetadata.class, com.google.cloud.redis.v1.LocationMetadata.Builder.class); + } + + public static final int AVAILABLE_ZONES_FIELD_NUMBER = 1; + private static final class AvailableZonesDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.redis.v1.ZoneMetadata> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_LocationMetadata_AvailableZonesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.redis.v1.ZoneMetadata.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.redis.v1.ZoneMetadata> availableZones_; + private com.google.protobuf.MapField + internalGetAvailableZones() { + if (availableZones_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AvailableZonesDefaultEntryHolder.defaultEntry); + } + return availableZones_; + } + + public int getAvailableZonesCount() { + return internalGetAvailableZones().getMap().size(); + } + /** + *
+   * Output only. The set of available zones in the location. The map is keyed
+   * by the lowercase ID of each zone, as defined by GCE. These keys can be
+   * specified in `location_id` or `alternative_location_id` fields when
+   * creating a Redis instance.
+   * 
+ * + * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1; + */ + + public boolean containsAvailableZones( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetAvailableZones().getMap().containsKey(key); + } + /** + * Use {@link #getAvailableZonesMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getAvailableZones() { + return getAvailableZonesMap(); + } + /** + *
+   * Output only. The set of available zones in the location. The map is keyed
+   * by the lowercase ID of each zone, as defined by GCE. These keys can be
+   * specified in `location_id` or `alternative_location_id` fields when
+   * creating a Redis instance.
+   * 
+ * + * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1; + */ + + public java.util.Map getAvailableZonesMap() { + return internalGetAvailableZones().getMap(); + } + /** + *
+   * Output only. The set of available zones in the location. The map is keyed
+   * by the lowercase ID of each zone, as defined by GCE. These keys can be
+   * specified in `location_id` or `alternative_location_id` fields when
+   * creating a Redis instance.
+   * 
+ * + * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1; + */ + + public com.google.cloud.redis.v1.ZoneMetadata getAvailableZonesOrDefault( + java.lang.String key, + com.google.cloud.redis.v1.ZoneMetadata defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetAvailableZones().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * Output only. The set of available zones in the location. The map is keyed
+   * by the lowercase ID of each zone, as defined by GCE. These keys can be
+   * specified in `location_id` or `alternative_location_id` fields when
+   * creating a Redis instance.
+   * 
+ * + * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1; + */ + + public com.google.cloud.redis.v1.ZoneMetadata getAvailableZonesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetAvailableZones().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetAvailableZones(), + AvailableZonesDefaultEntryHolder.defaultEntry, + 1); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetAvailableZones().getMap().entrySet()) { + com.google.protobuf.MapEntry + availableZones__ = AvailableZonesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, availableZones__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.v1.LocationMetadata)) { + return super.equals(obj); + } + com.google.cloud.redis.v1.LocationMetadata other = (com.google.cloud.redis.v1.LocationMetadata) obj; + + boolean result = true; + result = result && internalGetAvailableZones().equals( + other.internalGetAvailableZones()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetAvailableZones().getMap().isEmpty()) { + hash = (37 * hash) + AVAILABLE_ZONES_FIELD_NUMBER; + hash = (53 * hash) + internalGetAvailableZones().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.v1.LocationMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.redis.v1.LocationMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.redis.v1.LocationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.redis.v1.LocationMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.redis.v1.LocationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.redis.v1.LocationMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.redis.v1.LocationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.redis.v1.LocationMetadata parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.redis.v1.LocationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.redis.v1.LocationMetadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.redis.v1.LocationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.redis.v1.LocationMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.redis.v1.LocationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * This location metadata represents additional configuration options for a
+   * given location where a Redis instance may be created. All fields are output
+   * only. It is returned as content of the
+   * `google.cloud.location.Location.metadata` field.
+   * 
+ * + * Protobuf type {@code google.cloud.redis.v1.LocationMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.LocationMetadata) + com.google.cloud.redis.v1.LocationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_LocationMetadata_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetAvailableZones(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableAvailableZones(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_LocationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.v1.LocationMetadata.class, com.google.cloud.redis.v1.LocationMetadata.Builder.class); + } + + // Construct using com.google.cloud.redis.v1.LocationMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + internalGetMutableAvailableZones().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_LocationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.v1.LocationMetadata getDefaultInstanceForType() { + return com.google.cloud.redis.v1.LocationMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.v1.LocationMetadata build() { + com.google.cloud.redis.v1.LocationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.v1.LocationMetadata buildPartial() { + com.google.cloud.redis.v1.LocationMetadata result = new com.google.cloud.redis.v1.LocationMetadata(this); + int from_bitField0_ = bitField0_; + result.availableZones_ = internalGetAvailableZones(); + result.availableZones_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.v1.LocationMetadata) { + return mergeFrom((com.google.cloud.redis.v1.LocationMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.v1.LocationMetadata other) { + if (other == com.google.cloud.redis.v1.LocationMetadata.getDefaultInstance()) return this; + internalGetMutableAvailableZones().mergeFrom( + other.internalGetAvailableZones()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.redis.v1.LocationMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.redis.v1.LocationMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.redis.v1.ZoneMetadata> availableZones_; + private com.google.protobuf.MapField + internalGetAvailableZones() { + if (availableZones_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AvailableZonesDefaultEntryHolder.defaultEntry); + } + return availableZones_; + } + private com.google.protobuf.MapField + internalGetMutableAvailableZones() { + onChanged();; + if (availableZones_ == null) { + availableZones_ = com.google.protobuf.MapField.newMapField( + AvailableZonesDefaultEntryHolder.defaultEntry); + } + if (!availableZones_.isMutable()) { + availableZones_ = availableZones_.copy(); + } + return availableZones_; + } + + public int getAvailableZonesCount() { + return internalGetAvailableZones().getMap().size(); + } + /** + *
+     * Output only. The set of available zones in the location. The map is keyed
+     * by the lowercase ID of each zone, as defined by GCE. These keys can be
+     * specified in `location_id` or `alternative_location_id` fields when
+     * creating a Redis instance.
+     * 
+ * + * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1; + */ + + public boolean containsAvailableZones( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetAvailableZones().getMap().containsKey(key); + } + /** + * Use {@link #getAvailableZonesMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getAvailableZones() { + return getAvailableZonesMap(); + } + /** + *
+     * Output only. The set of available zones in the location. The map is keyed
+     * by the lowercase ID of each zone, as defined by GCE. These keys can be
+     * specified in `location_id` or `alternative_location_id` fields when
+     * creating a Redis instance.
+     * 
+ * + * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1; + */ + + public java.util.Map getAvailableZonesMap() { + return internalGetAvailableZones().getMap(); + } + /** + *
+     * Output only. The set of available zones in the location. The map is keyed
+     * by the lowercase ID of each zone, as defined by GCE. These keys can be
+     * specified in `location_id` or `alternative_location_id` fields when
+     * creating a Redis instance.
+     * 
+ * + * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1; + */ + + public com.google.cloud.redis.v1.ZoneMetadata getAvailableZonesOrDefault( + java.lang.String key, + com.google.cloud.redis.v1.ZoneMetadata defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetAvailableZones().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Output only. The set of available zones in the location. The map is keyed
+     * by the lowercase ID of each zone, as defined by GCE. These keys can be
+     * specified in `location_id` or `alternative_location_id` fields when
+     * creating a Redis instance.
+     * 
+ * + * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1; + */ + + public com.google.cloud.redis.v1.ZoneMetadata getAvailableZonesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetAvailableZones().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAvailableZones() { + internalGetMutableAvailableZones().getMutableMap() + .clear(); + return this; + } + /** + *
+     * Output only. The set of available zones in the location. The map is keyed
+     * by the lowercase ID of each zone, as defined by GCE. These keys can be
+     * specified in `location_id` or `alternative_location_id` fields when
+     * creating a Redis instance.
+     * 
+ * + * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1; + */ + + public Builder removeAvailableZones( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableAvailableZones().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableAvailableZones() { + return internalGetMutableAvailableZones().getMutableMap(); + } + /** + *
+     * Output only. The set of available zones in the location. The map is keyed
+     * by the lowercase ID of each zone, as defined by GCE. These keys can be
+     * specified in `location_id` or `alternative_location_id` fields when
+     * creating a Redis instance.
+     * 
+ * + * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1; + */ + public Builder putAvailableZones( + java.lang.String key, + com.google.cloud.redis.v1.ZoneMetadata value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableAvailableZones().getMutableMap() + .put(key, value); + return this; + } + /** + *
+     * Output only. The set of available zones in the location. The map is keyed
+     * by the lowercase ID of each zone, as defined by GCE. These keys can be
+     * specified in `location_id` or `alternative_location_id` fields when
+     * creating a Redis instance.
+     * 
+ * + * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1; + */ + + public Builder putAllAvailableZones( + java.util.Map values) { + internalGetMutableAvailableZones().getMutableMap() + .putAll(values); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.LocationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.LocationMetadata) + private static final com.google.cloud.redis.v1.LocationMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.v1.LocationMetadata(); + } + + public static com.google.cloud.redis.v1.LocationMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LocationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LocationMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.v1.LocationMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationMetadataOrBuilder.java b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationMetadataOrBuilder.java new file mode 100644 index 000000000000..885b4fd2e57c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationMetadataOrBuilder.java @@ -0,0 +1,78 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/v1/cloud_redis.proto + +package com.google.cloud.redis.v1; + +public interface LocationMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.LocationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Output only. The set of available zones in the location. The map is keyed
+   * by the lowercase ID of each zone, as defined by GCE. These keys can be
+   * specified in `location_id` or `alternative_location_id` fields when
+   * creating a Redis instance.
+   * 
+ * + * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1; + */ + int getAvailableZonesCount(); + /** + *
+   * Output only. The set of available zones in the location. The map is keyed
+   * by the lowercase ID of each zone, as defined by GCE. These keys can be
+   * specified in `location_id` or `alternative_location_id` fields when
+   * creating a Redis instance.
+   * 
+ * + * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1; + */ + boolean containsAvailableZones( + java.lang.String key); + /** + * Use {@link #getAvailableZonesMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getAvailableZones(); + /** + *
+   * Output only. The set of available zones in the location. The map is keyed
+   * by the lowercase ID of each zone, as defined by GCE. These keys can be
+   * specified in `location_id` or `alternative_location_id` fields when
+   * creating a Redis instance.
+   * 
+ * + * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1; + */ + java.util.Map + getAvailableZonesMap(); + /** + *
+   * Output only. The set of available zones in the location. The map is keyed
+   * by the lowercase ID of each zone, as defined by GCE. These keys can be
+   * specified in `location_id` or `alternative_location_id` fields when
+   * creating a Redis instance.
+   * 
+ * + * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1; + */ + + com.google.cloud.redis.v1.ZoneMetadata getAvailableZonesOrDefault( + java.lang.String key, + com.google.cloud.redis.v1.ZoneMetadata defaultValue); + /** + *
+   * Output only. The set of available zones in the location. The map is keyed
+   * by the lowercase ID of each zone, as defined by GCE. These keys can be
+   * specified in `location_id` or `alternative_location_id` fields when
+   * creating a Redis instance.
+   * 
+ * + * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1; + */ + + com.google.cloud.redis.v1.ZoneMetadata getAvailableZonesOrThrow( + java.lang.String key); +} diff --git a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationName.java b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationName.java new file mode 100644 index 000000000000..74f8cfaaf1ff --- /dev/null +++ b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationName.java @@ -0,0 +1,189 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.cloud.redis.v1; + +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import java.util.Map; +import java.util.ArrayList; +import java.util.List; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class LocationName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}"); + + private volatile Map fieldValuesMap; + + private final String project; + private final String location; + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private LocationName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + } + + public static LocationName of(String project, String location) { + return newBuilder() + .setProject(project) + .setLocation(location) + .build(); + } + + public static String format(String project, String location) { + return newBuilder() + .setProject(project) + .setLocation(location) + .build() + .toString(); + } + + public static LocationName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch(formattedString, "LocationName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (LocationName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldMapBuilder.put("location", location); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("project", project, "location", location); + } + + /** Builder for LocationName. */ + public static class Builder { + + private String project; + private String location; + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + private Builder() { + } + + private Builder(LocationName locationName) { + project = locationName.project; + location = locationName.location; + } + + public LocationName build() { + return new LocationName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof LocationName) { + LocationName that = (LocationName) o; + return (this.project.equals(that.project)) + && (this.location.equals(that.location)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + h *= 1000003; + h ^= location.hashCode(); + return h; + } +} + diff --git a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OperationMetadata.java b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OperationMetadata.java new file mode 100644 index 000000000000..c619ee9cdbf3 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OperationMetadata.java @@ -0,0 +1,1575 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/v1/cloud_redis.proto + +package com.google.cloud.redis.v1; + +/** + *
+ * Represents the v1 metadata of the long-running operation.
+ * 
+ * + * Protobuf type {@code google.cloud.redis.v1.OperationMetadata} + */ +public final class OperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.OperationMetadata) + OperationMetadataOrBuilder { +private static final long serialVersionUID = 0L; + // Use OperationMetadata.newBuilder() to construct. + private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private OperationMetadata() { + target_ = ""; + verb_ = ""; + statusDetail_ = ""; + cancelRequested_ = false; + apiVersion_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private OperationMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + target_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + verb_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + statusDetail_ = s; + break; + } + case 48: { + + cancelRequested_ = input.readBool(); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + apiVersion_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_OperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_OperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.v1.OperationMetadata.class, com.google.cloud.redis.v1.OperationMetadata.Builder.class); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createTime_; + /** + *
+   * Creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + *
+   * Creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + *
+   * Creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + public static final int END_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp endTime_; + /** + *
+   * End timestamp.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public boolean hasEndTime() { + return endTime_ != null; + } + /** + *
+   * End timestamp.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + *
+   * End timestamp.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return getEndTime(); + } + + public static final int TARGET_FIELD_NUMBER = 3; + private volatile java.lang.Object target_; + /** + *
+   * Operation target.
+   * 
+ * + * string target = 3; + */ + public java.lang.String getTarget() { + java.lang.Object ref = target_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + target_ = s; + return s; + } + } + /** + *
+   * Operation target.
+   * 
+ * + * string target = 3; + */ + public com.google.protobuf.ByteString + getTargetBytes() { + java.lang.Object ref = target_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERB_FIELD_NUMBER = 4; + private volatile java.lang.Object verb_; + /** + *
+   * Operation verb.
+   * 
+ * + * string verb = 4; + */ + public java.lang.String getVerb() { + java.lang.Object ref = verb_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + verb_ = s; + return s; + } + } + /** + *
+   * Operation verb.
+   * 
+ * + * string verb = 4; + */ + public com.google.protobuf.ByteString + getVerbBytes() { + java.lang.Object ref = verb_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + verb_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_DETAIL_FIELD_NUMBER = 5; + private volatile java.lang.Object statusDetail_; + /** + *
+   * Operation status details.
+   * 
+ * + * string status_detail = 5; + */ + public java.lang.String getStatusDetail() { + java.lang.Object ref = statusDetail_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusDetail_ = s; + return s; + } + } + /** + *
+   * Operation status details.
+   * 
+ * + * string status_detail = 5; + */ + public com.google.protobuf.ByteString + getStatusDetailBytes() { + java.lang.Object ref = statusDetail_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + statusDetail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CANCEL_REQUESTED_FIELD_NUMBER = 6; + private boolean cancelRequested_; + /** + *
+   * Specifies if cancellation was requested for the operaiton.
+   * 
+ * + * bool cancel_requested = 6; + */ + public boolean getCancelRequested() { + return cancelRequested_; + } + + public static final int API_VERSION_FIELD_NUMBER = 7; + private volatile java.lang.Object apiVersion_; + /** + *
+   * API version.
+   * 
+ * + * string api_version = 7; + */ + public java.lang.String getApiVersion() { + java.lang.Object ref = apiVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + apiVersion_ = s; + return s; + } + } + /** + *
+   * API version.
+   * 
+ * + * string api_version = 7; + */ + public com.google.protobuf.ByteString + getApiVersionBytes() { + java.lang.Object ref = apiVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + apiVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (createTime_ != null) { + output.writeMessage(1, getCreateTime()); + } + if (endTime_ != null) { + output.writeMessage(2, getEndTime()); + } + if (!getTargetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, target_); + } + if (!getVerbBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, verb_); + } + if (!getStatusDetailBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, statusDetail_); + } + if (cancelRequested_ != false) { + output.writeBool(6, cancelRequested_); + } + if (!getApiVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, apiVersion_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); + } + if (endTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); + } + if (!getTargetBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); + } + if (!getVerbBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, verb_); + } + if (!getStatusDetailBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusDetail_); + } + if (cancelRequested_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, cancelRequested_); + } + if (!getApiVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.v1.OperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.redis.v1.OperationMetadata other = (com.google.cloud.redis.v1.OperationMetadata) obj; + + boolean result = true; + result = result && (hasCreateTime() == other.hasCreateTime()); + if (hasCreateTime()) { + result = result && getCreateTime() + .equals(other.getCreateTime()); + } + result = result && (hasEndTime() == other.hasEndTime()); + if (hasEndTime()) { + result = result && getEndTime() + .equals(other.getEndTime()); + } + result = result && getTarget() + .equals(other.getTarget()); + result = result && getVerb() + .equals(other.getVerb()); + result = result && getStatusDetail() + .equals(other.getStatusDetail()); + result = result && (getCancelRequested() + == other.getCancelRequested()); + result = result && getApiVersion() + .equals(other.getApiVersion()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (37 * hash) + TARGET_FIELD_NUMBER; + hash = (53 * hash) + getTarget().hashCode(); + hash = (37 * hash) + VERB_FIELD_NUMBER; + hash = (53 * hash) + getVerb().hashCode(); + hash = (37 * hash) + STATUS_DETAIL_FIELD_NUMBER; + hash = (53 * hash) + getStatusDetail().hashCode(); + hash = (37 * hash) + CANCEL_REQUESTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCancelRequested()); + hash = (37 * hash) + API_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getApiVersion().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.v1.OperationMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.redis.v1.OperationMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.redis.v1.OperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.redis.v1.OperationMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.redis.v1.OperationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.redis.v1.OperationMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.redis.v1.OperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.redis.v1.OperationMetadata parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.redis.v1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.redis.v1.OperationMetadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.redis.v1.OperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.redis.v1.OperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.redis.v1.OperationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Represents the v1 metadata of the long-running operation.
+   * 
+ * + * Protobuf type {@code google.cloud.redis.v1.OperationMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.OperationMetadata) + com.google.cloud.redis.v1.OperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_OperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_OperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.v1.OperationMetadata.class, com.google.cloud.redis.v1.OperationMetadata.Builder.class); + } + + // Construct using com.google.cloud.redis.v1.OperationMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (endTimeBuilder_ == null) { + endTime_ = null; + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + target_ = ""; + + verb_ = ""; + + statusDetail_ = ""; + + cancelRequested_ = false; + + apiVersion_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_OperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.v1.OperationMetadata getDefaultInstanceForType() { + return com.google.cloud.redis.v1.OperationMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.v1.OperationMetadata build() { + com.google.cloud.redis.v1.OperationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.v1.OperationMetadata buildPartial() { + com.google.cloud.redis.v1.OperationMetadata result = new com.google.cloud.redis.v1.OperationMetadata(this); + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (endTimeBuilder_ == null) { + result.endTime_ = endTime_; + } else { + result.endTime_ = endTimeBuilder_.build(); + } + result.target_ = target_; + result.verb_ = verb_; + result.statusDetail_ = statusDetail_; + result.cancelRequested_ = cancelRequested_; + result.apiVersion_ = apiVersion_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.v1.OperationMetadata) { + return mergeFrom((com.google.cloud.redis.v1.OperationMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.v1.OperationMetadata other) { + if (other == com.google.cloud.redis.v1.OperationMetadata.getDefaultInstance()) return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (!other.getTarget().isEmpty()) { + target_ = other.target_; + onChanged(); + } + if (!other.getVerb().isEmpty()) { + verb_ = other.verb_; + onChanged(); + } + if (!other.getStatusDetail().isEmpty()) { + statusDetail_ = other.statusDetail_; + onChanged(); + } + if (other.getCancelRequested() != false) { + setCancelRequested(other.getCancelRequested()); + } + if (!other.getApiVersion().isEmpty()) { + apiVersion_ = other.apiVersion_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.redis.v1.OperationMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.redis.v1.OperationMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.Timestamp createTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + /** + *
+     * Creation timestamp.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public boolean hasCreateTime() { + return createTimeBuilder_ != null || createTime_ != null; + } + /** + *
+     * Creation timestamp.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + *
+     * Creation timestamp.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Creation timestamp.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Creation timestamp.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (createTime_ != null) { + createTime_ = + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Creation timestamp.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * Creation timestamp.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Creation timestamp.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + } + /** + *
+     * Creation timestamp.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + /** + *
+     * End timestamp.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public boolean hasEndTime() { + return endTimeBuilder_ != null || endTime_ != null; + } + /** + *
+     * End timestamp.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + *
+     * End timestamp.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + onChanged(); + } else { + endTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * End timestamp.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + onChanged(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * End timestamp.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (endTime_ != null) { + endTime_ = + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + } else { + endTime_ = value; + } + onChanged(); + } else { + endTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * End timestamp.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder clearEndTime() { + if (endTimeBuilder_ == null) { + endTime_ = null; + onChanged(); + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * End timestamp.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + *
+     * End timestamp.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + *
+     * End timestamp.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + private java.lang.Object target_ = ""; + /** + *
+     * Operation target.
+     * 
+ * + * string target = 3; + */ + public java.lang.String getTarget() { + java.lang.Object ref = target_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + target_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Operation target.
+     * 
+ * + * string target = 3; + */ + public com.google.protobuf.ByteString + getTargetBytes() { + java.lang.Object ref = target_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Operation target.
+     * 
+ * + * string target = 3; + */ + public Builder setTarget( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + target_ = value; + onChanged(); + return this; + } + /** + *
+     * Operation target.
+     * 
+ * + * string target = 3; + */ + public Builder clearTarget() { + + target_ = getDefaultInstance().getTarget(); + onChanged(); + return this; + } + /** + *
+     * Operation target.
+     * 
+ * + * string target = 3; + */ + public Builder setTargetBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + target_ = value; + onChanged(); + return this; + } + + private java.lang.Object verb_ = ""; + /** + *
+     * Operation verb.
+     * 
+ * + * string verb = 4; + */ + public java.lang.String getVerb() { + java.lang.Object ref = verb_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + verb_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Operation verb.
+     * 
+ * + * string verb = 4; + */ + public com.google.protobuf.ByteString + getVerbBytes() { + java.lang.Object ref = verb_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + verb_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Operation verb.
+     * 
+ * + * string verb = 4; + */ + public Builder setVerb( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + verb_ = value; + onChanged(); + return this; + } + /** + *
+     * Operation verb.
+     * 
+ * + * string verb = 4; + */ + public Builder clearVerb() { + + verb_ = getDefaultInstance().getVerb(); + onChanged(); + return this; + } + /** + *
+     * Operation verb.
+     * 
+ * + * string verb = 4; + */ + public Builder setVerbBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + verb_ = value; + onChanged(); + return this; + } + + private java.lang.Object statusDetail_ = ""; + /** + *
+     * Operation status details.
+     * 
+ * + * string status_detail = 5; + */ + public java.lang.String getStatusDetail() { + java.lang.Object ref = statusDetail_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusDetail_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Operation status details.
+     * 
+ * + * string status_detail = 5; + */ + public com.google.protobuf.ByteString + getStatusDetailBytes() { + java.lang.Object ref = statusDetail_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + statusDetail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Operation status details.
+     * 
+ * + * string status_detail = 5; + */ + public Builder setStatusDetail( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + statusDetail_ = value; + onChanged(); + return this; + } + /** + *
+     * Operation status details.
+     * 
+ * + * string status_detail = 5; + */ + public Builder clearStatusDetail() { + + statusDetail_ = getDefaultInstance().getStatusDetail(); + onChanged(); + return this; + } + /** + *
+     * Operation status details.
+     * 
+ * + * string status_detail = 5; + */ + public Builder setStatusDetailBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + statusDetail_ = value; + onChanged(); + return this; + } + + private boolean cancelRequested_ ; + /** + *
+     * Specifies if cancellation was requested for the operaiton.
+     * 
+ * + * bool cancel_requested = 6; + */ + public boolean getCancelRequested() { + return cancelRequested_; + } + /** + *
+     * Specifies if cancellation was requested for the operaiton.
+     * 
+ * + * bool cancel_requested = 6; + */ + public Builder setCancelRequested(boolean value) { + + cancelRequested_ = value; + onChanged(); + return this; + } + /** + *
+     * Specifies if cancellation was requested for the operaiton.
+     * 
+ * + * bool cancel_requested = 6; + */ + public Builder clearCancelRequested() { + + cancelRequested_ = false; + onChanged(); + return this; + } + + private java.lang.Object apiVersion_ = ""; + /** + *
+     * API version.
+     * 
+ * + * string api_version = 7; + */ + public java.lang.String getApiVersion() { + java.lang.Object ref = apiVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + apiVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * API version.
+     * 
+ * + * string api_version = 7; + */ + public com.google.protobuf.ByteString + getApiVersionBytes() { + java.lang.Object ref = apiVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + apiVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * API version.
+     * 
+ * + * string api_version = 7; + */ + public Builder setApiVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + apiVersion_ = value; + onChanged(); + return this; + } + /** + *
+     * API version.
+     * 
+ * + * string api_version = 7; + */ + public Builder clearApiVersion() { + + apiVersion_ = getDefaultInstance().getApiVersion(); + onChanged(); + return this; + } + /** + *
+     * API version.
+     * 
+ * + * string api_version = 7; + */ + public Builder setApiVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + apiVersion_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.OperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.OperationMetadata) + private static final com.google.cloud.redis.v1.OperationMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.v1.OperationMetadata(); + } + + public static com.google.cloud.redis.v1.OperationMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.v1.OperationMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OperationMetadataOrBuilder.java b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OperationMetadataOrBuilder.java new file mode 100644 index 000000000000..232e762aea2b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/OperationMetadataOrBuilder.java @@ -0,0 +1,140 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/v1/cloud_redis.proto + +package com.google.cloud.redis.v1; + +public interface OperationMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.OperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + boolean hasCreateTime(); + /** + *
+   * Creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + *
+   * Creation timestamp.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + *
+   * End timestamp.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + boolean hasEndTime(); + /** + *
+   * End timestamp.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + com.google.protobuf.Timestamp getEndTime(); + /** + *
+   * End timestamp.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + *
+   * Operation target.
+   * 
+ * + * string target = 3; + */ + java.lang.String getTarget(); + /** + *
+   * Operation target.
+   * 
+ * + * string target = 3; + */ + com.google.protobuf.ByteString + getTargetBytes(); + + /** + *
+   * Operation verb.
+   * 
+ * + * string verb = 4; + */ + java.lang.String getVerb(); + /** + *
+   * Operation verb.
+   * 
+ * + * string verb = 4; + */ + com.google.protobuf.ByteString + getVerbBytes(); + + /** + *
+   * Operation status details.
+   * 
+ * + * string status_detail = 5; + */ + java.lang.String getStatusDetail(); + /** + *
+   * Operation status details.
+   * 
+ * + * string status_detail = 5; + */ + com.google.protobuf.ByteString + getStatusDetailBytes(); + + /** + *
+   * Specifies if cancellation was requested for the operaiton.
+   * 
+ * + * bool cancel_requested = 6; + */ + boolean getCancelRequested(); + + /** + *
+   * API version.
+   * 
+ * + * string api_version = 7; + */ + java.lang.String getApiVersion(); + /** + *
+   * API version.
+   * 
+ * + * string api_version = 7; + */ + com.google.protobuf.ByteString + getApiVersionBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpdateInstanceRequest.java b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpdateInstanceRequest.java new file mode 100644 index 000000000000..bda31b4dd122 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpdateInstanceRequest.java @@ -0,0 +1,964 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/v1/cloud_redis.proto + +package com.google.cloud.redis.v1; + +/** + *
+ * Request for [UpdateInstance][google.cloud.redis.v1.CloudRedis.UpdateInstance].
+ * 
+ * + * Protobuf type {@code google.cloud.redis.v1.UpdateInstanceRequest} + */ +public final class UpdateInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.UpdateInstanceRequest) + UpdateInstanceRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use UpdateInstanceRequest.newBuilder() to construct. + private UpdateInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UpdateInstanceRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UpdateInstanceRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.google.cloud.redis.v1.Instance.Builder subBuilder = null; + if (instance_ != null) { + subBuilder = instance_.toBuilder(); + } + instance_ = input.readMessage(com.google.cloud.redis.v1.Instance.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(instance_); + instance_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_UpdateInstanceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_UpdateInstanceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.v1.UpdateInstanceRequest.class, com.google.cloud.redis.v1.UpdateInstanceRequest.Builder.class); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + /** + *
+   * Required. Mask of fields to update. At least one path must be supplied in
+   * this field. The elements of the repeated paths field may only include these
+   * fields from [Instance][CloudRedis.Instance]:
+   *  *   `displayName`
+   *  *   `labels`
+   *  *   `memorySizeGb`
+   *  *   `redisConfig`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1; + */ + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + *
+   * Required. Mask of fields to update. At least one path must be supplied in
+   * this field. The elements of the repeated paths field may only include these
+   * fields from [Instance][CloudRedis.Instance]:
+   *  *   `displayName`
+   *  *   `labels`
+   *  *   `memorySizeGb`
+   *  *   `redisConfig`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + *
+   * Required. Mask of fields to update. At least one path must be supplied in
+   * this field. The elements of the repeated paths field may only include these
+   * fields from [Instance][CloudRedis.Instance]:
+   *  *   `displayName`
+   *  *   `labels`
+   *  *   `memorySizeGb`
+   *  *   `redisConfig`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + public static final int INSTANCE_FIELD_NUMBER = 2; + private com.google.cloud.redis.v1.Instance instance_; + /** + *
+   * Required. Update description.
+   * Only fields specified in update_mask are updated.
+   * 
+ * + * .google.cloud.redis.v1.Instance instance = 2; + */ + public boolean hasInstance() { + return instance_ != null; + } + /** + *
+   * Required. Update description.
+   * Only fields specified in update_mask are updated.
+   * 
+ * + * .google.cloud.redis.v1.Instance instance = 2; + */ + public com.google.cloud.redis.v1.Instance getInstance() { + return instance_ == null ? com.google.cloud.redis.v1.Instance.getDefaultInstance() : instance_; + } + /** + *
+   * Required. Update description.
+   * Only fields specified in update_mask are updated.
+   * 
+ * + * .google.cloud.redis.v1.Instance instance = 2; + */ + public com.google.cloud.redis.v1.InstanceOrBuilder getInstanceOrBuilder() { + return getInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (updateMask_ != null) { + output.writeMessage(1, getUpdateMask()); + } + if (instance_ != null) { + output.writeMessage(2, getInstance()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUpdateMask()); + } + if (instance_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getInstance()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.v1.UpdateInstanceRequest)) { + return super.equals(obj); + } + com.google.cloud.redis.v1.UpdateInstanceRequest other = (com.google.cloud.redis.v1.UpdateInstanceRequest) obj; + + boolean result = true; + result = result && (hasUpdateMask() == other.hasUpdateMask()); + if (hasUpdateMask()) { + result = result && getUpdateMask() + .equals(other.getUpdateMask()); + } + result = result && (hasInstance() == other.hasInstance()); + if (hasInstance()) { + result = result && getInstance() + .equals(other.getInstance()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasInstance()) { + hash = (37 * hash) + INSTANCE_FIELD_NUMBER; + hash = (53 * hash) + getInstance().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.v1.UpdateInstanceRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.redis.v1.UpdateInstanceRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.redis.v1.UpdateInstanceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.redis.v1.UpdateInstanceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.redis.v1.UpdateInstanceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.redis.v1.UpdateInstanceRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.redis.v1.UpdateInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.redis.v1.UpdateInstanceRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.redis.v1.UpdateInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.redis.v1.UpdateInstanceRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.redis.v1.UpdateInstanceRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.redis.v1.UpdateInstanceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.redis.v1.UpdateInstanceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request for [UpdateInstance][google.cloud.redis.v1.CloudRedis.UpdateInstance].
+   * 
+ * + * Protobuf type {@code google.cloud.redis.v1.UpdateInstanceRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.UpdateInstanceRequest) + com.google.cloud.redis.v1.UpdateInstanceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_UpdateInstanceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_UpdateInstanceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.v1.UpdateInstanceRequest.class, com.google.cloud.redis.v1.UpdateInstanceRequest.Builder.class); + } + + // Construct using com.google.cloud.redis.v1.UpdateInstanceRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + if (instanceBuilder_ == null) { + instance_ = null; + } else { + instance_ = null; + instanceBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_UpdateInstanceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.v1.UpdateInstanceRequest getDefaultInstanceForType() { + return com.google.cloud.redis.v1.UpdateInstanceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.v1.UpdateInstanceRequest build() { + com.google.cloud.redis.v1.UpdateInstanceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.v1.UpdateInstanceRequest buildPartial() { + com.google.cloud.redis.v1.UpdateInstanceRequest result = new com.google.cloud.redis.v1.UpdateInstanceRequest(this); + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + if (instanceBuilder_ == null) { + result.instance_ = instance_; + } else { + result.instance_ = instanceBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.v1.UpdateInstanceRequest) { + return mergeFrom((com.google.cloud.redis.v1.UpdateInstanceRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.v1.UpdateInstanceRequest other) { + if (other == com.google.cloud.redis.v1.UpdateInstanceRequest.getDefaultInstance()) return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasInstance()) { + mergeInstance(other.getInstance()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.redis.v1.UpdateInstanceRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.redis.v1.UpdateInstanceRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.FieldMask updateMask_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + /** + *
+     * Required. Mask of fields to update. At least one path must be supplied in
+     * this field. The elements of the repeated paths field may only include these
+     * fields from [Instance][CloudRedis.Instance]:
+     *  *   `displayName`
+     *  *   `labels`
+     *  *   `memorySizeGb`
+     *  *   `redisConfig`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1; + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + *
+     * Required. Mask of fields to update. At least one path must be supplied in
+     * this field. The elements of the repeated paths field may only include these
+     * fields from [Instance][CloudRedis.Instance]:
+     *  *   `displayName`
+     *  *   `labels`
+     *  *   `memorySizeGb`
+     *  *   `redisConfig`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + *
+     * Required. Mask of fields to update. At least one path must be supplied in
+     * this field. The elements of the repeated paths field may only include these
+     * fields from [Instance][CloudRedis.Instance]:
+     *  *   `displayName`
+     *  *   `labels`
+     *  *   `memorySizeGb`
+     *  *   `redisConfig`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Required. Mask of fields to update. At least one path must be supplied in
+     * this field. The elements of the repeated paths field may only include these
+     * fields from [Instance][CloudRedis.Instance]:
+     *  *   `displayName`
+     *  *   `labels`
+     *  *   `memorySizeGb`
+     *  *   `redisConfig`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1; + */ + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Required. Mask of fields to update. At least one path must be supplied in
+     * this field. The elements of the repeated paths field may only include these
+     * fields from [Instance][CloudRedis.Instance]:
+     *  *   `displayName`
+     *  *   `labels`
+     *  *   `memorySizeGb`
+     *  *   `redisConfig`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Required. Mask of fields to update. At least one path must be supplied in
+     * this field. The elements of the repeated paths field may only include these
+     * fields from [Instance][CloudRedis.Instance]:
+     *  *   `displayName`
+     *  *   `labels`
+     *  *   `memorySizeGb`
+     *  *   `redisConfig`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1; + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + *
+     * Required. Mask of fields to update. At least one path must be supplied in
+     * this field. The elements of the repeated paths field may only include these
+     * fields from [Instance][CloudRedis.Instance]:
+     *  *   `displayName`
+     *  *   `labels`
+     *  *   `memorySizeGb`
+     *  *   `redisConfig`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + *
+     * Required. Mask of fields to update. At least one path must be supplied in
+     * this field. The elements of the repeated paths field may only include these
+     * fields from [Instance][CloudRedis.Instance]:
+     *  *   `displayName`
+     *  *   `labels`
+     *  *   `memorySizeGb`
+     *  *   `redisConfig`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + } + /** + *
+     * Required. Mask of fields to update. At least one path must be supplied in
+     * this field. The elements of the repeated paths field may only include these
+     * fields from [Instance][CloudRedis.Instance]:
+     *  *   `displayName`
+     *  *   `labels`
+     *  *   `memorySizeGb`
+     *  *   `redisConfig`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.redis.v1.Instance instance_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.v1.Instance, com.google.cloud.redis.v1.Instance.Builder, com.google.cloud.redis.v1.InstanceOrBuilder> instanceBuilder_; + /** + *
+     * Required. Update description.
+     * Only fields specified in update_mask are updated.
+     * 
+ * + * .google.cloud.redis.v1.Instance instance = 2; + */ + public boolean hasInstance() { + return instanceBuilder_ != null || instance_ != null; + } + /** + *
+     * Required. Update description.
+     * Only fields specified in update_mask are updated.
+     * 
+ * + * .google.cloud.redis.v1.Instance instance = 2; + */ + public com.google.cloud.redis.v1.Instance getInstance() { + if (instanceBuilder_ == null) { + return instance_ == null ? com.google.cloud.redis.v1.Instance.getDefaultInstance() : instance_; + } else { + return instanceBuilder_.getMessage(); + } + } + /** + *
+     * Required. Update description.
+     * Only fields specified in update_mask are updated.
+     * 
+ * + * .google.cloud.redis.v1.Instance instance = 2; + */ + public Builder setInstance(com.google.cloud.redis.v1.Instance value) { + if (instanceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + instance_ = value; + onChanged(); + } else { + instanceBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Required. Update description.
+     * Only fields specified in update_mask are updated.
+     * 
+ * + * .google.cloud.redis.v1.Instance instance = 2; + */ + public Builder setInstance( + com.google.cloud.redis.v1.Instance.Builder builderForValue) { + if (instanceBuilder_ == null) { + instance_ = builderForValue.build(); + onChanged(); + } else { + instanceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Required. Update description.
+     * Only fields specified in update_mask are updated.
+     * 
+ * + * .google.cloud.redis.v1.Instance instance = 2; + */ + public Builder mergeInstance(com.google.cloud.redis.v1.Instance value) { + if (instanceBuilder_ == null) { + if (instance_ != null) { + instance_ = + com.google.cloud.redis.v1.Instance.newBuilder(instance_).mergeFrom(value).buildPartial(); + } else { + instance_ = value; + } + onChanged(); + } else { + instanceBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Required. Update description.
+     * Only fields specified in update_mask are updated.
+     * 
+ * + * .google.cloud.redis.v1.Instance instance = 2; + */ + public Builder clearInstance() { + if (instanceBuilder_ == null) { + instance_ = null; + onChanged(); + } else { + instance_ = null; + instanceBuilder_ = null; + } + + return this; + } + /** + *
+     * Required. Update description.
+     * Only fields specified in update_mask are updated.
+     * 
+ * + * .google.cloud.redis.v1.Instance instance = 2; + */ + public com.google.cloud.redis.v1.Instance.Builder getInstanceBuilder() { + + onChanged(); + return getInstanceFieldBuilder().getBuilder(); + } + /** + *
+     * Required. Update description.
+     * Only fields specified in update_mask are updated.
+     * 
+ * + * .google.cloud.redis.v1.Instance instance = 2; + */ + public com.google.cloud.redis.v1.InstanceOrBuilder getInstanceOrBuilder() { + if (instanceBuilder_ != null) { + return instanceBuilder_.getMessageOrBuilder(); + } else { + return instance_ == null ? + com.google.cloud.redis.v1.Instance.getDefaultInstance() : instance_; + } + } + /** + *
+     * Required. Update description.
+     * Only fields specified in update_mask are updated.
+     * 
+ * + * .google.cloud.redis.v1.Instance instance = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.v1.Instance, com.google.cloud.redis.v1.Instance.Builder, com.google.cloud.redis.v1.InstanceOrBuilder> + getInstanceFieldBuilder() { + if (instanceBuilder_ == null) { + instanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.v1.Instance, com.google.cloud.redis.v1.Instance.Builder, com.google.cloud.redis.v1.InstanceOrBuilder>( + getInstance(), + getParentForChildren(), + isClean()); + instance_ = null; + } + return instanceBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.UpdateInstanceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.UpdateInstanceRequest) + private static final com.google.cloud.redis.v1.UpdateInstanceRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.v1.UpdateInstanceRequest(); + } + + public static com.google.cloud.redis.v1.UpdateInstanceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateInstanceRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.v1.UpdateInstanceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpdateInstanceRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpdateInstanceRequestOrBuilder.java new file mode 100644 index 000000000000..740cacb81b72 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpdateInstanceRequestOrBuilder.java @@ -0,0 +1,80 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/v1/cloud_redis.proto + +package com.google.cloud.redis.v1; + +public interface UpdateInstanceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.UpdateInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Mask of fields to update. At least one path must be supplied in
+   * this field. The elements of the repeated paths field may only include these
+   * fields from [Instance][CloudRedis.Instance]:
+   *  *   `displayName`
+   *  *   `labels`
+   *  *   `memorySizeGb`
+   *  *   `redisConfig`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1; + */ + boolean hasUpdateMask(); + /** + *
+   * Required. Mask of fields to update. At least one path must be supplied in
+   * this field. The elements of the repeated paths field may only include these
+   * fields from [Instance][CloudRedis.Instance]:
+   *  *   `displayName`
+   *  *   `labels`
+   *  *   `memorySizeGb`
+   *  *   `redisConfig`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1; + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + *
+   * Required. Mask of fields to update. At least one path must be supplied in
+   * this field. The elements of the repeated paths field may only include these
+   * fields from [Instance][CloudRedis.Instance]:
+   *  *   `displayName`
+   *  *   `labels`
+   *  *   `memorySizeGb`
+   *  *   `redisConfig`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + *
+   * Required. Update description.
+   * Only fields specified in update_mask are updated.
+   * 
+ * + * .google.cloud.redis.v1.Instance instance = 2; + */ + boolean hasInstance(); + /** + *
+   * Required. Update description.
+   * Only fields specified in update_mask are updated.
+   * 
+ * + * .google.cloud.redis.v1.Instance instance = 2; + */ + com.google.cloud.redis.v1.Instance getInstance(); + /** + *
+   * Required. Update description.
+   * Only fields specified in update_mask are updated.
+   * 
+ * + * .google.cloud.redis.v1.Instance instance = 2; + */ + com.google.cloud.redis.v1.InstanceOrBuilder getInstanceOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ZoneMetadata.java b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ZoneMetadata.java new file mode 100644 index 000000000000..1fe4d178caaa --- /dev/null +++ b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ZoneMetadata.java @@ -0,0 +1,423 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/v1/cloud_redis.proto + +package com.google.cloud.redis.v1; + +/** + *
+ * Defines specific information for a particular zone. Currently empty and
+ * reserved for future use only.
+ * 
+ * + * Protobuf type {@code google.cloud.redis.v1.ZoneMetadata} + */ +public final class ZoneMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.ZoneMetadata) + ZoneMetadataOrBuilder { +private static final long serialVersionUID = 0L; + // Use ZoneMetadata.newBuilder() to construct. + private ZoneMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ZoneMetadata() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ZoneMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ZoneMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ZoneMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.v1.ZoneMetadata.class, com.google.cloud.redis.v1.ZoneMetadata.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.v1.ZoneMetadata)) { + return super.equals(obj); + } + com.google.cloud.redis.v1.ZoneMetadata other = (com.google.cloud.redis.v1.ZoneMetadata) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.v1.ZoneMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.redis.v1.ZoneMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.redis.v1.ZoneMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.redis.v1.ZoneMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.redis.v1.ZoneMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.redis.v1.ZoneMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.redis.v1.ZoneMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.redis.v1.ZoneMetadata parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.redis.v1.ZoneMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.redis.v1.ZoneMetadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.redis.v1.ZoneMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.redis.v1.ZoneMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.redis.v1.ZoneMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Defines specific information for a particular zone. Currently empty and
+   * reserved for future use only.
+   * 
+ * + * Protobuf type {@code google.cloud.redis.v1.ZoneMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1.ZoneMetadata) + com.google.cloud.redis.v1.ZoneMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ZoneMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ZoneMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.v1.ZoneMetadata.class, com.google.cloud.redis.v1.ZoneMetadata.Builder.class); + } + + // Construct using com.google.cloud.redis.v1.ZoneMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ZoneMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.v1.ZoneMetadata getDefaultInstanceForType() { + return com.google.cloud.redis.v1.ZoneMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.v1.ZoneMetadata build() { + com.google.cloud.redis.v1.ZoneMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.v1.ZoneMetadata buildPartial() { + com.google.cloud.redis.v1.ZoneMetadata result = new com.google.cloud.redis.v1.ZoneMetadata(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.v1.ZoneMetadata) { + return mergeFrom((com.google.cloud.redis.v1.ZoneMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.v1.ZoneMetadata other) { + if (other == com.google.cloud.redis.v1.ZoneMetadata.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.redis.v1.ZoneMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.redis.v1.ZoneMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.ZoneMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.ZoneMetadata) + private static final com.google.cloud.redis.v1.ZoneMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.v1.ZoneMetadata(); + } + + public static com.google.cloud.redis.v1.ZoneMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ZoneMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ZoneMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.v1.ZoneMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ZoneMetadataOrBuilder.java b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ZoneMetadataOrBuilder.java new file mode 100644 index 000000000000..826f3203d113 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ZoneMetadataOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/v1/cloud_redis.proto + +package com.google.cloud.redis.v1; + +public interface ZoneMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.ZoneMetadata) + com.google.protobuf.MessageOrBuilder { +} diff --git a/google-api-grpc/proto-google-cloud-redis-v1/src/main/proto/google/cloud/redis/v1/cloud_redis.proto b/google-api-grpc/proto-google-cloud-redis-v1/src/main/proto/google/cloud/redis/v1/cloud_redis.proto new file mode 100644 index 000000000000..bf2cc0fe6b04 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-redis-v1/src/main/proto/google/cloud/redis/v1/cloud_redis.proto @@ -0,0 +1,368 @@ +// Copyright 2018 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.redis.v1; + +import "google/api/annotations.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/redis/v1;redis"; +option java_multiple_files = true; +option java_outer_classname = "CloudRedisServiceV1Proto"; +option java_package = "com.google.cloud.redis.v1"; + + +// Configures and manages Cloud Memorystore for Redis instances +// +// Google Cloud Memorystore for Redis v1 +// +// The `redis.googleapis.com` service implements the Google Cloud Memorystore +// for Redis API and defines the following resource model for managing Redis +// instances: +// * The service works with a collection of cloud projects, named: `/projects/*` +// * Each project has a collection of available locations, named: `/locations/*` +// * Each location has a collection of Redis instances, named: `/instances/*` +// * As such, Redis instances are resources of the form: +// `/projects/{project_id}/locations/{location_id}/instances/{instance_id}` +// +// Note that location_id must be refering to a GCP `region`; for example: +// * `projects/redpepper-1290/locations/us-central1/instances/my-redis` +service CloudRedis { + // Lists all Redis instances owned by a project in either the specified + // location (region) or all locations. + // + // The location should have the following format: + // * `projects/{project_id}/locations/{location_id}` + // + // If `location_id` is specified as `-` (wildcard), then all regions + // available to the project are queried, and the results are aggregated. + rpc ListInstances(ListInstancesRequest) returns (ListInstancesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/instances" + }; + } + + // Gets the details of a specific Redis instance. + rpc GetInstance(GetInstanceRequest) returns (Instance) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/instances/*}" + }; + } + + // Creates a Redis instance based on the specified tier and memory size. + // + // By default, the instance is accessible from the project's + // [default network](/compute/docs/networks-and-firewalls#networks). + // + // The creation is executed asynchronously and callers may check the returned + // operation to track its progress. Once the operation is completed the Redis + // instance will be fully functional. Completed longrunning.Operation will + // contain the new instance object in the response field. + // + // The returned operation is automatically deleted after a few hours, so there + // is no need to call DeleteOperation. + rpc CreateInstance(CreateInstanceRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/instances" + body: "instance" + }; + } + + // Updates the metadata and configuration of a specific Redis instance. + // + // Completed longrunning.Operation will contain the new instance object + // in the response field. The returned operation is automatically deleted + // after a few hours, so there is no need to call DeleteOperation. + rpc UpdateInstance(UpdateInstanceRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{instance.name=projects/*/locations/*/instances/*}" + body: "instance" + }; + } + + // Deletes a specific Redis instance. Instance stops serving and data is + // deleted. + rpc DeleteInstance(DeleteInstanceRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/instances/*}" + }; + } +} + +// A Google Cloud Redis instance. +message Instance { + // Represents the different states of a Redis instance. + enum State { + // Not set. + STATE_UNSPECIFIED = 0; + + // Redis instance is being created. + CREATING = 1; + + // Redis instance has been created and is fully usable. + READY = 2; + + // Redis instance configuration is being updated. Certain kinds of updates + // may cause the instance to become unusable while the update is in + // progress. + UPDATING = 3; + + // Redis instance is being deleted. + DELETING = 4; + + // Redis instance is being repaired and may be unusable. Details can be + // found in the `status_message` field. + REPAIRING = 5; + + // Maintenance is being performed on this Redis instance. + MAINTENANCE = 6; + } + + // Available service tiers to choose from + enum Tier { + // Not set. + TIER_UNSPECIFIED = 0; + + // BASIC tier: standalone instance + BASIC = 1; + + // STANDARD_HA tier: highly available primary/replica instances + STANDARD_HA = 3; + } + + // Required. Unique name of the resource in this scope including project and + // location using the form: + // `projects/{project_id}/locations/{location_id}/instances/{instance_id}` + // + // Note: Redis instances are managed and addressed at regional level so + // location_id here refers to a GCP region; however, users may choose which + // specific zone (or collection of zones for cross-zone instances) an instance + // should be provisioned in. Refer to [location_id] and + // [alternative_location_id] fields for more details. + string name = 1; + + // An arbitrary and optional user-provided name for the instance. + string display_name = 2; + + // Resource labels to represent user provided metadata + map labels = 3; + + // Optional. The zone where the instance will be provisioned. If not provided, + // the service will choose a zone for the instance. For STANDARD_HA tier, + // instances will be created across two zones for protection against zonal + // failures. If [alternative_location_id] is also provided, it must be + // different from [location_id]. + string location_id = 4; + + // Optional. Only applicable to STANDARD_HA tier which protects the instance + // against zonal failures by provisioning it across two zones. If provided, it + // must be a different zone from the one provided in [location_id]. + string alternative_location_id = 5; + + // Optional. The version of Redis software. + // If not provided, latest supported version will be used. Updating the + // version will perform an upgrade/downgrade to the new version. Currently, + // the supported values are `REDIS_3_2` for Redis 3.2. + string redis_version = 7; + + // Optional. The CIDR range of internal addresses that are reserved for this + // instance. If not provided, the service will choose an unused /29 block, + // for example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be unique + // and non-overlapping with existing subnets in an authorized network. + string reserved_ip_range = 9; + + // Output only. Hostname or IP address of the exposed Redis endpoint used by + // clients to connect to the service. + string host = 10; + + // Output only. The port number of the exposed Redis endpoint. + int32 port = 11; + + // Output only. The current zone where the Redis endpoint is placed. For Basic + // Tier instances, this will always be the same as the [location_id] + // provided by the user at creation time. For Standard Tier instances, + // this can be either [location_id] or [alternative_location_id] and can + // change after a failover event. + string current_location_id = 12; + + // Output only. The time the instance was created. + google.protobuf.Timestamp create_time = 13; + + // Output only. The current state of this instance. + State state = 14; + + // Output only. Additional information about the current status of this + // instance, if available. + string status_message = 15; + + // Optional. Redis configuration parameters, according to + // http://redis.io/topics/config. Currently, the only supported parameters + // are: + // + // * maxmemory-policy + // * notify-keyspace-events + map redis_configs = 16; + + // Required. The service tier of the instance. + Tier tier = 17; + + // Required. Redis memory size in GiB. + int32 memory_size_gb = 18; + + // Optional. The full name of the Google Compute Engine + // [network](/compute/docs/networks-and-firewalls#networks) to which the + // instance is connected. If left unspecified, the `default` network + // will be used. + string authorized_network = 20; +} + +// Request for [ListInstances][google.cloud.redis.v1.CloudRedis.ListInstances]. +message ListInstancesRequest { + // Required. The resource name of the instance location using the form: + // `projects/{project_id}/locations/{location_id}` + // where `location_id` refers to a GCP region + string parent = 1; + + // The maximum number of items to return. + // + // If not specified, a default value of 1000 will be used by the service. + // Regardless of the page_size value, the response may include a partial list + // and a caller should only rely on response's + // [next_page_token][CloudRedis.ListInstancesResponse.next_page_token] + // to determine if there are more instances left to be queried. + int32 page_size = 2; + + // The next_page_token value returned from a previous List request, + // if any. + string page_token = 3; +} + +// Response for [ListInstances][google.cloud.redis.v1.CloudRedis.ListInstances]. +message ListInstancesResponse { + // A list of Redis instances in the project in the specified location, + // or across all locations. + // + // If the `location_id` in the parent field of the request is "-", all regions + // available to the project are queried, and the results aggregated. + // If in such an aggregated query a location is unavailable, a dummy Redis + // entry is included in the response with the "name" field set to a value of + // the form projects/{project_id}/locations/{location_id}/instances/- and the + // "status" field set to ERROR and "status_message" field set to "location not + // available for ListInstances". + repeated Instance instances = 1; + + // Token to retrieve the next page of results, or empty if there are no more + // results in the list. + string next_page_token = 2; +} + +// Request for [GetInstance][google.cloud.redis.v1.CloudRedis.GetInstance]. +message GetInstanceRequest { + // Required. Redis instance resource name using the form: + // `projects/{project_id}/locations/{location_id}/instances/{instance_id}` + // where `location_id` refers to a GCP region + string name = 1; +} + +// Request for [CreateInstance][google.cloud.redis.v1.CloudRedis.CreateInstance]. +message CreateInstanceRequest { + // Required. The resource name of the instance location using the form: + // `projects/{project_id}/locations/{location_id}` + // where `location_id` refers to a GCP region + string parent = 1; + + // Required. The logical name of the Redis instance in the customer project + // with the following restrictions: + // + // * Must contain only lowercase letters, numbers, and hyphens. + // * Must start with a letter. + // * Must be between 1-40 characters. + // * Must end with a number or a letter. + // * Must be unique within the customer project / location + string instance_id = 2; + + // Required. A Redis [Instance] resource + Instance instance = 3; +} + +// Request for [UpdateInstance][google.cloud.redis.v1.CloudRedis.UpdateInstance]. +message UpdateInstanceRequest { + // Required. Mask of fields to update. At least one path must be supplied in + // this field. The elements of the repeated paths field may only include these + // fields from [Instance][CloudRedis.Instance]: + // + // * `displayName` + // * `labels` + // * `memorySizeGb` + // * `redisConfig` + google.protobuf.FieldMask update_mask = 1; + + // Required. Update description. + // Only fields specified in update_mask are updated. + Instance instance = 2; +} + +// Request for [DeleteInstance][google.cloud.redis.v1.CloudRedis.DeleteInstance]. +message DeleteInstanceRequest { + // Required. Redis instance resource name using the form: + // `projects/{project_id}/locations/{location_id}/instances/{instance_id}` + // where `location_id` refers to a GCP region + string name = 1; +} + +// Represents the v1 metadata of the long-running operation. +message OperationMetadata { + // Creation timestamp. + google.protobuf.Timestamp create_time = 1; + + // End timestamp. + google.protobuf.Timestamp end_time = 2; + + // Operation target. + string target = 3; + + // Operation verb. + string verb = 4; + + // Operation status details. + string status_detail = 5; + + // Specifies if cancellation was requested for the operaiton. + bool cancel_requested = 6; + + // API version. + string api_version = 7; +} + +// This location metadata represents additional configuration options for a +// given location where a Redis instance may be created. All fields are output +// only. It is returned as content of the +// `google.cloud.location.Location.metadata` field. +message LocationMetadata { + // Output only. The set of available zones in the location. The map is keyed + // by the lowercase ID of each zone, as defined by GCE. These keys can be + // specified in `location_id` or `alternative_location_id` fields when + // creating a Redis instance. + map available_zones = 1; +} + +// Defines specific information for a particular zone. Currently empty and +// reserved for future use only. +message ZoneMetadata { + +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml new file mode 100644 index 000000000000..6a4e705d62b0 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml @@ -0,0 +1,26 @@ + + 4.0.0 + proto-google-cloud-video-intelligence-v1p2beta1 + 0.26.1-SNAPSHOT + proto-google-cloud-video-intelligence-v1p2beta1 + PROTO library for proto-google-cloud-video-intelligence-v1p2beta1 + + com.google.api.grpc + google-api-grpc + 0.26.1-SNAPSHOT + + + + com.google.protobuf + protobuf-java + compile + + + com.google.api.grpc + proto-google-common-protos + compile + + + diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/AnnotateVideoProgress.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/AnnotateVideoProgress.java new file mode 100644 index 000000000000..d88c9192eaf1 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/AnnotateVideoProgress.java @@ -0,0 +1,863 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +/** + *
+ * Video annotation progress. Included in the `metadata`
+ * field of the `Operation` returned by the `GetOperation`
+ * call of the `google::longrunning::Operations` service.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress} + */ +public final class AnnotateVideoProgress extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress) + AnnotateVideoProgressOrBuilder { +private static final long serialVersionUID = 0L; + // Use AnnotateVideoProgress.newBuilder() to construct. + private AnnotateVideoProgress(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AnnotateVideoProgress() { + annotationProgress_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AnnotateVideoProgress( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + annotationProgress_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + annotationProgress_.add( + input.readMessage(com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + annotationProgress_ = java.util.Collections.unmodifiableList(annotationProgress_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_AnnotateVideoProgress_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_AnnotateVideoProgress_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress.class, com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress.Builder.class); + } + + public static final int ANNOTATION_PROGRESS_FIELD_NUMBER = 1; + private java.util.List annotationProgress_; + /** + *
+   * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1; + */ + public java.util.List getAnnotationProgressList() { + return annotationProgress_; + } + /** + *
+   * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1; + */ + public java.util.List + getAnnotationProgressOrBuilderList() { + return annotationProgress_; + } + /** + *
+   * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1; + */ + public int getAnnotationProgressCount() { + return annotationProgress_.size(); + } + /** + *
+   * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress getAnnotationProgress(int index) { + return annotationProgress_.get(index); + } + /** + *
+   * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgressOrBuilder getAnnotationProgressOrBuilder( + int index) { + return annotationProgress_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < annotationProgress_.size(); i++) { + output.writeMessage(1, annotationProgress_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < annotationProgress_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, annotationProgress_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress other = (com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress) obj; + + boolean result = true; + result = result && getAnnotationProgressList() + .equals(other.getAnnotationProgressList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAnnotationProgressCount() > 0) { + hash = (37 * hash) + ANNOTATION_PROGRESS_FIELD_NUMBER; + hash = (53 * hash) + getAnnotationProgressList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Video annotation progress. Included in the `metadata`
+   * field of the `Operation` returned by the `GetOperation`
+   * call of the `google::longrunning::Operations` service.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress) + com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgressOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_AnnotateVideoProgress_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_AnnotateVideoProgress_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress.class, com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress.Builder.class); + } + + // Construct using com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getAnnotationProgressFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (annotationProgressBuilder_ == null) { + annotationProgress_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + annotationProgressBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_AnnotateVideoProgress_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress build() { + com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress buildPartial() { + com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress result = new com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress(this); + int from_bitField0_ = bitField0_; + if (annotationProgressBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + annotationProgress_ = java.util.Collections.unmodifiableList(annotationProgress_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.annotationProgress_ = annotationProgress_; + } else { + result.annotationProgress_ = annotationProgressBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress) { + return mergeFrom((com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress other) { + if (other == com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress.getDefaultInstance()) return this; + if (annotationProgressBuilder_ == null) { + if (!other.annotationProgress_.isEmpty()) { + if (annotationProgress_.isEmpty()) { + annotationProgress_ = other.annotationProgress_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAnnotationProgressIsMutable(); + annotationProgress_.addAll(other.annotationProgress_); + } + onChanged(); + } + } else { + if (!other.annotationProgress_.isEmpty()) { + if (annotationProgressBuilder_.isEmpty()) { + annotationProgressBuilder_.dispose(); + annotationProgressBuilder_ = null; + annotationProgress_ = other.annotationProgress_; + bitField0_ = (bitField0_ & ~0x00000001); + annotationProgressBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAnnotationProgressFieldBuilder() : null; + } else { + annotationProgressBuilder_.addAllMessages(other.annotationProgress_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List annotationProgress_ = + java.util.Collections.emptyList(); + private void ensureAnnotationProgressIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + annotationProgress_ = new java.util.ArrayList(annotationProgress_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress, com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress.Builder, com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgressOrBuilder> annotationProgressBuilder_; + + /** + *
+     * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1; + */ + public java.util.List getAnnotationProgressList() { + if (annotationProgressBuilder_ == null) { + return java.util.Collections.unmodifiableList(annotationProgress_); + } else { + return annotationProgressBuilder_.getMessageList(); + } + } + /** + *
+     * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1; + */ + public int getAnnotationProgressCount() { + if (annotationProgressBuilder_ == null) { + return annotationProgress_.size(); + } else { + return annotationProgressBuilder_.getCount(); + } + } + /** + *
+     * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress getAnnotationProgress(int index) { + if (annotationProgressBuilder_ == null) { + return annotationProgress_.get(index); + } else { + return annotationProgressBuilder_.getMessage(index); + } + } + /** + *
+     * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1; + */ + public Builder setAnnotationProgress( + int index, com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress value) { + if (annotationProgressBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationProgressIsMutable(); + annotationProgress_.set(index, value); + onChanged(); + } else { + annotationProgressBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1; + */ + public Builder setAnnotationProgress( + int index, com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress.Builder builderForValue) { + if (annotationProgressBuilder_ == null) { + ensureAnnotationProgressIsMutable(); + annotationProgress_.set(index, builderForValue.build()); + onChanged(); + } else { + annotationProgressBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1; + */ + public Builder addAnnotationProgress(com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress value) { + if (annotationProgressBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationProgressIsMutable(); + annotationProgress_.add(value); + onChanged(); + } else { + annotationProgressBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1; + */ + public Builder addAnnotationProgress( + int index, com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress value) { + if (annotationProgressBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationProgressIsMutable(); + annotationProgress_.add(index, value); + onChanged(); + } else { + annotationProgressBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1; + */ + public Builder addAnnotationProgress( + com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress.Builder builderForValue) { + if (annotationProgressBuilder_ == null) { + ensureAnnotationProgressIsMutable(); + annotationProgress_.add(builderForValue.build()); + onChanged(); + } else { + annotationProgressBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1; + */ + public Builder addAnnotationProgress( + int index, com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress.Builder builderForValue) { + if (annotationProgressBuilder_ == null) { + ensureAnnotationProgressIsMutable(); + annotationProgress_.add(index, builderForValue.build()); + onChanged(); + } else { + annotationProgressBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1; + */ + public Builder addAllAnnotationProgress( + java.lang.Iterable values) { + if (annotationProgressBuilder_ == null) { + ensureAnnotationProgressIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, annotationProgress_); + onChanged(); + } else { + annotationProgressBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1; + */ + public Builder clearAnnotationProgress() { + if (annotationProgressBuilder_ == null) { + annotationProgress_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + annotationProgressBuilder_.clear(); + } + return this; + } + /** + *
+     * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1; + */ + public Builder removeAnnotationProgress(int index) { + if (annotationProgressBuilder_ == null) { + ensureAnnotationProgressIsMutable(); + annotationProgress_.remove(index); + onChanged(); + } else { + annotationProgressBuilder_.remove(index); + } + return this; + } + /** + *
+     * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress.Builder getAnnotationProgressBuilder( + int index) { + return getAnnotationProgressFieldBuilder().getBuilder(index); + } + /** + *
+     * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgressOrBuilder getAnnotationProgressOrBuilder( + int index) { + if (annotationProgressBuilder_ == null) { + return annotationProgress_.get(index); } else { + return annotationProgressBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1; + */ + public java.util.List + getAnnotationProgressOrBuilderList() { + if (annotationProgressBuilder_ != null) { + return annotationProgressBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(annotationProgress_); + } + } + /** + *
+     * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress.Builder addAnnotationProgressBuilder() { + return getAnnotationProgressFieldBuilder().addBuilder( + com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress.getDefaultInstance()); + } + /** + *
+     * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress.Builder addAnnotationProgressBuilder( + int index) { + return getAnnotationProgressFieldBuilder().addBuilder( + index, com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress.getDefaultInstance()); + } + /** + *
+     * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1; + */ + public java.util.List + getAnnotationProgressBuilderList() { + return getAnnotationProgressFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress, com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress.Builder, com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgressOrBuilder> + getAnnotationProgressFieldBuilder() { + if (annotationProgressBuilder_ == null) { + annotationProgressBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress, com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress.Builder, com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgressOrBuilder>( + annotationProgress_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + annotationProgress_ = null; + } + return annotationProgressBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress) + private static final com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress(); + } + + public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnnotateVideoProgress parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnnotateVideoProgress(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/AnnotateVideoProgressOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/AnnotateVideoProgressOrBuilder.java new file mode 100644 index 000000000000..235ee3f23649 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/AnnotateVideoProgressOrBuilder.java @@ -0,0 +1,53 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +public interface AnnotateVideoProgressOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1; + */ + java.util.List + getAnnotationProgressList(); + /** + *
+   * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1; + */ + com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress getAnnotationProgress(int index); + /** + *
+   * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1; + */ + int getAnnotationProgressCount(); + /** + *
+   * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1; + */ + java.util.List + getAnnotationProgressOrBuilderList(); + /** + *
+   * Progress metadata for all videos specified in `AnnotateVideoRequest`.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1; + */ + com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgressOrBuilder getAnnotationProgressOrBuilder( + int index); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/AnnotateVideoRequest.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/AnnotateVideoRequest.java new file mode 100644 index 000000000000..201e27416af7 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/AnnotateVideoRequest.java @@ -0,0 +1,1619 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +/** + *
+ * Video annotation request.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest} + */ +public final class AnnotateVideoRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest) + AnnotateVideoRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use AnnotateVideoRequest.newBuilder() to construct. + private AnnotateVideoRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AnnotateVideoRequest() { + inputUri_ = ""; + inputContent_ = com.google.protobuf.ByteString.EMPTY; + features_ = java.util.Collections.emptyList(); + outputUri_ = ""; + locationId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AnnotateVideoRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + inputUri_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + features_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + features_.add(rawValue); + break; + } + case 18: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + features_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + features_.add(rawValue); + } + input.popLimit(oldLimit); + break; + } + case 26: { + com.google.cloud.videointelligence.v1p2beta1.VideoContext.Builder subBuilder = null; + if (videoContext_ != null) { + subBuilder = videoContext_.toBuilder(); + } + videoContext_ = input.readMessage(com.google.cloud.videointelligence.v1p2beta1.VideoContext.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(videoContext_); + videoContext_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + outputUri_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + locationId_ = s; + break; + } + case 50: { + + inputContent_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + features_ = java.util.Collections.unmodifiableList(features_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_AnnotateVideoRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_AnnotateVideoRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest.class, com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest.Builder.class); + } + + private int bitField0_; + public static final int INPUT_URI_FIELD_NUMBER = 1; + private volatile java.lang.Object inputUri_; + /** + *
+   * Input video location. Currently, only
+   * [Google Cloud Storage](https://cloud.google.com/storage/) URIs are
+   * supported, which must be specified in the following format:
+   * `gs://bucket-id/object-id` (other URI formats return
+   * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see
+   * [Request URIs](/storage/docs/reference-uris).
+   * A video URI may include wildcards in `object-id`, and thus identify
+   * multiple videos. Supported wildcards: '*' to match 0 or more characters;
+   * '?' to match 1 character. If unset, the input video should be embedded
+   * in the request as `input_content`. If set, `input_content` should be unset.
+   * 
+ * + * string input_uri = 1; + */ + public java.lang.String getInputUri() { + java.lang.Object ref = inputUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputUri_ = s; + return s; + } + } + /** + *
+   * Input video location. Currently, only
+   * [Google Cloud Storage](https://cloud.google.com/storage/) URIs are
+   * supported, which must be specified in the following format:
+   * `gs://bucket-id/object-id` (other URI formats return
+   * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see
+   * [Request URIs](/storage/docs/reference-uris).
+   * A video URI may include wildcards in `object-id`, and thus identify
+   * multiple videos. Supported wildcards: '*' to match 0 or more characters;
+   * '?' to match 1 character. If unset, the input video should be embedded
+   * in the request as `input_content`. If set, `input_content` should be unset.
+   * 
+ * + * string input_uri = 1; + */ + public com.google.protobuf.ByteString + getInputUriBytes() { + java.lang.Object ref = inputUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INPUT_CONTENT_FIELD_NUMBER = 6; + private com.google.protobuf.ByteString inputContent_; + /** + *
+   * The video data bytes.
+   * If unset, the input video(s) should be specified via `input_uri`.
+   * If set, `input_uri` should be unset.
+   * 
+ * + * bytes input_content = 6; + */ + public com.google.protobuf.ByteString getInputContent() { + return inputContent_; + } + + public static final int FEATURES_FIELD_NUMBER = 2; + private java.util.List features_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.videointelligence.v1p2beta1.Feature> features_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.videointelligence.v1p2beta1.Feature>() { + public com.google.cloud.videointelligence.v1p2beta1.Feature convert(java.lang.Integer from) { + @SuppressWarnings("deprecation") + com.google.cloud.videointelligence.v1p2beta1.Feature result = com.google.cloud.videointelligence.v1p2beta1.Feature.valueOf(from); + return result == null ? com.google.cloud.videointelligence.v1p2beta1.Feature.UNRECOGNIZED : result; + } + }; + /** + *
+   * Requested video annotation features.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2; + */ + public java.util.List getFeaturesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.videointelligence.v1p2beta1.Feature>(features_, features_converter_); + } + /** + *
+   * Requested video annotation features.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2; + */ + public int getFeaturesCount() { + return features_.size(); + } + /** + *
+   * Requested video annotation features.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2; + */ + public com.google.cloud.videointelligence.v1p2beta1.Feature getFeatures(int index) { + return features_converter_.convert(features_.get(index)); + } + /** + *
+   * Requested video annotation features.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2; + */ + public java.util.List + getFeaturesValueList() { + return features_; + } + /** + *
+   * Requested video annotation features.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2; + */ + public int getFeaturesValue(int index) { + return features_.get(index); + } + private int featuresMemoizedSerializedSize; + + public static final int VIDEO_CONTEXT_FIELD_NUMBER = 3; + private com.google.cloud.videointelligence.v1p2beta1.VideoContext videoContext_; + /** + *
+   * Additional video context and/or feature-specific parameters.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoContext video_context = 3; + */ + public boolean hasVideoContext() { + return videoContext_ != null; + } + /** + *
+   * Additional video context and/or feature-specific parameters.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoContext video_context = 3; + */ + public com.google.cloud.videointelligence.v1p2beta1.VideoContext getVideoContext() { + return videoContext_ == null ? com.google.cloud.videointelligence.v1p2beta1.VideoContext.getDefaultInstance() : videoContext_; + } + /** + *
+   * Additional video context and/or feature-specific parameters.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoContext video_context = 3; + */ + public com.google.cloud.videointelligence.v1p2beta1.VideoContextOrBuilder getVideoContextOrBuilder() { + return getVideoContext(); + } + + public static final int OUTPUT_URI_FIELD_NUMBER = 4; + private volatile java.lang.Object outputUri_; + /** + *
+   * Optional location where the output (in JSON format) should be stored.
+   * Currently, only [Google Cloud Storage](https://cloud.google.com/storage/)
+   * URIs are supported, which must be specified in the following format:
+   * `gs://bucket-id/object-id` (other URI formats return
+   * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see
+   * [Request URIs](/storage/docs/reference-uris).
+   * 
+ * + * string output_uri = 4; + */ + public java.lang.String getOutputUri() { + java.lang.Object ref = outputUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputUri_ = s; + return s; + } + } + /** + *
+   * Optional location where the output (in JSON format) should be stored.
+   * Currently, only [Google Cloud Storage](https://cloud.google.com/storage/)
+   * URIs are supported, which must be specified in the following format:
+   * `gs://bucket-id/object-id` (other URI formats return
+   * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see
+   * [Request URIs](/storage/docs/reference-uris).
+   * 
+ * + * string output_uri = 4; + */ + public com.google.protobuf.ByteString + getOutputUriBytes() { + java.lang.Object ref = outputUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + outputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOCATION_ID_FIELD_NUMBER = 5; + private volatile java.lang.Object locationId_; + /** + *
+   * Optional cloud region where annotation should take place. Supported cloud
+   * regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region
+   * is specified, a region will be determined based on video file location.
+   * 
+ * + * string location_id = 5; + */ + public java.lang.String getLocationId() { + java.lang.Object ref = locationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + locationId_ = s; + return s; + } + } + /** + *
+   * Optional cloud region where annotation should take place. Supported cloud
+   * regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region
+   * is specified, a region will be determined based on video file location.
+   * 
+ * + * string location_id = 5; + */ + public com.google.protobuf.ByteString + getLocationIdBytes() { + java.lang.Object ref = locationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + locationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (!getInputUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputUri_); + } + if (getFeaturesList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(featuresMemoizedSerializedSize); + } + for (int i = 0; i < features_.size(); i++) { + output.writeEnumNoTag(features_.get(i)); + } + if (videoContext_ != null) { + output.writeMessage(3, getVideoContext()); + } + if (!getOutputUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, outputUri_); + } + if (!getLocationIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, locationId_); + } + if (!inputContent_.isEmpty()) { + output.writeBytes(6, inputContent_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getInputUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, inputUri_); + } + { + int dataSize = 0; + for (int i = 0; i < features_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(features_.get(i)); + } + size += dataSize; + if (!getFeaturesList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }featuresMemoizedSerializedSize = dataSize; + } + if (videoContext_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getVideoContext()); + } + if (!getOutputUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, outputUri_); + } + if (!getLocationIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, locationId_); + } + if (!inputContent_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(6, inputContent_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest other = (com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest) obj; + + boolean result = true; + result = result && getInputUri() + .equals(other.getInputUri()); + result = result && getInputContent() + .equals(other.getInputContent()); + result = result && features_.equals(other.features_); + result = result && (hasVideoContext() == other.hasVideoContext()); + if (hasVideoContext()) { + result = result && getVideoContext() + .equals(other.getVideoContext()); + } + result = result && getOutputUri() + .equals(other.getOutputUri()); + result = result && getLocationId() + .equals(other.getLocationId()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + INPUT_URI_FIELD_NUMBER; + hash = (53 * hash) + getInputUri().hashCode(); + hash = (37 * hash) + INPUT_CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getInputContent().hashCode(); + if (getFeaturesCount() > 0) { + hash = (37 * hash) + FEATURES_FIELD_NUMBER; + hash = (53 * hash) + features_.hashCode(); + } + if (hasVideoContext()) { + hash = (37 * hash) + VIDEO_CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + getVideoContext().hashCode(); + } + hash = (37 * hash) + OUTPUT_URI_FIELD_NUMBER; + hash = (53 * hash) + getOutputUri().hashCode(); + hash = (37 * hash) + LOCATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getLocationId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Video annotation request.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest) + com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_AnnotateVideoRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_AnnotateVideoRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest.class, com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest.Builder.class); + } + + // Construct using com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + inputUri_ = ""; + + inputContent_ = com.google.protobuf.ByteString.EMPTY; + + features_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + if (videoContextBuilder_ == null) { + videoContext_ = null; + } else { + videoContext_ = null; + videoContextBuilder_ = null; + } + outputUri_ = ""; + + locationId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_AnnotateVideoRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest build() { + com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest buildPartial() { + com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest result = new com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.inputUri_ = inputUri_; + result.inputContent_ = inputContent_; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + features_ = java.util.Collections.unmodifiableList(features_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.features_ = features_; + if (videoContextBuilder_ == null) { + result.videoContext_ = videoContext_; + } else { + result.videoContext_ = videoContextBuilder_.build(); + } + result.outputUri_ = outputUri_; + result.locationId_ = locationId_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest) { + return mergeFrom((com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest other) { + if (other == com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest.getDefaultInstance()) return this; + if (!other.getInputUri().isEmpty()) { + inputUri_ = other.inputUri_; + onChanged(); + } + if (other.getInputContent() != com.google.protobuf.ByteString.EMPTY) { + setInputContent(other.getInputContent()); + } + if (!other.features_.isEmpty()) { + if (features_.isEmpty()) { + features_ = other.features_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureFeaturesIsMutable(); + features_.addAll(other.features_); + } + onChanged(); + } + if (other.hasVideoContext()) { + mergeVideoContext(other.getVideoContext()); + } + if (!other.getOutputUri().isEmpty()) { + outputUri_ = other.outputUri_; + onChanged(); + } + if (!other.getLocationId().isEmpty()) { + locationId_ = other.locationId_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object inputUri_ = ""; + /** + *
+     * Input video location. Currently, only
+     * [Google Cloud Storage](https://cloud.google.com/storage/) URIs are
+     * supported, which must be specified in the following format:
+     * `gs://bucket-id/object-id` (other URI formats return
+     * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see
+     * [Request URIs](/storage/docs/reference-uris).
+     * A video URI may include wildcards in `object-id`, and thus identify
+     * multiple videos. Supported wildcards: '*' to match 0 or more characters;
+     * '?' to match 1 character. If unset, the input video should be embedded
+     * in the request as `input_content`. If set, `input_content` should be unset.
+     * 
+ * + * string input_uri = 1; + */ + public java.lang.String getInputUri() { + java.lang.Object ref = inputUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Input video location. Currently, only
+     * [Google Cloud Storage](https://cloud.google.com/storage/) URIs are
+     * supported, which must be specified in the following format:
+     * `gs://bucket-id/object-id` (other URI formats return
+     * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see
+     * [Request URIs](/storage/docs/reference-uris).
+     * A video URI may include wildcards in `object-id`, and thus identify
+     * multiple videos. Supported wildcards: '*' to match 0 or more characters;
+     * '?' to match 1 character. If unset, the input video should be embedded
+     * in the request as `input_content`. If set, `input_content` should be unset.
+     * 
+ * + * string input_uri = 1; + */ + public com.google.protobuf.ByteString + getInputUriBytes() { + java.lang.Object ref = inputUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Input video location. Currently, only
+     * [Google Cloud Storage](https://cloud.google.com/storage/) URIs are
+     * supported, which must be specified in the following format:
+     * `gs://bucket-id/object-id` (other URI formats return
+     * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see
+     * [Request URIs](/storage/docs/reference-uris).
+     * A video URI may include wildcards in `object-id`, and thus identify
+     * multiple videos. Supported wildcards: '*' to match 0 or more characters;
+     * '?' to match 1 character. If unset, the input video should be embedded
+     * in the request as `input_content`. If set, `input_content` should be unset.
+     * 
+ * + * string input_uri = 1; + */ + public Builder setInputUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + inputUri_ = value; + onChanged(); + return this; + } + /** + *
+     * Input video location. Currently, only
+     * [Google Cloud Storage](https://cloud.google.com/storage/) URIs are
+     * supported, which must be specified in the following format:
+     * `gs://bucket-id/object-id` (other URI formats return
+     * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see
+     * [Request URIs](/storage/docs/reference-uris).
+     * A video URI may include wildcards in `object-id`, and thus identify
+     * multiple videos. Supported wildcards: '*' to match 0 or more characters;
+     * '?' to match 1 character. If unset, the input video should be embedded
+     * in the request as `input_content`. If set, `input_content` should be unset.
+     * 
+ * + * string input_uri = 1; + */ + public Builder clearInputUri() { + + inputUri_ = getDefaultInstance().getInputUri(); + onChanged(); + return this; + } + /** + *
+     * Input video location. Currently, only
+     * [Google Cloud Storage](https://cloud.google.com/storage/) URIs are
+     * supported, which must be specified in the following format:
+     * `gs://bucket-id/object-id` (other URI formats return
+     * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see
+     * [Request URIs](/storage/docs/reference-uris).
+     * A video URI may include wildcards in `object-id`, and thus identify
+     * multiple videos. Supported wildcards: '*' to match 0 or more characters;
+     * '?' to match 1 character. If unset, the input video should be embedded
+     * in the request as `input_content`. If set, `input_content` should be unset.
+     * 
+ * + * string input_uri = 1; + */ + public Builder setInputUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + inputUri_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString inputContent_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+     * The video data bytes.
+     * If unset, the input video(s) should be specified via `input_uri`.
+     * If set, `input_uri` should be unset.
+     * 
+ * + * bytes input_content = 6; + */ + public com.google.protobuf.ByteString getInputContent() { + return inputContent_; + } + /** + *
+     * The video data bytes.
+     * If unset, the input video(s) should be specified via `input_uri`.
+     * If set, `input_uri` should be unset.
+     * 
+ * + * bytes input_content = 6; + */ + public Builder setInputContent(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + inputContent_ = value; + onChanged(); + return this; + } + /** + *
+     * The video data bytes.
+     * If unset, the input video(s) should be specified via `input_uri`.
+     * If set, `input_uri` should be unset.
+     * 
+ * + * bytes input_content = 6; + */ + public Builder clearInputContent() { + + inputContent_ = getDefaultInstance().getInputContent(); + onChanged(); + return this; + } + + private java.util.List features_ = + java.util.Collections.emptyList(); + private void ensureFeaturesIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + features_ = new java.util.ArrayList(features_); + bitField0_ |= 0x00000004; + } + } + /** + *
+     * Requested video annotation features.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2; + */ + public java.util.List getFeaturesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.videointelligence.v1p2beta1.Feature>(features_, features_converter_); + } + /** + *
+     * Requested video annotation features.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2; + */ + public int getFeaturesCount() { + return features_.size(); + } + /** + *
+     * Requested video annotation features.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2; + */ + public com.google.cloud.videointelligence.v1p2beta1.Feature getFeatures(int index) { + return features_converter_.convert(features_.get(index)); + } + /** + *
+     * Requested video annotation features.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2; + */ + public Builder setFeatures( + int index, com.google.cloud.videointelligence.v1p2beta1.Feature value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFeaturesIsMutable(); + features_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + *
+     * Requested video annotation features.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2; + */ + public Builder addFeatures(com.google.cloud.videointelligence.v1p2beta1.Feature value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFeaturesIsMutable(); + features_.add(value.getNumber()); + onChanged(); + return this; + } + /** + *
+     * Requested video annotation features.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2; + */ + public Builder addAllFeatures( + java.lang.Iterable values) { + ensureFeaturesIsMutable(); + for (com.google.cloud.videointelligence.v1p2beta1.Feature value : values) { + features_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + *
+     * Requested video annotation features.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2; + */ + public Builder clearFeatures() { + features_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Requested video annotation features.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2; + */ + public java.util.List + getFeaturesValueList() { + return java.util.Collections.unmodifiableList(features_); + } + /** + *
+     * Requested video annotation features.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2; + */ + public int getFeaturesValue(int index) { + return features_.get(index); + } + /** + *
+     * Requested video annotation features.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2; + */ + public Builder setFeaturesValue( + int index, int value) { + ensureFeaturesIsMutable(); + features_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * Requested video annotation features.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2; + */ + public Builder addFeaturesValue(int value) { + ensureFeaturesIsMutable(); + features_.add(value); + onChanged(); + return this; + } + /** + *
+     * Requested video annotation features.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2; + */ + public Builder addAllFeaturesValue( + java.lang.Iterable values) { + ensureFeaturesIsMutable(); + for (int value : values) { + features_.add(value); + } + onChanged(); + return this; + } + + private com.google.cloud.videointelligence.v1p2beta1.VideoContext videoContext_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.VideoContext, com.google.cloud.videointelligence.v1p2beta1.VideoContext.Builder, com.google.cloud.videointelligence.v1p2beta1.VideoContextOrBuilder> videoContextBuilder_; + /** + *
+     * Additional video context and/or feature-specific parameters.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoContext video_context = 3; + */ + public boolean hasVideoContext() { + return videoContextBuilder_ != null || videoContext_ != null; + } + /** + *
+     * Additional video context and/or feature-specific parameters.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoContext video_context = 3; + */ + public com.google.cloud.videointelligence.v1p2beta1.VideoContext getVideoContext() { + if (videoContextBuilder_ == null) { + return videoContext_ == null ? com.google.cloud.videointelligence.v1p2beta1.VideoContext.getDefaultInstance() : videoContext_; + } else { + return videoContextBuilder_.getMessage(); + } + } + /** + *
+     * Additional video context and/or feature-specific parameters.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoContext video_context = 3; + */ + public Builder setVideoContext(com.google.cloud.videointelligence.v1p2beta1.VideoContext value) { + if (videoContextBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + videoContext_ = value; + onChanged(); + } else { + videoContextBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Additional video context and/or feature-specific parameters.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoContext video_context = 3; + */ + public Builder setVideoContext( + com.google.cloud.videointelligence.v1p2beta1.VideoContext.Builder builderForValue) { + if (videoContextBuilder_ == null) { + videoContext_ = builderForValue.build(); + onChanged(); + } else { + videoContextBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Additional video context and/or feature-specific parameters.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoContext video_context = 3; + */ + public Builder mergeVideoContext(com.google.cloud.videointelligence.v1p2beta1.VideoContext value) { + if (videoContextBuilder_ == null) { + if (videoContext_ != null) { + videoContext_ = + com.google.cloud.videointelligence.v1p2beta1.VideoContext.newBuilder(videoContext_).mergeFrom(value).buildPartial(); + } else { + videoContext_ = value; + } + onChanged(); + } else { + videoContextBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Additional video context and/or feature-specific parameters.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoContext video_context = 3; + */ + public Builder clearVideoContext() { + if (videoContextBuilder_ == null) { + videoContext_ = null; + onChanged(); + } else { + videoContext_ = null; + videoContextBuilder_ = null; + } + + return this; + } + /** + *
+     * Additional video context and/or feature-specific parameters.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoContext video_context = 3; + */ + public com.google.cloud.videointelligence.v1p2beta1.VideoContext.Builder getVideoContextBuilder() { + + onChanged(); + return getVideoContextFieldBuilder().getBuilder(); + } + /** + *
+     * Additional video context and/or feature-specific parameters.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoContext video_context = 3; + */ + public com.google.cloud.videointelligence.v1p2beta1.VideoContextOrBuilder getVideoContextOrBuilder() { + if (videoContextBuilder_ != null) { + return videoContextBuilder_.getMessageOrBuilder(); + } else { + return videoContext_ == null ? + com.google.cloud.videointelligence.v1p2beta1.VideoContext.getDefaultInstance() : videoContext_; + } + } + /** + *
+     * Additional video context and/or feature-specific parameters.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoContext video_context = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.VideoContext, com.google.cloud.videointelligence.v1p2beta1.VideoContext.Builder, com.google.cloud.videointelligence.v1p2beta1.VideoContextOrBuilder> + getVideoContextFieldBuilder() { + if (videoContextBuilder_ == null) { + videoContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.VideoContext, com.google.cloud.videointelligence.v1p2beta1.VideoContext.Builder, com.google.cloud.videointelligence.v1p2beta1.VideoContextOrBuilder>( + getVideoContext(), + getParentForChildren(), + isClean()); + videoContext_ = null; + } + return videoContextBuilder_; + } + + private java.lang.Object outputUri_ = ""; + /** + *
+     * Optional location where the output (in JSON format) should be stored.
+     * Currently, only [Google Cloud Storage](https://cloud.google.com/storage/)
+     * URIs are supported, which must be specified in the following format:
+     * `gs://bucket-id/object-id` (other URI formats return
+     * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see
+     * [Request URIs](/storage/docs/reference-uris).
+     * 
+ * + * string output_uri = 4; + */ + public java.lang.String getOutputUri() { + java.lang.Object ref = outputUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Optional location where the output (in JSON format) should be stored.
+     * Currently, only [Google Cloud Storage](https://cloud.google.com/storage/)
+     * URIs are supported, which must be specified in the following format:
+     * `gs://bucket-id/object-id` (other URI formats return
+     * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see
+     * [Request URIs](/storage/docs/reference-uris).
+     * 
+ * + * string output_uri = 4; + */ + public com.google.protobuf.ByteString + getOutputUriBytes() { + java.lang.Object ref = outputUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + outputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Optional location where the output (in JSON format) should be stored.
+     * Currently, only [Google Cloud Storage](https://cloud.google.com/storage/)
+     * URIs are supported, which must be specified in the following format:
+     * `gs://bucket-id/object-id` (other URI formats return
+     * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see
+     * [Request URIs](/storage/docs/reference-uris).
+     * 
+ * + * string output_uri = 4; + */ + public Builder setOutputUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + outputUri_ = value; + onChanged(); + return this; + } + /** + *
+     * Optional location where the output (in JSON format) should be stored.
+     * Currently, only [Google Cloud Storage](https://cloud.google.com/storage/)
+     * URIs are supported, which must be specified in the following format:
+     * `gs://bucket-id/object-id` (other URI formats return
+     * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see
+     * [Request URIs](/storage/docs/reference-uris).
+     * 
+ * + * string output_uri = 4; + */ + public Builder clearOutputUri() { + + outputUri_ = getDefaultInstance().getOutputUri(); + onChanged(); + return this; + } + /** + *
+     * Optional location where the output (in JSON format) should be stored.
+     * Currently, only [Google Cloud Storage](https://cloud.google.com/storage/)
+     * URIs are supported, which must be specified in the following format:
+     * `gs://bucket-id/object-id` (other URI formats return
+     * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see
+     * [Request URIs](/storage/docs/reference-uris).
+     * 
+ * + * string output_uri = 4; + */ + public Builder setOutputUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + outputUri_ = value; + onChanged(); + return this; + } + + private java.lang.Object locationId_ = ""; + /** + *
+     * Optional cloud region where annotation should take place. Supported cloud
+     * regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region
+     * is specified, a region will be determined based on video file location.
+     * 
+ * + * string location_id = 5; + */ + public java.lang.String getLocationId() { + java.lang.Object ref = locationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + locationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Optional cloud region where annotation should take place. Supported cloud
+     * regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region
+     * is specified, a region will be determined based on video file location.
+     * 
+ * + * string location_id = 5; + */ + public com.google.protobuf.ByteString + getLocationIdBytes() { + java.lang.Object ref = locationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + locationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Optional cloud region where annotation should take place. Supported cloud
+     * regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region
+     * is specified, a region will be determined based on video file location.
+     * 
+ * + * string location_id = 5; + */ + public Builder setLocationId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + locationId_ = value; + onChanged(); + return this; + } + /** + *
+     * Optional cloud region where annotation should take place. Supported cloud
+     * regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region
+     * is specified, a region will be determined based on video file location.
+     * 
+ * + * string location_id = 5; + */ + public Builder clearLocationId() { + + locationId_ = getDefaultInstance().getLocationId(); + onChanged(); + return this; + } + /** + *
+     * Optional cloud region where annotation should take place. Supported cloud
+     * regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region
+     * is specified, a region will be determined based on video file location.
+     * 
+ * + * string location_id = 5; + */ + public Builder setLocationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + locationId_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest) + private static final com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest(); + } + + public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnnotateVideoRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnnotateVideoRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/AnnotateVideoRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/AnnotateVideoRequestOrBuilder.java new file mode 100644 index 000000000000..b5e9ca7b580e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/AnnotateVideoRequestOrBuilder.java @@ -0,0 +1,173 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +public interface AnnotateVideoRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Input video location. Currently, only
+   * [Google Cloud Storage](https://cloud.google.com/storage/) URIs are
+   * supported, which must be specified in the following format:
+   * `gs://bucket-id/object-id` (other URI formats return
+   * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see
+   * [Request URIs](/storage/docs/reference-uris).
+   * A video URI may include wildcards in `object-id`, and thus identify
+   * multiple videos. Supported wildcards: '*' to match 0 or more characters;
+   * '?' to match 1 character. If unset, the input video should be embedded
+   * in the request as `input_content`. If set, `input_content` should be unset.
+   * 
+ * + * string input_uri = 1; + */ + java.lang.String getInputUri(); + /** + *
+   * Input video location. Currently, only
+   * [Google Cloud Storage](https://cloud.google.com/storage/) URIs are
+   * supported, which must be specified in the following format:
+   * `gs://bucket-id/object-id` (other URI formats return
+   * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see
+   * [Request URIs](/storage/docs/reference-uris).
+   * A video URI may include wildcards in `object-id`, and thus identify
+   * multiple videos. Supported wildcards: '*' to match 0 or more characters;
+   * '?' to match 1 character. If unset, the input video should be embedded
+   * in the request as `input_content`. If set, `input_content` should be unset.
+   * 
+ * + * string input_uri = 1; + */ + com.google.protobuf.ByteString + getInputUriBytes(); + + /** + *
+   * The video data bytes.
+   * If unset, the input video(s) should be specified via `input_uri`.
+   * If set, `input_uri` should be unset.
+   * 
+ * + * bytes input_content = 6; + */ + com.google.protobuf.ByteString getInputContent(); + + /** + *
+   * Requested video annotation features.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2; + */ + java.util.List getFeaturesList(); + /** + *
+   * Requested video annotation features.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2; + */ + int getFeaturesCount(); + /** + *
+   * Requested video annotation features.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2; + */ + com.google.cloud.videointelligence.v1p2beta1.Feature getFeatures(int index); + /** + *
+   * Requested video annotation features.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2; + */ + java.util.List + getFeaturesValueList(); + /** + *
+   * Requested video annotation features.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2; + */ + int getFeaturesValue(int index); + + /** + *
+   * Additional video context and/or feature-specific parameters.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoContext video_context = 3; + */ + boolean hasVideoContext(); + /** + *
+   * Additional video context and/or feature-specific parameters.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoContext video_context = 3; + */ + com.google.cloud.videointelligence.v1p2beta1.VideoContext getVideoContext(); + /** + *
+   * Additional video context and/or feature-specific parameters.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoContext video_context = 3; + */ + com.google.cloud.videointelligence.v1p2beta1.VideoContextOrBuilder getVideoContextOrBuilder(); + + /** + *
+   * Optional location where the output (in JSON format) should be stored.
+   * Currently, only [Google Cloud Storage](https://cloud.google.com/storage/)
+   * URIs are supported, which must be specified in the following format:
+   * `gs://bucket-id/object-id` (other URI formats return
+   * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see
+   * [Request URIs](/storage/docs/reference-uris).
+   * 
+ * + * string output_uri = 4; + */ + java.lang.String getOutputUri(); + /** + *
+   * Optional location where the output (in JSON format) should be stored.
+   * Currently, only [Google Cloud Storage](https://cloud.google.com/storage/)
+   * URIs are supported, which must be specified in the following format:
+   * `gs://bucket-id/object-id` (other URI formats return
+   * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see
+   * [Request URIs](/storage/docs/reference-uris).
+   * 
+ * + * string output_uri = 4; + */ + com.google.protobuf.ByteString + getOutputUriBytes(); + + /** + *
+   * Optional cloud region where annotation should take place. Supported cloud
+   * regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region
+   * is specified, a region will be determined based on video file location.
+   * 
+ * + * string location_id = 5; + */ + java.lang.String getLocationId(); + /** + *
+   * Optional cloud region where annotation should take place. Supported cloud
+   * regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region
+   * is specified, a region will be determined based on video file location.
+   * 
+ * + * string location_id = 5; + */ + com.google.protobuf.ByteString + getLocationIdBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/AnnotateVideoResponse.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/AnnotateVideoResponse.java new file mode 100644 index 000000000000..8e5e4782cc8a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/AnnotateVideoResponse.java @@ -0,0 +1,863 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +/** + *
+ * Video annotation response. Included in the `response`
+ * field of the `Operation` returned by the `GetOperation`
+ * call of the `google::longrunning::Operations` service.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse} + */ +public final class AnnotateVideoResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse) + AnnotateVideoResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use AnnotateVideoResponse.newBuilder() to construct. + private AnnotateVideoResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AnnotateVideoResponse() { + annotationResults_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AnnotateVideoResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + annotationResults_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + annotationResults_.add( + input.readMessage(com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + annotationResults_ = java.util.Collections.unmodifiableList(annotationResults_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_AnnotateVideoResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_AnnotateVideoResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse.class, com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse.Builder.class); + } + + public static final int ANNOTATION_RESULTS_FIELD_NUMBER = 1; + private java.util.List annotationResults_; + /** + *
+   * Annotation results for all videos specified in `AnnotateVideoRequest`.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults annotation_results = 1; + */ + public java.util.List getAnnotationResultsList() { + return annotationResults_; + } + /** + *
+   * Annotation results for all videos specified in `AnnotateVideoRequest`.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults annotation_results = 1; + */ + public java.util.List + getAnnotationResultsOrBuilderList() { + return annotationResults_; + } + /** + *
+   * Annotation results for all videos specified in `AnnotateVideoRequest`.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults annotation_results = 1; + */ + public int getAnnotationResultsCount() { + return annotationResults_.size(); + } + /** + *
+   * Annotation results for all videos specified in `AnnotateVideoRequest`.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults annotation_results = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults getAnnotationResults(int index) { + return annotationResults_.get(index); + } + /** + *
+   * Annotation results for all videos specified in `AnnotateVideoRequest`.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults annotation_results = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResultsOrBuilder getAnnotationResultsOrBuilder( + int index) { + return annotationResults_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < annotationResults_.size(); i++) { + output.writeMessage(1, annotationResults_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < annotationResults_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, annotationResults_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse other = (com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse) obj; + + boolean result = true; + result = result && getAnnotationResultsList() + .equals(other.getAnnotationResultsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAnnotationResultsCount() > 0) { + hash = (37 * hash) + ANNOTATION_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getAnnotationResultsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Video annotation response. Included in the `response`
+   * field of the `Operation` returned by the `GetOperation`
+   * call of the `google::longrunning::Operations` service.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse) + com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_AnnotateVideoResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_AnnotateVideoResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse.class, com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse.Builder.class); + } + + // Construct using com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getAnnotationResultsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (annotationResultsBuilder_ == null) { + annotationResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + annotationResultsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_AnnotateVideoResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse build() { + com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse buildPartial() { + com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse result = new com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse(this); + int from_bitField0_ = bitField0_; + if (annotationResultsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + annotationResults_ = java.util.Collections.unmodifiableList(annotationResults_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.annotationResults_ = annotationResults_; + } else { + result.annotationResults_ = annotationResultsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse) { + return mergeFrom((com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse other) { + if (other == com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse.getDefaultInstance()) return this; + if (annotationResultsBuilder_ == null) { + if (!other.annotationResults_.isEmpty()) { + if (annotationResults_.isEmpty()) { + annotationResults_ = other.annotationResults_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAnnotationResultsIsMutable(); + annotationResults_.addAll(other.annotationResults_); + } + onChanged(); + } + } else { + if (!other.annotationResults_.isEmpty()) { + if (annotationResultsBuilder_.isEmpty()) { + annotationResultsBuilder_.dispose(); + annotationResultsBuilder_ = null; + annotationResults_ = other.annotationResults_; + bitField0_ = (bitField0_ & ~0x00000001); + annotationResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAnnotationResultsFieldBuilder() : null; + } else { + annotationResultsBuilder_.addAllMessages(other.annotationResults_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List annotationResults_ = + java.util.Collections.emptyList(); + private void ensureAnnotationResultsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + annotationResults_ = new java.util.ArrayList(annotationResults_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults, com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults.Builder, com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResultsOrBuilder> annotationResultsBuilder_; + + /** + *
+     * Annotation results for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults annotation_results = 1; + */ + public java.util.List getAnnotationResultsList() { + if (annotationResultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(annotationResults_); + } else { + return annotationResultsBuilder_.getMessageList(); + } + } + /** + *
+     * Annotation results for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults annotation_results = 1; + */ + public int getAnnotationResultsCount() { + if (annotationResultsBuilder_ == null) { + return annotationResults_.size(); + } else { + return annotationResultsBuilder_.getCount(); + } + } + /** + *
+     * Annotation results for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults annotation_results = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults getAnnotationResults(int index) { + if (annotationResultsBuilder_ == null) { + return annotationResults_.get(index); + } else { + return annotationResultsBuilder_.getMessage(index); + } + } + /** + *
+     * Annotation results for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults annotation_results = 1; + */ + public Builder setAnnotationResults( + int index, com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults value) { + if (annotationResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationResultsIsMutable(); + annotationResults_.set(index, value); + onChanged(); + } else { + annotationResultsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Annotation results for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults annotation_results = 1; + */ + public Builder setAnnotationResults( + int index, com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults.Builder builderForValue) { + if (annotationResultsBuilder_ == null) { + ensureAnnotationResultsIsMutable(); + annotationResults_.set(index, builderForValue.build()); + onChanged(); + } else { + annotationResultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Annotation results for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults annotation_results = 1; + */ + public Builder addAnnotationResults(com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults value) { + if (annotationResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationResultsIsMutable(); + annotationResults_.add(value); + onChanged(); + } else { + annotationResultsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Annotation results for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults annotation_results = 1; + */ + public Builder addAnnotationResults( + int index, com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults value) { + if (annotationResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationResultsIsMutable(); + annotationResults_.add(index, value); + onChanged(); + } else { + annotationResultsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Annotation results for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults annotation_results = 1; + */ + public Builder addAnnotationResults( + com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults.Builder builderForValue) { + if (annotationResultsBuilder_ == null) { + ensureAnnotationResultsIsMutable(); + annotationResults_.add(builderForValue.build()); + onChanged(); + } else { + annotationResultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Annotation results for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults annotation_results = 1; + */ + public Builder addAnnotationResults( + int index, com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults.Builder builderForValue) { + if (annotationResultsBuilder_ == null) { + ensureAnnotationResultsIsMutable(); + annotationResults_.add(index, builderForValue.build()); + onChanged(); + } else { + annotationResultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Annotation results for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults annotation_results = 1; + */ + public Builder addAllAnnotationResults( + java.lang.Iterable values) { + if (annotationResultsBuilder_ == null) { + ensureAnnotationResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, annotationResults_); + onChanged(); + } else { + annotationResultsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Annotation results for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults annotation_results = 1; + */ + public Builder clearAnnotationResults() { + if (annotationResultsBuilder_ == null) { + annotationResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + annotationResultsBuilder_.clear(); + } + return this; + } + /** + *
+     * Annotation results for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults annotation_results = 1; + */ + public Builder removeAnnotationResults(int index) { + if (annotationResultsBuilder_ == null) { + ensureAnnotationResultsIsMutable(); + annotationResults_.remove(index); + onChanged(); + } else { + annotationResultsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Annotation results for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults annotation_results = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults.Builder getAnnotationResultsBuilder( + int index) { + return getAnnotationResultsFieldBuilder().getBuilder(index); + } + /** + *
+     * Annotation results for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults annotation_results = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResultsOrBuilder getAnnotationResultsOrBuilder( + int index) { + if (annotationResultsBuilder_ == null) { + return annotationResults_.get(index); } else { + return annotationResultsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Annotation results for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults annotation_results = 1; + */ + public java.util.List + getAnnotationResultsOrBuilderList() { + if (annotationResultsBuilder_ != null) { + return annotationResultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(annotationResults_); + } + } + /** + *
+     * Annotation results for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults annotation_results = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults.Builder addAnnotationResultsBuilder() { + return getAnnotationResultsFieldBuilder().addBuilder( + com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults.getDefaultInstance()); + } + /** + *
+     * Annotation results for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults annotation_results = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults.Builder addAnnotationResultsBuilder( + int index) { + return getAnnotationResultsFieldBuilder().addBuilder( + index, com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults.getDefaultInstance()); + } + /** + *
+     * Annotation results for all videos specified in `AnnotateVideoRequest`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults annotation_results = 1; + */ + public java.util.List + getAnnotationResultsBuilderList() { + return getAnnotationResultsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults, com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults.Builder, com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResultsOrBuilder> + getAnnotationResultsFieldBuilder() { + if (annotationResultsBuilder_ == null) { + annotationResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults, com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults.Builder, com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResultsOrBuilder>( + annotationResults_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + annotationResults_ = null; + } + return annotationResultsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse) + private static final com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse(); + } + + public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnnotateVideoResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnnotateVideoResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/AnnotateVideoResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/AnnotateVideoResponseOrBuilder.java new file mode 100644 index 000000000000..04695f6ee2b0 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/AnnotateVideoResponseOrBuilder.java @@ -0,0 +1,53 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +public interface AnnotateVideoResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Annotation results for all videos specified in `AnnotateVideoRequest`.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults annotation_results = 1; + */ + java.util.List + getAnnotationResultsList(); + /** + *
+   * Annotation results for all videos specified in `AnnotateVideoRequest`.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults annotation_results = 1; + */ + com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults getAnnotationResults(int index); + /** + *
+   * Annotation results for all videos specified in `AnnotateVideoRequest`.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults annotation_results = 1; + */ + int getAnnotationResultsCount(); + /** + *
+   * Annotation results for all videos specified in `AnnotateVideoRequest`.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults annotation_results = 1; + */ + java.util.List + getAnnotationResultsOrBuilderList(); + /** + *
+   * Annotation results for all videos specified in `AnnotateVideoRequest`.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults annotation_results = 1; + */ + com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResultsOrBuilder getAnnotationResultsOrBuilder( + int index); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/Entity.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/Entity.java new file mode 100644 index 000000000000..014dc22e121b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/Entity.java @@ -0,0 +1,901 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +/** + *
+ * Detected entity from video analysis.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.Entity} + */ +public final class Entity extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p2beta1.Entity) + EntityOrBuilder { +private static final long serialVersionUID = 0L; + // Use Entity.newBuilder() to construct. + private Entity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Entity() { + entityId_ = ""; + description_ = ""; + languageCode_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Entity( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + entityId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + languageCode_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_Entity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_Entity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p2beta1.Entity.class, com.google.cloud.videointelligence.v1p2beta1.Entity.Builder.class); + } + + public static final int ENTITY_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object entityId_; + /** + *
+   * Opaque entity ID. Some IDs may be available in
+   * [Google Knowledge Graph Search
+   * API](https://developers.google.com/knowledge-graph/).
+   * 
+ * + * string entity_id = 1; + */ + public java.lang.String getEntityId() { + java.lang.Object ref = entityId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entityId_ = s; + return s; + } + } + /** + *
+   * Opaque entity ID. Some IDs may be available in
+   * [Google Knowledge Graph Search
+   * API](https://developers.google.com/knowledge-graph/).
+   * 
+ * + * string entity_id = 1; + */ + public com.google.protobuf.ByteString + getEntityIdBytes() { + java.lang.Object ref = entityId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + entityId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + private volatile java.lang.Object description_; + /** + *
+   * Textual description, e.g. `Fixed-gear bicycle`.
+   * 
+ * + * string description = 2; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + *
+   * Textual description, e.g. `Fixed-gear bicycle`.
+   * 
+ * + * string description = 2; + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LANGUAGE_CODE_FIELD_NUMBER = 3; + private volatile java.lang.Object languageCode_; + /** + *
+   * Language code for `description` in BCP-47 format.
+   * 
+ * + * string language_code = 3; + */ + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } + } + /** + *
+   * Language code for `description` in BCP-47 format.
+   * 
+ * + * string language_code = 3; + */ + public com.google.protobuf.ByteString + getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getEntityIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, entityId_); + } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); + } + if (!getLanguageCodeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, languageCode_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getEntityIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, entityId_); + } + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); + } + if (!getLanguageCodeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, languageCode_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1p2beta1.Entity)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p2beta1.Entity other = (com.google.cloud.videointelligence.v1p2beta1.Entity) obj; + + boolean result = true; + result = result && getEntityId() + .equals(other.getEntityId()); + result = result && getDescription() + .equals(other.getDescription()); + result = result && getLanguageCode() + .equals(other.getLanguageCode()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENTITY_ID_FIELD_NUMBER; + hash = (53 * hash) + getEntityId().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; + hash = (53 * hash) + getLanguageCode().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p2beta1.Entity parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.Entity parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.Entity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.Entity parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.Entity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.Entity parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.Entity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.Entity parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.Entity parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.Entity parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.Entity parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.Entity parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.videointelligence.v1p2beta1.Entity prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Detected entity from video analysis.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.Entity} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p2beta1.Entity) + com.google.cloud.videointelligence.v1p2beta1.EntityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_Entity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_Entity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p2beta1.Entity.class, com.google.cloud.videointelligence.v1p2beta1.Entity.Builder.class); + } + + // Construct using com.google.cloud.videointelligence.v1p2beta1.Entity.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + entityId_ = ""; + + description_ = ""; + + languageCode_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_Entity_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.Entity getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p2beta1.Entity.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.Entity build() { + com.google.cloud.videointelligence.v1p2beta1.Entity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.Entity buildPartial() { + com.google.cloud.videointelligence.v1p2beta1.Entity result = new com.google.cloud.videointelligence.v1p2beta1.Entity(this); + result.entityId_ = entityId_; + result.description_ = description_; + result.languageCode_ = languageCode_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1p2beta1.Entity) { + return mergeFrom((com.google.cloud.videointelligence.v1p2beta1.Entity)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.videointelligence.v1p2beta1.Entity other) { + if (other == com.google.cloud.videointelligence.v1p2beta1.Entity.getDefaultInstance()) return this; + if (!other.getEntityId().isEmpty()) { + entityId_ = other.entityId_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (!other.getLanguageCode().isEmpty()) { + languageCode_ = other.languageCode_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p2beta1.Entity parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.videointelligence.v1p2beta1.Entity) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object entityId_ = ""; + /** + *
+     * Opaque entity ID. Some IDs may be available in
+     * [Google Knowledge Graph Search
+     * API](https://developers.google.com/knowledge-graph/).
+     * 
+ * + * string entity_id = 1; + */ + public java.lang.String getEntityId() { + java.lang.Object ref = entityId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entityId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Opaque entity ID. Some IDs may be available in
+     * [Google Knowledge Graph Search
+     * API](https://developers.google.com/knowledge-graph/).
+     * 
+ * + * string entity_id = 1; + */ + public com.google.protobuf.ByteString + getEntityIdBytes() { + java.lang.Object ref = entityId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + entityId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Opaque entity ID. Some IDs may be available in
+     * [Google Knowledge Graph Search
+     * API](https://developers.google.com/knowledge-graph/).
+     * 
+ * + * string entity_id = 1; + */ + public Builder setEntityId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + entityId_ = value; + onChanged(); + return this; + } + /** + *
+     * Opaque entity ID. Some IDs may be available in
+     * [Google Knowledge Graph Search
+     * API](https://developers.google.com/knowledge-graph/).
+     * 
+ * + * string entity_id = 1; + */ + public Builder clearEntityId() { + + entityId_ = getDefaultInstance().getEntityId(); + onChanged(); + return this; + } + /** + *
+     * Opaque entity ID. Some IDs may be available in
+     * [Google Knowledge Graph Search
+     * API](https://developers.google.com/knowledge-graph/).
+     * 
+ * + * string entity_id = 1; + */ + public Builder setEntityIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + entityId_ = value; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + *
+     * Textual description, e.g. `Fixed-gear bicycle`.
+     * 
+ * + * string description = 2; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Textual description, e.g. `Fixed-gear bicycle`.
+     * 
+ * + * string description = 2; + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Textual description, e.g. `Fixed-gear bicycle`.
+     * 
+ * + * string description = 2; + */ + public Builder setDescription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + *
+     * Textual description, e.g. `Fixed-gear bicycle`.
+     * 
+ * + * string description = 2; + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + *
+     * Textual description, e.g. `Fixed-gear bicycle`.
+     * 
+ * + * string description = 2; + */ + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private java.lang.Object languageCode_ = ""; + /** + *
+     * Language code for `description` in BCP-47 format.
+     * 
+ * + * string language_code = 3; + */ + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Language code for `description` in BCP-47 format.
+     * 
+ * + * string language_code = 3; + */ + public com.google.protobuf.ByteString + getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Language code for `description` in BCP-47 format.
+     * 
+ * + * string language_code = 3; + */ + public Builder setLanguageCode( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + languageCode_ = value; + onChanged(); + return this; + } + /** + *
+     * Language code for `description` in BCP-47 format.
+     * 
+ * + * string language_code = 3; + */ + public Builder clearLanguageCode() { + + languageCode_ = getDefaultInstance().getLanguageCode(); + onChanged(); + return this; + } + /** + *
+     * Language code for `description` in BCP-47 format.
+     * 
+ * + * string language_code = 3; + */ + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + languageCode_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p2beta1.Entity) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.Entity) + private static final com.google.cloud.videointelligence.v1p2beta1.Entity DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p2beta1.Entity(); + } + + public static com.google.cloud.videointelligence.v1p2beta1.Entity getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Entity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Entity(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.Entity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/EntityOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/EntityOrBuilder.java new file mode 100644 index 000000000000..2038c4093b60 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/EntityOrBuilder.java @@ -0,0 +1,67 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +public interface EntityOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p2beta1.Entity) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Opaque entity ID. Some IDs may be available in
+   * [Google Knowledge Graph Search
+   * API](https://developers.google.com/knowledge-graph/).
+   * 
+ * + * string entity_id = 1; + */ + java.lang.String getEntityId(); + /** + *
+   * Opaque entity ID. Some IDs may be available in
+   * [Google Knowledge Graph Search
+   * API](https://developers.google.com/knowledge-graph/).
+   * 
+ * + * string entity_id = 1; + */ + com.google.protobuf.ByteString + getEntityIdBytes(); + + /** + *
+   * Textual description, e.g. `Fixed-gear bicycle`.
+   * 
+ * + * string description = 2; + */ + java.lang.String getDescription(); + /** + *
+   * Textual description, e.g. `Fixed-gear bicycle`.
+   * 
+ * + * string description = 2; + */ + com.google.protobuf.ByteString + getDescriptionBytes(); + + /** + *
+   * Language code for `description` in BCP-47 format.
+   * 
+ * + * string language_code = 3; + */ + java.lang.String getLanguageCode(); + /** + *
+   * Language code for `description` in BCP-47 format.
+   * 
+ * + * string language_code = 3; + */ + com.google.protobuf.ByteString + getLanguageCodeBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ExplicitContentAnnotation.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ExplicitContentAnnotation.java new file mode 100644 index 000000000000..ecc8b18bbcc5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ExplicitContentAnnotation.java @@ -0,0 +1,863 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +/** + *
+ * Explicit content annotation (based on per-frame visual signals only).
+ * If no explicit content has been detected in a frame, no annotations are
+ * present for that frame.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation} + */ +public final class ExplicitContentAnnotation extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation) + ExplicitContentAnnotationOrBuilder { +private static final long serialVersionUID = 0L; + // Use ExplicitContentAnnotation.newBuilder() to construct. + private ExplicitContentAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExplicitContentAnnotation() { + frames_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExplicitContentAnnotation( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + frames_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + frames_.add( + input.readMessage(com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + frames_ = java.util.Collections.unmodifiableList(frames_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_ExplicitContentAnnotation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_ExplicitContentAnnotation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation.class, com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation.Builder.class); + } + + public static final int FRAMES_FIELD_NUMBER = 1; + private java.util.List frames_; + /** + *
+   * All video frames where explicit content was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame frames = 1; + */ + public java.util.List getFramesList() { + return frames_; + } + /** + *
+   * All video frames where explicit content was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame frames = 1; + */ + public java.util.List + getFramesOrBuilderList() { + return frames_; + } + /** + *
+   * All video frames where explicit content was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame frames = 1; + */ + public int getFramesCount() { + return frames_.size(); + } + /** + *
+   * All video frames where explicit content was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame frames = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame getFrames(int index) { + return frames_.get(index); + } + /** + *
+   * All video frames where explicit content was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame frames = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrameOrBuilder getFramesOrBuilder( + int index) { + return frames_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < frames_.size(); i++) { + output.writeMessage(1, frames_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < frames_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, frames_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation other = (com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation) obj; + + boolean result = true; + result = result && getFramesList() + .equals(other.getFramesList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getFramesCount() > 0) { + hash = (37 * hash) + FRAMES_FIELD_NUMBER; + hash = (53 * hash) + getFramesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Explicit content annotation (based on per-frame visual signals only).
+   * If no explicit content has been detected in a frame, no annotations are
+   * present for that frame.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation) + com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_ExplicitContentAnnotation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_ExplicitContentAnnotation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation.class, com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation.Builder.class); + } + + // Construct using com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getFramesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (framesBuilder_ == null) { + frames_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + framesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_ExplicitContentAnnotation_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation build() { + com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation buildPartial() { + com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation result = new com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation(this); + int from_bitField0_ = bitField0_; + if (framesBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + frames_ = java.util.Collections.unmodifiableList(frames_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.frames_ = frames_; + } else { + result.frames_ = framesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation) { + return mergeFrom((com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation other) { + if (other == com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation.getDefaultInstance()) return this; + if (framesBuilder_ == null) { + if (!other.frames_.isEmpty()) { + if (frames_.isEmpty()) { + frames_ = other.frames_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFramesIsMutable(); + frames_.addAll(other.frames_); + } + onChanged(); + } + } else { + if (!other.frames_.isEmpty()) { + if (framesBuilder_.isEmpty()) { + framesBuilder_.dispose(); + framesBuilder_ = null; + frames_ = other.frames_; + bitField0_ = (bitField0_ & ~0x00000001); + framesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFramesFieldBuilder() : null; + } else { + framesBuilder_.addAllMessages(other.frames_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List frames_ = + java.util.Collections.emptyList(); + private void ensureFramesIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + frames_ = new java.util.ArrayList(frames_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame, com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame.Builder, com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrameOrBuilder> framesBuilder_; + + /** + *
+     * All video frames where explicit content was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame frames = 1; + */ + public java.util.List getFramesList() { + if (framesBuilder_ == null) { + return java.util.Collections.unmodifiableList(frames_); + } else { + return framesBuilder_.getMessageList(); + } + } + /** + *
+     * All video frames where explicit content was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame frames = 1; + */ + public int getFramesCount() { + if (framesBuilder_ == null) { + return frames_.size(); + } else { + return framesBuilder_.getCount(); + } + } + /** + *
+     * All video frames where explicit content was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame frames = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame getFrames(int index) { + if (framesBuilder_ == null) { + return frames_.get(index); + } else { + return framesBuilder_.getMessage(index); + } + } + /** + *
+     * All video frames where explicit content was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame frames = 1; + */ + public Builder setFrames( + int index, com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame value) { + if (framesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFramesIsMutable(); + frames_.set(index, value); + onChanged(); + } else { + framesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * All video frames where explicit content was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame frames = 1; + */ + public Builder setFrames( + int index, com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame.Builder builderForValue) { + if (framesBuilder_ == null) { + ensureFramesIsMutable(); + frames_.set(index, builderForValue.build()); + onChanged(); + } else { + framesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * All video frames where explicit content was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame frames = 1; + */ + public Builder addFrames(com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame value) { + if (framesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFramesIsMutable(); + frames_.add(value); + onChanged(); + } else { + framesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * All video frames where explicit content was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame frames = 1; + */ + public Builder addFrames( + int index, com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame value) { + if (framesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFramesIsMutable(); + frames_.add(index, value); + onChanged(); + } else { + framesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * All video frames where explicit content was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame frames = 1; + */ + public Builder addFrames( + com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame.Builder builderForValue) { + if (framesBuilder_ == null) { + ensureFramesIsMutable(); + frames_.add(builderForValue.build()); + onChanged(); + } else { + framesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * All video frames where explicit content was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame frames = 1; + */ + public Builder addFrames( + int index, com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame.Builder builderForValue) { + if (framesBuilder_ == null) { + ensureFramesIsMutable(); + frames_.add(index, builderForValue.build()); + onChanged(); + } else { + framesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * All video frames where explicit content was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame frames = 1; + */ + public Builder addAllFrames( + java.lang.Iterable values) { + if (framesBuilder_ == null) { + ensureFramesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, frames_); + onChanged(); + } else { + framesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * All video frames where explicit content was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame frames = 1; + */ + public Builder clearFrames() { + if (framesBuilder_ == null) { + frames_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + framesBuilder_.clear(); + } + return this; + } + /** + *
+     * All video frames where explicit content was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame frames = 1; + */ + public Builder removeFrames(int index) { + if (framesBuilder_ == null) { + ensureFramesIsMutable(); + frames_.remove(index); + onChanged(); + } else { + framesBuilder_.remove(index); + } + return this; + } + /** + *
+     * All video frames where explicit content was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame frames = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame.Builder getFramesBuilder( + int index) { + return getFramesFieldBuilder().getBuilder(index); + } + /** + *
+     * All video frames where explicit content was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame frames = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrameOrBuilder getFramesOrBuilder( + int index) { + if (framesBuilder_ == null) { + return frames_.get(index); } else { + return framesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * All video frames where explicit content was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame frames = 1; + */ + public java.util.List + getFramesOrBuilderList() { + if (framesBuilder_ != null) { + return framesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(frames_); + } + } + /** + *
+     * All video frames where explicit content was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame frames = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame.Builder addFramesBuilder() { + return getFramesFieldBuilder().addBuilder( + com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame.getDefaultInstance()); + } + /** + *
+     * All video frames where explicit content was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame frames = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame.Builder addFramesBuilder( + int index) { + return getFramesFieldBuilder().addBuilder( + index, com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame.getDefaultInstance()); + } + /** + *
+     * All video frames where explicit content was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame frames = 1; + */ + public java.util.List + getFramesBuilderList() { + return getFramesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame, com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame.Builder, com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrameOrBuilder> + getFramesFieldBuilder() { + if (framesBuilder_ == null) { + framesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame, com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame.Builder, com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrameOrBuilder>( + frames_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + frames_ = null; + } + return framesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation) + private static final com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation(); + } + + public static com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExplicitContentAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExplicitContentAnnotation(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ExplicitContentAnnotationOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ExplicitContentAnnotationOrBuilder.java new file mode 100644 index 000000000000..9ef530ce4187 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ExplicitContentAnnotationOrBuilder.java @@ -0,0 +1,53 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +public interface ExplicitContentAnnotationOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * All video frames where explicit content was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame frames = 1; + */ + java.util.List + getFramesList(); + /** + *
+   * All video frames where explicit content was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame frames = 1; + */ + com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame getFrames(int index); + /** + *
+   * All video frames where explicit content was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame frames = 1; + */ + int getFramesCount(); + /** + *
+   * All video frames where explicit content was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame frames = 1; + */ + java.util.List + getFramesOrBuilderList(); + /** + *
+   * All video frames where explicit content was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame frames = 1; + */ + com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrameOrBuilder getFramesOrBuilder( + int index); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ExplicitContentDetectionConfig.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ExplicitContentDetectionConfig.java new file mode 100644 index 000000000000..4e0f14ee3898 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ExplicitContentDetectionConfig.java @@ -0,0 +1,591 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +/** + *
+ * Config for EXPLICIT_CONTENT_DETECTION.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig} + */ +public final class ExplicitContentDetectionConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig) + ExplicitContentDetectionConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use ExplicitContentDetectionConfig.newBuilder() to construct. + private ExplicitContentDetectionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExplicitContentDetectionConfig() { + model_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExplicitContentDetectionConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + model_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_ExplicitContentDetectionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_ExplicitContentDetectionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig.class, com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig.Builder.class); + } + + public static final int MODEL_FIELD_NUMBER = 1; + private volatile java.lang.Object model_; + /** + *
+   * Model to use for explicit content detection.
+   * Supported values: "builtin/stable" (the default if unset) and
+   * "builtin/latest".
+   * 
+ * + * string model = 1; + */ + public java.lang.String getModel() { + java.lang.Object ref = model_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + model_ = s; + return s; + } + } + /** + *
+   * Model to use for explicit content detection.
+   * Supported values: "builtin/stable" (the default if unset) and
+   * "builtin/latest".
+   * 
+ * + * string model = 1; + */ + public com.google.protobuf.ByteString + getModelBytes() { + java.lang.Object ref = model_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + model_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getModelBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, model_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getModelBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, model_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig other = (com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig) obj; + + boolean result = true; + result = result && getModel() + .equals(other.getModel()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MODEL_FIELD_NUMBER; + hash = (53 * hash) + getModel().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Config for EXPLICIT_CONTENT_DETECTION.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig) + com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_ExplicitContentDetectionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_ExplicitContentDetectionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig.class, com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig.Builder.class); + } + + // Construct using com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + model_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_ExplicitContentDetectionConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig build() { + com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig buildPartial() { + com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig result = new com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig(this); + result.model_ = model_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig) { + return mergeFrom((com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig other) { + if (other == com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig.getDefaultInstance()) return this; + if (!other.getModel().isEmpty()) { + model_ = other.model_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object model_ = ""; + /** + *
+     * Model to use for explicit content detection.
+     * Supported values: "builtin/stable" (the default if unset) and
+     * "builtin/latest".
+     * 
+ * + * string model = 1; + */ + public java.lang.String getModel() { + java.lang.Object ref = model_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + model_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Model to use for explicit content detection.
+     * Supported values: "builtin/stable" (the default if unset) and
+     * "builtin/latest".
+     * 
+ * + * string model = 1; + */ + public com.google.protobuf.ByteString + getModelBytes() { + java.lang.Object ref = model_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + model_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Model to use for explicit content detection.
+     * Supported values: "builtin/stable" (the default if unset) and
+     * "builtin/latest".
+     * 
+ * + * string model = 1; + */ + public Builder setModel( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + model_ = value; + onChanged(); + return this; + } + /** + *
+     * Model to use for explicit content detection.
+     * Supported values: "builtin/stable" (the default if unset) and
+     * "builtin/latest".
+     * 
+ * + * string model = 1; + */ + public Builder clearModel() { + + model_ = getDefaultInstance().getModel(); + onChanged(); + return this; + } + /** + *
+     * Model to use for explicit content detection.
+     * Supported values: "builtin/stable" (the default if unset) and
+     * "builtin/latest".
+     * 
+ * + * string model = 1; + */ + public Builder setModelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + model_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig) + private static final com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig(); + } + + public static com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExplicitContentDetectionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExplicitContentDetectionConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ExplicitContentDetectionConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ExplicitContentDetectionConfigOrBuilder.java new file mode 100644 index 000000000000..000f0bd1a3d5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ExplicitContentDetectionConfigOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +public interface ExplicitContentDetectionConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Model to use for explicit content detection.
+   * Supported values: "builtin/stable" (the default if unset) and
+   * "builtin/latest".
+   * 
+ * + * string model = 1; + */ + java.lang.String getModel(); + /** + *
+   * Model to use for explicit content detection.
+   * Supported values: "builtin/stable" (the default if unset) and
+   * "builtin/latest".
+   * 
+ * + * string model = 1; + */ + com.google.protobuf.ByteString + getModelBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ExplicitContentFrame.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ExplicitContentFrame.java new file mode 100644 index 000000000000..38a95482cacb --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ExplicitContentFrame.java @@ -0,0 +1,776 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +/** + *
+ * Video frame level annotation results for explicit content.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame} + */ +public final class ExplicitContentFrame extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame) + ExplicitContentFrameOrBuilder { +private static final long serialVersionUID = 0L; + // Use ExplicitContentFrame.newBuilder() to construct. + private ExplicitContentFrame(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExplicitContentFrame() { + pornographyLikelihood_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExplicitContentFrame( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (timeOffset_ != null) { + subBuilder = timeOffset_.toBuilder(); + } + timeOffset_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(timeOffset_); + timeOffset_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + int rawValue = input.readEnum(); + + pornographyLikelihood_ = rawValue; + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_ExplicitContentFrame_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_ExplicitContentFrame_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame.class, com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame.Builder.class); + } + + public static final int TIME_OFFSET_FIELD_NUMBER = 1; + private com.google.protobuf.Duration timeOffset_; + /** + *
+   * Time-offset, relative to the beginning of the video, corresponding to the
+   * video frame for this location.
+   * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + public boolean hasTimeOffset() { + return timeOffset_ != null; + } + /** + *
+   * Time-offset, relative to the beginning of the video, corresponding to the
+   * video frame for this location.
+   * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + public com.google.protobuf.Duration getTimeOffset() { + return timeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeOffset_; + } + /** + *
+   * Time-offset, relative to the beginning of the video, corresponding to the
+   * video frame for this location.
+   * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() { + return getTimeOffset(); + } + + public static final int PORNOGRAPHY_LIKELIHOOD_FIELD_NUMBER = 2; + private int pornographyLikelihood_; + /** + *
+   * Likelihood of the pornography content..
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.Likelihood pornography_likelihood = 2; + */ + public int getPornographyLikelihoodValue() { + return pornographyLikelihood_; + } + /** + *
+   * Likelihood of the pornography content..
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.Likelihood pornography_likelihood = 2; + */ + public com.google.cloud.videointelligence.v1p2beta1.Likelihood getPornographyLikelihood() { + @SuppressWarnings("deprecation") + com.google.cloud.videointelligence.v1p2beta1.Likelihood result = com.google.cloud.videointelligence.v1p2beta1.Likelihood.valueOf(pornographyLikelihood_); + return result == null ? com.google.cloud.videointelligence.v1p2beta1.Likelihood.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (timeOffset_ != null) { + output.writeMessage(1, getTimeOffset()); + } + if (pornographyLikelihood_ != com.google.cloud.videointelligence.v1p2beta1.Likelihood.LIKELIHOOD_UNSPECIFIED.getNumber()) { + output.writeEnum(2, pornographyLikelihood_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (timeOffset_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTimeOffset()); + } + if (pornographyLikelihood_ != com.google.cloud.videointelligence.v1p2beta1.Likelihood.LIKELIHOOD_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, pornographyLikelihood_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame other = (com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame) obj; + + boolean result = true; + result = result && (hasTimeOffset() == other.hasTimeOffset()); + if (hasTimeOffset()) { + result = result && getTimeOffset() + .equals(other.getTimeOffset()); + } + result = result && pornographyLikelihood_ == other.pornographyLikelihood_; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTimeOffset()) { + hash = (37 * hash) + TIME_OFFSET_FIELD_NUMBER; + hash = (53 * hash) + getTimeOffset().hashCode(); + } + hash = (37 * hash) + PORNOGRAPHY_LIKELIHOOD_FIELD_NUMBER; + hash = (53 * hash) + pornographyLikelihood_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Video frame level annotation results for explicit content.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame) + com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrameOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_ExplicitContentFrame_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_ExplicitContentFrame_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame.class, com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame.Builder.class); + } + + // Construct using com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (timeOffsetBuilder_ == null) { + timeOffset_ = null; + } else { + timeOffset_ = null; + timeOffsetBuilder_ = null; + } + pornographyLikelihood_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_ExplicitContentFrame_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame build() { + com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame buildPartial() { + com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame result = new com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame(this); + if (timeOffsetBuilder_ == null) { + result.timeOffset_ = timeOffset_; + } else { + result.timeOffset_ = timeOffsetBuilder_.build(); + } + result.pornographyLikelihood_ = pornographyLikelihood_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame) { + return mergeFrom((com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame other) { + if (other == com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame.getDefaultInstance()) return this; + if (other.hasTimeOffset()) { + mergeTimeOffset(other.getTimeOffset()); + } + if (other.pornographyLikelihood_ != 0) { + setPornographyLikelihoodValue(other.getPornographyLikelihoodValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.Duration timeOffset_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> timeOffsetBuilder_; + /** + *
+     * Time-offset, relative to the beginning of the video, corresponding to the
+     * video frame for this location.
+     * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + public boolean hasTimeOffset() { + return timeOffsetBuilder_ != null || timeOffset_ != null; + } + /** + *
+     * Time-offset, relative to the beginning of the video, corresponding to the
+     * video frame for this location.
+     * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + public com.google.protobuf.Duration getTimeOffset() { + if (timeOffsetBuilder_ == null) { + return timeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeOffset_; + } else { + return timeOffsetBuilder_.getMessage(); + } + } + /** + *
+     * Time-offset, relative to the beginning of the video, corresponding to the
+     * video frame for this location.
+     * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + public Builder setTimeOffset(com.google.protobuf.Duration value) { + if (timeOffsetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + timeOffset_ = value; + onChanged(); + } else { + timeOffsetBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Time-offset, relative to the beginning of the video, corresponding to the
+     * video frame for this location.
+     * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + public Builder setTimeOffset( + com.google.protobuf.Duration.Builder builderForValue) { + if (timeOffsetBuilder_ == null) { + timeOffset_ = builderForValue.build(); + onChanged(); + } else { + timeOffsetBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Time-offset, relative to the beginning of the video, corresponding to the
+     * video frame for this location.
+     * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + public Builder mergeTimeOffset(com.google.protobuf.Duration value) { + if (timeOffsetBuilder_ == null) { + if (timeOffset_ != null) { + timeOffset_ = + com.google.protobuf.Duration.newBuilder(timeOffset_).mergeFrom(value).buildPartial(); + } else { + timeOffset_ = value; + } + onChanged(); + } else { + timeOffsetBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Time-offset, relative to the beginning of the video, corresponding to the
+     * video frame for this location.
+     * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + public Builder clearTimeOffset() { + if (timeOffsetBuilder_ == null) { + timeOffset_ = null; + onChanged(); + } else { + timeOffset_ = null; + timeOffsetBuilder_ = null; + } + + return this; + } + /** + *
+     * Time-offset, relative to the beginning of the video, corresponding to the
+     * video frame for this location.
+     * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + public com.google.protobuf.Duration.Builder getTimeOffsetBuilder() { + + onChanged(); + return getTimeOffsetFieldBuilder().getBuilder(); + } + /** + *
+     * Time-offset, relative to the beginning of the video, corresponding to the
+     * video frame for this location.
+     * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() { + if (timeOffsetBuilder_ != null) { + return timeOffsetBuilder_.getMessageOrBuilder(); + } else { + return timeOffset_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : timeOffset_; + } + } + /** + *
+     * Time-offset, relative to the beginning of the video, corresponding to the
+     * video frame for this location.
+     * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getTimeOffsetFieldBuilder() { + if (timeOffsetBuilder_ == null) { + timeOffsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getTimeOffset(), + getParentForChildren(), + isClean()); + timeOffset_ = null; + } + return timeOffsetBuilder_; + } + + private int pornographyLikelihood_ = 0; + /** + *
+     * Likelihood of the pornography content..
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.Likelihood pornography_likelihood = 2; + */ + public int getPornographyLikelihoodValue() { + return pornographyLikelihood_; + } + /** + *
+     * Likelihood of the pornography content..
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.Likelihood pornography_likelihood = 2; + */ + public Builder setPornographyLikelihoodValue(int value) { + pornographyLikelihood_ = value; + onChanged(); + return this; + } + /** + *
+     * Likelihood of the pornography content..
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.Likelihood pornography_likelihood = 2; + */ + public com.google.cloud.videointelligence.v1p2beta1.Likelihood getPornographyLikelihood() { + @SuppressWarnings("deprecation") + com.google.cloud.videointelligence.v1p2beta1.Likelihood result = com.google.cloud.videointelligence.v1p2beta1.Likelihood.valueOf(pornographyLikelihood_); + return result == null ? com.google.cloud.videointelligence.v1p2beta1.Likelihood.UNRECOGNIZED : result; + } + /** + *
+     * Likelihood of the pornography content..
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.Likelihood pornography_likelihood = 2; + */ + public Builder setPornographyLikelihood(com.google.cloud.videointelligence.v1p2beta1.Likelihood value) { + if (value == null) { + throw new NullPointerException(); + } + + pornographyLikelihood_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Likelihood of the pornography content..
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.Likelihood pornography_likelihood = 2; + */ + public Builder clearPornographyLikelihood() { + + pornographyLikelihood_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame) + private static final com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame(); + } + + public static com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExplicitContentFrame parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExplicitContentFrame(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ExplicitContentFrameOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ExplicitContentFrameOrBuilder.java new file mode 100644 index 000000000000..632b4ab3591b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ExplicitContentFrameOrBuilder.java @@ -0,0 +1,54 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +public interface ExplicitContentFrameOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Time-offset, relative to the beginning of the video, corresponding to the
+   * video frame for this location.
+   * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + boolean hasTimeOffset(); + /** + *
+   * Time-offset, relative to the beginning of the video, corresponding to the
+   * video frame for this location.
+   * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + com.google.protobuf.Duration getTimeOffset(); + /** + *
+   * Time-offset, relative to the beginning of the video, corresponding to the
+   * video frame for this location.
+   * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder(); + + /** + *
+   * Likelihood of the pornography content..
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.Likelihood pornography_likelihood = 2; + */ + int getPornographyLikelihoodValue(); + /** + *
+   * Likelihood of the pornography content..
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.Likelihood pornography_likelihood = 2; + */ + com.google.cloud.videointelligence.v1p2beta1.Likelihood getPornographyLikelihood(); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/Feature.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/Feature.java new file mode 100644 index 000000000000..426574fbb8c2 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/Feature.java @@ -0,0 +1,191 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +/** + *
+ * Video annotation feature.
+ * 
+ * + * Protobuf enum {@code google.cloud.videointelligence.v1p2beta1.Feature} + */ +public enum Feature + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+   * Unspecified.
+   * 
+ * + * FEATURE_UNSPECIFIED = 0; + */ + FEATURE_UNSPECIFIED(0), + /** + *
+   * Label detection. Detect objects, such as dog or flower.
+   * 
+ * + * LABEL_DETECTION = 1; + */ + LABEL_DETECTION(1), + /** + *
+   * Shot change detection.
+   * 
+ * + * SHOT_CHANGE_DETECTION = 2; + */ + SHOT_CHANGE_DETECTION(2), + /** + *
+   * Explicit content detection.
+   * 
+ * + * EXPLICIT_CONTENT_DETECTION = 3; + */ + EXPLICIT_CONTENT_DETECTION(3), + /** + *
+   * OCR text detection and tracking.
+   * 
+ * + * TEXT_DETECTION = 7; + */ + TEXT_DETECTION(7), + /** + *
+   * Object detection and tracking.
+   * 
+ * + * OBJECT_TRACKING = 9; + */ + OBJECT_TRACKING(9), + UNRECOGNIZED(-1), + ; + + /** + *
+   * Unspecified.
+   * 
+ * + * FEATURE_UNSPECIFIED = 0; + */ + public static final int FEATURE_UNSPECIFIED_VALUE = 0; + /** + *
+   * Label detection. Detect objects, such as dog or flower.
+   * 
+ * + * LABEL_DETECTION = 1; + */ + public static final int LABEL_DETECTION_VALUE = 1; + /** + *
+   * Shot change detection.
+   * 
+ * + * SHOT_CHANGE_DETECTION = 2; + */ + public static final int SHOT_CHANGE_DETECTION_VALUE = 2; + /** + *
+   * Explicit content detection.
+   * 
+ * + * EXPLICIT_CONTENT_DETECTION = 3; + */ + public static final int EXPLICIT_CONTENT_DETECTION_VALUE = 3; + /** + *
+   * OCR text detection and tracking.
+   * 
+ * + * TEXT_DETECTION = 7; + */ + public static final int TEXT_DETECTION_VALUE = 7; + /** + *
+   * Object detection and tracking.
+   * 
+ * + * OBJECT_TRACKING = 9; + */ + public static final int OBJECT_TRACKING_VALUE = 9; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Feature valueOf(int value) { + return forNumber(value); + } + + public static Feature forNumber(int value) { + switch (value) { + case 0: return FEATURE_UNSPECIFIED; + case 1: return LABEL_DETECTION; + case 2: return SHOT_CHANGE_DETECTION; + case 3: return EXPLICIT_CONTENT_DETECTION; + case 7: return TEXT_DETECTION; + case 9: return OBJECT_TRACKING; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Feature> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Feature findValueByNumber(int number) { + return Feature.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.getDescriptor().getEnumTypes().get(0); + } + + private static final Feature[] VALUES = values(); + + public static Feature valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Feature(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.videointelligence.v1p2beta1.Feature) +} + diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelAnnotation.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelAnnotation.java new file mode 100644 index 000000000000..c873be51e742 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelAnnotation.java @@ -0,0 +1,2030 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +/** + *
+ * Label annotation.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.LabelAnnotation} + */ +public final class LabelAnnotation extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p2beta1.LabelAnnotation) + LabelAnnotationOrBuilder { +private static final long serialVersionUID = 0L; + // Use LabelAnnotation.newBuilder() to construct. + private LabelAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LabelAnnotation() { + categoryEntities_ = java.util.Collections.emptyList(); + segments_ = java.util.Collections.emptyList(); + frames_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LabelAnnotation( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.videointelligence.v1p2beta1.Entity.Builder subBuilder = null; + if (entity_ != null) { + subBuilder = entity_.toBuilder(); + } + entity_ = input.readMessage(com.google.cloud.videointelligence.v1p2beta1.Entity.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(entity_); + entity_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + categoryEntities_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + categoryEntities_.add( + input.readMessage(com.google.cloud.videointelligence.v1p2beta1.Entity.parser(), extensionRegistry)); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + segments_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + segments_.add( + input.readMessage(com.google.cloud.videointelligence.v1p2beta1.LabelSegment.parser(), extensionRegistry)); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + frames_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + frames_.add( + input.readMessage(com.google.cloud.videointelligence.v1p2beta1.LabelFrame.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + categoryEntities_ = java.util.Collections.unmodifiableList(categoryEntities_); + } + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + segments_ = java.util.Collections.unmodifiableList(segments_); + } + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + frames_ = java.util.Collections.unmodifiableList(frames_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_LabelAnnotation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_LabelAnnotation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation.class, com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation.Builder.class); + } + + private int bitField0_; + public static final int ENTITY_FIELD_NUMBER = 1; + private com.google.cloud.videointelligence.v1p2beta1.Entity entity_; + /** + *
+   * Detected entity.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.Entity entity = 1; + */ + public boolean hasEntity() { + return entity_ != null; + } + /** + *
+   * Detected entity.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.Entity entity = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.Entity getEntity() { + return entity_ == null ? com.google.cloud.videointelligence.v1p2beta1.Entity.getDefaultInstance() : entity_; + } + /** + *
+   * Detected entity.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.Entity entity = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.EntityOrBuilder getEntityOrBuilder() { + return getEntity(); + } + + public static final int CATEGORY_ENTITIES_FIELD_NUMBER = 2; + private java.util.List categoryEntities_; + /** + *
+   * Common categories for the detected entity.
+   * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+   * cases there might be more than one categories e.g. `Terrier` could also be
+   * a `pet`.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.Entity category_entities = 2; + */ + public java.util.List getCategoryEntitiesList() { + return categoryEntities_; + } + /** + *
+   * Common categories for the detected entity.
+   * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+   * cases there might be more than one categories e.g. `Terrier` could also be
+   * a `pet`.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.Entity category_entities = 2; + */ + public java.util.List + getCategoryEntitiesOrBuilderList() { + return categoryEntities_; + } + /** + *
+   * Common categories for the detected entity.
+   * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+   * cases there might be more than one categories e.g. `Terrier` could also be
+   * a `pet`.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.Entity category_entities = 2; + */ + public int getCategoryEntitiesCount() { + return categoryEntities_.size(); + } + /** + *
+   * Common categories for the detected entity.
+   * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+   * cases there might be more than one categories e.g. `Terrier` could also be
+   * a `pet`.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.Entity category_entities = 2; + */ + public com.google.cloud.videointelligence.v1p2beta1.Entity getCategoryEntities(int index) { + return categoryEntities_.get(index); + } + /** + *
+   * Common categories for the detected entity.
+   * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+   * cases there might be more than one categories e.g. `Terrier` could also be
+   * a `pet`.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.Entity category_entities = 2; + */ + public com.google.cloud.videointelligence.v1p2beta1.EntityOrBuilder getCategoryEntitiesOrBuilder( + int index) { + return categoryEntities_.get(index); + } + + public static final int SEGMENTS_FIELD_NUMBER = 3; + private java.util.List segments_; + /** + *
+   * All video segments where a label was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelSegment segments = 3; + */ + public java.util.List getSegmentsList() { + return segments_; + } + /** + *
+   * All video segments where a label was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelSegment segments = 3; + */ + public java.util.List + getSegmentsOrBuilderList() { + return segments_; + } + /** + *
+   * All video segments where a label was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelSegment segments = 3; + */ + public int getSegmentsCount() { + return segments_.size(); + } + /** + *
+   * All video segments where a label was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelSegment segments = 3; + */ + public com.google.cloud.videointelligence.v1p2beta1.LabelSegment getSegments(int index) { + return segments_.get(index); + } + /** + *
+   * All video segments where a label was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelSegment segments = 3; + */ + public com.google.cloud.videointelligence.v1p2beta1.LabelSegmentOrBuilder getSegmentsOrBuilder( + int index) { + return segments_.get(index); + } + + public static final int FRAMES_FIELD_NUMBER = 4; + private java.util.List frames_; + /** + *
+   * All video frames where a label was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelFrame frames = 4; + */ + public java.util.List getFramesList() { + return frames_; + } + /** + *
+   * All video frames where a label was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelFrame frames = 4; + */ + public java.util.List + getFramesOrBuilderList() { + return frames_; + } + /** + *
+   * All video frames where a label was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelFrame frames = 4; + */ + public int getFramesCount() { + return frames_.size(); + } + /** + *
+   * All video frames where a label was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelFrame frames = 4; + */ + public com.google.cloud.videointelligence.v1p2beta1.LabelFrame getFrames(int index) { + return frames_.get(index); + } + /** + *
+   * All video frames where a label was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelFrame frames = 4; + */ + public com.google.cloud.videointelligence.v1p2beta1.LabelFrameOrBuilder getFramesOrBuilder( + int index) { + return frames_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (entity_ != null) { + output.writeMessage(1, getEntity()); + } + for (int i = 0; i < categoryEntities_.size(); i++) { + output.writeMessage(2, categoryEntities_.get(i)); + } + for (int i = 0; i < segments_.size(); i++) { + output.writeMessage(3, segments_.get(i)); + } + for (int i = 0; i < frames_.size(); i++) { + output.writeMessage(4, frames_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (entity_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getEntity()); + } + for (int i = 0; i < categoryEntities_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, categoryEntities_.get(i)); + } + for (int i = 0; i < segments_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, segments_.get(i)); + } + for (int i = 0; i < frames_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, frames_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation other = (com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation) obj; + + boolean result = true; + result = result && (hasEntity() == other.hasEntity()); + if (hasEntity()) { + result = result && getEntity() + .equals(other.getEntity()); + } + result = result && getCategoryEntitiesList() + .equals(other.getCategoryEntitiesList()); + result = result && getSegmentsList() + .equals(other.getSegmentsList()); + result = result && getFramesList() + .equals(other.getFramesList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEntity()) { + hash = (37 * hash) + ENTITY_FIELD_NUMBER; + hash = (53 * hash) + getEntity().hashCode(); + } + if (getCategoryEntitiesCount() > 0) { + hash = (37 * hash) + CATEGORY_ENTITIES_FIELD_NUMBER; + hash = (53 * hash) + getCategoryEntitiesList().hashCode(); + } + if (getSegmentsCount() > 0) { + hash = (37 * hash) + SEGMENTS_FIELD_NUMBER; + hash = (53 * hash) + getSegmentsList().hashCode(); + } + if (getFramesCount() > 0) { + hash = (37 * hash) + FRAMES_FIELD_NUMBER; + hash = (53 * hash) + getFramesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Label annotation.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.LabelAnnotation} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p2beta1.LabelAnnotation) + com.google.cloud.videointelligence.v1p2beta1.LabelAnnotationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_LabelAnnotation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_LabelAnnotation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation.class, com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation.Builder.class); + } + + // Construct using com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getCategoryEntitiesFieldBuilder(); + getSegmentsFieldBuilder(); + getFramesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (entityBuilder_ == null) { + entity_ = null; + } else { + entity_ = null; + entityBuilder_ = null; + } + if (categoryEntitiesBuilder_ == null) { + categoryEntities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + categoryEntitiesBuilder_.clear(); + } + if (segmentsBuilder_ == null) { + segments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + segmentsBuilder_.clear(); + } + if (framesBuilder_ == null) { + frames_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + framesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_LabelAnnotation_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation build() { + com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation buildPartial() { + com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation result = new com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (entityBuilder_ == null) { + result.entity_ = entity_; + } else { + result.entity_ = entityBuilder_.build(); + } + if (categoryEntitiesBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + categoryEntities_ = java.util.Collections.unmodifiableList(categoryEntities_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.categoryEntities_ = categoryEntities_; + } else { + result.categoryEntities_ = categoryEntitiesBuilder_.build(); + } + if (segmentsBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + segments_ = java.util.Collections.unmodifiableList(segments_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.segments_ = segments_; + } else { + result.segments_ = segmentsBuilder_.build(); + } + if (framesBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { + frames_ = java.util.Collections.unmodifiableList(frames_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.frames_ = frames_; + } else { + result.frames_ = framesBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation) { + return mergeFrom((com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation other) { + if (other == com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation.getDefaultInstance()) return this; + if (other.hasEntity()) { + mergeEntity(other.getEntity()); + } + if (categoryEntitiesBuilder_ == null) { + if (!other.categoryEntities_.isEmpty()) { + if (categoryEntities_.isEmpty()) { + categoryEntities_ = other.categoryEntities_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureCategoryEntitiesIsMutable(); + categoryEntities_.addAll(other.categoryEntities_); + } + onChanged(); + } + } else { + if (!other.categoryEntities_.isEmpty()) { + if (categoryEntitiesBuilder_.isEmpty()) { + categoryEntitiesBuilder_.dispose(); + categoryEntitiesBuilder_ = null; + categoryEntities_ = other.categoryEntities_; + bitField0_ = (bitField0_ & ~0x00000002); + categoryEntitiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getCategoryEntitiesFieldBuilder() : null; + } else { + categoryEntitiesBuilder_.addAllMessages(other.categoryEntities_); + } + } + } + if (segmentsBuilder_ == null) { + if (!other.segments_.isEmpty()) { + if (segments_.isEmpty()) { + segments_ = other.segments_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureSegmentsIsMutable(); + segments_.addAll(other.segments_); + } + onChanged(); + } + } else { + if (!other.segments_.isEmpty()) { + if (segmentsBuilder_.isEmpty()) { + segmentsBuilder_.dispose(); + segmentsBuilder_ = null; + segments_ = other.segments_; + bitField0_ = (bitField0_ & ~0x00000004); + segmentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSegmentsFieldBuilder() : null; + } else { + segmentsBuilder_.addAllMessages(other.segments_); + } + } + } + if (framesBuilder_ == null) { + if (!other.frames_.isEmpty()) { + if (frames_.isEmpty()) { + frames_ = other.frames_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureFramesIsMutable(); + frames_.addAll(other.frames_); + } + onChanged(); + } + } else { + if (!other.frames_.isEmpty()) { + if (framesBuilder_.isEmpty()) { + framesBuilder_.dispose(); + framesBuilder_ = null; + frames_ = other.frames_; + bitField0_ = (bitField0_ & ~0x00000008); + framesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFramesFieldBuilder() : null; + } else { + framesBuilder_.addAllMessages(other.frames_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.cloud.videointelligence.v1p2beta1.Entity entity_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.Entity, com.google.cloud.videointelligence.v1p2beta1.Entity.Builder, com.google.cloud.videointelligence.v1p2beta1.EntityOrBuilder> entityBuilder_; + /** + *
+     * Detected entity.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.Entity entity = 1; + */ + public boolean hasEntity() { + return entityBuilder_ != null || entity_ != null; + } + /** + *
+     * Detected entity.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.Entity entity = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.Entity getEntity() { + if (entityBuilder_ == null) { + return entity_ == null ? com.google.cloud.videointelligence.v1p2beta1.Entity.getDefaultInstance() : entity_; + } else { + return entityBuilder_.getMessage(); + } + } + /** + *
+     * Detected entity.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.Entity entity = 1; + */ + public Builder setEntity(com.google.cloud.videointelligence.v1p2beta1.Entity value) { + if (entityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + entity_ = value; + onChanged(); + } else { + entityBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Detected entity.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.Entity entity = 1; + */ + public Builder setEntity( + com.google.cloud.videointelligence.v1p2beta1.Entity.Builder builderForValue) { + if (entityBuilder_ == null) { + entity_ = builderForValue.build(); + onChanged(); + } else { + entityBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Detected entity.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.Entity entity = 1; + */ + public Builder mergeEntity(com.google.cloud.videointelligence.v1p2beta1.Entity value) { + if (entityBuilder_ == null) { + if (entity_ != null) { + entity_ = + com.google.cloud.videointelligence.v1p2beta1.Entity.newBuilder(entity_).mergeFrom(value).buildPartial(); + } else { + entity_ = value; + } + onChanged(); + } else { + entityBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Detected entity.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.Entity entity = 1; + */ + public Builder clearEntity() { + if (entityBuilder_ == null) { + entity_ = null; + onChanged(); + } else { + entity_ = null; + entityBuilder_ = null; + } + + return this; + } + /** + *
+     * Detected entity.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.Entity entity = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.Entity.Builder getEntityBuilder() { + + onChanged(); + return getEntityFieldBuilder().getBuilder(); + } + /** + *
+     * Detected entity.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.Entity entity = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.EntityOrBuilder getEntityOrBuilder() { + if (entityBuilder_ != null) { + return entityBuilder_.getMessageOrBuilder(); + } else { + return entity_ == null ? + com.google.cloud.videointelligence.v1p2beta1.Entity.getDefaultInstance() : entity_; + } + } + /** + *
+     * Detected entity.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.Entity entity = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.Entity, com.google.cloud.videointelligence.v1p2beta1.Entity.Builder, com.google.cloud.videointelligence.v1p2beta1.EntityOrBuilder> + getEntityFieldBuilder() { + if (entityBuilder_ == null) { + entityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.Entity, com.google.cloud.videointelligence.v1p2beta1.Entity.Builder, com.google.cloud.videointelligence.v1p2beta1.EntityOrBuilder>( + getEntity(), + getParentForChildren(), + isClean()); + entity_ = null; + } + return entityBuilder_; + } + + private java.util.List categoryEntities_ = + java.util.Collections.emptyList(); + private void ensureCategoryEntitiesIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + categoryEntities_ = new java.util.ArrayList(categoryEntities_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.Entity, com.google.cloud.videointelligence.v1p2beta1.Entity.Builder, com.google.cloud.videointelligence.v1p2beta1.EntityOrBuilder> categoryEntitiesBuilder_; + + /** + *
+     * Common categories for the detected entity.
+     * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+     * cases there might be more than one categories e.g. `Terrier` could also be
+     * a `pet`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.Entity category_entities = 2; + */ + public java.util.List getCategoryEntitiesList() { + if (categoryEntitiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(categoryEntities_); + } else { + return categoryEntitiesBuilder_.getMessageList(); + } + } + /** + *
+     * Common categories for the detected entity.
+     * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+     * cases there might be more than one categories e.g. `Terrier` could also be
+     * a `pet`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.Entity category_entities = 2; + */ + public int getCategoryEntitiesCount() { + if (categoryEntitiesBuilder_ == null) { + return categoryEntities_.size(); + } else { + return categoryEntitiesBuilder_.getCount(); + } + } + /** + *
+     * Common categories for the detected entity.
+     * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+     * cases there might be more than one categories e.g. `Terrier` could also be
+     * a `pet`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.Entity category_entities = 2; + */ + public com.google.cloud.videointelligence.v1p2beta1.Entity getCategoryEntities(int index) { + if (categoryEntitiesBuilder_ == null) { + return categoryEntities_.get(index); + } else { + return categoryEntitiesBuilder_.getMessage(index); + } + } + /** + *
+     * Common categories for the detected entity.
+     * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+     * cases there might be more than one categories e.g. `Terrier` could also be
+     * a `pet`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.Entity category_entities = 2; + */ + public Builder setCategoryEntities( + int index, com.google.cloud.videointelligence.v1p2beta1.Entity value) { + if (categoryEntitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCategoryEntitiesIsMutable(); + categoryEntities_.set(index, value); + onChanged(); + } else { + categoryEntitiesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Common categories for the detected entity.
+     * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+     * cases there might be more than one categories e.g. `Terrier` could also be
+     * a `pet`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.Entity category_entities = 2; + */ + public Builder setCategoryEntities( + int index, com.google.cloud.videointelligence.v1p2beta1.Entity.Builder builderForValue) { + if (categoryEntitiesBuilder_ == null) { + ensureCategoryEntitiesIsMutable(); + categoryEntities_.set(index, builderForValue.build()); + onChanged(); + } else { + categoryEntitiesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Common categories for the detected entity.
+     * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+     * cases there might be more than one categories e.g. `Terrier` could also be
+     * a `pet`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.Entity category_entities = 2; + */ + public Builder addCategoryEntities(com.google.cloud.videointelligence.v1p2beta1.Entity value) { + if (categoryEntitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCategoryEntitiesIsMutable(); + categoryEntities_.add(value); + onChanged(); + } else { + categoryEntitiesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Common categories for the detected entity.
+     * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+     * cases there might be more than one categories e.g. `Terrier` could also be
+     * a `pet`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.Entity category_entities = 2; + */ + public Builder addCategoryEntities( + int index, com.google.cloud.videointelligence.v1p2beta1.Entity value) { + if (categoryEntitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCategoryEntitiesIsMutable(); + categoryEntities_.add(index, value); + onChanged(); + } else { + categoryEntitiesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Common categories for the detected entity.
+     * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+     * cases there might be more than one categories e.g. `Terrier` could also be
+     * a `pet`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.Entity category_entities = 2; + */ + public Builder addCategoryEntities( + com.google.cloud.videointelligence.v1p2beta1.Entity.Builder builderForValue) { + if (categoryEntitiesBuilder_ == null) { + ensureCategoryEntitiesIsMutable(); + categoryEntities_.add(builderForValue.build()); + onChanged(); + } else { + categoryEntitiesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Common categories for the detected entity.
+     * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+     * cases there might be more than one categories e.g. `Terrier` could also be
+     * a `pet`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.Entity category_entities = 2; + */ + public Builder addCategoryEntities( + int index, com.google.cloud.videointelligence.v1p2beta1.Entity.Builder builderForValue) { + if (categoryEntitiesBuilder_ == null) { + ensureCategoryEntitiesIsMutable(); + categoryEntities_.add(index, builderForValue.build()); + onChanged(); + } else { + categoryEntitiesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Common categories for the detected entity.
+     * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+     * cases there might be more than one categories e.g. `Terrier` could also be
+     * a `pet`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.Entity category_entities = 2; + */ + public Builder addAllCategoryEntities( + java.lang.Iterable values) { + if (categoryEntitiesBuilder_ == null) { + ensureCategoryEntitiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, categoryEntities_); + onChanged(); + } else { + categoryEntitiesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Common categories for the detected entity.
+     * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+     * cases there might be more than one categories e.g. `Terrier` could also be
+     * a `pet`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.Entity category_entities = 2; + */ + public Builder clearCategoryEntities() { + if (categoryEntitiesBuilder_ == null) { + categoryEntities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + categoryEntitiesBuilder_.clear(); + } + return this; + } + /** + *
+     * Common categories for the detected entity.
+     * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+     * cases there might be more than one categories e.g. `Terrier` could also be
+     * a `pet`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.Entity category_entities = 2; + */ + public Builder removeCategoryEntities(int index) { + if (categoryEntitiesBuilder_ == null) { + ensureCategoryEntitiesIsMutable(); + categoryEntities_.remove(index); + onChanged(); + } else { + categoryEntitiesBuilder_.remove(index); + } + return this; + } + /** + *
+     * Common categories for the detected entity.
+     * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+     * cases there might be more than one categories e.g. `Terrier` could also be
+     * a `pet`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.Entity category_entities = 2; + */ + public com.google.cloud.videointelligence.v1p2beta1.Entity.Builder getCategoryEntitiesBuilder( + int index) { + return getCategoryEntitiesFieldBuilder().getBuilder(index); + } + /** + *
+     * Common categories for the detected entity.
+     * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+     * cases there might be more than one categories e.g. `Terrier` could also be
+     * a `pet`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.Entity category_entities = 2; + */ + public com.google.cloud.videointelligence.v1p2beta1.EntityOrBuilder getCategoryEntitiesOrBuilder( + int index) { + if (categoryEntitiesBuilder_ == null) { + return categoryEntities_.get(index); } else { + return categoryEntitiesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Common categories for the detected entity.
+     * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+     * cases there might be more than one categories e.g. `Terrier` could also be
+     * a `pet`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.Entity category_entities = 2; + */ + public java.util.List + getCategoryEntitiesOrBuilderList() { + if (categoryEntitiesBuilder_ != null) { + return categoryEntitiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(categoryEntities_); + } + } + /** + *
+     * Common categories for the detected entity.
+     * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+     * cases there might be more than one categories e.g. `Terrier` could also be
+     * a `pet`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.Entity category_entities = 2; + */ + public com.google.cloud.videointelligence.v1p2beta1.Entity.Builder addCategoryEntitiesBuilder() { + return getCategoryEntitiesFieldBuilder().addBuilder( + com.google.cloud.videointelligence.v1p2beta1.Entity.getDefaultInstance()); + } + /** + *
+     * Common categories for the detected entity.
+     * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+     * cases there might be more than one categories e.g. `Terrier` could also be
+     * a `pet`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.Entity category_entities = 2; + */ + public com.google.cloud.videointelligence.v1p2beta1.Entity.Builder addCategoryEntitiesBuilder( + int index) { + return getCategoryEntitiesFieldBuilder().addBuilder( + index, com.google.cloud.videointelligence.v1p2beta1.Entity.getDefaultInstance()); + } + /** + *
+     * Common categories for the detected entity.
+     * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+     * cases there might be more than one categories e.g. `Terrier` could also be
+     * a `pet`.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.Entity category_entities = 2; + */ + public java.util.List + getCategoryEntitiesBuilderList() { + return getCategoryEntitiesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.Entity, com.google.cloud.videointelligence.v1p2beta1.Entity.Builder, com.google.cloud.videointelligence.v1p2beta1.EntityOrBuilder> + getCategoryEntitiesFieldBuilder() { + if (categoryEntitiesBuilder_ == null) { + categoryEntitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.Entity, com.google.cloud.videointelligence.v1p2beta1.Entity.Builder, com.google.cloud.videointelligence.v1p2beta1.EntityOrBuilder>( + categoryEntities_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + categoryEntities_ = null; + } + return categoryEntitiesBuilder_; + } + + private java.util.List segments_ = + java.util.Collections.emptyList(); + private void ensureSegmentsIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + segments_ = new java.util.ArrayList(segments_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.LabelSegment, com.google.cloud.videointelligence.v1p2beta1.LabelSegment.Builder, com.google.cloud.videointelligence.v1p2beta1.LabelSegmentOrBuilder> segmentsBuilder_; + + /** + *
+     * All video segments where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelSegment segments = 3; + */ + public java.util.List getSegmentsList() { + if (segmentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(segments_); + } else { + return segmentsBuilder_.getMessageList(); + } + } + /** + *
+     * All video segments where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelSegment segments = 3; + */ + public int getSegmentsCount() { + if (segmentsBuilder_ == null) { + return segments_.size(); + } else { + return segmentsBuilder_.getCount(); + } + } + /** + *
+     * All video segments where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelSegment segments = 3; + */ + public com.google.cloud.videointelligence.v1p2beta1.LabelSegment getSegments(int index) { + if (segmentsBuilder_ == null) { + return segments_.get(index); + } else { + return segmentsBuilder_.getMessage(index); + } + } + /** + *
+     * All video segments where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelSegment segments = 3; + */ + public Builder setSegments( + int index, com.google.cloud.videointelligence.v1p2beta1.LabelSegment value) { + if (segmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSegmentsIsMutable(); + segments_.set(index, value); + onChanged(); + } else { + segmentsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * All video segments where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelSegment segments = 3; + */ + public Builder setSegments( + int index, com.google.cloud.videointelligence.v1p2beta1.LabelSegment.Builder builderForValue) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + segments_.set(index, builderForValue.build()); + onChanged(); + } else { + segmentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * All video segments where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelSegment segments = 3; + */ + public Builder addSegments(com.google.cloud.videointelligence.v1p2beta1.LabelSegment value) { + if (segmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSegmentsIsMutable(); + segments_.add(value); + onChanged(); + } else { + segmentsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * All video segments where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelSegment segments = 3; + */ + public Builder addSegments( + int index, com.google.cloud.videointelligence.v1p2beta1.LabelSegment value) { + if (segmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSegmentsIsMutable(); + segments_.add(index, value); + onChanged(); + } else { + segmentsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * All video segments where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelSegment segments = 3; + */ + public Builder addSegments( + com.google.cloud.videointelligence.v1p2beta1.LabelSegment.Builder builderForValue) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + segments_.add(builderForValue.build()); + onChanged(); + } else { + segmentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * All video segments where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelSegment segments = 3; + */ + public Builder addSegments( + int index, com.google.cloud.videointelligence.v1p2beta1.LabelSegment.Builder builderForValue) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + segments_.add(index, builderForValue.build()); + onChanged(); + } else { + segmentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * All video segments where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelSegment segments = 3; + */ + public Builder addAllSegments( + java.lang.Iterable values) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, segments_); + onChanged(); + } else { + segmentsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * All video segments where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelSegment segments = 3; + */ + public Builder clearSegments() { + if (segmentsBuilder_ == null) { + segments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + segmentsBuilder_.clear(); + } + return this; + } + /** + *
+     * All video segments where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelSegment segments = 3; + */ + public Builder removeSegments(int index) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + segments_.remove(index); + onChanged(); + } else { + segmentsBuilder_.remove(index); + } + return this; + } + /** + *
+     * All video segments where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelSegment segments = 3; + */ + public com.google.cloud.videointelligence.v1p2beta1.LabelSegment.Builder getSegmentsBuilder( + int index) { + return getSegmentsFieldBuilder().getBuilder(index); + } + /** + *
+     * All video segments where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelSegment segments = 3; + */ + public com.google.cloud.videointelligence.v1p2beta1.LabelSegmentOrBuilder getSegmentsOrBuilder( + int index) { + if (segmentsBuilder_ == null) { + return segments_.get(index); } else { + return segmentsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * All video segments where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelSegment segments = 3; + */ + public java.util.List + getSegmentsOrBuilderList() { + if (segmentsBuilder_ != null) { + return segmentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(segments_); + } + } + /** + *
+     * All video segments where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelSegment segments = 3; + */ + public com.google.cloud.videointelligence.v1p2beta1.LabelSegment.Builder addSegmentsBuilder() { + return getSegmentsFieldBuilder().addBuilder( + com.google.cloud.videointelligence.v1p2beta1.LabelSegment.getDefaultInstance()); + } + /** + *
+     * All video segments where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelSegment segments = 3; + */ + public com.google.cloud.videointelligence.v1p2beta1.LabelSegment.Builder addSegmentsBuilder( + int index) { + return getSegmentsFieldBuilder().addBuilder( + index, com.google.cloud.videointelligence.v1p2beta1.LabelSegment.getDefaultInstance()); + } + /** + *
+     * All video segments where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelSegment segments = 3; + */ + public java.util.List + getSegmentsBuilderList() { + return getSegmentsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.LabelSegment, com.google.cloud.videointelligence.v1p2beta1.LabelSegment.Builder, com.google.cloud.videointelligence.v1p2beta1.LabelSegmentOrBuilder> + getSegmentsFieldBuilder() { + if (segmentsBuilder_ == null) { + segmentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.LabelSegment, com.google.cloud.videointelligence.v1p2beta1.LabelSegment.Builder, com.google.cloud.videointelligence.v1p2beta1.LabelSegmentOrBuilder>( + segments_, + ((bitField0_ & 0x00000004) == 0x00000004), + getParentForChildren(), + isClean()); + segments_ = null; + } + return segmentsBuilder_; + } + + private java.util.List frames_ = + java.util.Collections.emptyList(); + private void ensureFramesIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + frames_ = new java.util.ArrayList(frames_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.LabelFrame, com.google.cloud.videointelligence.v1p2beta1.LabelFrame.Builder, com.google.cloud.videointelligence.v1p2beta1.LabelFrameOrBuilder> framesBuilder_; + + /** + *
+     * All video frames where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelFrame frames = 4; + */ + public java.util.List getFramesList() { + if (framesBuilder_ == null) { + return java.util.Collections.unmodifiableList(frames_); + } else { + return framesBuilder_.getMessageList(); + } + } + /** + *
+     * All video frames where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelFrame frames = 4; + */ + public int getFramesCount() { + if (framesBuilder_ == null) { + return frames_.size(); + } else { + return framesBuilder_.getCount(); + } + } + /** + *
+     * All video frames where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelFrame frames = 4; + */ + public com.google.cloud.videointelligence.v1p2beta1.LabelFrame getFrames(int index) { + if (framesBuilder_ == null) { + return frames_.get(index); + } else { + return framesBuilder_.getMessage(index); + } + } + /** + *
+     * All video frames where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelFrame frames = 4; + */ + public Builder setFrames( + int index, com.google.cloud.videointelligence.v1p2beta1.LabelFrame value) { + if (framesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFramesIsMutable(); + frames_.set(index, value); + onChanged(); + } else { + framesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * All video frames where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelFrame frames = 4; + */ + public Builder setFrames( + int index, com.google.cloud.videointelligence.v1p2beta1.LabelFrame.Builder builderForValue) { + if (framesBuilder_ == null) { + ensureFramesIsMutable(); + frames_.set(index, builderForValue.build()); + onChanged(); + } else { + framesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * All video frames where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelFrame frames = 4; + */ + public Builder addFrames(com.google.cloud.videointelligence.v1p2beta1.LabelFrame value) { + if (framesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFramesIsMutable(); + frames_.add(value); + onChanged(); + } else { + framesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * All video frames where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelFrame frames = 4; + */ + public Builder addFrames( + int index, com.google.cloud.videointelligence.v1p2beta1.LabelFrame value) { + if (framesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFramesIsMutable(); + frames_.add(index, value); + onChanged(); + } else { + framesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * All video frames where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelFrame frames = 4; + */ + public Builder addFrames( + com.google.cloud.videointelligence.v1p2beta1.LabelFrame.Builder builderForValue) { + if (framesBuilder_ == null) { + ensureFramesIsMutable(); + frames_.add(builderForValue.build()); + onChanged(); + } else { + framesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * All video frames where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelFrame frames = 4; + */ + public Builder addFrames( + int index, com.google.cloud.videointelligence.v1p2beta1.LabelFrame.Builder builderForValue) { + if (framesBuilder_ == null) { + ensureFramesIsMutable(); + frames_.add(index, builderForValue.build()); + onChanged(); + } else { + framesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * All video frames where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelFrame frames = 4; + */ + public Builder addAllFrames( + java.lang.Iterable values) { + if (framesBuilder_ == null) { + ensureFramesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, frames_); + onChanged(); + } else { + framesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * All video frames where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelFrame frames = 4; + */ + public Builder clearFrames() { + if (framesBuilder_ == null) { + frames_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + framesBuilder_.clear(); + } + return this; + } + /** + *
+     * All video frames where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelFrame frames = 4; + */ + public Builder removeFrames(int index) { + if (framesBuilder_ == null) { + ensureFramesIsMutable(); + frames_.remove(index); + onChanged(); + } else { + framesBuilder_.remove(index); + } + return this; + } + /** + *
+     * All video frames where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelFrame frames = 4; + */ + public com.google.cloud.videointelligence.v1p2beta1.LabelFrame.Builder getFramesBuilder( + int index) { + return getFramesFieldBuilder().getBuilder(index); + } + /** + *
+     * All video frames where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelFrame frames = 4; + */ + public com.google.cloud.videointelligence.v1p2beta1.LabelFrameOrBuilder getFramesOrBuilder( + int index) { + if (framesBuilder_ == null) { + return frames_.get(index); } else { + return framesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * All video frames where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelFrame frames = 4; + */ + public java.util.List + getFramesOrBuilderList() { + if (framesBuilder_ != null) { + return framesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(frames_); + } + } + /** + *
+     * All video frames where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelFrame frames = 4; + */ + public com.google.cloud.videointelligence.v1p2beta1.LabelFrame.Builder addFramesBuilder() { + return getFramesFieldBuilder().addBuilder( + com.google.cloud.videointelligence.v1p2beta1.LabelFrame.getDefaultInstance()); + } + /** + *
+     * All video frames where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelFrame frames = 4; + */ + public com.google.cloud.videointelligence.v1p2beta1.LabelFrame.Builder addFramesBuilder( + int index) { + return getFramesFieldBuilder().addBuilder( + index, com.google.cloud.videointelligence.v1p2beta1.LabelFrame.getDefaultInstance()); + } + /** + *
+     * All video frames where a label was detected.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelFrame frames = 4; + */ + public java.util.List + getFramesBuilderList() { + return getFramesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.LabelFrame, com.google.cloud.videointelligence.v1p2beta1.LabelFrame.Builder, com.google.cloud.videointelligence.v1p2beta1.LabelFrameOrBuilder> + getFramesFieldBuilder() { + if (framesBuilder_ == null) { + framesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.LabelFrame, com.google.cloud.videointelligence.v1p2beta1.LabelFrame.Builder, com.google.cloud.videointelligence.v1p2beta1.LabelFrameOrBuilder>( + frames_, + ((bitField0_ & 0x00000008) == 0x00000008), + getParentForChildren(), + isClean()); + frames_ = null; + } + return framesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p2beta1.LabelAnnotation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.LabelAnnotation) + private static final com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation(); + } + + public static com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LabelAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LabelAnnotation(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelAnnotationOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelAnnotationOrBuilder.java new file mode 100644 index 000000000000..ef748ecb4e65 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelAnnotationOrBuilder.java @@ -0,0 +1,181 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +public interface LabelAnnotationOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p2beta1.LabelAnnotation) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Detected entity.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.Entity entity = 1; + */ + boolean hasEntity(); + /** + *
+   * Detected entity.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.Entity entity = 1; + */ + com.google.cloud.videointelligence.v1p2beta1.Entity getEntity(); + /** + *
+   * Detected entity.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.Entity entity = 1; + */ + com.google.cloud.videointelligence.v1p2beta1.EntityOrBuilder getEntityOrBuilder(); + + /** + *
+   * Common categories for the detected entity.
+   * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+   * cases there might be more than one categories e.g. `Terrier` could also be
+   * a `pet`.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.Entity category_entities = 2; + */ + java.util.List + getCategoryEntitiesList(); + /** + *
+   * Common categories for the detected entity.
+   * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+   * cases there might be more than one categories e.g. `Terrier` could also be
+   * a `pet`.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.Entity category_entities = 2; + */ + com.google.cloud.videointelligence.v1p2beta1.Entity getCategoryEntities(int index); + /** + *
+   * Common categories for the detected entity.
+   * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+   * cases there might be more than one categories e.g. `Terrier` could also be
+   * a `pet`.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.Entity category_entities = 2; + */ + int getCategoryEntitiesCount(); + /** + *
+   * Common categories for the detected entity.
+   * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+   * cases there might be more than one categories e.g. `Terrier` could also be
+   * a `pet`.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.Entity category_entities = 2; + */ + java.util.List + getCategoryEntitiesOrBuilderList(); + /** + *
+   * Common categories for the detected entity.
+   * E.g. when the label is `Terrier` the category is likely `dog`. And in some
+   * cases there might be more than one categories e.g. `Terrier` could also be
+   * a `pet`.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.Entity category_entities = 2; + */ + com.google.cloud.videointelligence.v1p2beta1.EntityOrBuilder getCategoryEntitiesOrBuilder( + int index); + + /** + *
+   * All video segments where a label was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelSegment segments = 3; + */ + java.util.List + getSegmentsList(); + /** + *
+   * All video segments where a label was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelSegment segments = 3; + */ + com.google.cloud.videointelligence.v1p2beta1.LabelSegment getSegments(int index); + /** + *
+   * All video segments where a label was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelSegment segments = 3; + */ + int getSegmentsCount(); + /** + *
+   * All video segments where a label was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelSegment segments = 3; + */ + java.util.List + getSegmentsOrBuilderList(); + /** + *
+   * All video segments where a label was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelSegment segments = 3; + */ + com.google.cloud.videointelligence.v1p2beta1.LabelSegmentOrBuilder getSegmentsOrBuilder( + int index); + + /** + *
+   * All video frames where a label was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelFrame frames = 4; + */ + java.util.List + getFramesList(); + /** + *
+   * All video frames where a label was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelFrame frames = 4; + */ + com.google.cloud.videointelligence.v1p2beta1.LabelFrame getFrames(int index); + /** + *
+   * All video frames where a label was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelFrame frames = 4; + */ + int getFramesCount(); + /** + *
+   * All video frames where a label was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelFrame frames = 4; + */ + java.util.List + getFramesOrBuilderList(); + /** + *
+   * All video frames where a label was detected.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelFrame frames = 4; + */ + com.google.cloud.videointelligence.v1p2beta1.LabelFrameOrBuilder getFramesOrBuilder( + int index); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelDetectionConfig.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelDetectionConfig.java new file mode 100644 index 000000000000..428b681f7e71 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelDetectionConfig.java @@ -0,0 +1,801 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +/** + *
+ * Config for LABEL_DETECTION.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig} + */ +public final class LabelDetectionConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig) + LabelDetectionConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use LabelDetectionConfig.newBuilder() to construct. + private LabelDetectionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LabelDetectionConfig() { + labelDetectionMode_ = 0; + stationaryCamera_ = false; + model_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LabelDetectionConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + labelDetectionMode_ = rawValue; + break; + } + case 16: { + + stationaryCamera_ = input.readBool(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + model_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_LabelDetectionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_LabelDetectionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig.class, com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig.Builder.class); + } + + public static final int LABEL_DETECTION_MODE_FIELD_NUMBER = 1; + private int labelDetectionMode_; + /** + *
+   * What labels should be detected with LABEL_DETECTION, in addition to
+   * video-level labels or segment-level labels.
+   * If unspecified, defaults to `SHOT_MODE`.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.LabelDetectionMode label_detection_mode = 1; + */ + public int getLabelDetectionModeValue() { + return labelDetectionMode_; + } + /** + *
+   * What labels should be detected with LABEL_DETECTION, in addition to
+   * video-level labels or segment-level labels.
+   * If unspecified, defaults to `SHOT_MODE`.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.LabelDetectionMode label_detection_mode = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.LabelDetectionMode getLabelDetectionMode() { + @SuppressWarnings("deprecation") + com.google.cloud.videointelligence.v1p2beta1.LabelDetectionMode result = com.google.cloud.videointelligence.v1p2beta1.LabelDetectionMode.valueOf(labelDetectionMode_); + return result == null ? com.google.cloud.videointelligence.v1p2beta1.LabelDetectionMode.UNRECOGNIZED : result; + } + + public static final int STATIONARY_CAMERA_FIELD_NUMBER = 2; + private boolean stationaryCamera_; + /** + *
+   * Whether the video has been shot from a stationary (i.e. non-moving) camera.
+   * When set to true, might improve detection accuracy for moving objects.
+   * Should be used with `SHOT_AND_FRAME_MODE` enabled.
+   * 
+ * + * bool stationary_camera = 2; + */ + public boolean getStationaryCamera() { + return stationaryCamera_; + } + + public static final int MODEL_FIELD_NUMBER = 3; + private volatile java.lang.Object model_; + /** + *
+   * Model to use for label detection.
+   * Supported values: "builtin/stable" (the default if unset) and
+   * "builtin/latest".
+   * 
+ * + * string model = 3; + */ + public java.lang.String getModel() { + java.lang.Object ref = model_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + model_ = s; + return s; + } + } + /** + *
+   * Model to use for label detection.
+   * Supported values: "builtin/stable" (the default if unset) and
+   * "builtin/latest".
+   * 
+ * + * string model = 3; + */ + public com.google.protobuf.ByteString + getModelBytes() { + java.lang.Object ref = model_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + model_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (labelDetectionMode_ != com.google.cloud.videointelligence.v1p2beta1.LabelDetectionMode.LABEL_DETECTION_MODE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, labelDetectionMode_); + } + if (stationaryCamera_ != false) { + output.writeBool(2, stationaryCamera_); + } + if (!getModelBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, model_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (labelDetectionMode_ != com.google.cloud.videointelligence.v1p2beta1.LabelDetectionMode.LABEL_DETECTION_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, labelDetectionMode_); + } + if (stationaryCamera_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, stationaryCamera_); + } + if (!getModelBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, model_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig other = (com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig) obj; + + boolean result = true; + result = result && labelDetectionMode_ == other.labelDetectionMode_; + result = result && (getStationaryCamera() + == other.getStationaryCamera()); + result = result && getModel() + .equals(other.getModel()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LABEL_DETECTION_MODE_FIELD_NUMBER; + hash = (53 * hash) + labelDetectionMode_; + hash = (37 * hash) + STATIONARY_CAMERA_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getStationaryCamera()); + hash = (37 * hash) + MODEL_FIELD_NUMBER; + hash = (53 * hash) + getModel().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Config for LABEL_DETECTION.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig) + com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_LabelDetectionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_LabelDetectionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig.class, com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig.Builder.class); + } + + // Construct using com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + labelDetectionMode_ = 0; + + stationaryCamera_ = false; + + model_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_LabelDetectionConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig build() { + com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig buildPartial() { + com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig result = new com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig(this); + result.labelDetectionMode_ = labelDetectionMode_; + result.stationaryCamera_ = stationaryCamera_; + result.model_ = model_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig) { + return mergeFrom((com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig other) { + if (other == com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig.getDefaultInstance()) return this; + if (other.labelDetectionMode_ != 0) { + setLabelDetectionModeValue(other.getLabelDetectionModeValue()); + } + if (other.getStationaryCamera() != false) { + setStationaryCamera(other.getStationaryCamera()); + } + if (!other.getModel().isEmpty()) { + model_ = other.model_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int labelDetectionMode_ = 0; + /** + *
+     * What labels should be detected with LABEL_DETECTION, in addition to
+     * video-level labels or segment-level labels.
+     * If unspecified, defaults to `SHOT_MODE`.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.LabelDetectionMode label_detection_mode = 1; + */ + public int getLabelDetectionModeValue() { + return labelDetectionMode_; + } + /** + *
+     * What labels should be detected with LABEL_DETECTION, in addition to
+     * video-level labels or segment-level labels.
+     * If unspecified, defaults to `SHOT_MODE`.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.LabelDetectionMode label_detection_mode = 1; + */ + public Builder setLabelDetectionModeValue(int value) { + labelDetectionMode_ = value; + onChanged(); + return this; + } + /** + *
+     * What labels should be detected with LABEL_DETECTION, in addition to
+     * video-level labels or segment-level labels.
+     * If unspecified, defaults to `SHOT_MODE`.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.LabelDetectionMode label_detection_mode = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.LabelDetectionMode getLabelDetectionMode() { + @SuppressWarnings("deprecation") + com.google.cloud.videointelligence.v1p2beta1.LabelDetectionMode result = com.google.cloud.videointelligence.v1p2beta1.LabelDetectionMode.valueOf(labelDetectionMode_); + return result == null ? com.google.cloud.videointelligence.v1p2beta1.LabelDetectionMode.UNRECOGNIZED : result; + } + /** + *
+     * What labels should be detected with LABEL_DETECTION, in addition to
+     * video-level labels or segment-level labels.
+     * If unspecified, defaults to `SHOT_MODE`.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.LabelDetectionMode label_detection_mode = 1; + */ + public Builder setLabelDetectionMode(com.google.cloud.videointelligence.v1p2beta1.LabelDetectionMode value) { + if (value == null) { + throw new NullPointerException(); + } + + labelDetectionMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * What labels should be detected with LABEL_DETECTION, in addition to
+     * video-level labels or segment-level labels.
+     * If unspecified, defaults to `SHOT_MODE`.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.LabelDetectionMode label_detection_mode = 1; + */ + public Builder clearLabelDetectionMode() { + + labelDetectionMode_ = 0; + onChanged(); + return this; + } + + private boolean stationaryCamera_ ; + /** + *
+     * Whether the video has been shot from a stationary (i.e. non-moving) camera.
+     * When set to true, might improve detection accuracy for moving objects.
+     * Should be used with `SHOT_AND_FRAME_MODE` enabled.
+     * 
+ * + * bool stationary_camera = 2; + */ + public boolean getStationaryCamera() { + return stationaryCamera_; + } + /** + *
+     * Whether the video has been shot from a stationary (i.e. non-moving) camera.
+     * When set to true, might improve detection accuracy for moving objects.
+     * Should be used with `SHOT_AND_FRAME_MODE` enabled.
+     * 
+ * + * bool stationary_camera = 2; + */ + public Builder setStationaryCamera(boolean value) { + + stationaryCamera_ = value; + onChanged(); + return this; + } + /** + *
+     * Whether the video has been shot from a stationary (i.e. non-moving) camera.
+     * When set to true, might improve detection accuracy for moving objects.
+     * Should be used with `SHOT_AND_FRAME_MODE` enabled.
+     * 
+ * + * bool stationary_camera = 2; + */ + public Builder clearStationaryCamera() { + + stationaryCamera_ = false; + onChanged(); + return this; + } + + private java.lang.Object model_ = ""; + /** + *
+     * Model to use for label detection.
+     * Supported values: "builtin/stable" (the default if unset) and
+     * "builtin/latest".
+     * 
+ * + * string model = 3; + */ + public java.lang.String getModel() { + java.lang.Object ref = model_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + model_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Model to use for label detection.
+     * Supported values: "builtin/stable" (the default if unset) and
+     * "builtin/latest".
+     * 
+ * + * string model = 3; + */ + public com.google.protobuf.ByteString + getModelBytes() { + java.lang.Object ref = model_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + model_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Model to use for label detection.
+     * Supported values: "builtin/stable" (the default if unset) and
+     * "builtin/latest".
+     * 
+ * + * string model = 3; + */ + public Builder setModel( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + model_ = value; + onChanged(); + return this; + } + /** + *
+     * Model to use for label detection.
+     * Supported values: "builtin/stable" (the default if unset) and
+     * "builtin/latest".
+     * 
+ * + * string model = 3; + */ + public Builder clearModel() { + + model_ = getDefaultInstance().getModel(); + onChanged(); + return this; + } + /** + *
+     * Model to use for label detection.
+     * Supported values: "builtin/stable" (the default if unset) and
+     * "builtin/latest".
+     * 
+ * + * string model = 3; + */ + public Builder setModelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + model_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig) + private static final com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig(); + } + + public static com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LabelDetectionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LabelDetectionConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelDetectionConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelDetectionConfigOrBuilder.java new file mode 100644 index 000000000000..8b4fdf55f842 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelDetectionConfigOrBuilder.java @@ -0,0 +1,63 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +public interface LabelDetectionConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * What labels should be detected with LABEL_DETECTION, in addition to
+   * video-level labels or segment-level labels.
+   * If unspecified, defaults to `SHOT_MODE`.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.LabelDetectionMode label_detection_mode = 1; + */ + int getLabelDetectionModeValue(); + /** + *
+   * What labels should be detected with LABEL_DETECTION, in addition to
+   * video-level labels or segment-level labels.
+   * If unspecified, defaults to `SHOT_MODE`.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.LabelDetectionMode label_detection_mode = 1; + */ + com.google.cloud.videointelligence.v1p2beta1.LabelDetectionMode getLabelDetectionMode(); + + /** + *
+   * Whether the video has been shot from a stationary (i.e. non-moving) camera.
+   * When set to true, might improve detection accuracy for moving objects.
+   * Should be used with `SHOT_AND_FRAME_MODE` enabled.
+   * 
+ * + * bool stationary_camera = 2; + */ + boolean getStationaryCamera(); + + /** + *
+   * Model to use for label detection.
+   * Supported values: "builtin/stable" (the default if unset) and
+   * "builtin/latest".
+   * 
+ * + * string model = 3; + */ + java.lang.String getModel(); + /** + *
+   * Model to use for label detection.
+   * Supported values: "builtin/stable" (the default if unset) and
+   * "builtin/latest".
+   * 
+ * + * string model = 3; + */ + com.google.protobuf.ByteString + getModelBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelDetectionMode.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelDetectionMode.java new file mode 100644 index 000000000000..a2d7b2c8e757 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelDetectionMode.java @@ -0,0 +1,157 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +/** + *
+ * Label detection mode.
+ * 
+ * + * Protobuf enum {@code google.cloud.videointelligence.v1p2beta1.LabelDetectionMode} + */ +public enum LabelDetectionMode + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+   * Unspecified.
+   * 
+ * + * LABEL_DETECTION_MODE_UNSPECIFIED = 0; + */ + LABEL_DETECTION_MODE_UNSPECIFIED(0), + /** + *
+   * Detect shot-level labels.
+   * 
+ * + * SHOT_MODE = 1; + */ + SHOT_MODE(1), + /** + *
+   * Detect frame-level labels.
+   * 
+ * + * FRAME_MODE = 2; + */ + FRAME_MODE(2), + /** + *
+   * Detect both shot-level and frame-level labels.
+   * 
+ * + * SHOT_AND_FRAME_MODE = 3; + */ + SHOT_AND_FRAME_MODE(3), + UNRECOGNIZED(-1), + ; + + /** + *
+   * Unspecified.
+   * 
+ * + * LABEL_DETECTION_MODE_UNSPECIFIED = 0; + */ + public static final int LABEL_DETECTION_MODE_UNSPECIFIED_VALUE = 0; + /** + *
+   * Detect shot-level labels.
+   * 
+ * + * SHOT_MODE = 1; + */ + public static final int SHOT_MODE_VALUE = 1; + /** + *
+   * Detect frame-level labels.
+   * 
+ * + * FRAME_MODE = 2; + */ + public static final int FRAME_MODE_VALUE = 2; + /** + *
+   * Detect both shot-level and frame-level labels.
+   * 
+ * + * SHOT_AND_FRAME_MODE = 3; + */ + public static final int SHOT_AND_FRAME_MODE_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static LabelDetectionMode valueOf(int value) { + return forNumber(value); + } + + public static LabelDetectionMode forNumber(int value) { + switch (value) { + case 0: return LABEL_DETECTION_MODE_UNSPECIFIED; + case 1: return SHOT_MODE; + case 2: return FRAME_MODE; + case 3: return SHOT_AND_FRAME_MODE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + LabelDetectionMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public LabelDetectionMode findValueByNumber(int number) { + return LabelDetectionMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.getDescriptor().getEnumTypes().get(1); + } + + private static final LabelDetectionMode[] VALUES = values(); + + public static LabelDetectionMode valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private LabelDetectionMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.videointelligence.v1p2beta1.LabelDetectionMode) +} + diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelFrame.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelFrame.java new file mode 100644 index 000000000000..639d0e026080 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelFrame.java @@ -0,0 +1,740 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +/** + *
+ * Video frame level annotation results for label detection.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.LabelFrame} + */ +public final class LabelFrame extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p2beta1.LabelFrame) + LabelFrameOrBuilder { +private static final long serialVersionUID = 0L; + // Use LabelFrame.newBuilder() to construct. + private LabelFrame(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LabelFrame() { + confidence_ = 0F; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LabelFrame( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (timeOffset_ != null) { + subBuilder = timeOffset_.toBuilder(); + } + timeOffset_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(timeOffset_); + timeOffset_ = subBuilder.buildPartial(); + } + + break; + } + case 21: { + + confidence_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_LabelFrame_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_LabelFrame_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p2beta1.LabelFrame.class, com.google.cloud.videointelligence.v1p2beta1.LabelFrame.Builder.class); + } + + public static final int TIME_OFFSET_FIELD_NUMBER = 1; + private com.google.protobuf.Duration timeOffset_; + /** + *
+   * Time-offset, relative to the beginning of the video, corresponding to the
+   * video frame for this location.
+   * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + public boolean hasTimeOffset() { + return timeOffset_ != null; + } + /** + *
+   * Time-offset, relative to the beginning of the video, corresponding to the
+   * video frame for this location.
+   * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + public com.google.protobuf.Duration getTimeOffset() { + return timeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeOffset_; + } + /** + *
+   * Time-offset, relative to the beginning of the video, corresponding to the
+   * video frame for this location.
+   * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() { + return getTimeOffset(); + } + + public static final int CONFIDENCE_FIELD_NUMBER = 2; + private float confidence_; + /** + *
+   * Confidence that the label is accurate. Range: [0, 1].
+   * 
+ * + * float confidence = 2; + */ + public float getConfidence() { + return confidence_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (timeOffset_ != null) { + output.writeMessage(1, getTimeOffset()); + } + if (confidence_ != 0F) { + output.writeFloat(2, confidence_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (timeOffset_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTimeOffset()); + } + if (confidence_ != 0F) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, confidence_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1p2beta1.LabelFrame)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p2beta1.LabelFrame other = (com.google.cloud.videointelligence.v1p2beta1.LabelFrame) obj; + + boolean result = true; + result = result && (hasTimeOffset() == other.hasTimeOffset()); + if (hasTimeOffset()) { + result = result && getTimeOffset() + .equals(other.getTimeOffset()); + } + result = result && ( + java.lang.Float.floatToIntBits(getConfidence()) + == java.lang.Float.floatToIntBits( + other.getConfidence())); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTimeOffset()) { + hash = (37 * hash) + TIME_OFFSET_FIELD_NUMBER; + hash = (53 * hash) + getTimeOffset().hashCode(); + } + hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidence()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p2beta1.LabelFrame parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.LabelFrame parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.LabelFrame parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.LabelFrame parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.LabelFrame parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.LabelFrame parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.LabelFrame parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.LabelFrame parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.LabelFrame parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.LabelFrame parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.LabelFrame parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.LabelFrame parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.videointelligence.v1p2beta1.LabelFrame prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Video frame level annotation results for label detection.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.LabelFrame} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p2beta1.LabelFrame) + com.google.cloud.videointelligence.v1p2beta1.LabelFrameOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_LabelFrame_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_LabelFrame_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p2beta1.LabelFrame.class, com.google.cloud.videointelligence.v1p2beta1.LabelFrame.Builder.class); + } + + // Construct using com.google.cloud.videointelligence.v1p2beta1.LabelFrame.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (timeOffsetBuilder_ == null) { + timeOffset_ = null; + } else { + timeOffset_ = null; + timeOffsetBuilder_ = null; + } + confidence_ = 0F; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_LabelFrame_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.LabelFrame getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p2beta1.LabelFrame.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.LabelFrame build() { + com.google.cloud.videointelligence.v1p2beta1.LabelFrame result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.LabelFrame buildPartial() { + com.google.cloud.videointelligence.v1p2beta1.LabelFrame result = new com.google.cloud.videointelligence.v1p2beta1.LabelFrame(this); + if (timeOffsetBuilder_ == null) { + result.timeOffset_ = timeOffset_; + } else { + result.timeOffset_ = timeOffsetBuilder_.build(); + } + result.confidence_ = confidence_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1p2beta1.LabelFrame) { + return mergeFrom((com.google.cloud.videointelligence.v1p2beta1.LabelFrame)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.videointelligence.v1p2beta1.LabelFrame other) { + if (other == com.google.cloud.videointelligence.v1p2beta1.LabelFrame.getDefaultInstance()) return this; + if (other.hasTimeOffset()) { + mergeTimeOffset(other.getTimeOffset()); + } + if (other.getConfidence() != 0F) { + setConfidence(other.getConfidence()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p2beta1.LabelFrame parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.videointelligence.v1p2beta1.LabelFrame) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.Duration timeOffset_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> timeOffsetBuilder_; + /** + *
+     * Time-offset, relative to the beginning of the video, corresponding to the
+     * video frame for this location.
+     * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + public boolean hasTimeOffset() { + return timeOffsetBuilder_ != null || timeOffset_ != null; + } + /** + *
+     * Time-offset, relative to the beginning of the video, corresponding to the
+     * video frame for this location.
+     * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + public com.google.protobuf.Duration getTimeOffset() { + if (timeOffsetBuilder_ == null) { + return timeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeOffset_; + } else { + return timeOffsetBuilder_.getMessage(); + } + } + /** + *
+     * Time-offset, relative to the beginning of the video, corresponding to the
+     * video frame for this location.
+     * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + public Builder setTimeOffset(com.google.protobuf.Duration value) { + if (timeOffsetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + timeOffset_ = value; + onChanged(); + } else { + timeOffsetBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Time-offset, relative to the beginning of the video, corresponding to the
+     * video frame for this location.
+     * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + public Builder setTimeOffset( + com.google.protobuf.Duration.Builder builderForValue) { + if (timeOffsetBuilder_ == null) { + timeOffset_ = builderForValue.build(); + onChanged(); + } else { + timeOffsetBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Time-offset, relative to the beginning of the video, corresponding to the
+     * video frame for this location.
+     * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + public Builder mergeTimeOffset(com.google.protobuf.Duration value) { + if (timeOffsetBuilder_ == null) { + if (timeOffset_ != null) { + timeOffset_ = + com.google.protobuf.Duration.newBuilder(timeOffset_).mergeFrom(value).buildPartial(); + } else { + timeOffset_ = value; + } + onChanged(); + } else { + timeOffsetBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Time-offset, relative to the beginning of the video, corresponding to the
+     * video frame for this location.
+     * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + public Builder clearTimeOffset() { + if (timeOffsetBuilder_ == null) { + timeOffset_ = null; + onChanged(); + } else { + timeOffset_ = null; + timeOffsetBuilder_ = null; + } + + return this; + } + /** + *
+     * Time-offset, relative to the beginning of the video, corresponding to the
+     * video frame for this location.
+     * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + public com.google.protobuf.Duration.Builder getTimeOffsetBuilder() { + + onChanged(); + return getTimeOffsetFieldBuilder().getBuilder(); + } + /** + *
+     * Time-offset, relative to the beginning of the video, corresponding to the
+     * video frame for this location.
+     * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() { + if (timeOffsetBuilder_ != null) { + return timeOffsetBuilder_.getMessageOrBuilder(); + } else { + return timeOffset_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : timeOffset_; + } + } + /** + *
+     * Time-offset, relative to the beginning of the video, corresponding to the
+     * video frame for this location.
+     * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getTimeOffsetFieldBuilder() { + if (timeOffsetBuilder_ == null) { + timeOffsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getTimeOffset(), + getParentForChildren(), + isClean()); + timeOffset_ = null; + } + return timeOffsetBuilder_; + } + + private float confidence_ ; + /** + *
+     * Confidence that the label is accurate. Range: [0, 1].
+     * 
+ * + * float confidence = 2; + */ + public float getConfidence() { + return confidence_; + } + /** + *
+     * Confidence that the label is accurate. Range: [0, 1].
+     * 
+ * + * float confidence = 2; + */ + public Builder setConfidence(float value) { + + confidence_ = value; + onChanged(); + return this; + } + /** + *
+     * Confidence that the label is accurate. Range: [0, 1].
+     * 
+ * + * float confidence = 2; + */ + public Builder clearConfidence() { + + confidence_ = 0F; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p2beta1.LabelFrame) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.LabelFrame) + private static final com.google.cloud.videointelligence.v1p2beta1.LabelFrame DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p2beta1.LabelFrame(); + } + + public static com.google.cloud.videointelligence.v1p2beta1.LabelFrame getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LabelFrame parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LabelFrame(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.LabelFrame getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelFrameOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelFrameOrBuilder.java new file mode 100644 index 000000000000..ed19b9318721 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelFrameOrBuilder.java @@ -0,0 +1,46 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +public interface LabelFrameOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p2beta1.LabelFrame) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Time-offset, relative to the beginning of the video, corresponding to the
+   * video frame for this location.
+   * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + boolean hasTimeOffset(); + /** + *
+   * Time-offset, relative to the beginning of the video, corresponding to the
+   * video frame for this location.
+   * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + com.google.protobuf.Duration getTimeOffset(); + /** + *
+   * Time-offset, relative to the beginning of the video, corresponding to the
+   * video frame for this location.
+   * 
+ * + * .google.protobuf.Duration time_offset = 1; + */ + com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder(); + + /** + *
+   * Confidence that the label is accurate. Range: [0, 1].
+   * 
+ * + * float confidence = 2; + */ + float getConfidence(); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelSegment.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelSegment.java new file mode 100644 index 000000000000..1d7ce7cd7ffd --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelSegment.java @@ -0,0 +1,728 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +/** + *
+ * Video segment level annotation results for label detection.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.LabelSegment} + */ +public final class LabelSegment extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p2beta1.LabelSegment) + LabelSegmentOrBuilder { +private static final long serialVersionUID = 0L; + // Use LabelSegment.newBuilder() to construct. + private LabelSegment(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LabelSegment() { + confidence_ = 0F; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LabelSegment( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.videointelligence.v1p2beta1.VideoSegment.Builder subBuilder = null; + if (segment_ != null) { + subBuilder = segment_.toBuilder(); + } + segment_ = input.readMessage(com.google.cloud.videointelligence.v1p2beta1.VideoSegment.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(segment_); + segment_ = subBuilder.buildPartial(); + } + + break; + } + case 21: { + + confidence_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_LabelSegment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_LabelSegment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p2beta1.LabelSegment.class, com.google.cloud.videointelligence.v1p2beta1.LabelSegment.Builder.class); + } + + public static final int SEGMENT_FIELD_NUMBER = 1; + private com.google.cloud.videointelligence.v1p2beta1.VideoSegment segment_; + /** + *
+   * Video segment where a label was detected.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 1; + */ + public boolean hasSegment() { + return segment_ != null; + } + /** + *
+   * Video segment where a label was detected.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.VideoSegment getSegment() { + return segment_ == null ? com.google.cloud.videointelligence.v1p2beta1.VideoSegment.getDefaultInstance() : segment_; + } + /** + *
+   * Video segment where a label was detected.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.VideoSegmentOrBuilder getSegmentOrBuilder() { + return getSegment(); + } + + public static final int CONFIDENCE_FIELD_NUMBER = 2; + private float confidence_; + /** + *
+   * Confidence that the label is accurate. Range: [0, 1].
+   * 
+ * + * float confidence = 2; + */ + public float getConfidence() { + return confidence_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (segment_ != null) { + output.writeMessage(1, getSegment()); + } + if (confidence_ != 0F) { + output.writeFloat(2, confidence_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (segment_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getSegment()); + } + if (confidence_ != 0F) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, confidence_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1p2beta1.LabelSegment)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p2beta1.LabelSegment other = (com.google.cloud.videointelligence.v1p2beta1.LabelSegment) obj; + + boolean result = true; + result = result && (hasSegment() == other.hasSegment()); + if (hasSegment()) { + result = result && getSegment() + .equals(other.getSegment()); + } + result = result && ( + java.lang.Float.floatToIntBits(getConfidence()) + == java.lang.Float.floatToIntBits( + other.getConfidence())); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSegment()) { + hash = (37 * hash) + SEGMENT_FIELD_NUMBER; + hash = (53 * hash) + getSegment().hashCode(); + } + hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidence()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p2beta1.LabelSegment parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.LabelSegment parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.LabelSegment parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.LabelSegment parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.LabelSegment parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.LabelSegment parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.LabelSegment parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.LabelSegment parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.LabelSegment parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.LabelSegment parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.LabelSegment parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.LabelSegment parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.videointelligence.v1p2beta1.LabelSegment prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Video segment level annotation results for label detection.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.LabelSegment} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p2beta1.LabelSegment) + com.google.cloud.videointelligence.v1p2beta1.LabelSegmentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_LabelSegment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_LabelSegment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p2beta1.LabelSegment.class, com.google.cloud.videointelligence.v1p2beta1.LabelSegment.Builder.class); + } + + // Construct using com.google.cloud.videointelligence.v1p2beta1.LabelSegment.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (segmentBuilder_ == null) { + segment_ = null; + } else { + segment_ = null; + segmentBuilder_ = null; + } + confidence_ = 0F; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_LabelSegment_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.LabelSegment getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p2beta1.LabelSegment.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.LabelSegment build() { + com.google.cloud.videointelligence.v1p2beta1.LabelSegment result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.LabelSegment buildPartial() { + com.google.cloud.videointelligence.v1p2beta1.LabelSegment result = new com.google.cloud.videointelligence.v1p2beta1.LabelSegment(this); + if (segmentBuilder_ == null) { + result.segment_ = segment_; + } else { + result.segment_ = segmentBuilder_.build(); + } + result.confidence_ = confidence_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1p2beta1.LabelSegment) { + return mergeFrom((com.google.cloud.videointelligence.v1p2beta1.LabelSegment)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.videointelligence.v1p2beta1.LabelSegment other) { + if (other == com.google.cloud.videointelligence.v1p2beta1.LabelSegment.getDefaultInstance()) return this; + if (other.hasSegment()) { + mergeSegment(other.getSegment()); + } + if (other.getConfidence() != 0F) { + setConfidence(other.getConfidence()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p2beta1.LabelSegment parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.videointelligence.v1p2beta1.LabelSegment) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.videointelligence.v1p2beta1.VideoSegment segment_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.VideoSegment, com.google.cloud.videointelligence.v1p2beta1.VideoSegment.Builder, com.google.cloud.videointelligence.v1p2beta1.VideoSegmentOrBuilder> segmentBuilder_; + /** + *
+     * Video segment where a label was detected.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 1; + */ + public boolean hasSegment() { + return segmentBuilder_ != null || segment_ != null; + } + /** + *
+     * Video segment where a label was detected.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.VideoSegment getSegment() { + if (segmentBuilder_ == null) { + return segment_ == null ? com.google.cloud.videointelligence.v1p2beta1.VideoSegment.getDefaultInstance() : segment_; + } else { + return segmentBuilder_.getMessage(); + } + } + /** + *
+     * Video segment where a label was detected.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 1; + */ + public Builder setSegment(com.google.cloud.videointelligence.v1p2beta1.VideoSegment value) { + if (segmentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + segment_ = value; + onChanged(); + } else { + segmentBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Video segment where a label was detected.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 1; + */ + public Builder setSegment( + com.google.cloud.videointelligence.v1p2beta1.VideoSegment.Builder builderForValue) { + if (segmentBuilder_ == null) { + segment_ = builderForValue.build(); + onChanged(); + } else { + segmentBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Video segment where a label was detected.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 1; + */ + public Builder mergeSegment(com.google.cloud.videointelligence.v1p2beta1.VideoSegment value) { + if (segmentBuilder_ == null) { + if (segment_ != null) { + segment_ = + com.google.cloud.videointelligence.v1p2beta1.VideoSegment.newBuilder(segment_).mergeFrom(value).buildPartial(); + } else { + segment_ = value; + } + onChanged(); + } else { + segmentBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Video segment where a label was detected.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 1; + */ + public Builder clearSegment() { + if (segmentBuilder_ == null) { + segment_ = null; + onChanged(); + } else { + segment_ = null; + segmentBuilder_ = null; + } + + return this; + } + /** + *
+     * Video segment where a label was detected.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.VideoSegment.Builder getSegmentBuilder() { + + onChanged(); + return getSegmentFieldBuilder().getBuilder(); + } + /** + *
+     * Video segment where a label was detected.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.VideoSegmentOrBuilder getSegmentOrBuilder() { + if (segmentBuilder_ != null) { + return segmentBuilder_.getMessageOrBuilder(); + } else { + return segment_ == null ? + com.google.cloud.videointelligence.v1p2beta1.VideoSegment.getDefaultInstance() : segment_; + } + } + /** + *
+     * Video segment where a label was detected.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.VideoSegment, com.google.cloud.videointelligence.v1p2beta1.VideoSegment.Builder, com.google.cloud.videointelligence.v1p2beta1.VideoSegmentOrBuilder> + getSegmentFieldBuilder() { + if (segmentBuilder_ == null) { + segmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.VideoSegment, com.google.cloud.videointelligence.v1p2beta1.VideoSegment.Builder, com.google.cloud.videointelligence.v1p2beta1.VideoSegmentOrBuilder>( + getSegment(), + getParentForChildren(), + isClean()); + segment_ = null; + } + return segmentBuilder_; + } + + private float confidence_ ; + /** + *
+     * Confidence that the label is accurate. Range: [0, 1].
+     * 
+ * + * float confidence = 2; + */ + public float getConfidence() { + return confidence_; + } + /** + *
+     * Confidence that the label is accurate. Range: [0, 1].
+     * 
+ * + * float confidence = 2; + */ + public Builder setConfidence(float value) { + + confidence_ = value; + onChanged(); + return this; + } + /** + *
+     * Confidence that the label is accurate. Range: [0, 1].
+     * 
+ * + * float confidence = 2; + */ + public Builder clearConfidence() { + + confidence_ = 0F; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p2beta1.LabelSegment) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.LabelSegment) + private static final com.google.cloud.videointelligence.v1p2beta1.LabelSegment DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p2beta1.LabelSegment(); + } + + public static com.google.cloud.videointelligence.v1p2beta1.LabelSegment getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LabelSegment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LabelSegment(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.LabelSegment getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelSegmentOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelSegmentOrBuilder.java new file mode 100644 index 000000000000..009a828c5ea3 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelSegmentOrBuilder.java @@ -0,0 +1,43 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +public interface LabelSegmentOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p2beta1.LabelSegment) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Video segment where a label was detected.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 1; + */ + boolean hasSegment(); + /** + *
+   * Video segment where a label was detected.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 1; + */ + com.google.cloud.videointelligence.v1p2beta1.VideoSegment getSegment(); + /** + *
+   * Video segment where a label was detected.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 1; + */ + com.google.cloud.videointelligence.v1p2beta1.VideoSegmentOrBuilder getSegmentOrBuilder(); + + /** + *
+   * Confidence that the label is accurate. Range: [0, 1].
+   * 
+ * + * float confidence = 2; + */ + float getConfidence(); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/Likelihood.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/Likelihood.java new file mode 100644 index 000000000000..3268643e8624 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/Likelihood.java @@ -0,0 +1,191 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +/** + *
+ * Bucketized representation of likelihood.
+ * 
+ * + * Protobuf enum {@code google.cloud.videointelligence.v1p2beta1.Likelihood} + */ +public enum Likelihood + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+   * Unspecified likelihood.
+   * 
+ * + * LIKELIHOOD_UNSPECIFIED = 0; + */ + LIKELIHOOD_UNSPECIFIED(0), + /** + *
+   * Very unlikely.
+   * 
+ * + * VERY_UNLIKELY = 1; + */ + VERY_UNLIKELY(1), + /** + *
+   * Unlikely.
+   * 
+ * + * UNLIKELY = 2; + */ + UNLIKELY(2), + /** + *
+   * Possible.
+   * 
+ * + * POSSIBLE = 3; + */ + POSSIBLE(3), + /** + *
+   * Likely.
+   * 
+ * + * LIKELY = 4; + */ + LIKELY(4), + /** + *
+   * Very likely.
+   * 
+ * + * VERY_LIKELY = 5; + */ + VERY_LIKELY(5), + UNRECOGNIZED(-1), + ; + + /** + *
+   * Unspecified likelihood.
+   * 
+ * + * LIKELIHOOD_UNSPECIFIED = 0; + */ + public static final int LIKELIHOOD_UNSPECIFIED_VALUE = 0; + /** + *
+   * Very unlikely.
+   * 
+ * + * VERY_UNLIKELY = 1; + */ + public static final int VERY_UNLIKELY_VALUE = 1; + /** + *
+   * Unlikely.
+   * 
+ * + * UNLIKELY = 2; + */ + public static final int UNLIKELY_VALUE = 2; + /** + *
+   * Possible.
+   * 
+ * + * POSSIBLE = 3; + */ + public static final int POSSIBLE_VALUE = 3; + /** + *
+   * Likely.
+   * 
+ * + * LIKELY = 4; + */ + public static final int LIKELY_VALUE = 4; + /** + *
+   * Very likely.
+   * 
+ * + * VERY_LIKELY = 5; + */ + public static final int VERY_LIKELY_VALUE = 5; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Likelihood valueOf(int value) { + return forNumber(value); + } + + public static Likelihood forNumber(int value) { + switch (value) { + case 0: return LIKELIHOOD_UNSPECIFIED; + case 1: return VERY_UNLIKELY; + case 2: return UNLIKELY; + case 3: return POSSIBLE; + case 4: return LIKELY; + case 5: return VERY_LIKELY; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Likelihood> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Likelihood findValueByNumber(int number) { + return Likelihood.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.getDescriptor().getEnumTypes().get(2); + } + + private static final Likelihood[] VALUES = values(); + + public static Likelihood valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Likelihood(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.videointelligence.v1p2beta1.Likelihood) +} + diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/NormalizedBoundingBox.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/NormalizedBoundingBox.java new file mode 100644 index 000000000000..5c1f67b4d5e7 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/NormalizedBoundingBox.java @@ -0,0 +1,734 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +/** + *
+ * Normalized bounding box.
+ * The normalized vertex coordinates are relative to the original image.
+ * Range: [0, 1].
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox} + */ +public final class NormalizedBoundingBox extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox) + NormalizedBoundingBoxOrBuilder { +private static final long serialVersionUID = 0L; + // Use NormalizedBoundingBox.newBuilder() to construct. + private NormalizedBoundingBox(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NormalizedBoundingBox() { + left_ = 0F; + top_ = 0F; + right_ = 0F; + bottom_ = 0F; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NormalizedBoundingBox( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 13: { + + left_ = input.readFloat(); + break; + } + case 21: { + + top_ = input.readFloat(); + break; + } + case 29: { + + right_ = input.readFloat(); + break; + } + case 37: { + + bottom_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_NormalizedBoundingBox_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_NormalizedBoundingBox_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox.class, com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox.Builder.class); + } + + public static final int LEFT_FIELD_NUMBER = 1; + private float left_; + /** + *
+   * Left X coordinate.
+   * 
+ * + * float left = 1; + */ + public float getLeft() { + return left_; + } + + public static final int TOP_FIELD_NUMBER = 2; + private float top_; + /** + *
+   * Top Y coordinate.
+   * 
+ * + * float top = 2; + */ + public float getTop() { + return top_; + } + + public static final int RIGHT_FIELD_NUMBER = 3; + private float right_; + /** + *
+   * Right X coordinate.
+   * 
+ * + * float right = 3; + */ + public float getRight() { + return right_; + } + + public static final int BOTTOM_FIELD_NUMBER = 4; + private float bottom_; + /** + *
+   * Bottom Y coordinate.
+   * 
+ * + * float bottom = 4; + */ + public float getBottom() { + return bottom_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (left_ != 0F) { + output.writeFloat(1, left_); + } + if (top_ != 0F) { + output.writeFloat(2, top_); + } + if (right_ != 0F) { + output.writeFloat(3, right_); + } + if (bottom_ != 0F) { + output.writeFloat(4, bottom_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (left_ != 0F) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, left_); + } + if (top_ != 0F) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, top_); + } + if (right_ != 0F) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(3, right_); + } + if (bottom_ != 0F) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, bottom_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox other = (com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox) obj; + + boolean result = true; + result = result && ( + java.lang.Float.floatToIntBits(getLeft()) + == java.lang.Float.floatToIntBits( + other.getLeft())); + result = result && ( + java.lang.Float.floatToIntBits(getTop()) + == java.lang.Float.floatToIntBits( + other.getTop())); + result = result && ( + java.lang.Float.floatToIntBits(getRight()) + == java.lang.Float.floatToIntBits( + other.getRight())); + result = result && ( + java.lang.Float.floatToIntBits(getBottom()) + == java.lang.Float.floatToIntBits( + other.getBottom())); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LEFT_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getLeft()); + hash = (37 * hash) + TOP_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getTop()); + hash = (37 * hash) + RIGHT_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getRight()); + hash = (37 * hash) + BOTTOM_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getBottom()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Normalized bounding box.
+   * The normalized vertex coordinates are relative to the original image.
+   * Range: [0, 1].
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox) + com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBoxOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_NormalizedBoundingBox_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_NormalizedBoundingBox_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox.class, com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox.Builder.class); + } + + // Construct using com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + left_ = 0F; + + top_ = 0F; + + right_ = 0F; + + bottom_ = 0F; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_NormalizedBoundingBox_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox build() { + com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox buildPartial() { + com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox result = new com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox(this); + result.left_ = left_; + result.top_ = top_; + result.right_ = right_; + result.bottom_ = bottom_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox) { + return mergeFrom((com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox other) { + if (other == com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox.getDefaultInstance()) return this; + if (other.getLeft() != 0F) { + setLeft(other.getLeft()); + } + if (other.getTop() != 0F) { + setTop(other.getTop()); + } + if (other.getRight() != 0F) { + setRight(other.getRight()); + } + if (other.getBottom() != 0F) { + setBottom(other.getBottom()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private float left_ ; + /** + *
+     * Left X coordinate.
+     * 
+ * + * float left = 1; + */ + public float getLeft() { + return left_; + } + /** + *
+     * Left X coordinate.
+     * 
+ * + * float left = 1; + */ + public Builder setLeft(float value) { + + left_ = value; + onChanged(); + return this; + } + /** + *
+     * Left X coordinate.
+     * 
+ * + * float left = 1; + */ + public Builder clearLeft() { + + left_ = 0F; + onChanged(); + return this; + } + + private float top_ ; + /** + *
+     * Top Y coordinate.
+     * 
+ * + * float top = 2; + */ + public float getTop() { + return top_; + } + /** + *
+     * Top Y coordinate.
+     * 
+ * + * float top = 2; + */ + public Builder setTop(float value) { + + top_ = value; + onChanged(); + return this; + } + /** + *
+     * Top Y coordinate.
+     * 
+ * + * float top = 2; + */ + public Builder clearTop() { + + top_ = 0F; + onChanged(); + return this; + } + + private float right_ ; + /** + *
+     * Right X coordinate.
+     * 
+ * + * float right = 3; + */ + public float getRight() { + return right_; + } + /** + *
+     * Right X coordinate.
+     * 
+ * + * float right = 3; + */ + public Builder setRight(float value) { + + right_ = value; + onChanged(); + return this; + } + /** + *
+     * Right X coordinate.
+     * 
+ * + * float right = 3; + */ + public Builder clearRight() { + + right_ = 0F; + onChanged(); + return this; + } + + private float bottom_ ; + /** + *
+     * Bottom Y coordinate.
+     * 
+ * + * float bottom = 4; + */ + public float getBottom() { + return bottom_; + } + /** + *
+     * Bottom Y coordinate.
+     * 
+ * + * float bottom = 4; + */ + public Builder setBottom(float value) { + + bottom_ = value; + onChanged(); + return this; + } + /** + *
+     * Bottom Y coordinate.
+     * 
+ * + * float bottom = 4; + */ + public Builder clearBottom() { + + bottom_ = 0F; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox) + private static final com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox(); + } + + public static com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NormalizedBoundingBox parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NormalizedBoundingBox(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/NormalizedBoundingBoxOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/NormalizedBoundingBoxOrBuilder.java new file mode 100644 index 000000000000..afdfdc570936 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/NormalizedBoundingBoxOrBuilder.java @@ -0,0 +1,45 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +public interface NormalizedBoundingBoxOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Left X coordinate.
+   * 
+ * + * float left = 1; + */ + float getLeft(); + + /** + *
+   * Top Y coordinate.
+   * 
+ * + * float top = 2; + */ + float getTop(); + + /** + *
+   * Right X coordinate.
+   * 
+ * + * float right = 3; + */ + float getRight(); + + /** + *
+   * Bottom Y coordinate.
+   * 
+ * + * float bottom = 4; + */ + float getBottom(); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/NormalizedBoundingPoly.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/NormalizedBoundingPoly.java new file mode 100644 index 000000000000..c472af163a90 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/NormalizedBoundingPoly.java @@ -0,0 +1,887 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +/** + *
+ * Normalized bounding polygon for text (that might not be aligned with axis).
+ * Contains list of the corner points in clockwise order starting from
+ * top-left corner. For example, for a rectangular bounding box:
+ * When the text is horizontal it might look like:
+ *         0----1
+ *         |    |
+ *         3----2
+ * When it's clockwise rotated 180 degrees around the top-left corner it
+ * becomes:
+ *         2----3
+ *         |    |
+ *         1----0
+ * and the vertex order will still be (0, 1, 2, 3). Note that values can be less
+ * than 0, or greater than 1 due to trignometric calculations for location of
+ * the box.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly} + */ +public final class NormalizedBoundingPoly extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly) + NormalizedBoundingPolyOrBuilder { +private static final long serialVersionUID = 0L; + // Use NormalizedBoundingPoly.newBuilder() to construct. + private NormalizedBoundingPoly(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NormalizedBoundingPoly() { + vertices_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NormalizedBoundingPoly( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + vertices_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + vertices_.add( + input.readMessage(com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + vertices_ = java.util.Collections.unmodifiableList(vertices_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_NormalizedBoundingPoly_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_NormalizedBoundingPoly_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly.class, com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly.Builder.class); + } + + public static final int VERTICES_FIELD_NUMBER = 1; + private java.util.List vertices_; + /** + *
+   * Normalized vertices of the bounding polygon.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.NormalizedVertex vertices = 1; + */ + public java.util.List getVerticesList() { + return vertices_; + } + /** + *
+   * Normalized vertices of the bounding polygon.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.NormalizedVertex vertices = 1; + */ + public java.util.List + getVerticesOrBuilderList() { + return vertices_; + } + /** + *
+   * Normalized vertices of the bounding polygon.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.NormalizedVertex vertices = 1; + */ + public int getVerticesCount() { + return vertices_.size(); + } + /** + *
+   * Normalized vertices of the bounding polygon.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.NormalizedVertex vertices = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex getVertices(int index) { + return vertices_.get(index); + } + /** + *
+   * Normalized vertices of the bounding polygon.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.NormalizedVertex vertices = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.NormalizedVertexOrBuilder getVerticesOrBuilder( + int index) { + return vertices_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < vertices_.size(); i++) { + output.writeMessage(1, vertices_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < vertices_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, vertices_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly other = (com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly) obj; + + boolean result = true; + result = result && getVerticesList() + .equals(other.getVerticesList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getVerticesCount() > 0) { + hash = (37 * hash) + VERTICES_FIELD_NUMBER; + hash = (53 * hash) + getVerticesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Normalized bounding polygon for text (that might not be aligned with axis).
+   * Contains list of the corner points in clockwise order starting from
+   * top-left corner. For example, for a rectangular bounding box:
+   * When the text is horizontal it might look like:
+   *         0----1
+   *         |    |
+   *         3----2
+   * When it's clockwise rotated 180 degrees around the top-left corner it
+   * becomes:
+   *         2----3
+   *         |    |
+   *         1----0
+   * and the vertex order will still be (0, 1, 2, 3). Note that values can be less
+   * than 0, or greater than 1 due to trignometric calculations for location of
+   * the box.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly) + com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPolyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_NormalizedBoundingPoly_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_NormalizedBoundingPoly_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly.class, com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly.Builder.class); + } + + // Construct using com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getVerticesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (verticesBuilder_ == null) { + vertices_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + verticesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_NormalizedBoundingPoly_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly build() { + com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly buildPartial() { + com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly result = new com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly(this); + int from_bitField0_ = bitField0_; + if (verticesBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + vertices_ = java.util.Collections.unmodifiableList(vertices_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.vertices_ = vertices_; + } else { + result.vertices_ = verticesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly) { + return mergeFrom((com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly other) { + if (other == com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly.getDefaultInstance()) return this; + if (verticesBuilder_ == null) { + if (!other.vertices_.isEmpty()) { + if (vertices_.isEmpty()) { + vertices_ = other.vertices_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureVerticesIsMutable(); + vertices_.addAll(other.vertices_); + } + onChanged(); + } + } else { + if (!other.vertices_.isEmpty()) { + if (verticesBuilder_.isEmpty()) { + verticesBuilder_.dispose(); + verticesBuilder_ = null; + vertices_ = other.vertices_; + bitField0_ = (bitField0_ & ~0x00000001); + verticesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getVerticesFieldBuilder() : null; + } else { + verticesBuilder_.addAllMessages(other.vertices_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List vertices_ = + java.util.Collections.emptyList(); + private void ensureVerticesIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + vertices_ = new java.util.ArrayList(vertices_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex, com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex.Builder, com.google.cloud.videointelligence.v1p2beta1.NormalizedVertexOrBuilder> verticesBuilder_; + + /** + *
+     * Normalized vertices of the bounding polygon.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.NormalizedVertex vertices = 1; + */ + public java.util.List getVerticesList() { + if (verticesBuilder_ == null) { + return java.util.Collections.unmodifiableList(vertices_); + } else { + return verticesBuilder_.getMessageList(); + } + } + /** + *
+     * Normalized vertices of the bounding polygon.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.NormalizedVertex vertices = 1; + */ + public int getVerticesCount() { + if (verticesBuilder_ == null) { + return vertices_.size(); + } else { + return verticesBuilder_.getCount(); + } + } + /** + *
+     * Normalized vertices of the bounding polygon.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.NormalizedVertex vertices = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex getVertices(int index) { + if (verticesBuilder_ == null) { + return vertices_.get(index); + } else { + return verticesBuilder_.getMessage(index); + } + } + /** + *
+     * Normalized vertices of the bounding polygon.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.NormalizedVertex vertices = 1; + */ + public Builder setVertices( + int index, com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex value) { + if (verticesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVerticesIsMutable(); + vertices_.set(index, value); + onChanged(); + } else { + verticesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Normalized vertices of the bounding polygon.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.NormalizedVertex vertices = 1; + */ + public Builder setVertices( + int index, com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex.Builder builderForValue) { + if (verticesBuilder_ == null) { + ensureVerticesIsMutable(); + vertices_.set(index, builderForValue.build()); + onChanged(); + } else { + verticesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Normalized vertices of the bounding polygon.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.NormalizedVertex vertices = 1; + */ + public Builder addVertices(com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex value) { + if (verticesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVerticesIsMutable(); + vertices_.add(value); + onChanged(); + } else { + verticesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Normalized vertices of the bounding polygon.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.NormalizedVertex vertices = 1; + */ + public Builder addVertices( + int index, com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex value) { + if (verticesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVerticesIsMutable(); + vertices_.add(index, value); + onChanged(); + } else { + verticesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Normalized vertices of the bounding polygon.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.NormalizedVertex vertices = 1; + */ + public Builder addVertices( + com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex.Builder builderForValue) { + if (verticesBuilder_ == null) { + ensureVerticesIsMutable(); + vertices_.add(builderForValue.build()); + onChanged(); + } else { + verticesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Normalized vertices of the bounding polygon.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.NormalizedVertex vertices = 1; + */ + public Builder addVertices( + int index, com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex.Builder builderForValue) { + if (verticesBuilder_ == null) { + ensureVerticesIsMutable(); + vertices_.add(index, builderForValue.build()); + onChanged(); + } else { + verticesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Normalized vertices of the bounding polygon.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.NormalizedVertex vertices = 1; + */ + public Builder addAllVertices( + java.lang.Iterable values) { + if (verticesBuilder_ == null) { + ensureVerticesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, vertices_); + onChanged(); + } else { + verticesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Normalized vertices of the bounding polygon.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.NormalizedVertex vertices = 1; + */ + public Builder clearVertices() { + if (verticesBuilder_ == null) { + vertices_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + verticesBuilder_.clear(); + } + return this; + } + /** + *
+     * Normalized vertices of the bounding polygon.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.NormalizedVertex vertices = 1; + */ + public Builder removeVertices(int index) { + if (verticesBuilder_ == null) { + ensureVerticesIsMutable(); + vertices_.remove(index); + onChanged(); + } else { + verticesBuilder_.remove(index); + } + return this; + } + /** + *
+     * Normalized vertices of the bounding polygon.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.NormalizedVertex vertices = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex.Builder getVerticesBuilder( + int index) { + return getVerticesFieldBuilder().getBuilder(index); + } + /** + *
+     * Normalized vertices of the bounding polygon.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.NormalizedVertex vertices = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.NormalizedVertexOrBuilder getVerticesOrBuilder( + int index) { + if (verticesBuilder_ == null) { + return vertices_.get(index); } else { + return verticesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Normalized vertices of the bounding polygon.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.NormalizedVertex vertices = 1; + */ + public java.util.List + getVerticesOrBuilderList() { + if (verticesBuilder_ != null) { + return verticesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(vertices_); + } + } + /** + *
+     * Normalized vertices of the bounding polygon.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.NormalizedVertex vertices = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex.Builder addVerticesBuilder() { + return getVerticesFieldBuilder().addBuilder( + com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex.getDefaultInstance()); + } + /** + *
+     * Normalized vertices of the bounding polygon.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.NormalizedVertex vertices = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex.Builder addVerticesBuilder( + int index) { + return getVerticesFieldBuilder().addBuilder( + index, com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex.getDefaultInstance()); + } + /** + *
+     * Normalized vertices of the bounding polygon.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.NormalizedVertex vertices = 1; + */ + public java.util.List + getVerticesBuilderList() { + return getVerticesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex, com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex.Builder, com.google.cloud.videointelligence.v1p2beta1.NormalizedVertexOrBuilder> + getVerticesFieldBuilder() { + if (verticesBuilder_ == null) { + verticesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex, com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex.Builder, com.google.cloud.videointelligence.v1p2beta1.NormalizedVertexOrBuilder>( + vertices_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + vertices_ = null; + } + return verticesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly) + private static final com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly(); + } + + public static com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NormalizedBoundingPoly parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NormalizedBoundingPoly(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/NormalizedBoundingPolyOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/NormalizedBoundingPolyOrBuilder.java new file mode 100644 index 000000000000..336e5e438fce --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/NormalizedBoundingPolyOrBuilder.java @@ -0,0 +1,53 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +public interface NormalizedBoundingPolyOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Normalized vertices of the bounding polygon.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.NormalizedVertex vertices = 1; + */ + java.util.List + getVerticesList(); + /** + *
+   * Normalized vertices of the bounding polygon.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.NormalizedVertex vertices = 1; + */ + com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex getVertices(int index); + /** + *
+   * Normalized vertices of the bounding polygon.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.NormalizedVertex vertices = 1; + */ + int getVerticesCount(); + /** + *
+   * Normalized vertices of the bounding polygon.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.NormalizedVertex vertices = 1; + */ + java.util.List + getVerticesOrBuilderList(); + /** + *
+   * Normalized vertices of the bounding polygon.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.NormalizedVertex vertices = 1; + */ + com.google.cloud.videointelligence.v1p2beta1.NormalizedVertexOrBuilder getVerticesOrBuilder( + int index); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/NormalizedVertex.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/NormalizedVertex.java new file mode 100644 index 000000000000..bde50c245434 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/NormalizedVertex.java @@ -0,0 +1,580 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +/** + *
+ * 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.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.NormalizedVertex} + */ +public final class NormalizedVertex extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p2beta1.NormalizedVertex) + NormalizedVertexOrBuilder { +private static final long serialVersionUID = 0L; + // Use NormalizedVertex.newBuilder() to construct. + private NormalizedVertex(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NormalizedVertex() { + x_ = 0F; + y_ = 0F; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NormalizedVertex( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 13: { + + x_ = input.readFloat(); + break; + } + case 21: { + + y_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_NormalizedVertex_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_NormalizedVertex_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex.class, com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex.Builder.class); + } + + public static final int X_FIELD_NUMBER = 1; + private float x_; + /** + *
+   * X coordinate.
+   * 
+ * + * float x = 1; + */ + public float getX() { + return x_; + } + + public static final int Y_FIELD_NUMBER = 2; + private float y_; + /** + *
+   * Y coordinate.
+   * 
+ * + * float y = 2; + */ + public float getY() { + return y_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (x_ != 0F) { + output.writeFloat(1, x_); + } + if (y_ != 0F) { + output.writeFloat(2, y_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (x_ != 0F) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, x_); + } + if (y_ != 0F) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, y_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex other = (com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex) obj; + + boolean result = true; + result = result && ( + java.lang.Float.floatToIntBits(getX()) + == java.lang.Float.floatToIntBits( + other.getX())); + result = result && ( + java.lang.Float.floatToIntBits(getY()) + == java.lang.Float.floatToIntBits( + other.getY())); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + X_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getX()); + hash = (37 * hash) + Y_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getY()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * 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.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.NormalizedVertex} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p2beta1.NormalizedVertex) + com.google.cloud.videointelligence.v1p2beta1.NormalizedVertexOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_NormalizedVertex_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_NormalizedVertex_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex.class, com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex.Builder.class); + } + + // Construct using com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + x_ = 0F; + + y_ = 0F; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_NormalizedVertex_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex build() { + com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex buildPartial() { + com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex result = new com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex(this); + result.x_ = x_; + result.y_ = y_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex) { + return mergeFrom((com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex other) { + if (other == com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex.getDefaultInstance()) return this; + if (other.getX() != 0F) { + setX(other.getX()); + } + if (other.getY() != 0F) { + setY(other.getY()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private float x_ ; + /** + *
+     * X coordinate.
+     * 
+ * + * float x = 1; + */ + public float getX() { + return x_; + } + /** + *
+     * X coordinate.
+     * 
+ * + * float x = 1; + */ + public Builder setX(float value) { + + x_ = value; + onChanged(); + return this; + } + /** + *
+     * X coordinate.
+     * 
+ * + * float x = 1; + */ + public Builder clearX() { + + x_ = 0F; + onChanged(); + return this; + } + + private float y_ ; + /** + *
+     * Y coordinate.
+     * 
+ * + * float y = 2; + */ + public float getY() { + return y_; + } + /** + *
+     * Y coordinate.
+     * 
+ * + * float y = 2; + */ + public Builder setY(float value) { + + y_ = value; + onChanged(); + return this; + } + /** + *
+     * Y coordinate.
+     * 
+ * + * float y = 2; + */ + public Builder clearY() { + + y_ = 0F; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p2beta1.NormalizedVertex) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.NormalizedVertex) + private static final com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex(); + } + + public static com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NormalizedVertex parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NormalizedVertex(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.NormalizedVertex getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/NormalizedVertexOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/NormalizedVertexOrBuilder.java new file mode 100644 index 000000000000..890b6c54696c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/NormalizedVertexOrBuilder.java @@ -0,0 +1,27 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +public interface NormalizedVertexOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p2beta1.NormalizedVertex) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * X coordinate.
+   * 
+ * + * float x = 1; + */ + float getX(); + + /** + *
+   * Y coordinate.
+   * 
+ * + * float y = 2; + */ + float getY(); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ObjectTrackingAnnotation.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ObjectTrackingAnnotation.java new file mode 100644 index 000000000000..10ada7fc2407 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ObjectTrackingAnnotation.java @@ -0,0 +1,1397 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +/** + *
+ * Annotations corresponding to one tracked object.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation} + */ +public final class ObjectTrackingAnnotation extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation) + ObjectTrackingAnnotationOrBuilder { +private static final long serialVersionUID = 0L; + // Use ObjectTrackingAnnotation.newBuilder() to construct. + private ObjectTrackingAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ObjectTrackingAnnotation() { + confidence_ = 0F; + frames_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ObjectTrackingAnnotation( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.videointelligence.v1p2beta1.Entity.Builder subBuilder = null; + if (entity_ != null) { + subBuilder = entity_.toBuilder(); + } + entity_ = input.readMessage(com.google.cloud.videointelligence.v1p2beta1.Entity.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(entity_); + entity_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + frames_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + frames_.add( + input.readMessage(com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame.parser(), extensionRegistry)); + break; + } + case 26: { + com.google.cloud.videointelligence.v1p2beta1.VideoSegment.Builder subBuilder = null; + if (segment_ != null) { + subBuilder = segment_.toBuilder(); + } + segment_ = input.readMessage(com.google.cloud.videointelligence.v1p2beta1.VideoSegment.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(segment_); + segment_ = subBuilder.buildPartial(); + } + + break; + } + case 37: { + + confidence_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + frames_ = java.util.Collections.unmodifiableList(frames_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_ObjectTrackingAnnotation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_ObjectTrackingAnnotation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation.class, com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation.Builder.class); + } + + private int bitField0_; + public static final int ENTITY_FIELD_NUMBER = 1; + private com.google.cloud.videointelligence.v1p2beta1.Entity entity_; + /** + *
+   * Entity to specify the object category that this track is labeled as.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.Entity entity = 1; + */ + public boolean hasEntity() { + return entity_ != null; + } + /** + *
+   * Entity to specify the object category that this track is labeled as.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.Entity entity = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.Entity getEntity() { + return entity_ == null ? com.google.cloud.videointelligence.v1p2beta1.Entity.getDefaultInstance() : entity_; + } + /** + *
+   * Entity to specify the object category that this track is labeled as.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.Entity entity = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.EntityOrBuilder getEntityOrBuilder() { + return getEntity(); + } + + public static final int CONFIDENCE_FIELD_NUMBER = 4; + private float confidence_; + /** + *
+   * Object category's labeling confidence of this track.
+   * 
+ * + * float confidence = 4; + */ + public float getConfidence() { + return confidence_; + } + + public static final int FRAMES_FIELD_NUMBER = 2; + private java.util.List frames_; + /** + *
+   * Information corresponding to all frames where this object track appears.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame frames = 2; + */ + public java.util.List getFramesList() { + return frames_; + } + /** + *
+   * Information corresponding to all frames where this object track appears.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame frames = 2; + */ + public java.util.List + getFramesOrBuilderList() { + return frames_; + } + /** + *
+   * Information corresponding to all frames where this object track appears.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame frames = 2; + */ + public int getFramesCount() { + return frames_.size(); + } + /** + *
+   * Information corresponding to all frames where this object track appears.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame frames = 2; + */ + public com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame getFrames(int index) { + return frames_.get(index); + } + /** + *
+   * Information corresponding to all frames where this object track appears.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame frames = 2; + */ + public com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrameOrBuilder getFramesOrBuilder( + int index) { + return frames_.get(index); + } + + public static final int SEGMENT_FIELD_NUMBER = 3; + private com.google.cloud.videointelligence.v1p2beta1.VideoSegment segment_; + /** + *
+   * Each object track corresponds to one video segment where it appears.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 3; + */ + public boolean hasSegment() { + return segment_ != null; + } + /** + *
+   * Each object track corresponds to one video segment where it appears.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 3; + */ + public com.google.cloud.videointelligence.v1p2beta1.VideoSegment getSegment() { + return segment_ == null ? com.google.cloud.videointelligence.v1p2beta1.VideoSegment.getDefaultInstance() : segment_; + } + /** + *
+   * Each object track corresponds to one video segment where it appears.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 3; + */ + public com.google.cloud.videointelligence.v1p2beta1.VideoSegmentOrBuilder getSegmentOrBuilder() { + return getSegment(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (entity_ != null) { + output.writeMessage(1, getEntity()); + } + for (int i = 0; i < frames_.size(); i++) { + output.writeMessage(2, frames_.get(i)); + } + if (segment_ != null) { + output.writeMessage(3, getSegment()); + } + if (confidence_ != 0F) { + output.writeFloat(4, confidence_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (entity_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getEntity()); + } + for (int i = 0; i < frames_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, frames_.get(i)); + } + if (segment_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getSegment()); + } + if (confidence_ != 0F) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, confidence_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation other = (com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation) obj; + + boolean result = true; + result = result && (hasEntity() == other.hasEntity()); + if (hasEntity()) { + result = result && getEntity() + .equals(other.getEntity()); + } + result = result && ( + java.lang.Float.floatToIntBits(getConfidence()) + == java.lang.Float.floatToIntBits( + other.getConfidence())); + result = result && getFramesList() + .equals(other.getFramesList()); + result = result && (hasSegment() == other.hasSegment()); + if (hasSegment()) { + result = result && getSegment() + .equals(other.getSegment()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEntity()) { + hash = (37 * hash) + ENTITY_FIELD_NUMBER; + hash = (53 * hash) + getEntity().hashCode(); + } + hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidence()); + if (getFramesCount() > 0) { + hash = (37 * hash) + FRAMES_FIELD_NUMBER; + hash = (53 * hash) + getFramesList().hashCode(); + } + if (hasSegment()) { + hash = (37 * hash) + SEGMENT_FIELD_NUMBER; + hash = (53 * hash) + getSegment().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Annotations corresponding to one tracked object.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation) + com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_ObjectTrackingAnnotation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_ObjectTrackingAnnotation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation.class, com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation.Builder.class); + } + + // Construct using com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getFramesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (entityBuilder_ == null) { + entity_ = null; + } else { + entity_ = null; + entityBuilder_ = null; + } + confidence_ = 0F; + + if (framesBuilder_ == null) { + frames_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + framesBuilder_.clear(); + } + if (segmentBuilder_ == null) { + segment_ = null; + } else { + segment_ = null; + segmentBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_ObjectTrackingAnnotation_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation build() { + com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation buildPartial() { + com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation result = new com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (entityBuilder_ == null) { + result.entity_ = entity_; + } else { + result.entity_ = entityBuilder_.build(); + } + result.confidence_ = confidence_; + if (framesBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + frames_ = java.util.Collections.unmodifiableList(frames_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.frames_ = frames_; + } else { + result.frames_ = framesBuilder_.build(); + } + if (segmentBuilder_ == null) { + result.segment_ = segment_; + } else { + result.segment_ = segmentBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation) { + return mergeFrom((com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation other) { + if (other == com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation.getDefaultInstance()) return this; + if (other.hasEntity()) { + mergeEntity(other.getEntity()); + } + if (other.getConfidence() != 0F) { + setConfidence(other.getConfidence()); + } + if (framesBuilder_ == null) { + if (!other.frames_.isEmpty()) { + if (frames_.isEmpty()) { + frames_ = other.frames_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureFramesIsMutable(); + frames_.addAll(other.frames_); + } + onChanged(); + } + } else { + if (!other.frames_.isEmpty()) { + if (framesBuilder_.isEmpty()) { + framesBuilder_.dispose(); + framesBuilder_ = null; + frames_ = other.frames_; + bitField0_ = (bitField0_ & ~0x00000004); + framesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFramesFieldBuilder() : null; + } else { + framesBuilder_.addAllMessages(other.frames_); + } + } + } + if (other.hasSegment()) { + mergeSegment(other.getSegment()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.cloud.videointelligence.v1p2beta1.Entity entity_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.Entity, com.google.cloud.videointelligence.v1p2beta1.Entity.Builder, com.google.cloud.videointelligence.v1p2beta1.EntityOrBuilder> entityBuilder_; + /** + *
+     * Entity to specify the object category that this track is labeled as.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.Entity entity = 1; + */ + public boolean hasEntity() { + return entityBuilder_ != null || entity_ != null; + } + /** + *
+     * Entity to specify the object category that this track is labeled as.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.Entity entity = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.Entity getEntity() { + if (entityBuilder_ == null) { + return entity_ == null ? com.google.cloud.videointelligence.v1p2beta1.Entity.getDefaultInstance() : entity_; + } else { + return entityBuilder_.getMessage(); + } + } + /** + *
+     * Entity to specify the object category that this track is labeled as.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.Entity entity = 1; + */ + public Builder setEntity(com.google.cloud.videointelligence.v1p2beta1.Entity value) { + if (entityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + entity_ = value; + onChanged(); + } else { + entityBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Entity to specify the object category that this track is labeled as.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.Entity entity = 1; + */ + public Builder setEntity( + com.google.cloud.videointelligence.v1p2beta1.Entity.Builder builderForValue) { + if (entityBuilder_ == null) { + entity_ = builderForValue.build(); + onChanged(); + } else { + entityBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Entity to specify the object category that this track is labeled as.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.Entity entity = 1; + */ + public Builder mergeEntity(com.google.cloud.videointelligence.v1p2beta1.Entity value) { + if (entityBuilder_ == null) { + if (entity_ != null) { + entity_ = + com.google.cloud.videointelligence.v1p2beta1.Entity.newBuilder(entity_).mergeFrom(value).buildPartial(); + } else { + entity_ = value; + } + onChanged(); + } else { + entityBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Entity to specify the object category that this track is labeled as.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.Entity entity = 1; + */ + public Builder clearEntity() { + if (entityBuilder_ == null) { + entity_ = null; + onChanged(); + } else { + entity_ = null; + entityBuilder_ = null; + } + + return this; + } + /** + *
+     * Entity to specify the object category that this track is labeled as.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.Entity entity = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.Entity.Builder getEntityBuilder() { + + onChanged(); + return getEntityFieldBuilder().getBuilder(); + } + /** + *
+     * Entity to specify the object category that this track is labeled as.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.Entity entity = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.EntityOrBuilder getEntityOrBuilder() { + if (entityBuilder_ != null) { + return entityBuilder_.getMessageOrBuilder(); + } else { + return entity_ == null ? + com.google.cloud.videointelligence.v1p2beta1.Entity.getDefaultInstance() : entity_; + } + } + /** + *
+     * Entity to specify the object category that this track is labeled as.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.Entity entity = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.Entity, com.google.cloud.videointelligence.v1p2beta1.Entity.Builder, com.google.cloud.videointelligence.v1p2beta1.EntityOrBuilder> + getEntityFieldBuilder() { + if (entityBuilder_ == null) { + entityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.Entity, com.google.cloud.videointelligence.v1p2beta1.Entity.Builder, com.google.cloud.videointelligence.v1p2beta1.EntityOrBuilder>( + getEntity(), + getParentForChildren(), + isClean()); + entity_ = null; + } + return entityBuilder_; + } + + private float confidence_ ; + /** + *
+     * Object category's labeling confidence of this track.
+     * 
+ * + * float confidence = 4; + */ + public float getConfidence() { + return confidence_; + } + /** + *
+     * Object category's labeling confidence of this track.
+     * 
+ * + * float confidence = 4; + */ + public Builder setConfidence(float value) { + + confidence_ = value; + onChanged(); + return this; + } + /** + *
+     * Object category's labeling confidence of this track.
+     * 
+ * + * float confidence = 4; + */ + public Builder clearConfidence() { + + confidence_ = 0F; + onChanged(); + return this; + } + + private java.util.List frames_ = + java.util.Collections.emptyList(); + private void ensureFramesIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + frames_ = new java.util.ArrayList(frames_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame, com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame.Builder, com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrameOrBuilder> framesBuilder_; + + /** + *
+     * Information corresponding to all frames where this object track appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame frames = 2; + */ + public java.util.List getFramesList() { + if (framesBuilder_ == null) { + return java.util.Collections.unmodifiableList(frames_); + } else { + return framesBuilder_.getMessageList(); + } + } + /** + *
+     * Information corresponding to all frames where this object track appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame frames = 2; + */ + public int getFramesCount() { + if (framesBuilder_ == null) { + return frames_.size(); + } else { + return framesBuilder_.getCount(); + } + } + /** + *
+     * Information corresponding to all frames where this object track appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame frames = 2; + */ + public com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame getFrames(int index) { + if (framesBuilder_ == null) { + return frames_.get(index); + } else { + return framesBuilder_.getMessage(index); + } + } + /** + *
+     * Information corresponding to all frames where this object track appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame frames = 2; + */ + public Builder setFrames( + int index, com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame value) { + if (framesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFramesIsMutable(); + frames_.set(index, value); + onChanged(); + } else { + framesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Information corresponding to all frames where this object track appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame frames = 2; + */ + public Builder setFrames( + int index, com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame.Builder builderForValue) { + if (framesBuilder_ == null) { + ensureFramesIsMutable(); + frames_.set(index, builderForValue.build()); + onChanged(); + } else { + framesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Information corresponding to all frames where this object track appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame frames = 2; + */ + public Builder addFrames(com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame value) { + if (framesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFramesIsMutable(); + frames_.add(value); + onChanged(); + } else { + framesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Information corresponding to all frames where this object track appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame frames = 2; + */ + public Builder addFrames( + int index, com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame value) { + if (framesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFramesIsMutable(); + frames_.add(index, value); + onChanged(); + } else { + framesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Information corresponding to all frames where this object track appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame frames = 2; + */ + public Builder addFrames( + com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame.Builder builderForValue) { + if (framesBuilder_ == null) { + ensureFramesIsMutable(); + frames_.add(builderForValue.build()); + onChanged(); + } else { + framesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Information corresponding to all frames where this object track appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame frames = 2; + */ + public Builder addFrames( + int index, com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame.Builder builderForValue) { + if (framesBuilder_ == null) { + ensureFramesIsMutable(); + frames_.add(index, builderForValue.build()); + onChanged(); + } else { + framesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Information corresponding to all frames where this object track appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame frames = 2; + */ + public Builder addAllFrames( + java.lang.Iterable values) { + if (framesBuilder_ == null) { + ensureFramesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, frames_); + onChanged(); + } else { + framesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Information corresponding to all frames where this object track appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame frames = 2; + */ + public Builder clearFrames() { + if (framesBuilder_ == null) { + frames_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + framesBuilder_.clear(); + } + return this; + } + /** + *
+     * Information corresponding to all frames where this object track appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame frames = 2; + */ + public Builder removeFrames(int index) { + if (framesBuilder_ == null) { + ensureFramesIsMutable(); + frames_.remove(index); + onChanged(); + } else { + framesBuilder_.remove(index); + } + return this; + } + /** + *
+     * Information corresponding to all frames where this object track appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame frames = 2; + */ + public com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame.Builder getFramesBuilder( + int index) { + return getFramesFieldBuilder().getBuilder(index); + } + /** + *
+     * Information corresponding to all frames where this object track appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame frames = 2; + */ + public com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrameOrBuilder getFramesOrBuilder( + int index) { + if (framesBuilder_ == null) { + return frames_.get(index); } else { + return framesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Information corresponding to all frames where this object track appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame frames = 2; + */ + public java.util.List + getFramesOrBuilderList() { + if (framesBuilder_ != null) { + return framesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(frames_); + } + } + /** + *
+     * Information corresponding to all frames where this object track appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame frames = 2; + */ + public com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame.Builder addFramesBuilder() { + return getFramesFieldBuilder().addBuilder( + com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame.getDefaultInstance()); + } + /** + *
+     * Information corresponding to all frames where this object track appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame frames = 2; + */ + public com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame.Builder addFramesBuilder( + int index) { + return getFramesFieldBuilder().addBuilder( + index, com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame.getDefaultInstance()); + } + /** + *
+     * Information corresponding to all frames where this object track appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame frames = 2; + */ + public java.util.List + getFramesBuilderList() { + return getFramesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame, com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame.Builder, com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrameOrBuilder> + getFramesFieldBuilder() { + if (framesBuilder_ == null) { + framesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame, com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame.Builder, com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrameOrBuilder>( + frames_, + ((bitField0_ & 0x00000004) == 0x00000004), + getParentForChildren(), + isClean()); + frames_ = null; + } + return framesBuilder_; + } + + private com.google.cloud.videointelligence.v1p2beta1.VideoSegment segment_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.VideoSegment, com.google.cloud.videointelligence.v1p2beta1.VideoSegment.Builder, com.google.cloud.videointelligence.v1p2beta1.VideoSegmentOrBuilder> segmentBuilder_; + /** + *
+     * Each object track corresponds to one video segment where it appears.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 3; + */ + public boolean hasSegment() { + return segmentBuilder_ != null || segment_ != null; + } + /** + *
+     * Each object track corresponds to one video segment where it appears.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 3; + */ + public com.google.cloud.videointelligence.v1p2beta1.VideoSegment getSegment() { + if (segmentBuilder_ == null) { + return segment_ == null ? com.google.cloud.videointelligence.v1p2beta1.VideoSegment.getDefaultInstance() : segment_; + } else { + return segmentBuilder_.getMessage(); + } + } + /** + *
+     * Each object track corresponds to one video segment where it appears.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 3; + */ + public Builder setSegment(com.google.cloud.videointelligence.v1p2beta1.VideoSegment value) { + if (segmentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + segment_ = value; + onChanged(); + } else { + segmentBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Each object track corresponds to one video segment where it appears.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 3; + */ + public Builder setSegment( + com.google.cloud.videointelligence.v1p2beta1.VideoSegment.Builder builderForValue) { + if (segmentBuilder_ == null) { + segment_ = builderForValue.build(); + onChanged(); + } else { + segmentBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Each object track corresponds to one video segment where it appears.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 3; + */ + public Builder mergeSegment(com.google.cloud.videointelligence.v1p2beta1.VideoSegment value) { + if (segmentBuilder_ == null) { + if (segment_ != null) { + segment_ = + com.google.cloud.videointelligence.v1p2beta1.VideoSegment.newBuilder(segment_).mergeFrom(value).buildPartial(); + } else { + segment_ = value; + } + onChanged(); + } else { + segmentBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Each object track corresponds to one video segment where it appears.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 3; + */ + public Builder clearSegment() { + if (segmentBuilder_ == null) { + segment_ = null; + onChanged(); + } else { + segment_ = null; + segmentBuilder_ = null; + } + + return this; + } + /** + *
+     * Each object track corresponds to one video segment where it appears.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 3; + */ + public com.google.cloud.videointelligence.v1p2beta1.VideoSegment.Builder getSegmentBuilder() { + + onChanged(); + return getSegmentFieldBuilder().getBuilder(); + } + /** + *
+     * Each object track corresponds to one video segment where it appears.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 3; + */ + public com.google.cloud.videointelligence.v1p2beta1.VideoSegmentOrBuilder getSegmentOrBuilder() { + if (segmentBuilder_ != null) { + return segmentBuilder_.getMessageOrBuilder(); + } else { + return segment_ == null ? + com.google.cloud.videointelligence.v1p2beta1.VideoSegment.getDefaultInstance() : segment_; + } + } + /** + *
+     * Each object track corresponds to one video segment where it appears.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.VideoSegment, com.google.cloud.videointelligence.v1p2beta1.VideoSegment.Builder, com.google.cloud.videointelligence.v1p2beta1.VideoSegmentOrBuilder> + getSegmentFieldBuilder() { + if (segmentBuilder_ == null) { + segmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.VideoSegment, com.google.cloud.videointelligence.v1p2beta1.VideoSegment.Builder, com.google.cloud.videointelligence.v1p2beta1.VideoSegmentOrBuilder>( + getSegment(), + getParentForChildren(), + isClean()); + segment_ = null; + } + return segmentBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation) + private static final com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation(); + } + + public static com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ObjectTrackingAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ObjectTrackingAnnotation(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ObjectTrackingAnnotationOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ObjectTrackingAnnotationOrBuilder.java new file mode 100644 index 000000000000..75cf4a78f7cf --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ObjectTrackingAnnotationOrBuilder.java @@ -0,0 +1,112 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +public interface ObjectTrackingAnnotationOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Entity to specify the object category that this track is labeled as.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.Entity entity = 1; + */ + boolean hasEntity(); + /** + *
+   * Entity to specify the object category that this track is labeled as.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.Entity entity = 1; + */ + com.google.cloud.videointelligence.v1p2beta1.Entity getEntity(); + /** + *
+   * Entity to specify the object category that this track is labeled as.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.Entity entity = 1; + */ + com.google.cloud.videointelligence.v1p2beta1.EntityOrBuilder getEntityOrBuilder(); + + /** + *
+   * Object category's labeling confidence of this track.
+   * 
+ * + * float confidence = 4; + */ + float getConfidence(); + + /** + *
+   * Information corresponding to all frames where this object track appears.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame frames = 2; + */ + java.util.List + getFramesList(); + /** + *
+   * Information corresponding to all frames where this object track appears.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame frames = 2; + */ + com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame getFrames(int index); + /** + *
+   * Information corresponding to all frames where this object track appears.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame frames = 2; + */ + int getFramesCount(); + /** + *
+   * Information corresponding to all frames where this object track appears.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame frames = 2; + */ + java.util.List + getFramesOrBuilderList(); + /** + *
+   * Information corresponding to all frames where this object track appears.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame frames = 2; + */ + com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrameOrBuilder getFramesOrBuilder( + int index); + + /** + *
+   * Each object track corresponds to one video segment where it appears.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 3; + */ + boolean hasSegment(); + /** + *
+   * Each object track corresponds to one video segment where it appears.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 3; + */ + com.google.cloud.videointelligence.v1p2beta1.VideoSegment getSegment(); + /** + *
+   * Each object track corresponds to one video segment where it appears.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 3; + */ + com.google.cloud.videointelligence.v1p2beta1.VideoSegmentOrBuilder getSegmentOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ObjectTrackingFrame.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ObjectTrackingFrame.java new file mode 100644 index 000000000000..4a591fc3b22f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ObjectTrackingFrame.java @@ -0,0 +1,882 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +/** + *
+ * Video frame level annotations for object detection and tracking. This field
+ * stores per frame location, time offset, and confidence.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame} + */ +public final class ObjectTrackingFrame extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame) + ObjectTrackingFrameOrBuilder { +private static final long serialVersionUID = 0L; + // Use ObjectTrackingFrame.newBuilder() to construct. + private ObjectTrackingFrame(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ObjectTrackingFrame() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ObjectTrackingFrame( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox.Builder subBuilder = null; + if (normalizedBoundingBox_ != null) { + subBuilder = normalizedBoundingBox_.toBuilder(); + } + normalizedBoundingBox_ = input.readMessage(com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(normalizedBoundingBox_); + normalizedBoundingBox_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (timeOffset_ != null) { + subBuilder = timeOffset_.toBuilder(); + } + timeOffset_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(timeOffset_); + timeOffset_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_ObjectTrackingFrame_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_ObjectTrackingFrame_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame.class, com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame.Builder.class); + } + + public static final int NORMALIZED_BOUNDING_BOX_FIELD_NUMBER = 1; + private com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox normalizedBoundingBox_; + /** + *
+   * The normalized bounding box location of this object track for the frame.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox normalized_bounding_box = 1; + */ + public boolean hasNormalizedBoundingBox() { + return normalizedBoundingBox_ != null; + } + /** + *
+   * The normalized bounding box location of this object track for the frame.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox normalized_bounding_box = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox getNormalizedBoundingBox() { + return normalizedBoundingBox_ == null ? com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox.getDefaultInstance() : normalizedBoundingBox_; + } + /** + *
+   * The normalized bounding box location of this object track for the frame.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox normalized_bounding_box = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBoxOrBuilder getNormalizedBoundingBoxOrBuilder() { + return getNormalizedBoundingBox(); + } + + public static final int TIME_OFFSET_FIELD_NUMBER = 2; + private com.google.protobuf.Duration timeOffset_; + /** + *
+   * The timestamp of the frame in microseconds.
+   * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + public boolean hasTimeOffset() { + return timeOffset_ != null; + } + /** + *
+   * The timestamp of the frame in microseconds.
+   * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + public com.google.protobuf.Duration getTimeOffset() { + return timeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeOffset_; + } + /** + *
+   * The timestamp of the frame in microseconds.
+   * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() { + return getTimeOffset(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (normalizedBoundingBox_ != null) { + output.writeMessage(1, getNormalizedBoundingBox()); + } + if (timeOffset_ != null) { + output.writeMessage(2, getTimeOffset()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (normalizedBoundingBox_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getNormalizedBoundingBox()); + } + if (timeOffset_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getTimeOffset()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame other = (com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame) obj; + + boolean result = true; + result = result && (hasNormalizedBoundingBox() == other.hasNormalizedBoundingBox()); + if (hasNormalizedBoundingBox()) { + result = result && getNormalizedBoundingBox() + .equals(other.getNormalizedBoundingBox()); + } + result = result && (hasTimeOffset() == other.hasTimeOffset()); + if (hasTimeOffset()) { + result = result && getTimeOffset() + .equals(other.getTimeOffset()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasNormalizedBoundingBox()) { + hash = (37 * hash) + NORMALIZED_BOUNDING_BOX_FIELD_NUMBER; + hash = (53 * hash) + getNormalizedBoundingBox().hashCode(); + } + if (hasTimeOffset()) { + hash = (37 * hash) + TIME_OFFSET_FIELD_NUMBER; + hash = (53 * hash) + getTimeOffset().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Video frame level annotations for object detection and tracking. This field
+   * stores per frame location, time offset, and confidence.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame) + com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrameOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_ObjectTrackingFrame_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_ObjectTrackingFrame_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame.class, com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame.Builder.class); + } + + // Construct using com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (normalizedBoundingBoxBuilder_ == null) { + normalizedBoundingBox_ = null; + } else { + normalizedBoundingBox_ = null; + normalizedBoundingBoxBuilder_ = null; + } + if (timeOffsetBuilder_ == null) { + timeOffset_ = null; + } else { + timeOffset_ = null; + timeOffsetBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_ObjectTrackingFrame_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame build() { + com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame buildPartial() { + com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame result = new com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame(this); + if (normalizedBoundingBoxBuilder_ == null) { + result.normalizedBoundingBox_ = normalizedBoundingBox_; + } else { + result.normalizedBoundingBox_ = normalizedBoundingBoxBuilder_.build(); + } + if (timeOffsetBuilder_ == null) { + result.timeOffset_ = timeOffset_; + } else { + result.timeOffset_ = timeOffsetBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame) { + return mergeFrom((com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame other) { + if (other == com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame.getDefaultInstance()) return this; + if (other.hasNormalizedBoundingBox()) { + mergeNormalizedBoundingBox(other.getNormalizedBoundingBox()); + } + if (other.hasTimeOffset()) { + mergeTimeOffset(other.getTimeOffset()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox normalizedBoundingBox_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox, com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox.Builder, com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBoxOrBuilder> normalizedBoundingBoxBuilder_; + /** + *
+     * The normalized bounding box location of this object track for the frame.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox normalized_bounding_box = 1; + */ + public boolean hasNormalizedBoundingBox() { + return normalizedBoundingBoxBuilder_ != null || normalizedBoundingBox_ != null; + } + /** + *
+     * The normalized bounding box location of this object track for the frame.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox normalized_bounding_box = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox getNormalizedBoundingBox() { + if (normalizedBoundingBoxBuilder_ == null) { + return normalizedBoundingBox_ == null ? com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox.getDefaultInstance() : normalizedBoundingBox_; + } else { + return normalizedBoundingBoxBuilder_.getMessage(); + } + } + /** + *
+     * The normalized bounding box location of this object track for the frame.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox normalized_bounding_box = 1; + */ + public Builder setNormalizedBoundingBox(com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox value) { + if (normalizedBoundingBoxBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + normalizedBoundingBox_ = value; + onChanged(); + } else { + normalizedBoundingBoxBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The normalized bounding box location of this object track for the frame.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox normalized_bounding_box = 1; + */ + public Builder setNormalizedBoundingBox( + com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox.Builder builderForValue) { + if (normalizedBoundingBoxBuilder_ == null) { + normalizedBoundingBox_ = builderForValue.build(); + onChanged(); + } else { + normalizedBoundingBoxBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The normalized bounding box location of this object track for the frame.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox normalized_bounding_box = 1; + */ + public Builder mergeNormalizedBoundingBox(com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox value) { + if (normalizedBoundingBoxBuilder_ == null) { + if (normalizedBoundingBox_ != null) { + normalizedBoundingBox_ = + com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox.newBuilder(normalizedBoundingBox_).mergeFrom(value).buildPartial(); + } else { + normalizedBoundingBox_ = value; + } + onChanged(); + } else { + normalizedBoundingBoxBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The normalized bounding box location of this object track for the frame.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox normalized_bounding_box = 1; + */ + public Builder clearNormalizedBoundingBox() { + if (normalizedBoundingBoxBuilder_ == null) { + normalizedBoundingBox_ = null; + onChanged(); + } else { + normalizedBoundingBox_ = null; + normalizedBoundingBoxBuilder_ = null; + } + + return this; + } + /** + *
+     * The normalized bounding box location of this object track for the frame.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox normalized_bounding_box = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox.Builder getNormalizedBoundingBoxBuilder() { + + onChanged(); + return getNormalizedBoundingBoxFieldBuilder().getBuilder(); + } + /** + *
+     * The normalized bounding box location of this object track for the frame.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox normalized_bounding_box = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBoxOrBuilder getNormalizedBoundingBoxOrBuilder() { + if (normalizedBoundingBoxBuilder_ != null) { + return normalizedBoundingBoxBuilder_.getMessageOrBuilder(); + } else { + return normalizedBoundingBox_ == null ? + com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox.getDefaultInstance() : normalizedBoundingBox_; + } + } + /** + *
+     * The normalized bounding box location of this object track for the frame.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox normalized_bounding_box = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox, com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox.Builder, com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBoxOrBuilder> + getNormalizedBoundingBoxFieldBuilder() { + if (normalizedBoundingBoxBuilder_ == null) { + normalizedBoundingBoxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox, com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox.Builder, com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBoxOrBuilder>( + getNormalizedBoundingBox(), + getParentForChildren(), + isClean()); + normalizedBoundingBox_ = null; + } + return normalizedBoundingBoxBuilder_; + } + + private com.google.protobuf.Duration timeOffset_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> timeOffsetBuilder_; + /** + *
+     * The timestamp of the frame in microseconds.
+     * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + public boolean hasTimeOffset() { + return timeOffsetBuilder_ != null || timeOffset_ != null; + } + /** + *
+     * The timestamp of the frame in microseconds.
+     * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + public com.google.protobuf.Duration getTimeOffset() { + if (timeOffsetBuilder_ == null) { + return timeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeOffset_; + } else { + return timeOffsetBuilder_.getMessage(); + } + } + /** + *
+     * The timestamp of the frame in microseconds.
+     * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + public Builder setTimeOffset(com.google.protobuf.Duration value) { + if (timeOffsetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + timeOffset_ = value; + onChanged(); + } else { + timeOffsetBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The timestamp of the frame in microseconds.
+     * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + public Builder setTimeOffset( + com.google.protobuf.Duration.Builder builderForValue) { + if (timeOffsetBuilder_ == null) { + timeOffset_ = builderForValue.build(); + onChanged(); + } else { + timeOffsetBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The timestamp of the frame in microseconds.
+     * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + public Builder mergeTimeOffset(com.google.protobuf.Duration value) { + if (timeOffsetBuilder_ == null) { + if (timeOffset_ != null) { + timeOffset_ = + com.google.protobuf.Duration.newBuilder(timeOffset_).mergeFrom(value).buildPartial(); + } else { + timeOffset_ = value; + } + onChanged(); + } else { + timeOffsetBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The timestamp of the frame in microseconds.
+     * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + public Builder clearTimeOffset() { + if (timeOffsetBuilder_ == null) { + timeOffset_ = null; + onChanged(); + } else { + timeOffset_ = null; + timeOffsetBuilder_ = null; + } + + return this; + } + /** + *
+     * The timestamp of the frame in microseconds.
+     * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + public com.google.protobuf.Duration.Builder getTimeOffsetBuilder() { + + onChanged(); + return getTimeOffsetFieldBuilder().getBuilder(); + } + /** + *
+     * The timestamp of the frame in microseconds.
+     * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() { + if (timeOffsetBuilder_ != null) { + return timeOffsetBuilder_.getMessageOrBuilder(); + } else { + return timeOffset_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : timeOffset_; + } + } + /** + *
+     * The timestamp of the frame in microseconds.
+     * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getTimeOffsetFieldBuilder() { + if (timeOffsetBuilder_ == null) { + timeOffsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getTimeOffset(), + getParentForChildren(), + isClean()); + timeOffset_ = null; + } + return timeOffsetBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame) + private static final com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame(); + } + + public static com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ObjectTrackingFrame parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ObjectTrackingFrame(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ObjectTrackingFrameOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ObjectTrackingFrameOrBuilder.java new file mode 100644 index 000000000000..fce2cb9b6e20 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ObjectTrackingFrameOrBuilder.java @@ -0,0 +1,59 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +public interface ObjectTrackingFrameOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The normalized bounding box location of this object track for the frame.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox normalized_bounding_box = 1; + */ + boolean hasNormalizedBoundingBox(); + /** + *
+   * The normalized bounding box location of this object track for the frame.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox normalized_bounding_box = 1; + */ + com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox getNormalizedBoundingBox(); + /** + *
+   * The normalized bounding box location of this object track for the frame.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox normalized_bounding_box = 1; + */ + com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBoxOrBuilder getNormalizedBoundingBoxOrBuilder(); + + /** + *
+   * The timestamp of the frame in microseconds.
+   * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + boolean hasTimeOffset(); + /** + *
+   * The timestamp of the frame in microseconds.
+   * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + com.google.protobuf.Duration getTimeOffset(); + /** + *
+   * The timestamp of the frame in microseconds.
+   * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ShotChangeDetectionConfig.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ShotChangeDetectionConfig.java new file mode 100644 index 000000000000..bf6f63ffca9a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ShotChangeDetectionConfig.java @@ -0,0 +1,591 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +/** + *
+ * Config for SHOT_CHANGE_DETECTION.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig} + */ +public final class ShotChangeDetectionConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig) + ShotChangeDetectionConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use ShotChangeDetectionConfig.newBuilder() to construct. + private ShotChangeDetectionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ShotChangeDetectionConfig() { + model_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ShotChangeDetectionConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + model_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_ShotChangeDetectionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_ShotChangeDetectionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig.class, com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig.Builder.class); + } + + public static final int MODEL_FIELD_NUMBER = 1; + private volatile java.lang.Object model_; + /** + *
+   * Model to use for shot change detection.
+   * Supported values: "builtin/stable" (the default if unset) and
+   * "builtin/latest".
+   * 
+ * + * string model = 1; + */ + public java.lang.String getModel() { + java.lang.Object ref = model_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + model_ = s; + return s; + } + } + /** + *
+   * Model to use for shot change detection.
+   * Supported values: "builtin/stable" (the default if unset) and
+   * "builtin/latest".
+   * 
+ * + * string model = 1; + */ + public com.google.protobuf.ByteString + getModelBytes() { + java.lang.Object ref = model_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + model_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getModelBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, model_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getModelBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, model_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig other = (com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig) obj; + + boolean result = true; + result = result && getModel() + .equals(other.getModel()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MODEL_FIELD_NUMBER; + hash = (53 * hash) + getModel().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Config for SHOT_CHANGE_DETECTION.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig) + com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_ShotChangeDetectionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_ShotChangeDetectionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig.class, com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig.Builder.class); + } + + // Construct using com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + model_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_ShotChangeDetectionConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig build() { + com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig buildPartial() { + com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig result = new com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig(this); + result.model_ = model_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig) { + return mergeFrom((com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig other) { + if (other == com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig.getDefaultInstance()) return this; + if (!other.getModel().isEmpty()) { + model_ = other.model_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object model_ = ""; + /** + *
+     * Model to use for shot change detection.
+     * Supported values: "builtin/stable" (the default if unset) and
+     * "builtin/latest".
+     * 
+ * + * string model = 1; + */ + public java.lang.String getModel() { + java.lang.Object ref = model_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + model_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Model to use for shot change detection.
+     * Supported values: "builtin/stable" (the default if unset) and
+     * "builtin/latest".
+     * 
+ * + * string model = 1; + */ + public com.google.protobuf.ByteString + getModelBytes() { + java.lang.Object ref = model_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + model_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Model to use for shot change detection.
+     * Supported values: "builtin/stable" (the default if unset) and
+     * "builtin/latest".
+     * 
+ * + * string model = 1; + */ + public Builder setModel( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + model_ = value; + onChanged(); + return this; + } + /** + *
+     * Model to use for shot change detection.
+     * Supported values: "builtin/stable" (the default if unset) and
+     * "builtin/latest".
+     * 
+ * + * string model = 1; + */ + public Builder clearModel() { + + model_ = getDefaultInstance().getModel(); + onChanged(); + return this; + } + /** + *
+     * Model to use for shot change detection.
+     * Supported values: "builtin/stable" (the default if unset) and
+     * "builtin/latest".
+     * 
+ * + * string model = 1; + */ + public Builder setModelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + model_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig) + private static final com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig(); + } + + public static com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ShotChangeDetectionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ShotChangeDetectionConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ShotChangeDetectionConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ShotChangeDetectionConfigOrBuilder.java new file mode 100644 index 000000000000..e38a4f5af45f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ShotChangeDetectionConfigOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +public interface ShotChangeDetectionConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Model to use for shot change detection.
+   * Supported values: "builtin/stable" (the default if unset) and
+   * "builtin/latest".
+   * 
+ * + * string model = 1; + */ + java.lang.String getModel(); + /** + *
+   * Model to use for shot change detection.
+   * Supported values: "builtin/stable" (the default if unset) and
+   * "builtin/latest".
+   * 
+ * + * string model = 1; + */ + com.google.protobuf.ByteString + getModelBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextAnnotation.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextAnnotation.java new file mode 100644 index 000000000000..409b0c1adbc4 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextAnnotation.java @@ -0,0 +1,1537 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +/** + *
+ * Annotations related to one detected OCR text snippet. This will contain the
+ * corresponding text, confidence value, and frame level information for each
+ * detection.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.TextAnnotation} + */ +public final class TextAnnotation extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p2beta1.TextAnnotation) + TextAnnotationOrBuilder { +private static final long serialVersionUID = 0L; + // Use TextAnnotation.newBuilder() to construct. + private TextAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TextAnnotation() { + text_ = ""; + confidence_ = 0F; + frames_ = java.util.Collections.emptyList(); + segments_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TextAnnotation( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + text_ = s; + break; + } + case 21: { + + confidence_ = input.readFloat(); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + frames_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + frames_.add( + input.readMessage(com.google.cloud.videointelligence.v1p2beta1.TextFrame.parser(), extensionRegistry)); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + segments_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + segments_.add( + input.readMessage(com.google.cloud.videointelligence.v1p2beta1.TextSegment.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + frames_ = java.util.Collections.unmodifiableList(frames_); + } + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + segments_ = java.util.Collections.unmodifiableList(segments_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_TextAnnotation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_TextAnnotation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p2beta1.TextAnnotation.class, com.google.cloud.videointelligence.v1p2beta1.TextAnnotation.Builder.class); + } + + private int bitField0_; + public static final int TEXT_FIELD_NUMBER = 1; + private volatile java.lang.Object text_; + /** + *
+   * The detected text.
+   * 
+ * + * string text = 1; + */ + public java.lang.String getText() { + java.lang.Object ref = text_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + text_ = s; + return s; + } + } + /** + *
+   * The detected text.
+   * 
+ * + * string text = 1; + */ + public com.google.protobuf.ByteString + getTextBytes() { + java.lang.Object ref = text_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + text_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONFIDENCE_FIELD_NUMBER = 2; + private float confidence_; + /** + *
+   * Confidence for the track of detected text. It is calculated as the highest
+   * over all frames where OCR detected text appears.
+   * 
+ * + * float confidence = 2; + */ + public float getConfidence() { + return confidence_; + } + + public static final int FRAMES_FIELD_NUMBER = 3; + private java.util.List frames_; + /** + *
+   * Information related to the frames where OCR detected text appears.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextFrame frames = 3; + */ + public java.util.List getFramesList() { + return frames_; + } + /** + *
+   * Information related to the frames where OCR detected text appears.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextFrame frames = 3; + */ + public java.util.List + getFramesOrBuilderList() { + return frames_; + } + /** + *
+   * Information related to the frames where OCR detected text appears.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextFrame frames = 3; + */ + public int getFramesCount() { + return frames_.size(); + } + /** + *
+   * Information related to the frames where OCR detected text appears.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextFrame frames = 3; + */ + public com.google.cloud.videointelligence.v1p2beta1.TextFrame getFrames(int index) { + return frames_.get(index); + } + /** + *
+   * Information related to the frames where OCR detected text appears.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextFrame frames = 3; + */ + public com.google.cloud.videointelligence.v1p2beta1.TextFrameOrBuilder getFramesOrBuilder( + int index) { + return frames_.get(index); + } + + public static final int SEGMENTS_FIELD_NUMBER = 4; + private java.util.List segments_; + /** + *
+   * All video segments where OCR detected text appears.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextSegment segments = 4; + */ + public java.util.List getSegmentsList() { + return segments_; + } + /** + *
+   * All video segments where OCR detected text appears.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextSegment segments = 4; + */ + public java.util.List + getSegmentsOrBuilderList() { + return segments_; + } + /** + *
+   * All video segments where OCR detected text appears.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextSegment segments = 4; + */ + public int getSegmentsCount() { + return segments_.size(); + } + /** + *
+   * All video segments where OCR detected text appears.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextSegment segments = 4; + */ + public com.google.cloud.videointelligence.v1p2beta1.TextSegment getSegments(int index) { + return segments_.get(index); + } + /** + *
+   * All video segments where OCR detected text appears.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextSegment segments = 4; + */ + public com.google.cloud.videointelligence.v1p2beta1.TextSegmentOrBuilder getSegmentsOrBuilder( + int index) { + return segments_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getTextBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, text_); + } + if (confidence_ != 0F) { + output.writeFloat(2, confidence_); + } + for (int i = 0; i < frames_.size(); i++) { + output.writeMessage(3, frames_.get(i)); + } + for (int i = 0; i < segments_.size(); i++) { + output.writeMessage(4, segments_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getTextBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, text_); + } + if (confidence_ != 0F) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, confidence_); + } + for (int i = 0; i < frames_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, frames_.get(i)); + } + for (int i = 0; i < segments_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, segments_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1p2beta1.TextAnnotation)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p2beta1.TextAnnotation other = (com.google.cloud.videointelligence.v1p2beta1.TextAnnotation) obj; + + boolean result = true; + result = result && getText() + .equals(other.getText()); + result = result && ( + java.lang.Float.floatToIntBits(getConfidence()) + == java.lang.Float.floatToIntBits( + other.getConfidence())); + result = result && getFramesList() + .equals(other.getFramesList()); + result = result && getSegmentsList() + .equals(other.getSegmentsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TEXT_FIELD_NUMBER; + hash = (53 * hash) + getText().hashCode(); + hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidence()); + if (getFramesCount() > 0) { + hash = (37 * hash) + FRAMES_FIELD_NUMBER; + hash = (53 * hash) + getFramesList().hashCode(); + } + if (getSegmentsCount() > 0) { + hash = (37 * hash) + SEGMENTS_FIELD_NUMBER; + hash = (53 * hash) + getSegmentsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p2beta1.TextAnnotation parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.TextAnnotation parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.TextAnnotation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.TextAnnotation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.TextAnnotation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.TextAnnotation parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.TextAnnotation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.TextAnnotation parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.TextAnnotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.TextAnnotation parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.TextAnnotation parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.TextAnnotation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.videointelligence.v1p2beta1.TextAnnotation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Annotations related to one detected OCR text snippet. This will contain the
+   * corresponding text, confidence value, and frame level information for each
+   * detection.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.TextAnnotation} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p2beta1.TextAnnotation) + com.google.cloud.videointelligence.v1p2beta1.TextAnnotationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_TextAnnotation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_TextAnnotation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p2beta1.TextAnnotation.class, com.google.cloud.videointelligence.v1p2beta1.TextAnnotation.Builder.class); + } + + // Construct using com.google.cloud.videointelligence.v1p2beta1.TextAnnotation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getFramesFieldBuilder(); + getSegmentsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + text_ = ""; + + confidence_ = 0F; + + if (framesBuilder_ == null) { + frames_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + framesBuilder_.clear(); + } + if (segmentsBuilder_ == null) { + segments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + segmentsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_TextAnnotation_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.TextAnnotation getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p2beta1.TextAnnotation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.TextAnnotation build() { + com.google.cloud.videointelligence.v1p2beta1.TextAnnotation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.TextAnnotation buildPartial() { + com.google.cloud.videointelligence.v1p2beta1.TextAnnotation result = new com.google.cloud.videointelligence.v1p2beta1.TextAnnotation(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.text_ = text_; + result.confidence_ = confidence_; + if (framesBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + frames_ = java.util.Collections.unmodifiableList(frames_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.frames_ = frames_; + } else { + result.frames_ = framesBuilder_.build(); + } + if (segmentsBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { + segments_ = java.util.Collections.unmodifiableList(segments_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.segments_ = segments_; + } else { + result.segments_ = segmentsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1p2beta1.TextAnnotation) { + return mergeFrom((com.google.cloud.videointelligence.v1p2beta1.TextAnnotation)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.videointelligence.v1p2beta1.TextAnnotation other) { + if (other == com.google.cloud.videointelligence.v1p2beta1.TextAnnotation.getDefaultInstance()) return this; + if (!other.getText().isEmpty()) { + text_ = other.text_; + onChanged(); + } + if (other.getConfidence() != 0F) { + setConfidence(other.getConfidence()); + } + if (framesBuilder_ == null) { + if (!other.frames_.isEmpty()) { + if (frames_.isEmpty()) { + frames_ = other.frames_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureFramesIsMutable(); + frames_.addAll(other.frames_); + } + onChanged(); + } + } else { + if (!other.frames_.isEmpty()) { + if (framesBuilder_.isEmpty()) { + framesBuilder_.dispose(); + framesBuilder_ = null; + frames_ = other.frames_; + bitField0_ = (bitField0_ & ~0x00000004); + framesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFramesFieldBuilder() : null; + } else { + framesBuilder_.addAllMessages(other.frames_); + } + } + } + if (segmentsBuilder_ == null) { + if (!other.segments_.isEmpty()) { + if (segments_.isEmpty()) { + segments_ = other.segments_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureSegmentsIsMutable(); + segments_.addAll(other.segments_); + } + onChanged(); + } + } else { + if (!other.segments_.isEmpty()) { + if (segmentsBuilder_.isEmpty()) { + segmentsBuilder_.dispose(); + segmentsBuilder_ = null; + segments_ = other.segments_; + bitField0_ = (bitField0_ & ~0x00000008); + segmentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSegmentsFieldBuilder() : null; + } else { + segmentsBuilder_.addAllMessages(other.segments_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p2beta1.TextAnnotation parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.videointelligence.v1p2beta1.TextAnnotation) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object text_ = ""; + /** + *
+     * The detected text.
+     * 
+ * + * string text = 1; + */ + public java.lang.String getText() { + java.lang.Object ref = text_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + text_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The detected text.
+     * 
+ * + * string text = 1; + */ + public com.google.protobuf.ByteString + getTextBytes() { + java.lang.Object ref = text_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + text_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The detected text.
+     * 
+ * + * string text = 1; + */ + public Builder setText( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + text_ = value; + onChanged(); + return this; + } + /** + *
+     * The detected text.
+     * 
+ * + * string text = 1; + */ + public Builder clearText() { + + text_ = getDefaultInstance().getText(); + onChanged(); + return this; + } + /** + *
+     * The detected text.
+     * 
+ * + * string text = 1; + */ + public Builder setTextBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + text_ = value; + onChanged(); + return this; + } + + private float confidence_ ; + /** + *
+     * Confidence for the track of detected text. It is calculated as the highest
+     * over all frames where OCR detected text appears.
+     * 
+ * + * float confidence = 2; + */ + public float getConfidence() { + return confidence_; + } + /** + *
+     * Confidence for the track of detected text. It is calculated as the highest
+     * over all frames where OCR detected text appears.
+     * 
+ * + * float confidence = 2; + */ + public Builder setConfidence(float value) { + + confidence_ = value; + onChanged(); + return this; + } + /** + *
+     * Confidence for the track of detected text. It is calculated as the highest
+     * over all frames where OCR detected text appears.
+     * 
+ * + * float confidence = 2; + */ + public Builder clearConfidence() { + + confidence_ = 0F; + onChanged(); + return this; + } + + private java.util.List frames_ = + java.util.Collections.emptyList(); + private void ensureFramesIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + frames_ = new java.util.ArrayList(frames_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.TextFrame, com.google.cloud.videointelligence.v1p2beta1.TextFrame.Builder, com.google.cloud.videointelligence.v1p2beta1.TextFrameOrBuilder> framesBuilder_; + + /** + *
+     * Information related to the frames where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextFrame frames = 3; + */ + public java.util.List getFramesList() { + if (framesBuilder_ == null) { + return java.util.Collections.unmodifiableList(frames_); + } else { + return framesBuilder_.getMessageList(); + } + } + /** + *
+     * Information related to the frames where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextFrame frames = 3; + */ + public int getFramesCount() { + if (framesBuilder_ == null) { + return frames_.size(); + } else { + return framesBuilder_.getCount(); + } + } + /** + *
+     * Information related to the frames where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextFrame frames = 3; + */ + public com.google.cloud.videointelligence.v1p2beta1.TextFrame getFrames(int index) { + if (framesBuilder_ == null) { + return frames_.get(index); + } else { + return framesBuilder_.getMessage(index); + } + } + /** + *
+     * Information related to the frames where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextFrame frames = 3; + */ + public Builder setFrames( + int index, com.google.cloud.videointelligence.v1p2beta1.TextFrame value) { + if (framesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFramesIsMutable(); + frames_.set(index, value); + onChanged(); + } else { + framesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Information related to the frames where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextFrame frames = 3; + */ + public Builder setFrames( + int index, com.google.cloud.videointelligence.v1p2beta1.TextFrame.Builder builderForValue) { + if (framesBuilder_ == null) { + ensureFramesIsMutable(); + frames_.set(index, builderForValue.build()); + onChanged(); + } else { + framesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Information related to the frames where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextFrame frames = 3; + */ + public Builder addFrames(com.google.cloud.videointelligence.v1p2beta1.TextFrame value) { + if (framesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFramesIsMutable(); + frames_.add(value); + onChanged(); + } else { + framesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Information related to the frames where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextFrame frames = 3; + */ + public Builder addFrames( + int index, com.google.cloud.videointelligence.v1p2beta1.TextFrame value) { + if (framesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFramesIsMutable(); + frames_.add(index, value); + onChanged(); + } else { + framesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Information related to the frames where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextFrame frames = 3; + */ + public Builder addFrames( + com.google.cloud.videointelligence.v1p2beta1.TextFrame.Builder builderForValue) { + if (framesBuilder_ == null) { + ensureFramesIsMutable(); + frames_.add(builderForValue.build()); + onChanged(); + } else { + framesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Information related to the frames where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextFrame frames = 3; + */ + public Builder addFrames( + int index, com.google.cloud.videointelligence.v1p2beta1.TextFrame.Builder builderForValue) { + if (framesBuilder_ == null) { + ensureFramesIsMutable(); + frames_.add(index, builderForValue.build()); + onChanged(); + } else { + framesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Information related to the frames where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextFrame frames = 3; + */ + public Builder addAllFrames( + java.lang.Iterable values) { + if (framesBuilder_ == null) { + ensureFramesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, frames_); + onChanged(); + } else { + framesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Information related to the frames where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextFrame frames = 3; + */ + public Builder clearFrames() { + if (framesBuilder_ == null) { + frames_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + framesBuilder_.clear(); + } + return this; + } + /** + *
+     * Information related to the frames where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextFrame frames = 3; + */ + public Builder removeFrames(int index) { + if (framesBuilder_ == null) { + ensureFramesIsMutable(); + frames_.remove(index); + onChanged(); + } else { + framesBuilder_.remove(index); + } + return this; + } + /** + *
+     * Information related to the frames where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextFrame frames = 3; + */ + public com.google.cloud.videointelligence.v1p2beta1.TextFrame.Builder getFramesBuilder( + int index) { + return getFramesFieldBuilder().getBuilder(index); + } + /** + *
+     * Information related to the frames where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextFrame frames = 3; + */ + public com.google.cloud.videointelligence.v1p2beta1.TextFrameOrBuilder getFramesOrBuilder( + int index) { + if (framesBuilder_ == null) { + return frames_.get(index); } else { + return framesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Information related to the frames where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextFrame frames = 3; + */ + public java.util.List + getFramesOrBuilderList() { + if (framesBuilder_ != null) { + return framesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(frames_); + } + } + /** + *
+     * Information related to the frames where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextFrame frames = 3; + */ + public com.google.cloud.videointelligence.v1p2beta1.TextFrame.Builder addFramesBuilder() { + return getFramesFieldBuilder().addBuilder( + com.google.cloud.videointelligence.v1p2beta1.TextFrame.getDefaultInstance()); + } + /** + *
+     * Information related to the frames where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextFrame frames = 3; + */ + public com.google.cloud.videointelligence.v1p2beta1.TextFrame.Builder addFramesBuilder( + int index) { + return getFramesFieldBuilder().addBuilder( + index, com.google.cloud.videointelligence.v1p2beta1.TextFrame.getDefaultInstance()); + } + /** + *
+     * Information related to the frames where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextFrame frames = 3; + */ + public java.util.List + getFramesBuilderList() { + return getFramesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.TextFrame, com.google.cloud.videointelligence.v1p2beta1.TextFrame.Builder, com.google.cloud.videointelligence.v1p2beta1.TextFrameOrBuilder> + getFramesFieldBuilder() { + if (framesBuilder_ == null) { + framesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.TextFrame, com.google.cloud.videointelligence.v1p2beta1.TextFrame.Builder, com.google.cloud.videointelligence.v1p2beta1.TextFrameOrBuilder>( + frames_, + ((bitField0_ & 0x00000004) == 0x00000004), + getParentForChildren(), + isClean()); + frames_ = null; + } + return framesBuilder_; + } + + private java.util.List segments_ = + java.util.Collections.emptyList(); + private void ensureSegmentsIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + segments_ = new java.util.ArrayList(segments_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.TextSegment, com.google.cloud.videointelligence.v1p2beta1.TextSegment.Builder, com.google.cloud.videointelligence.v1p2beta1.TextSegmentOrBuilder> segmentsBuilder_; + + /** + *
+     * All video segments where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextSegment segments = 4; + */ + public java.util.List getSegmentsList() { + if (segmentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(segments_); + } else { + return segmentsBuilder_.getMessageList(); + } + } + /** + *
+     * All video segments where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextSegment segments = 4; + */ + public int getSegmentsCount() { + if (segmentsBuilder_ == null) { + return segments_.size(); + } else { + return segmentsBuilder_.getCount(); + } + } + /** + *
+     * All video segments where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextSegment segments = 4; + */ + public com.google.cloud.videointelligence.v1p2beta1.TextSegment getSegments(int index) { + if (segmentsBuilder_ == null) { + return segments_.get(index); + } else { + return segmentsBuilder_.getMessage(index); + } + } + /** + *
+     * All video segments where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextSegment segments = 4; + */ + public Builder setSegments( + int index, com.google.cloud.videointelligence.v1p2beta1.TextSegment value) { + if (segmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSegmentsIsMutable(); + segments_.set(index, value); + onChanged(); + } else { + segmentsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * All video segments where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextSegment segments = 4; + */ + public Builder setSegments( + int index, com.google.cloud.videointelligence.v1p2beta1.TextSegment.Builder builderForValue) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + segments_.set(index, builderForValue.build()); + onChanged(); + } else { + segmentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * All video segments where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextSegment segments = 4; + */ + public Builder addSegments(com.google.cloud.videointelligence.v1p2beta1.TextSegment value) { + if (segmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSegmentsIsMutable(); + segments_.add(value); + onChanged(); + } else { + segmentsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * All video segments where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextSegment segments = 4; + */ + public Builder addSegments( + int index, com.google.cloud.videointelligence.v1p2beta1.TextSegment value) { + if (segmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSegmentsIsMutable(); + segments_.add(index, value); + onChanged(); + } else { + segmentsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * All video segments where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextSegment segments = 4; + */ + public Builder addSegments( + com.google.cloud.videointelligence.v1p2beta1.TextSegment.Builder builderForValue) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + segments_.add(builderForValue.build()); + onChanged(); + } else { + segmentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * All video segments where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextSegment segments = 4; + */ + public Builder addSegments( + int index, com.google.cloud.videointelligence.v1p2beta1.TextSegment.Builder builderForValue) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + segments_.add(index, builderForValue.build()); + onChanged(); + } else { + segmentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * All video segments where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextSegment segments = 4; + */ + public Builder addAllSegments( + java.lang.Iterable values) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, segments_); + onChanged(); + } else { + segmentsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * All video segments where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextSegment segments = 4; + */ + public Builder clearSegments() { + if (segmentsBuilder_ == null) { + segments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + segmentsBuilder_.clear(); + } + return this; + } + /** + *
+     * All video segments where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextSegment segments = 4; + */ + public Builder removeSegments(int index) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + segments_.remove(index); + onChanged(); + } else { + segmentsBuilder_.remove(index); + } + return this; + } + /** + *
+     * All video segments where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextSegment segments = 4; + */ + public com.google.cloud.videointelligence.v1p2beta1.TextSegment.Builder getSegmentsBuilder( + int index) { + return getSegmentsFieldBuilder().getBuilder(index); + } + /** + *
+     * All video segments where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextSegment segments = 4; + */ + public com.google.cloud.videointelligence.v1p2beta1.TextSegmentOrBuilder getSegmentsOrBuilder( + int index) { + if (segmentsBuilder_ == null) { + return segments_.get(index); } else { + return segmentsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * All video segments where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextSegment segments = 4; + */ + public java.util.List + getSegmentsOrBuilderList() { + if (segmentsBuilder_ != null) { + return segmentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(segments_); + } + } + /** + *
+     * All video segments where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextSegment segments = 4; + */ + public com.google.cloud.videointelligence.v1p2beta1.TextSegment.Builder addSegmentsBuilder() { + return getSegmentsFieldBuilder().addBuilder( + com.google.cloud.videointelligence.v1p2beta1.TextSegment.getDefaultInstance()); + } + /** + *
+     * All video segments where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextSegment segments = 4; + */ + public com.google.cloud.videointelligence.v1p2beta1.TextSegment.Builder addSegmentsBuilder( + int index) { + return getSegmentsFieldBuilder().addBuilder( + index, com.google.cloud.videointelligence.v1p2beta1.TextSegment.getDefaultInstance()); + } + /** + *
+     * All video segments where OCR detected text appears.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextSegment segments = 4; + */ + public java.util.List + getSegmentsBuilderList() { + return getSegmentsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.TextSegment, com.google.cloud.videointelligence.v1p2beta1.TextSegment.Builder, com.google.cloud.videointelligence.v1p2beta1.TextSegmentOrBuilder> + getSegmentsFieldBuilder() { + if (segmentsBuilder_ == null) { + segmentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.TextSegment, com.google.cloud.videointelligence.v1p2beta1.TextSegment.Builder, com.google.cloud.videointelligence.v1p2beta1.TextSegmentOrBuilder>( + segments_, + ((bitField0_ & 0x00000008) == 0x00000008), + getParentForChildren(), + isClean()); + segments_ = null; + } + return segmentsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p2beta1.TextAnnotation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.TextAnnotation) + private static final com.google.cloud.videointelligence.v1p2beta1.TextAnnotation DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p2beta1.TextAnnotation(); + } + + public static com.google.cloud.videointelligence.v1p2beta1.TextAnnotation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextAnnotation(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.TextAnnotation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextAnnotationOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextAnnotationOrBuilder.java new file mode 100644 index 000000000000..c9f1f91600eb --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextAnnotationOrBuilder.java @@ -0,0 +1,125 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +public interface TextAnnotationOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p2beta1.TextAnnotation) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The detected text.
+   * 
+ * + * string text = 1; + */ + java.lang.String getText(); + /** + *
+   * The detected text.
+   * 
+ * + * string text = 1; + */ + com.google.protobuf.ByteString + getTextBytes(); + + /** + *
+   * Confidence for the track of detected text. It is calculated as the highest
+   * over all frames where OCR detected text appears.
+   * 
+ * + * float confidence = 2; + */ + float getConfidence(); + + /** + *
+   * Information related to the frames where OCR detected text appears.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextFrame frames = 3; + */ + java.util.List + getFramesList(); + /** + *
+   * Information related to the frames where OCR detected text appears.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextFrame frames = 3; + */ + com.google.cloud.videointelligence.v1p2beta1.TextFrame getFrames(int index); + /** + *
+   * Information related to the frames where OCR detected text appears.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextFrame frames = 3; + */ + int getFramesCount(); + /** + *
+   * Information related to the frames where OCR detected text appears.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextFrame frames = 3; + */ + java.util.List + getFramesOrBuilderList(); + /** + *
+   * Information related to the frames where OCR detected text appears.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextFrame frames = 3; + */ + com.google.cloud.videointelligence.v1p2beta1.TextFrameOrBuilder getFramesOrBuilder( + int index); + + /** + *
+   * All video segments where OCR detected text appears.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextSegment segments = 4; + */ + java.util.List + getSegmentsList(); + /** + *
+   * All video segments where OCR detected text appears.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextSegment segments = 4; + */ + com.google.cloud.videointelligence.v1p2beta1.TextSegment getSegments(int index); + /** + *
+   * All video segments where OCR detected text appears.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextSegment segments = 4; + */ + int getSegmentsCount(); + /** + *
+   * All video segments where OCR detected text appears.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextSegment segments = 4; + */ + java.util.List + getSegmentsOrBuilderList(); + /** + *
+   * All video segments where OCR detected text appears.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextSegment segments = 4; + */ + com.google.cloud.videointelligence.v1p2beta1.TextSegmentOrBuilder getSegmentsOrBuilder( + int index); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextDetectionConfig.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextDetectionConfig.java new file mode 100644 index 000000000000..1d2b87ae6da8 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextDetectionConfig.java @@ -0,0 +1,685 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +/** + *
+ * Config for TEXT_DETECTION.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.TextDetectionConfig} + */ +public final class TextDetectionConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p2beta1.TextDetectionConfig) + TextDetectionConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use TextDetectionConfig.newBuilder() to construct. + private TextDetectionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TextDetectionConfig() { + languageHints_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TextDetectionConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + languageHints_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + languageHints_.add(s); + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + languageHints_ = languageHints_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_TextDetectionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_TextDetectionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig.class, com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig.Builder.class); + } + + public static final int LANGUAGE_HINTS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList languageHints_; + /** + *
+   * Language hint can be specified if the language to be detected is known a
+   * priori. It can increase the accuracy of the detection. Language hint must
+   * be language code in BCP-47 format.
+   * Automatic language detection is performed if no hint is provided.
+   * 
+ * + * repeated string language_hints = 1; + */ + public com.google.protobuf.ProtocolStringList + getLanguageHintsList() { + return languageHints_; + } + /** + *
+   * Language hint can be specified if the language to be detected is known a
+   * priori. It can increase the accuracy of the detection. Language hint must
+   * be language code in BCP-47 format.
+   * Automatic language detection is performed if no hint is provided.
+   * 
+ * + * repeated string language_hints = 1; + */ + public int getLanguageHintsCount() { + return languageHints_.size(); + } + /** + *
+   * Language hint can be specified if the language to be detected is known a
+   * priori. It can increase the accuracy of the detection. Language hint must
+   * be language code in BCP-47 format.
+   * Automatic language detection is performed if no hint is provided.
+   * 
+ * + * repeated string language_hints = 1; + */ + public java.lang.String getLanguageHints(int index) { + return languageHints_.get(index); + } + /** + *
+   * Language hint can be specified if the language to be detected is known a
+   * priori. It can increase the accuracy of the detection. Language hint must
+   * be language code in BCP-47 format.
+   * Automatic language detection is performed if no hint is provided.
+   * 
+ * + * repeated string language_hints = 1; + */ + public com.google.protobuf.ByteString + getLanguageHintsBytes(int index) { + return languageHints_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < languageHints_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageHints_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < languageHints_.size(); i++) { + dataSize += computeStringSizeNoTag(languageHints_.getRaw(i)); + } + size += dataSize; + size += 1 * getLanguageHintsList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig other = (com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig) obj; + + boolean result = true; + result = result && getLanguageHintsList() + .equals(other.getLanguageHintsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getLanguageHintsCount() > 0) { + hash = (37 * hash) + LANGUAGE_HINTS_FIELD_NUMBER; + hash = (53 * hash) + getLanguageHintsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Config for TEXT_DETECTION.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.TextDetectionConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p2beta1.TextDetectionConfig) + com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_TextDetectionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_TextDetectionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig.class, com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig.Builder.class); + } + + // Construct using com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + languageHints_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_TextDetectionConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig build() { + com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig buildPartial() { + com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig result = new com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + languageHints_ = languageHints_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.languageHints_ = languageHints_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig) { + return mergeFrom((com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig other) { + if (other == com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig.getDefaultInstance()) return this; + if (!other.languageHints_.isEmpty()) { + if (languageHints_.isEmpty()) { + languageHints_ = other.languageHints_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLanguageHintsIsMutable(); + languageHints_.addAll(other.languageHints_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList languageHints_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureLanguageHintsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + languageHints_ = new com.google.protobuf.LazyStringArrayList(languageHints_); + bitField0_ |= 0x00000001; + } + } + /** + *
+     * Language hint can be specified if the language to be detected is known a
+     * priori. It can increase the accuracy of the detection. Language hint must
+     * be language code in BCP-47 format.
+     * Automatic language detection is performed if no hint is provided.
+     * 
+ * + * repeated string language_hints = 1; + */ + public com.google.protobuf.ProtocolStringList + getLanguageHintsList() { + return languageHints_.getUnmodifiableView(); + } + /** + *
+     * Language hint can be specified if the language to be detected is known a
+     * priori. It can increase the accuracy of the detection. Language hint must
+     * be language code in BCP-47 format.
+     * Automatic language detection is performed if no hint is provided.
+     * 
+ * + * repeated string language_hints = 1; + */ + public int getLanguageHintsCount() { + return languageHints_.size(); + } + /** + *
+     * Language hint can be specified if the language to be detected is known a
+     * priori. It can increase the accuracy of the detection. Language hint must
+     * be language code in BCP-47 format.
+     * Automatic language detection is performed if no hint is provided.
+     * 
+ * + * repeated string language_hints = 1; + */ + public java.lang.String getLanguageHints(int index) { + return languageHints_.get(index); + } + /** + *
+     * Language hint can be specified if the language to be detected is known a
+     * priori. It can increase the accuracy of the detection. Language hint must
+     * be language code in BCP-47 format.
+     * Automatic language detection is performed if no hint is provided.
+     * 
+ * + * repeated string language_hints = 1; + */ + public com.google.protobuf.ByteString + getLanguageHintsBytes(int index) { + return languageHints_.getByteString(index); + } + /** + *
+     * Language hint can be specified if the language to be detected is known a
+     * priori. It can increase the accuracy of the detection. Language hint must
+     * be language code in BCP-47 format.
+     * Automatic language detection is performed if no hint is provided.
+     * 
+ * + * repeated string language_hints = 1; + */ + public Builder setLanguageHints( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLanguageHintsIsMutable(); + languageHints_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * Language hint can be specified if the language to be detected is known a
+     * priori. It can increase the accuracy of the detection. Language hint must
+     * be language code in BCP-47 format.
+     * Automatic language detection is performed if no hint is provided.
+     * 
+ * + * repeated string language_hints = 1; + */ + public Builder addLanguageHints( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLanguageHintsIsMutable(); + languageHints_.add(value); + onChanged(); + return this; + } + /** + *
+     * Language hint can be specified if the language to be detected is known a
+     * priori. It can increase the accuracy of the detection. Language hint must
+     * be language code in BCP-47 format.
+     * Automatic language detection is performed if no hint is provided.
+     * 
+ * + * repeated string language_hints = 1; + */ + public Builder addAllLanguageHints( + java.lang.Iterable values) { + ensureLanguageHintsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, languageHints_); + onChanged(); + return this; + } + /** + *
+     * Language hint can be specified if the language to be detected is known a
+     * priori. It can increase the accuracy of the detection. Language hint must
+     * be language code in BCP-47 format.
+     * Automatic language detection is performed if no hint is provided.
+     * 
+ * + * repeated string language_hints = 1; + */ + public Builder clearLanguageHints() { + languageHints_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Language hint can be specified if the language to be detected is known a
+     * priori. It can increase the accuracy of the detection. Language hint must
+     * be language code in BCP-47 format.
+     * Automatic language detection is performed if no hint is provided.
+     * 
+ * + * repeated string language_hints = 1; + */ + public Builder addLanguageHintsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureLanguageHintsIsMutable(); + languageHints_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p2beta1.TextDetectionConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.TextDetectionConfig) + private static final com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig(); + } + + public static com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextDetectionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextDetectionConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextDetectionConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextDetectionConfigOrBuilder.java new file mode 100644 index 000000000000..615c5f9fc196 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextDetectionConfigOrBuilder.java @@ -0,0 +1,56 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +public interface TextDetectionConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p2beta1.TextDetectionConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Language hint can be specified if the language to be detected is known a
+   * priori. It can increase the accuracy of the detection. Language hint must
+   * be language code in BCP-47 format.
+   * Automatic language detection is performed if no hint is provided.
+   * 
+ * + * repeated string language_hints = 1; + */ + java.util.List + getLanguageHintsList(); + /** + *
+   * Language hint can be specified if the language to be detected is known a
+   * priori. It can increase the accuracy of the detection. Language hint must
+   * be language code in BCP-47 format.
+   * Automatic language detection is performed if no hint is provided.
+   * 
+ * + * repeated string language_hints = 1; + */ + int getLanguageHintsCount(); + /** + *
+   * Language hint can be specified if the language to be detected is known a
+   * priori. It can increase the accuracy of the detection. Language hint must
+   * be language code in BCP-47 format.
+   * Automatic language detection is performed if no hint is provided.
+   * 
+ * + * repeated string language_hints = 1; + */ + java.lang.String getLanguageHints(int index); + /** + *
+   * Language hint can be specified if the language to be detected is known a
+   * priori. It can increase the accuracy of the detection. Language hint must
+   * be language code in BCP-47 format.
+   * Automatic language detection is performed if no hint is provided.
+   * 
+ * + * repeated string language_hints = 1; + */ + com.google.protobuf.ByteString + getLanguageHintsBytes(int index); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextFrame.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextFrame.java new file mode 100644 index 000000000000..08aef98d335b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextFrame.java @@ -0,0 +1,884 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +/** + *
+ * Video frame level annotation results for text annotation (OCR).
+ * Contains information regarding timestamp and bounding box locations for the
+ * frames containing detected OCR text snippets.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.TextFrame} + */ +public final class TextFrame extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p2beta1.TextFrame) + TextFrameOrBuilder { +private static final long serialVersionUID = 0L; + // Use TextFrame.newBuilder() to construct. + private TextFrame(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TextFrame() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TextFrame( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly.Builder subBuilder = null; + if (rotatedBoundingBox_ != null) { + subBuilder = rotatedBoundingBox_.toBuilder(); + } + rotatedBoundingBox_ = input.readMessage(com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(rotatedBoundingBox_); + rotatedBoundingBox_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (timeOffset_ != null) { + subBuilder = timeOffset_.toBuilder(); + } + timeOffset_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(timeOffset_); + timeOffset_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_TextFrame_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_TextFrame_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p2beta1.TextFrame.class, com.google.cloud.videointelligence.v1p2beta1.TextFrame.Builder.class); + } + + public static final int ROTATED_BOUNDING_BOX_FIELD_NUMBER = 1; + private com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly rotatedBoundingBox_; + /** + *
+   * Bounding polygon of the detected text for this frame.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly rotated_bounding_box = 1; + */ + public boolean hasRotatedBoundingBox() { + return rotatedBoundingBox_ != null; + } + /** + *
+   * Bounding polygon of the detected text for this frame.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly rotated_bounding_box = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly getRotatedBoundingBox() { + return rotatedBoundingBox_ == null ? com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly.getDefaultInstance() : rotatedBoundingBox_; + } + /** + *
+   * Bounding polygon of the detected text for this frame.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly rotated_bounding_box = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPolyOrBuilder getRotatedBoundingBoxOrBuilder() { + return getRotatedBoundingBox(); + } + + public static final int TIME_OFFSET_FIELD_NUMBER = 2; + private com.google.protobuf.Duration timeOffset_; + /** + *
+   * Timestamp of this frame.
+   * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + public boolean hasTimeOffset() { + return timeOffset_ != null; + } + /** + *
+   * Timestamp of this frame.
+   * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + public com.google.protobuf.Duration getTimeOffset() { + return timeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeOffset_; + } + /** + *
+   * Timestamp of this frame.
+   * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() { + return getTimeOffset(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (rotatedBoundingBox_ != null) { + output.writeMessage(1, getRotatedBoundingBox()); + } + if (timeOffset_ != null) { + output.writeMessage(2, getTimeOffset()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (rotatedBoundingBox_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getRotatedBoundingBox()); + } + if (timeOffset_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getTimeOffset()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1p2beta1.TextFrame)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p2beta1.TextFrame other = (com.google.cloud.videointelligence.v1p2beta1.TextFrame) obj; + + boolean result = true; + result = result && (hasRotatedBoundingBox() == other.hasRotatedBoundingBox()); + if (hasRotatedBoundingBox()) { + result = result && getRotatedBoundingBox() + .equals(other.getRotatedBoundingBox()); + } + result = result && (hasTimeOffset() == other.hasTimeOffset()); + if (hasTimeOffset()) { + result = result && getTimeOffset() + .equals(other.getTimeOffset()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRotatedBoundingBox()) { + hash = (37 * hash) + ROTATED_BOUNDING_BOX_FIELD_NUMBER; + hash = (53 * hash) + getRotatedBoundingBox().hashCode(); + } + if (hasTimeOffset()) { + hash = (37 * hash) + TIME_OFFSET_FIELD_NUMBER; + hash = (53 * hash) + getTimeOffset().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p2beta1.TextFrame parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.TextFrame parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.TextFrame parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.TextFrame parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.TextFrame parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.TextFrame parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.TextFrame parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.TextFrame parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.TextFrame parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.TextFrame parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.TextFrame parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.TextFrame parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.videointelligence.v1p2beta1.TextFrame prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Video frame level annotation results for text annotation (OCR).
+   * Contains information regarding timestamp and bounding box locations for the
+   * frames containing detected OCR text snippets.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.TextFrame} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p2beta1.TextFrame) + com.google.cloud.videointelligence.v1p2beta1.TextFrameOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_TextFrame_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_TextFrame_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p2beta1.TextFrame.class, com.google.cloud.videointelligence.v1p2beta1.TextFrame.Builder.class); + } + + // Construct using com.google.cloud.videointelligence.v1p2beta1.TextFrame.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (rotatedBoundingBoxBuilder_ == null) { + rotatedBoundingBox_ = null; + } else { + rotatedBoundingBox_ = null; + rotatedBoundingBoxBuilder_ = null; + } + if (timeOffsetBuilder_ == null) { + timeOffset_ = null; + } else { + timeOffset_ = null; + timeOffsetBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_TextFrame_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.TextFrame getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p2beta1.TextFrame.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.TextFrame build() { + com.google.cloud.videointelligence.v1p2beta1.TextFrame result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.TextFrame buildPartial() { + com.google.cloud.videointelligence.v1p2beta1.TextFrame result = new com.google.cloud.videointelligence.v1p2beta1.TextFrame(this); + if (rotatedBoundingBoxBuilder_ == null) { + result.rotatedBoundingBox_ = rotatedBoundingBox_; + } else { + result.rotatedBoundingBox_ = rotatedBoundingBoxBuilder_.build(); + } + if (timeOffsetBuilder_ == null) { + result.timeOffset_ = timeOffset_; + } else { + result.timeOffset_ = timeOffsetBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1p2beta1.TextFrame) { + return mergeFrom((com.google.cloud.videointelligence.v1p2beta1.TextFrame)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.videointelligence.v1p2beta1.TextFrame other) { + if (other == com.google.cloud.videointelligence.v1p2beta1.TextFrame.getDefaultInstance()) return this; + if (other.hasRotatedBoundingBox()) { + mergeRotatedBoundingBox(other.getRotatedBoundingBox()); + } + if (other.hasTimeOffset()) { + mergeTimeOffset(other.getTimeOffset()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p2beta1.TextFrame parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.videointelligence.v1p2beta1.TextFrame) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly rotatedBoundingBox_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly, com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly.Builder, com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPolyOrBuilder> rotatedBoundingBoxBuilder_; + /** + *
+     * Bounding polygon of the detected text for this frame.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly rotated_bounding_box = 1; + */ + public boolean hasRotatedBoundingBox() { + return rotatedBoundingBoxBuilder_ != null || rotatedBoundingBox_ != null; + } + /** + *
+     * Bounding polygon of the detected text for this frame.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly rotated_bounding_box = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly getRotatedBoundingBox() { + if (rotatedBoundingBoxBuilder_ == null) { + return rotatedBoundingBox_ == null ? com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly.getDefaultInstance() : rotatedBoundingBox_; + } else { + return rotatedBoundingBoxBuilder_.getMessage(); + } + } + /** + *
+     * Bounding polygon of the detected text for this frame.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly rotated_bounding_box = 1; + */ + public Builder setRotatedBoundingBox(com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly value) { + if (rotatedBoundingBoxBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rotatedBoundingBox_ = value; + onChanged(); + } else { + rotatedBoundingBoxBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Bounding polygon of the detected text for this frame.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly rotated_bounding_box = 1; + */ + public Builder setRotatedBoundingBox( + com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly.Builder builderForValue) { + if (rotatedBoundingBoxBuilder_ == null) { + rotatedBoundingBox_ = builderForValue.build(); + onChanged(); + } else { + rotatedBoundingBoxBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Bounding polygon of the detected text for this frame.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly rotated_bounding_box = 1; + */ + public Builder mergeRotatedBoundingBox(com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly value) { + if (rotatedBoundingBoxBuilder_ == null) { + if (rotatedBoundingBox_ != null) { + rotatedBoundingBox_ = + com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly.newBuilder(rotatedBoundingBox_).mergeFrom(value).buildPartial(); + } else { + rotatedBoundingBox_ = value; + } + onChanged(); + } else { + rotatedBoundingBoxBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Bounding polygon of the detected text for this frame.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly rotated_bounding_box = 1; + */ + public Builder clearRotatedBoundingBox() { + if (rotatedBoundingBoxBuilder_ == null) { + rotatedBoundingBox_ = null; + onChanged(); + } else { + rotatedBoundingBox_ = null; + rotatedBoundingBoxBuilder_ = null; + } + + return this; + } + /** + *
+     * Bounding polygon of the detected text for this frame.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly rotated_bounding_box = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly.Builder getRotatedBoundingBoxBuilder() { + + onChanged(); + return getRotatedBoundingBoxFieldBuilder().getBuilder(); + } + /** + *
+     * Bounding polygon of the detected text for this frame.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly rotated_bounding_box = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPolyOrBuilder getRotatedBoundingBoxOrBuilder() { + if (rotatedBoundingBoxBuilder_ != null) { + return rotatedBoundingBoxBuilder_.getMessageOrBuilder(); + } else { + return rotatedBoundingBox_ == null ? + com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly.getDefaultInstance() : rotatedBoundingBox_; + } + } + /** + *
+     * Bounding polygon of the detected text for this frame.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly rotated_bounding_box = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly, com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly.Builder, com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPolyOrBuilder> + getRotatedBoundingBoxFieldBuilder() { + if (rotatedBoundingBoxBuilder_ == null) { + rotatedBoundingBoxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly, com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly.Builder, com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPolyOrBuilder>( + getRotatedBoundingBox(), + getParentForChildren(), + isClean()); + rotatedBoundingBox_ = null; + } + return rotatedBoundingBoxBuilder_; + } + + private com.google.protobuf.Duration timeOffset_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> timeOffsetBuilder_; + /** + *
+     * Timestamp of this frame.
+     * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + public boolean hasTimeOffset() { + return timeOffsetBuilder_ != null || timeOffset_ != null; + } + /** + *
+     * Timestamp of this frame.
+     * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + public com.google.protobuf.Duration getTimeOffset() { + if (timeOffsetBuilder_ == null) { + return timeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeOffset_; + } else { + return timeOffsetBuilder_.getMessage(); + } + } + /** + *
+     * Timestamp of this frame.
+     * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + public Builder setTimeOffset(com.google.protobuf.Duration value) { + if (timeOffsetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + timeOffset_ = value; + onChanged(); + } else { + timeOffsetBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Timestamp of this frame.
+     * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + public Builder setTimeOffset( + com.google.protobuf.Duration.Builder builderForValue) { + if (timeOffsetBuilder_ == null) { + timeOffset_ = builderForValue.build(); + onChanged(); + } else { + timeOffsetBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Timestamp of this frame.
+     * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + public Builder mergeTimeOffset(com.google.protobuf.Duration value) { + if (timeOffsetBuilder_ == null) { + if (timeOffset_ != null) { + timeOffset_ = + com.google.protobuf.Duration.newBuilder(timeOffset_).mergeFrom(value).buildPartial(); + } else { + timeOffset_ = value; + } + onChanged(); + } else { + timeOffsetBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Timestamp of this frame.
+     * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + public Builder clearTimeOffset() { + if (timeOffsetBuilder_ == null) { + timeOffset_ = null; + onChanged(); + } else { + timeOffset_ = null; + timeOffsetBuilder_ = null; + } + + return this; + } + /** + *
+     * Timestamp of this frame.
+     * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + public com.google.protobuf.Duration.Builder getTimeOffsetBuilder() { + + onChanged(); + return getTimeOffsetFieldBuilder().getBuilder(); + } + /** + *
+     * Timestamp of this frame.
+     * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() { + if (timeOffsetBuilder_ != null) { + return timeOffsetBuilder_.getMessageOrBuilder(); + } else { + return timeOffset_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : timeOffset_; + } + } + /** + *
+     * Timestamp of this frame.
+     * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getTimeOffsetFieldBuilder() { + if (timeOffsetBuilder_ == null) { + timeOffsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getTimeOffset(), + getParentForChildren(), + isClean()); + timeOffset_ = null; + } + return timeOffsetBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p2beta1.TextFrame) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.TextFrame) + private static final com.google.cloud.videointelligence.v1p2beta1.TextFrame DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p2beta1.TextFrame(); + } + + public static com.google.cloud.videointelligence.v1p2beta1.TextFrame getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextFrame parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextFrame(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.TextFrame getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextFrameOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextFrameOrBuilder.java new file mode 100644 index 000000000000..31ade729f650 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextFrameOrBuilder.java @@ -0,0 +1,59 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +public interface TextFrameOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p2beta1.TextFrame) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Bounding polygon of the detected text for this frame.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly rotated_bounding_box = 1; + */ + boolean hasRotatedBoundingBox(); + /** + *
+   * Bounding polygon of the detected text for this frame.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly rotated_bounding_box = 1; + */ + com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly getRotatedBoundingBox(); + /** + *
+   * Bounding polygon of the detected text for this frame.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly rotated_bounding_box = 1; + */ + com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPolyOrBuilder getRotatedBoundingBoxOrBuilder(); + + /** + *
+   * Timestamp of this frame.
+   * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + boolean hasTimeOffset(); + /** + *
+   * Timestamp of this frame.
+   * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + com.google.protobuf.Duration getTimeOffset(); + /** + *
+   * Timestamp of this frame.
+   * 
+ * + * .google.protobuf.Duration time_offset = 2; + */ + com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextSegment.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextSegment.java new file mode 100644 index 000000000000..381264338009 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextSegment.java @@ -0,0 +1,651 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +/** + *
+ * Video segment level annotation results for text detection.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.TextSegment} + */ +public final class TextSegment extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p2beta1.TextSegment) + TextSegmentOrBuilder { +private static final long serialVersionUID = 0L; + // Use TextSegment.newBuilder() to construct. + private TextSegment(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TextSegment() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TextSegment( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.videointelligence.v1p2beta1.VideoSegment.Builder subBuilder = null; + if (segment_ != null) { + subBuilder = segment_.toBuilder(); + } + segment_ = input.readMessage(com.google.cloud.videointelligence.v1p2beta1.VideoSegment.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(segment_); + segment_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_TextSegment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_TextSegment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p2beta1.TextSegment.class, com.google.cloud.videointelligence.v1p2beta1.TextSegment.Builder.class); + } + + public static final int SEGMENT_FIELD_NUMBER = 1; + private com.google.cloud.videointelligence.v1p2beta1.VideoSegment segment_; + /** + *
+   * Video segment where a text snippet was detected.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 1; + */ + public boolean hasSegment() { + return segment_ != null; + } + /** + *
+   * Video segment where a text snippet was detected.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.VideoSegment getSegment() { + return segment_ == null ? com.google.cloud.videointelligence.v1p2beta1.VideoSegment.getDefaultInstance() : segment_; + } + /** + *
+   * Video segment where a text snippet was detected.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.VideoSegmentOrBuilder getSegmentOrBuilder() { + return getSegment(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (segment_ != null) { + output.writeMessage(1, getSegment()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (segment_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getSegment()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1p2beta1.TextSegment)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p2beta1.TextSegment other = (com.google.cloud.videointelligence.v1p2beta1.TextSegment) obj; + + boolean result = true; + result = result && (hasSegment() == other.hasSegment()); + if (hasSegment()) { + result = result && getSegment() + .equals(other.getSegment()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSegment()) { + hash = (37 * hash) + SEGMENT_FIELD_NUMBER; + hash = (53 * hash) + getSegment().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p2beta1.TextSegment parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.TextSegment parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.TextSegment parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.TextSegment parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.TextSegment parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.TextSegment parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.TextSegment parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.TextSegment parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.TextSegment parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.TextSegment parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.TextSegment parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.TextSegment parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.videointelligence.v1p2beta1.TextSegment prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Video segment level annotation results for text detection.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.TextSegment} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p2beta1.TextSegment) + com.google.cloud.videointelligence.v1p2beta1.TextSegmentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_TextSegment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_TextSegment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p2beta1.TextSegment.class, com.google.cloud.videointelligence.v1p2beta1.TextSegment.Builder.class); + } + + // Construct using com.google.cloud.videointelligence.v1p2beta1.TextSegment.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (segmentBuilder_ == null) { + segment_ = null; + } else { + segment_ = null; + segmentBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_TextSegment_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.TextSegment getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p2beta1.TextSegment.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.TextSegment build() { + com.google.cloud.videointelligence.v1p2beta1.TextSegment result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.TextSegment buildPartial() { + com.google.cloud.videointelligence.v1p2beta1.TextSegment result = new com.google.cloud.videointelligence.v1p2beta1.TextSegment(this); + if (segmentBuilder_ == null) { + result.segment_ = segment_; + } else { + result.segment_ = segmentBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1p2beta1.TextSegment) { + return mergeFrom((com.google.cloud.videointelligence.v1p2beta1.TextSegment)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.videointelligence.v1p2beta1.TextSegment other) { + if (other == com.google.cloud.videointelligence.v1p2beta1.TextSegment.getDefaultInstance()) return this; + if (other.hasSegment()) { + mergeSegment(other.getSegment()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p2beta1.TextSegment parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.videointelligence.v1p2beta1.TextSegment) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.videointelligence.v1p2beta1.VideoSegment segment_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.VideoSegment, com.google.cloud.videointelligence.v1p2beta1.VideoSegment.Builder, com.google.cloud.videointelligence.v1p2beta1.VideoSegmentOrBuilder> segmentBuilder_; + /** + *
+     * Video segment where a text snippet was detected.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 1; + */ + public boolean hasSegment() { + return segmentBuilder_ != null || segment_ != null; + } + /** + *
+     * Video segment where a text snippet was detected.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.VideoSegment getSegment() { + if (segmentBuilder_ == null) { + return segment_ == null ? com.google.cloud.videointelligence.v1p2beta1.VideoSegment.getDefaultInstance() : segment_; + } else { + return segmentBuilder_.getMessage(); + } + } + /** + *
+     * Video segment where a text snippet was detected.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 1; + */ + public Builder setSegment(com.google.cloud.videointelligence.v1p2beta1.VideoSegment value) { + if (segmentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + segment_ = value; + onChanged(); + } else { + segmentBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Video segment where a text snippet was detected.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 1; + */ + public Builder setSegment( + com.google.cloud.videointelligence.v1p2beta1.VideoSegment.Builder builderForValue) { + if (segmentBuilder_ == null) { + segment_ = builderForValue.build(); + onChanged(); + } else { + segmentBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Video segment where a text snippet was detected.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 1; + */ + public Builder mergeSegment(com.google.cloud.videointelligence.v1p2beta1.VideoSegment value) { + if (segmentBuilder_ == null) { + if (segment_ != null) { + segment_ = + com.google.cloud.videointelligence.v1p2beta1.VideoSegment.newBuilder(segment_).mergeFrom(value).buildPartial(); + } else { + segment_ = value; + } + onChanged(); + } else { + segmentBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Video segment where a text snippet was detected.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 1; + */ + public Builder clearSegment() { + if (segmentBuilder_ == null) { + segment_ = null; + onChanged(); + } else { + segment_ = null; + segmentBuilder_ = null; + } + + return this; + } + /** + *
+     * Video segment where a text snippet was detected.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.VideoSegment.Builder getSegmentBuilder() { + + onChanged(); + return getSegmentFieldBuilder().getBuilder(); + } + /** + *
+     * Video segment where a text snippet was detected.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.VideoSegmentOrBuilder getSegmentOrBuilder() { + if (segmentBuilder_ != null) { + return segmentBuilder_.getMessageOrBuilder(); + } else { + return segment_ == null ? + com.google.cloud.videointelligence.v1p2beta1.VideoSegment.getDefaultInstance() : segment_; + } + } + /** + *
+     * Video segment where a text snippet was detected.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.VideoSegment, com.google.cloud.videointelligence.v1p2beta1.VideoSegment.Builder, com.google.cloud.videointelligence.v1p2beta1.VideoSegmentOrBuilder> + getSegmentFieldBuilder() { + if (segmentBuilder_ == null) { + segmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.VideoSegment, com.google.cloud.videointelligence.v1p2beta1.VideoSegment.Builder, com.google.cloud.videointelligence.v1p2beta1.VideoSegmentOrBuilder>( + getSegment(), + getParentForChildren(), + isClean()); + segment_ = null; + } + return segmentBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p2beta1.TextSegment) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.TextSegment) + private static final com.google.cloud.videointelligence.v1p2beta1.TextSegment DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p2beta1.TextSegment(); + } + + public static com.google.cloud.videointelligence.v1p2beta1.TextSegment getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextSegment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextSegment(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.TextSegment getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextSegmentOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextSegmentOrBuilder.java new file mode 100644 index 000000000000..6334f77c3737 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextSegmentOrBuilder.java @@ -0,0 +1,34 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +public interface TextSegmentOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p2beta1.TextSegment) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Video segment where a text snippet was detected.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 1; + */ + boolean hasSegment(); + /** + *
+   * Video segment where a text snippet was detected.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 1; + */ + com.google.cloud.videointelligence.v1p2beta1.VideoSegment getSegment(); + /** + *
+   * Video segment where a text snippet was detected.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 1; + */ + com.google.cloud.videointelligence.v1p2beta1.VideoSegmentOrBuilder getSegmentOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoAnnotationProgress.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoAnnotationProgress.java new file mode 100644 index 000000000000..8aba72670613 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoAnnotationProgress.java @@ -0,0 +1,1120 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +/** + *
+ * Annotation progress for a single video.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress} + */ +public final class VideoAnnotationProgress extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress) + VideoAnnotationProgressOrBuilder { +private static final long serialVersionUID = 0L; + // Use VideoAnnotationProgress.newBuilder() to construct. + private VideoAnnotationProgress(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private VideoAnnotationProgress() { + inputUri_ = ""; + progressPercent_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private VideoAnnotationProgress( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + inputUri_ = s; + break; + } + case 16: { + + progressPercent_ = input.readInt32(); + break; + } + case 26: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); + } + startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_VideoAnnotationProgress_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_VideoAnnotationProgress_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress.class, com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress.Builder.class); + } + + public static final int INPUT_URI_FIELD_NUMBER = 1; + private volatile java.lang.Object inputUri_; + /** + *
+   * Video file location in
+   * [Google Cloud Storage](https://cloud.google.com/storage/).
+   * 
+ * + * string input_uri = 1; + */ + public java.lang.String getInputUri() { + java.lang.Object ref = inputUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputUri_ = s; + return s; + } + } + /** + *
+   * Video file location in
+   * [Google Cloud Storage](https://cloud.google.com/storage/).
+   * 
+ * + * string input_uri = 1; + */ + public com.google.protobuf.ByteString + getInputUriBytes() { + java.lang.Object ref = inputUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROGRESS_PERCENT_FIELD_NUMBER = 2; + private int progressPercent_; + /** + *
+   * Approximate percentage processed thus far. Guaranteed to be
+   * 100 when fully processed.
+   * 
+ * + * int32 progress_percent = 2; + */ + public int getProgressPercent() { + return progressPercent_; + } + + public static final int START_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp startTime_; + /** + *
+   * Time when the request was received.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public boolean hasStartTime() { + return startTime_ != null; + } + /** + *
+   * Time when the request was received.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + *
+   * Time when the request was received.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return getStartTime(); + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp updateTime_; + /** + *
+   * Time of the most recent update.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4; + */ + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + *
+   * Time of the most recent update.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4; + */ + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + *
+   * Time of the most recent update.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getInputUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputUri_); + } + if (progressPercent_ != 0) { + output.writeInt32(2, progressPercent_); + } + if (startTime_ != null) { + output.writeMessage(3, getStartTime()); + } + if (updateTime_ != null) { + output.writeMessage(4, getUpdateTime()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getInputUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, inputUri_); + } + if (progressPercent_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, progressPercent_); + } + if (startTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getStartTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getUpdateTime()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress other = (com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress) obj; + + boolean result = true; + result = result && getInputUri() + .equals(other.getInputUri()); + result = result && (getProgressPercent() + == other.getProgressPercent()); + result = result && (hasStartTime() == other.hasStartTime()); + if (hasStartTime()) { + result = result && getStartTime() + .equals(other.getStartTime()); + } + result = result && (hasUpdateTime() == other.hasUpdateTime()); + if (hasUpdateTime()) { + result = result && getUpdateTime() + .equals(other.getUpdateTime()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + INPUT_URI_FIELD_NUMBER; + hash = (53 * hash) + getInputUri().hashCode(); + hash = (37 * hash) + PROGRESS_PERCENT_FIELD_NUMBER; + hash = (53 * hash) + getProgressPercent(); + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Annotation progress for a single video.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress) + com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgressOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_VideoAnnotationProgress_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_VideoAnnotationProgress_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress.class, com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress.Builder.class); + } + + // Construct using com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + inputUri_ = ""; + + progressPercent_ = 0; + + if (startTimeBuilder_ == null) { + startTime_ = null; + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_VideoAnnotationProgress_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress build() { + com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress buildPartial() { + com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress result = new com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress(this); + result.inputUri_ = inputUri_; + result.progressPercent_ = progressPercent_; + if (startTimeBuilder_ == null) { + result.startTime_ = startTime_; + } else { + result.startTime_ = startTimeBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress) { + return mergeFrom((com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress other) { + if (other == com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress.getDefaultInstance()) return this; + if (!other.getInputUri().isEmpty()) { + inputUri_ = other.inputUri_; + onChanged(); + } + if (other.getProgressPercent() != 0) { + setProgressPercent(other.getProgressPercent()); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object inputUri_ = ""; + /** + *
+     * Video file location in
+     * [Google Cloud Storage](https://cloud.google.com/storage/).
+     * 
+ * + * string input_uri = 1; + */ + public java.lang.String getInputUri() { + java.lang.Object ref = inputUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Video file location in
+     * [Google Cloud Storage](https://cloud.google.com/storage/).
+     * 
+ * + * string input_uri = 1; + */ + public com.google.protobuf.ByteString + getInputUriBytes() { + java.lang.Object ref = inputUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Video file location in
+     * [Google Cloud Storage](https://cloud.google.com/storage/).
+     * 
+ * + * string input_uri = 1; + */ + public Builder setInputUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + inputUri_ = value; + onChanged(); + return this; + } + /** + *
+     * Video file location in
+     * [Google Cloud Storage](https://cloud.google.com/storage/).
+     * 
+ * + * string input_uri = 1; + */ + public Builder clearInputUri() { + + inputUri_ = getDefaultInstance().getInputUri(); + onChanged(); + return this; + } + /** + *
+     * Video file location in
+     * [Google Cloud Storage](https://cloud.google.com/storage/).
+     * 
+ * + * string input_uri = 1; + */ + public Builder setInputUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + inputUri_ = value; + onChanged(); + return this; + } + + private int progressPercent_ ; + /** + *
+     * Approximate percentage processed thus far. Guaranteed to be
+     * 100 when fully processed.
+     * 
+ * + * int32 progress_percent = 2; + */ + public int getProgressPercent() { + return progressPercent_; + } + /** + *
+     * Approximate percentage processed thus far. Guaranteed to be
+     * 100 when fully processed.
+     * 
+ * + * int32 progress_percent = 2; + */ + public Builder setProgressPercent(int value) { + + progressPercent_ = value; + onChanged(); + return this; + } + /** + *
+     * Approximate percentage processed thus far. Guaranteed to be
+     * 100 when fully processed.
+     * 
+ * + * int32 progress_percent = 2; + */ + public Builder clearProgressPercent() { + + progressPercent_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp startTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; + /** + *
+     * Time when the request was received.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public boolean hasStartTime() { + return startTimeBuilder_ != null || startTime_ != null; + } + /** + *
+     * Time when the request was received.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + *
+     * Time when the request was received.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + onChanged(); + } else { + startTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Time when the request was received.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + onChanged(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Time when the request was received.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (startTime_ != null) { + startTime_ = + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + } else { + startTime_ = value; + } + onChanged(); + } else { + startTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Time when the request was received.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public Builder clearStartTime() { + if (startTimeBuilder_ == null) { + startTime_ = null; + onChanged(); + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * Time when the request was received.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Time when the request was received.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + *
+     * Time when the request was received.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartTime(), + getParentForChildren(), + isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + /** + *
+     * Time of the most recent update.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 4; + */ + public boolean hasUpdateTime() { + return updateTimeBuilder_ != null || updateTime_ != null; + } + /** + *
+     * Time of the most recent update.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 4; + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + *
+     * Time of the most recent update.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 4; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + onChanged(); + } else { + updateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Time of the most recent update.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 4; + */ + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + onChanged(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Time of the most recent update.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 4; + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (updateTime_ != null) { + updateTime_ = + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + } else { + updateTime_ = value; + } + onChanged(); + } else { + updateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Time of the most recent update.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 4; + */ + public Builder clearUpdateTime() { + if (updateTimeBuilder_ == null) { + updateTime_ = null; + onChanged(); + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * Time of the most recent update.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 4; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Time of the most recent update.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 4; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + } + /** + *
+     * Time of the most recent update.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress) + private static final com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress(); + } + + public static com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VideoAnnotationProgress parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VideoAnnotationProgress(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoAnnotationProgressOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoAnnotationProgressOrBuilder.java new file mode 100644 index 000000000000..d0012528d1ec --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoAnnotationProgressOrBuilder.java @@ -0,0 +1,89 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +public interface VideoAnnotationProgressOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Video file location in
+   * [Google Cloud Storage](https://cloud.google.com/storage/).
+   * 
+ * + * string input_uri = 1; + */ + java.lang.String getInputUri(); + /** + *
+   * Video file location in
+   * [Google Cloud Storage](https://cloud.google.com/storage/).
+   * 
+ * + * string input_uri = 1; + */ + com.google.protobuf.ByteString + getInputUriBytes(); + + /** + *
+   * Approximate percentage processed thus far. Guaranteed to be
+   * 100 when fully processed.
+   * 
+ * + * int32 progress_percent = 2; + */ + int getProgressPercent(); + + /** + *
+   * Time when the request was received.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + boolean hasStartTime(); + /** + *
+   * Time when the request was received.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + com.google.protobuf.Timestamp getStartTime(); + /** + *
+   * Time when the request was received.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + *
+   * Time of the most recent update.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4; + */ + boolean hasUpdateTime(); + /** + *
+   * Time of the most recent update.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4; + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + *
+   * Time of the most recent update.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoAnnotationResults.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoAnnotationResults.java new file mode 100644 index 000000000000..b4f8ab9560ae --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoAnnotationResults.java @@ -0,0 +1,3784 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +/** + *
+ * Annotation results for a single video.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults} + */ +public final class VideoAnnotationResults extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults) + VideoAnnotationResultsOrBuilder { +private static final long serialVersionUID = 0L; + // Use VideoAnnotationResults.newBuilder() to construct. + private VideoAnnotationResults(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private VideoAnnotationResults() { + inputUri_ = ""; + segmentLabelAnnotations_ = java.util.Collections.emptyList(); + shotLabelAnnotations_ = java.util.Collections.emptyList(); + frameLabelAnnotations_ = java.util.Collections.emptyList(); + shotAnnotations_ = java.util.Collections.emptyList(); + textAnnotations_ = java.util.Collections.emptyList(); + objectAnnotations_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private VideoAnnotationResults( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + inputUri_ = s; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + segmentLabelAnnotations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + segmentLabelAnnotations_.add( + input.readMessage(com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation.parser(), extensionRegistry)); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + shotLabelAnnotations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + shotLabelAnnotations_.add( + input.readMessage(com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation.parser(), extensionRegistry)); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + frameLabelAnnotations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + frameLabelAnnotations_.add( + input.readMessage(com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation.parser(), extensionRegistry)); + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + shotAnnotations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + shotAnnotations_.add( + input.readMessage(com.google.cloud.videointelligence.v1p2beta1.VideoSegment.parser(), extensionRegistry)); + break; + } + case 58: { + com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation.Builder subBuilder = null; + if (explicitAnnotation_ != null) { + subBuilder = explicitAnnotation_.toBuilder(); + } + explicitAnnotation_ = input.readMessage(com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(explicitAnnotation_); + explicitAnnotation_ = subBuilder.buildPartial(); + } + + break; + } + case 74: { + com.google.rpc.Status.Builder subBuilder = null; + if (error_ != null) { + subBuilder = error_.toBuilder(); + } + error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(error_); + error_ = subBuilder.buildPartial(); + } + + break; + } + case 98: { + if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + textAnnotations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000040; + } + textAnnotations_.add( + input.readMessage(com.google.cloud.videointelligence.v1p2beta1.TextAnnotation.parser(), extensionRegistry)); + break; + } + case 114: { + if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + objectAnnotations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000080; + } + objectAnnotations_.add( + input.readMessage(com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + segmentLabelAnnotations_ = java.util.Collections.unmodifiableList(segmentLabelAnnotations_); + } + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + shotLabelAnnotations_ = java.util.Collections.unmodifiableList(shotLabelAnnotations_); + } + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + frameLabelAnnotations_ = java.util.Collections.unmodifiableList(frameLabelAnnotations_); + } + if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + shotAnnotations_ = java.util.Collections.unmodifiableList(shotAnnotations_); + } + if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + textAnnotations_ = java.util.Collections.unmodifiableList(textAnnotations_); + } + if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + objectAnnotations_ = java.util.Collections.unmodifiableList(objectAnnotations_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_VideoAnnotationResults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_VideoAnnotationResults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults.class, com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults.Builder.class); + } + + private int bitField0_; + public static final int INPUT_URI_FIELD_NUMBER = 1; + private volatile java.lang.Object inputUri_; + /** + *
+   * Video file location in
+   * [Google Cloud Storage](https://cloud.google.com/storage/).
+   * 
+ * + * string input_uri = 1; + */ + public java.lang.String getInputUri() { + java.lang.Object ref = inputUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputUri_ = s; + return s; + } + } + /** + *
+   * Video file location in
+   * [Google Cloud Storage](https://cloud.google.com/storage/).
+   * 
+ * + * string input_uri = 1; + */ + public com.google.protobuf.ByteString + getInputUriBytes() { + java.lang.Object ref = inputUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SEGMENT_LABEL_ANNOTATIONS_FIELD_NUMBER = 2; + private java.util.List segmentLabelAnnotations_; + /** + *
+   * Label annotations on video level or user specified segment level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation segment_label_annotations = 2; + */ + public java.util.List getSegmentLabelAnnotationsList() { + return segmentLabelAnnotations_; + } + /** + *
+   * Label annotations on video level or user specified segment level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation segment_label_annotations = 2; + */ + public java.util.List + getSegmentLabelAnnotationsOrBuilderList() { + return segmentLabelAnnotations_; + } + /** + *
+   * Label annotations on video level or user specified segment level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation segment_label_annotations = 2; + */ + public int getSegmentLabelAnnotationsCount() { + return segmentLabelAnnotations_.size(); + } + /** + *
+   * Label annotations on video level or user specified segment level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation segment_label_annotations = 2; + */ + public com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation getSegmentLabelAnnotations(int index) { + return segmentLabelAnnotations_.get(index); + } + /** + *
+   * Label annotations on video level or user specified segment level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation segment_label_annotations = 2; + */ + public com.google.cloud.videointelligence.v1p2beta1.LabelAnnotationOrBuilder getSegmentLabelAnnotationsOrBuilder( + int index) { + return segmentLabelAnnotations_.get(index); + } + + public static final int SHOT_LABEL_ANNOTATIONS_FIELD_NUMBER = 3; + private java.util.List shotLabelAnnotations_; + /** + *
+   * Label annotations on shot level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation shot_label_annotations = 3; + */ + public java.util.List getShotLabelAnnotationsList() { + return shotLabelAnnotations_; + } + /** + *
+   * Label annotations on shot level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation shot_label_annotations = 3; + */ + public java.util.List + getShotLabelAnnotationsOrBuilderList() { + return shotLabelAnnotations_; + } + /** + *
+   * Label annotations on shot level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation shot_label_annotations = 3; + */ + public int getShotLabelAnnotationsCount() { + return shotLabelAnnotations_.size(); + } + /** + *
+   * Label annotations on shot level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation shot_label_annotations = 3; + */ + public com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation getShotLabelAnnotations(int index) { + return shotLabelAnnotations_.get(index); + } + /** + *
+   * Label annotations on shot level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation shot_label_annotations = 3; + */ + public com.google.cloud.videointelligence.v1p2beta1.LabelAnnotationOrBuilder getShotLabelAnnotationsOrBuilder( + int index) { + return shotLabelAnnotations_.get(index); + } + + public static final int FRAME_LABEL_ANNOTATIONS_FIELD_NUMBER = 4; + private java.util.List frameLabelAnnotations_; + /** + *
+   * Label annotations on frame level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation frame_label_annotations = 4; + */ + public java.util.List getFrameLabelAnnotationsList() { + return frameLabelAnnotations_; + } + /** + *
+   * Label annotations on frame level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation frame_label_annotations = 4; + */ + public java.util.List + getFrameLabelAnnotationsOrBuilderList() { + return frameLabelAnnotations_; + } + /** + *
+   * Label annotations on frame level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation frame_label_annotations = 4; + */ + public int getFrameLabelAnnotationsCount() { + return frameLabelAnnotations_.size(); + } + /** + *
+   * Label annotations on frame level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation frame_label_annotations = 4; + */ + public com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation getFrameLabelAnnotations(int index) { + return frameLabelAnnotations_.get(index); + } + /** + *
+   * Label annotations on frame level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation frame_label_annotations = 4; + */ + public com.google.cloud.videointelligence.v1p2beta1.LabelAnnotationOrBuilder getFrameLabelAnnotationsOrBuilder( + int index) { + return frameLabelAnnotations_.get(index); + } + + public static final int SHOT_ANNOTATIONS_FIELD_NUMBER = 6; + private java.util.List shotAnnotations_; + /** + *
+   * Shot annotations. Each shot is represented as a video segment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment shot_annotations = 6; + */ + public java.util.List getShotAnnotationsList() { + return shotAnnotations_; + } + /** + *
+   * Shot annotations. Each shot is represented as a video segment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment shot_annotations = 6; + */ + public java.util.List + getShotAnnotationsOrBuilderList() { + return shotAnnotations_; + } + /** + *
+   * Shot annotations. Each shot is represented as a video segment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment shot_annotations = 6; + */ + public int getShotAnnotationsCount() { + return shotAnnotations_.size(); + } + /** + *
+   * Shot annotations. Each shot is represented as a video segment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment shot_annotations = 6; + */ + public com.google.cloud.videointelligence.v1p2beta1.VideoSegment getShotAnnotations(int index) { + return shotAnnotations_.get(index); + } + /** + *
+   * Shot annotations. Each shot is represented as a video segment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment shot_annotations = 6; + */ + public com.google.cloud.videointelligence.v1p2beta1.VideoSegmentOrBuilder getShotAnnotationsOrBuilder( + int index) { + return shotAnnotations_.get(index); + } + + public static final int EXPLICIT_ANNOTATION_FIELD_NUMBER = 7; + private com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation explicitAnnotation_; + /** + *
+   * Explicit content annotation.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation explicit_annotation = 7; + */ + public boolean hasExplicitAnnotation() { + return explicitAnnotation_ != null; + } + /** + *
+   * Explicit content annotation.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation explicit_annotation = 7; + */ + public com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation getExplicitAnnotation() { + return explicitAnnotation_ == null ? com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation.getDefaultInstance() : explicitAnnotation_; + } + /** + *
+   * Explicit content annotation.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation explicit_annotation = 7; + */ + public com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotationOrBuilder getExplicitAnnotationOrBuilder() { + return getExplicitAnnotation(); + } + + public static final int TEXT_ANNOTATIONS_FIELD_NUMBER = 12; + private java.util.List textAnnotations_; + /** + *
+   * OCR text detection and tracking.
+   * Annotations for list of detected text snippets. Each will have list of
+   * frame information associated with it.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextAnnotation text_annotations = 12; + */ + public java.util.List getTextAnnotationsList() { + return textAnnotations_; + } + /** + *
+   * OCR text detection and tracking.
+   * Annotations for list of detected text snippets. Each will have list of
+   * frame information associated with it.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextAnnotation text_annotations = 12; + */ + public java.util.List + getTextAnnotationsOrBuilderList() { + return textAnnotations_; + } + /** + *
+   * OCR text detection and tracking.
+   * Annotations for list of detected text snippets. Each will have list of
+   * frame information associated with it.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextAnnotation text_annotations = 12; + */ + public int getTextAnnotationsCount() { + return textAnnotations_.size(); + } + /** + *
+   * OCR text detection and tracking.
+   * Annotations for list of detected text snippets. Each will have list of
+   * frame information associated with it.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextAnnotation text_annotations = 12; + */ + public com.google.cloud.videointelligence.v1p2beta1.TextAnnotation getTextAnnotations(int index) { + return textAnnotations_.get(index); + } + /** + *
+   * OCR text detection and tracking.
+   * Annotations for list of detected text snippets. Each will have list of
+   * frame information associated with it.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextAnnotation text_annotations = 12; + */ + public com.google.cloud.videointelligence.v1p2beta1.TextAnnotationOrBuilder getTextAnnotationsOrBuilder( + int index) { + return textAnnotations_.get(index); + } + + public static final int OBJECT_ANNOTATIONS_FIELD_NUMBER = 14; + private java.util.List objectAnnotations_; + /** + *
+   * Annotations for list of objects detected and tracked in video.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation object_annotations = 14; + */ + public java.util.List getObjectAnnotationsList() { + return objectAnnotations_; + } + /** + *
+   * Annotations for list of objects detected and tracked in video.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation object_annotations = 14; + */ + public java.util.List + getObjectAnnotationsOrBuilderList() { + return objectAnnotations_; + } + /** + *
+   * Annotations for list of objects detected and tracked in video.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation object_annotations = 14; + */ + public int getObjectAnnotationsCount() { + return objectAnnotations_.size(); + } + /** + *
+   * Annotations for list of objects detected and tracked in video.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation object_annotations = 14; + */ + public com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation getObjectAnnotations(int index) { + return objectAnnotations_.get(index); + } + /** + *
+   * Annotations for list of objects detected and tracked in video.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation object_annotations = 14; + */ + public com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotationOrBuilder getObjectAnnotationsOrBuilder( + int index) { + return objectAnnotations_.get(index); + } + + public static final int ERROR_FIELD_NUMBER = 9; + private com.google.rpc.Status error_; + /** + *
+   * If set, indicates an error. Note that for a single `AnnotateVideoRequest`
+   * some videos may succeed and some may fail.
+   * 
+ * + * .google.rpc.Status error = 9; + */ + public boolean hasError() { + return error_ != null; + } + /** + *
+   * If set, indicates an error. Note that for a single `AnnotateVideoRequest`
+   * some videos may succeed and some may fail.
+   * 
+ * + * .google.rpc.Status error = 9; + */ + public com.google.rpc.Status getError() { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + /** + *
+   * If set, indicates an error. Note that for a single `AnnotateVideoRequest`
+   * some videos may succeed and some may fail.
+   * 
+ * + * .google.rpc.Status error = 9; + */ + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + return getError(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getInputUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputUri_); + } + for (int i = 0; i < segmentLabelAnnotations_.size(); i++) { + output.writeMessage(2, segmentLabelAnnotations_.get(i)); + } + for (int i = 0; i < shotLabelAnnotations_.size(); i++) { + output.writeMessage(3, shotLabelAnnotations_.get(i)); + } + for (int i = 0; i < frameLabelAnnotations_.size(); i++) { + output.writeMessage(4, frameLabelAnnotations_.get(i)); + } + for (int i = 0; i < shotAnnotations_.size(); i++) { + output.writeMessage(6, shotAnnotations_.get(i)); + } + if (explicitAnnotation_ != null) { + output.writeMessage(7, getExplicitAnnotation()); + } + if (error_ != null) { + output.writeMessage(9, getError()); + } + for (int i = 0; i < textAnnotations_.size(); i++) { + output.writeMessage(12, textAnnotations_.get(i)); + } + for (int i = 0; i < objectAnnotations_.size(); i++) { + output.writeMessage(14, objectAnnotations_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getInputUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, inputUri_); + } + for (int i = 0; i < segmentLabelAnnotations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, segmentLabelAnnotations_.get(i)); + } + for (int i = 0; i < shotLabelAnnotations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, shotLabelAnnotations_.get(i)); + } + for (int i = 0; i < frameLabelAnnotations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, frameLabelAnnotations_.get(i)); + } + for (int i = 0; i < shotAnnotations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, shotAnnotations_.get(i)); + } + if (explicitAnnotation_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getExplicitAnnotation()); + } + if (error_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getError()); + } + for (int i = 0; i < textAnnotations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, textAnnotations_.get(i)); + } + for (int i = 0; i < objectAnnotations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, objectAnnotations_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults other = (com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults) obj; + + boolean result = true; + result = result && getInputUri() + .equals(other.getInputUri()); + result = result && getSegmentLabelAnnotationsList() + .equals(other.getSegmentLabelAnnotationsList()); + result = result && getShotLabelAnnotationsList() + .equals(other.getShotLabelAnnotationsList()); + result = result && getFrameLabelAnnotationsList() + .equals(other.getFrameLabelAnnotationsList()); + result = result && getShotAnnotationsList() + .equals(other.getShotAnnotationsList()); + result = result && (hasExplicitAnnotation() == other.hasExplicitAnnotation()); + if (hasExplicitAnnotation()) { + result = result && getExplicitAnnotation() + .equals(other.getExplicitAnnotation()); + } + result = result && getTextAnnotationsList() + .equals(other.getTextAnnotationsList()); + result = result && getObjectAnnotationsList() + .equals(other.getObjectAnnotationsList()); + result = result && (hasError() == other.hasError()); + if (hasError()) { + result = result && getError() + .equals(other.getError()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + INPUT_URI_FIELD_NUMBER; + hash = (53 * hash) + getInputUri().hashCode(); + if (getSegmentLabelAnnotationsCount() > 0) { + hash = (37 * hash) + SEGMENT_LABEL_ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + getSegmentLabelAnnotationsList().hashCode(); + } + if (getShotLabelAnnotationsCount() > 0) { + hash = (37 * hash) + SHOT_LABEL_ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + getShotLabelAnnotationsList().hashCode(); + } + if (getFrameLabelAnnotationsCount() > 0) { + hash = (37 * hash) + FRAME_LABEL_ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + getFrameLabelAnnotationsList().hashCode(); + } + if (getShotAnnotationsCount() > 0) { + hash = (37 * hash) + SHOT_ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + getShotAnnotationsList().hashCode(); + } + if (hasExplicitAnnotation()) { + hash = (37 * hash) + EXPLICIT_ANNOTATION_FIELD_NUMBER; + hash = (53 * hash) + getExplicitAnnotation().hashCode(); + } + if (getTextAnnotationsCount() > 0) { + hash = (37 * hash) + TEXT_ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + getTextAnnotationsList().hashCode(); + } + if (getObjectAnnotationsCount() > 0) { + hash = (37 * hash) + OBJECT_ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + getObjectAnnotationsList().hashCode(); + } + if (hasError()) { + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Annotation results for a single video.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults) + com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResultsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_VideoAnnotationResults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_VideoAnnotationResults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults.class, com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults.Builder.class); + } + + // Construct using com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getSegmentLabelAnnotationsFieldBuilder(); + getShotLabelAnnotationsFieldBuilder(); + getFrameLabelAnnotationsFieldBuilder(); + getShotAnnotationsFieldBuilder(); + getTextAnnotationsFieldBuilder(); + getObjectAnnotationsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + inputUri_ = ""; + + if (segmentLabelAnnotationsBuilder_ == null) { + segmentLabelAnnotations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + segmentLabelAnnotationsBuilder_.clear(); + } + if (shotLabelAnnotationsBuilder_ == null) { + shotLabelAnnotations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + shotLabelAnnotationsBuilder_.clear(); + } + if (frameLabelAnnotationsBuilder_ == null) { + frameLabelAnnotations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + frameLabelAnnotationsBuilder_.clear(); + } + if (shotAnnotationsBuilder_ == null) { + shotAnnotations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + } else { + shotAnnotationsBuilder_.clear(); + } + if (explicitAnnotationBuilder_ == null) { + explicitAnnotation_ = null; + } else { + explicitAnnotation_ = null; + explicitAnnotationBuilder_ = null; + } + if (textAnnotationsBuilder_ == null) { + textAnnotations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + } else { + textAnnotationsBuilder_.clear(); + } + if (objectAnnotationsBuilder_ == null) { + objectAnnotations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + } else { + objectAnnotationsBuilder_.clear(); + } + if (errorBuilder_ == null) { + error_ = null; + } else { + error_ = null; + errorBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_VideoAnnotationResults_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults build() { + com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults buildPartial() { + com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults result = new com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.inputUri_ = inputUri_; + if (segmentLabelAnnotationsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + segmentLabelAnnotations_ = java.util.Collections.unmodifiableList(segmentLabelAnnotations_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.segmentLabelAnnotations_ = segmentLabelAnnotations_; + } else { + result.segmentLabelAnnotations_ = segmentLabelAnnotationsBuilder_.build(); + } + if (shotLabelAnnotationsBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + shotLabelAnnotations_ = java.util.Collections.unmodifiableList(shotLabelAnnotations_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.shotLabelAnnotations_ = shotLabelAnnotations_; + } else { + result.shotLabelAnnotations_ = shotLabelAnnotationsBuilder_.build(); + } + if (frameLabelAnnotationsBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { + frameLabelAnnotations_ = java.util.Collections.unmodifiableList(frameLabelAnnotations_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.frameLabelAnnotations_ = frameLabelAnnotations_; + } else { + result.frameLabelAnnotations_ = frameLabelAnnotationsBuilder_.build(); + } + if (shotAnnotationsBuilder_ == null) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { + shotAnnotations_ = java.util.Collections.unmodifiableList(shotAnnotations_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.shotAnnotations_ = shotAnnotations_; + } else { + result.shotAnnotations_ = shotAnnotationsBuilder_.build(); + } + if (explicitAnnotationBuilder_ == null) { + result.explicitAnnotation_ = explicitAnnotation_; + } else { + result.explicitAnnotation_ = explicitAnnotationBuilder_.build(); + } + if (textAnnotationsBuilder_ == null) { + if (((bitField0_ & 0x00000040) == 0x00000040)) { + textAnnotations_ = java.util.Collections.unmodifiableList(textAnnotations_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.textAnnotations_ = textAnnotations_; + } else { + result.textAnnotations_ = textAnnotationsBuilder_.build(); + } + if (objectAnnotationsBuilder_ == null) { + if (((bitField0_ & 0x00000080) == 0x00000080)) { + objectAnnotations_ = java.util.Collections.unmodifiableList(objectAnnotations_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.objectAnnotations_ = objectAnnotations_; + } else { + result.objectAnnotations_ = objectAnnotationsBuilder_.build(); + } + if (errorBuilder_ == null) { + result.error_ = error_; + } else { + result.error_ = errorBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults) { + return mergeFrom((com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults other) { + if (other == com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults.getDefaultInstance()) return this; + if (!other.getInputUri().isEmpty()) { + inputUri_ = other.inputUri_; + onChanged(); + } + if (segmentLabelAnnotationsBuilder_ == null) { + if (!other.segmentLabelAnnotations_.isEmpty()) { + if (segmentLabelAnnotations_.isEmpty()) { + segmentLabelAnnotations_ = other.segmentLabelAnnotations_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureSegmentLabelAnnotationsIsMutable(); + segmentLabelAnnotations_.addAll(other.segmentLabelAnnotations_); + } + onChanged(); + } + } else { + if (!other.segmentLabelAnnotations_.isEmpty()) { + if (segmentLabelAnnotationsBuilder_.isEmpty()) { + segmentLabelAnnotationsBuilder_.dispose(); + segmentLabelAnnotationsBuilder_ = null; + segmentLabelAnnotations_ = other.segmentLabelAnnotations_; + bitField0_ = (bitField0_ & ~0x00000002); + segmentLabelAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSegmentLabelAnnotationsFieldBuilder() : null; + } else { + segmentLabelAnnotationsBuilder_.addAllMessages(other.segmentLabelAnnotations_); + } + } + } + if (shotLabelAnnotationsBuilder_ == null) { + if (!other.shotLabelAnnotations_.isEmpty()) { + if (shotLabelAnnotations_.isEmpty()) { + shotLabelAnnotations_ = other.shotLabelAnnotations_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureShotLabelAnnotationsIsMutable(); + shotLabelAnnotations_.addAll(other.shotLabelAnnotations_); + } + onChanged(); + } + } else { + if (!other.shotLabelAnnotations_.isEmpty()) { + if (shotLabelAnnotationsBuilder_.isEmpty()) { + shotLabelAnnotationsBuilder_.dispose(); + shotLabelAnnotationsBuilder_ = null; + shotLabelAnnotations_ = other.shotLabelAnnotations_; + bitField0_ = (bitField0_ & ~0x00000004); + shotLabelAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getShotLabelAnnotationsFieldBuilder() : null; + } else { + shotLabelAnnotationsBuilder_.addAllMessages(other.shotLabelAnnotations_); + } + } + } + if (frameLabelAnnotationsBuilder_ == null) { + if (!other.frameLabelAnnotations_.isEmpty()) { + if (frameLabelAnnotations_.isEmpty()) { + frameLabelAnnotations_ = other.frameLabelAnnotations_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureFrameLabelAnnotationsIsMutable(); + frameLabelAnnotations_.addAll(other.frameLabelAnnotations_); + } + onChanged(); + } + } else { + if (!other.frameLabelAnnotations_.isEmpty()) { + if (frameLabelAnnotationsBuilder_.isEmpty()) { + frameLabelAnnotationsBuilder_.dispose(); + frameLabelAnnotationsBuilder_ = null; + frameLabelAnnotations_ = other.frameLabelAnnotations_; + bitField0_ = (bitField0_ & ~0x00000008); + frameLabelAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFrameLabelAnnotationsFieldBuilder() : null; + } else { + frameLabelAnnotationsBuilder_.addAllMessages(other.frameLabelAnnotations_); + } + } + } + if (shotAnnotationsBuilder_ == null) { + if (!other.shotAnnotations_.isEmpty()) { + if (shotAnnotations_.isEmpty()) { + shotAnnotations_ = other.shotAnnotations_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureShotAnnotationsIsMutable(); + shotAnnotations_.addAll(other.shotAnnotations_); + } + onChanged(); + } + } else { + if (!other.shotAnnotations_.isEmpty()) { + if (shotAnnotationsBuilder_.isEmpty()) { + shotAnnotationsBuilder_.dispose(); + shotAnnotationsBuilder_ = null; + shotAnnotations_ = other.shotAnnotations_; + bitField0_ = (bitField0_ & ~0x00000010); + shotAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getShotAnnotationsFieldBuilder() : null; + } else { + shotAnnotationsBuilder_.addAllMessages(other.shotAnnotations_); + } + } + } + if (other.hasExplicitAnnotation()) { + mergeExplicitAnnotation(other.getExplicitAnnotation()); + } + if (textAnnotationsBuilder_ == null) { + if (!other.textAnnotations_.isEmpty()) { + if (textAnnotations_.isEmpty()) { + textAnnotations_ = other.textAnnotations_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureTextAnnotationsIsMutable(); + textAnnotations_.addAll(other.textAnnotations_); + } + onChanged(); + } + } else { + if (!other.textAnnotations_.isEmpty()) { + if (textAnnotationsBuilder_.isEmpty()) { + textAnnotationsBuilder_.dispose(); + textAnnotationsBuilder_ = null; + textAnnotations_ = other.textAnnotations_; + bitField0_ = (bitField0_ & ~0x00000040); + textAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTextAnnotationsFieldBuilder() : null; + } else { + textAnnotationsBuilder_.addAllMessages(other.textAnnotations_); + } + } + } + if (objectAnnotationsBuilder_ == null) { + if (!other.objectAnnotations_.isEmpty()) { + if (objectAnnotations_.isEmpty()) { + objectAnnotations_ = other.objectAnnotations_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureObjectAnnotationsIsMutable(); + objectAnnotations_.addAll(other.objectAnnotations_); + } + onChanged(); + } + } else { + if (!other.objectAnnotations_.isEmpty()) { + if (objectAnnotationsBuilder_.isEmpty()) { + objectAnnotationsBuilder_.dispose(); + objectAnnotationsBuilder_ = null; + objectAnnotations_ = other.objectAnnotations_; + bitField0_ = (bitField0_ & ~0x00000080); + objectAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getObjectAnnotationsFieldBuilder() : null; + } else { + objectAnnotationsBuilder_.addAllMessages(other.objectAnnotations_); + } + } + } + if (other.hasError()) { + mergeError(other.getError()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object inputUri_ = ""; + /** + *
+     * Video file location in
+     * [Google Cloud Storage](https://cloud.google.com/storage/).
+     * 
+ * + * string input_uri = 1; + */ + public java.lang.String getInputUri() { + java.lang.Object ref = inputUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Video file location in
+     * [Google Cloud Storage](https://cloud.google.com/storage/).
+     * 
+ * + * string input_uri = 1; + */ + public com.google.protobuf.ByteString + getInputUriBytes() { + java.lang.Object ref = inputUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Video file location in
+     * [Google Cloud Storage](https://cloud.google.com/storage/).
+     * 
+ * + * string input_uri = 1; + */ + public Builder setInputUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + inputUri_ = value; + onChanged(); + return this; + } + /** + *
+     * Video file location in
+     * [Google Cloud Storage](https://cloud.google.com/storage/).
+     * 
+ * + * string input_uri = 1; + */ + public Builder clearInputUri() { + + inputUri_ = getDefaultInstance().getInputUri(); + onChanged(); + return this; + } + /** + *
+     * Video file location in
+     * [Google Cloud Storage](https://cloud.google.com/storage/).
+     * 
+ * + * string input_uri = 1; + */ + public Builder setInputUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + inputUri_ = value; + onChanged(); + return this; + } + + private java.util.List segmentLabelAnnotations_ = + java.util.Collections.emptyList(); + private void ensureSegmentLabelAnnotationsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + segmentLabelAnnotations_ = new java.util.ArrayList(segmentLabelAnnotations_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation, com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation.Builder, com.google.cloud.videointelligence.v1p2beta1.LabelAnnotationOrBuilder> segmentLabelAnnotationsBuilder_; + + /** + *
+     * Label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation segment_label_annotations = 2; + */ + public java.util.List getSegmentLabelAnnotationsList() { + if (segmentLabelAnnotationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(segmentLabelAnnotations_); + } else { + return segmentLabelAnnotationsBuilder_.getMessageList(); + } + } + /** + *
+     * Label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation segment_label_annotations = 2; + */ + public int getSegmentLabelAnnotationsCount() { + if (segmentLabelAnnotationsBuilder_ == null) { + return segmentLabelAnnotations_.size(); + } else { + return segmentLabelAnnotationsBuilder_.getCount(); + } + } + /** + *
+     * Label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation segment_label_annotations = 2; + */ + public com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation getSegmentLabelAnnotations(int index) { + if (segmentLabelAnnotationsBuilder_ == null) { + return segmentLabelAnnotations_.get(index); + } else { + return segmentLabelAnnotationsBuilder_.getMessage(index); + } + } + /** + *
+     * Label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation segment_label_annotations = 2; + */ + public Builder setSegmentLabelAnnotations( + int index, com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation value) { + if (segmentLabelAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSegmentLabelAnnotationsIsMutable(); + segmentLabelAnnotations_.set(index, value); + onChanged(); + } else { + segmentLabelAnnotationsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation segment_label_annotations = 2; + */ + public Builder setSegmentLabelAnnotations( + int index, com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation.Builder builderForValue) { + if (segmentLabelAnnotationsBuilder_ == null) { + ensureSegmentLabelAnnotationsIsMutable(); + segmentLabelAnnotations_.set(index, builderForValue.build()); + onChanged(); + } else { + segmentLabelAnnotationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation segment_label_annotations = 2; + */ + public Builder addSegmentLabelAnnotations(com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation value) { + if (segmentLabelAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSegmentLabelAnnotationsIsMutable(); + segmentLabelAnnotations_.add(value); + onChanged(); + } else { + segmentLabelAnnotationsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation segment_label_annotations = 2; + */ + public Builder addSegmentLabelAnnotations( + int index, com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation value) { + if (segmentLabelAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSegmentLabelAnnotationsIsMutable(); + segmentLabelAnnotations_.add(index, value); + onChanged(); + } else { + segmentLabelAnnotationsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation segment_label_annotations = 2; + */ + public Builder addSegmentLabelAnnotations( + com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation.Builder builderForValue) { + if (segmentLabelAnnotationsBuilder_ == null) { + ensureSegmentLabelAnnotationsIsMutable(); + segmentLabelAnnotations_.add(builderForValue.build()); + onChanged(); + } else { + segmentLabelAnnotationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation segment_label_annotations = 2; + */ + public Builder addSegmentLabelAnnotations( + int index, com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation.Builder builderForValue) { + if (segmentLabelAnnotationsBuilder_ == null) { + ensureSegmentLabelAnnotationsIsMutable(); + segmentLabelAnnotations_.add(index, builderForValue.build()); + onChanged(); + } else { + segmentLabelAnnotationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation segment_label_annotations = 2; + */ + public Builder addAllSegmentLabelAnnotations( + java.lang.Iterable values) { + if (segmentLabelAnnotationsBuilder_ == null) { + ensureSegmentLabelAnnotationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, segmentLabelAnnotations_); + onChanged(); + } else { + segmentLabelAnnotationsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation segment_label_annotations = 2; + */ + public Builder clearSegmentLabelAnnotations() { + if (segmentLabelAnnotationsBuilder_ == null) { + segmentLabelAnnotations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + segmentLabelAnnotationsBuilder_.clear(); + } + return this; + } + /** + *
+     * Label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation segment_label_annotations = 2; + */ + public Builder removeSegmentLabelAnnotations(int index) { + if (segmentLabelAnnotationsBuilder_ == null) { + ensureSegmentLabelAnnotationsIsMutable(); + segmentLabelAnnotations_.remove(index); + onChanged(); + } else { + segmentLabelAnnotationsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation segment_label_annotations = 2; + */ + public com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation.Builder getSegmentLabelAnnotationsBuilder( + int index) { + return getSegmentLabelAnnotationsFieldBuilder().getBuilder(index); + } + /** + *
+     * Label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation segment_label_annotations = 2; + */ + public com.google.cloud.videointelligence.v1p2beta1.LabelAnnotationOrBuilder getSegmentLabelAnnotationsOrBuilder( + int index) { + if (segmentLabelAnnotationsBuilder_ == null) { + return segmentLabelAnnotations_.get(index); } else { + return segmentLabelAnnotationsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation segment_label_annotations = 2; + */ + public java.util.List + getSegmentLabelAnnotationsOrBuilderList() { + if (segmentLabelAnnotationsBuilder_ != null) { + return segmentLabelAnnotationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(segmentLabelAnnotations_); + } + } + /** + *
+     * Label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation segment_label_annotations = 2; + */ + public com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation.Builder addSegmentLabelAnnotationsBuilder() { + return getSegmentLabelAnnotationsFieldBuilder().addBuilder( + com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation.getDefaultInstance()); + } + /** + *
+     * Label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation segment_label_annotations = 2; + */ + public com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation.Builder addSegmentLabelAnnotationsBuilder( + int index) { + return getSegmentLabelAnnotationsFieldBuilder().addBuilder( + index, com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation.getDefaultInstance()); + } + /** + *
+     * Label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation segment_label_annotations = 2; + */ + public java.util.List + getSegmentLabelAnnotationsBuilderList() { + return getSegmentLabelAnnotationsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation, com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation.Builder, com.google.cloud.videointelligence.v1p2beta1.LabelAnnotationOrBuilder> + getSegmentLabelAnnotationsFieldBuilder() { + if (segmentLabelAnnotationsBuilder_ == null) { + segmentLabelAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation, com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation.Builder, com.google.cloud.videointelligence.v1p2beta1.LabelAnnotationOrBuilder>( + segmentLabelAnnotations_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + segmentLabelAnnotations_ = null; + } + return segmentLabelAnnotationsBuilder_; + } + + private java.util.List shotLabelAnnotations_ = + java.util.Collections.emptyList(); + private void ensureShotLabelAnnotationsIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + shotLabelAnnotations_ = new java.util.ArrayList(shotLabelAnnotations_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation, com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation.Builder, com.google.cloud.videointelligence.v1p2beta1.LabelAnnotationOrBuilder> shotLabelAnnotationsBuilder_; + + /** + *
+     * Label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation shot_label_annotations = 3; + */ + public java.util.List getShotLabelAnnotationsList() { + if (shotLabelAnnotationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(shotLabelAnnotations_); + } else { + return shotLabelAnnotationsBuilder_.getMessageList(); + } + } + /** + *
+     * Label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation shot_label_annotations = 3; + */ + public int getShotLabelAnnotationsCount() { + if (shotLabelAnnotationsBuilder_ == null) { + return shotLabelAnnotations_.size(); + } else { + return shotLabelAnnotationsBuilder_.getCount(); + } + } + /** + *
+     * Label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation shot_label_annotations = 3; + */ + public com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation getShotLabelAnnotations(int index) { + if (shotLabelAnnotationsBuilder_ == null) { + return shotLabelAnnotations_.get(index); + } else { + return shotLabelAnnotationsBuilder_.getMessage(index); + } + } + /** + *
+     * Label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation shot_label_annotations = 3; + */ + public Builder setShotLabelAnnotations( + int index, com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation value) { + if (shotLabelAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureShotLabelAnnotationsIsMutable(); + shotLabelAnnotations_.set(index, value); + onChanged(); + } else { + shotLabelAnnotationsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation shot_label_annotations = 3; + */ + public Builder setShotLabelAnnotations( + int index, com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation.Builder builderForValue) { + if (shotLabelAnnotationsBuilder_ == null) { + ensureShotLabelAnnotationsIsMutable(); + shotLabelAnnotations_.set(index, builderForValue.build()); + onChanged(); + } else { + shotLabelAnnotationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation shot_label_annotations = 3; + */ + public Builder addShotLabelAnnotations(com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation value) { + if (shotLabelAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureShotLabelAnnotationsIsMutable(); + shotLabelAnnotations_.add(value); + onChanged(); + } else { + shotLabelAnnotationsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation shot_label_annotations = 3; + */ + public Builder addShotLabelAnnotations( + int index, com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation value) { + if (shotLabelAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureShotLabelAnnotationsIsMutable(); + shotLabelAnnotations_.add(index, value); + onChanged(); + } else { + shotLabelAnnotationsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation shot_label_annotations = 3; + */ + public Builder addShotLabelAnnotations( + com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation.Builder builderForValue) { + if (shotLabelAnnotationsBuilder_ == null) { + ensureShotLabelAnnotationsIsMutable(); + shotLabelAnnotations_.add(builderForValue.build()); + onChanged(); + } else { + shotLabelAnnotationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation shot_label_annotations = 3; + */ + public Builder addShotLabelAnnotations( + int index, com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation.Builder builderForValue) { + if (shotLabelAnnotationsBuilder_ == null) { + ensureShotLabelAnnotationsIsMutable(); + shotLabelAnnotations_.add(index, builderForValue.build()); + onChanged(); + } else { + shotLabelAnnotationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation shot_label_annotations = 3; + */ + public Builder addAllShotLabelAnnotations( + java.lang.Iterable values) { + if (shotLabelAnnotationsBuilder_ == null) { + ensureShotLabelAnnotationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, shotLabelAnnotations_); + onChanged(); + } else { + shotLabelAnnotationsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation shot_label_annotations = 3; + */ + public Builder clearShotLabelAnnotations() { + if (shotLabelAnnotationsBuilder_ == null) { + shotLabelAnnotations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + shotLabelAnnotationsBuilder_.clear(); + } + return this; + } + /** + *
+     * Label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation shot_label_annotations = 3; + */ + public Builder removeShotLabelAnnotations(int index) { + if (shotLabelAnnotationsBuilder_ == null) { + ensureShotLabelAnnotationsIsMutable(); + shotLabelAnnotations_.remove(index); + onChanged(); + } else { + shotLabelAnnotationsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation shot_label_annotations = 3; + */ + public com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation.Builder getShotLabelAnnotationsBuilder( + int index) { + return getShotLabelAnnotationsFieldBuilder().getBuilder(index); + } + /** + *
+     * Label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation shot_label_annotations = 3; + */ + public com.google.cloud.videointelligence.v1p2beta1.LabelAnnotationOrBuilder getShotLabelAnnotationsOrBuilder( + int index) { + if (shotLabelAnnotationsBuilder_ == null) { + return shotLabelAnnotations_.get(index); } else { + return shotLabelAnnotationsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation shot_label_annotations = 3; + */ + public java.util.List + getShotLabelAnnotationsOrBuilderList() { + if (shotLabelAnnotationsBuilder_ != null) { + return shotLabelAnnotationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(shotLabelAnnotations_); + } + } + /** + *
+     * Label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation shot_label_annotations = 3; + */ + public com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation.Builder addShotLabelAnnotationsBuilder() { + return getShotLabelAnnotationsFieldBuilder().addBuilder( + com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation.getDefaultInstance()); + } + /** + *
+     * Label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation shot_label_annotations = 3; + */ + public com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation.Builder addShotLabelAnnotationsBuilder( + int index) { + return getShotLabelAnnotationsFieldBuilder().addBuilder( + index, com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation.getDefaultInstance()); + } + /** + *
+     * Label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation shot_label_annotations = 3; + */ + public java.util.List + getShotLabelAnnotationsBuilderList() { + return getShotLabelAnnotationsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation, com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation.Builder, com.google.cloud.videointelligence.v1p2beta1.LabelAnnotationOrBuilder> + getShotLabelAnnotationsFieldBuilder() { + if (shotLabelAnnotationsBuilder_ == null) { + shotLabelAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation, com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation.Builder, com.google.cloud.videointelligence.v1p2beta1.LabelAnnotationOrBuilder>( + shotLabelAnnotations_, + ((bitField0_ & 0x00000004) == 0x00000004), + getParentForChildren(), + isClean()); + shotLabelAnnotations_ = null; + } + return shotLabelAnnotationsBuilder_; + } + + private java.util.List frameLabelAnnotations_ = + java.util.Collections.emptyList(); + private void ensureFrameLabelAnnotationsIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + frameLabelAnnotations_ = new java.util.ArrayList(frameLabelAnnotations_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation, com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation.Builder, com.google.cloud.videointelligence.v1p2beta1.LabelAnnotationOrBuilder> frameLabelAnnotationsBuilder_; + + /** + *
+     * Label annotations on frame level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation frame_label_annotations = 4; + */ + public java.util.List getFrameLabelAnnotationsList() { + if (frameLabelAnnotationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(frameLabelAnnotations_); + } else { + return frameLabelAnnotationsBuilder_.getMessageList(); + } + } + /** + *
+     * Label annotations on frame level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation frame_label_annotations = 4; + */ + public int getFrameLabelAnnotationsCount() { + if (frameLabelAnnotationsBuilder_ == null) { + return frameLabelAnnotations_.size(); + } else { + return frameLabelAnnotationsBuilder_.getCount(); + } + } + /** + *
+     * Label annotations on frame level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation frame_label_annotations = 4; + */ + public com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation getFrameLabelAnnotations(int index) { + if (frameLabelAnnotationsBuilder_ == null) { + return frameLabelAnnotations_.get(index); + } else { + return frameLabelAnnotationsBuilder_.getMessage(index); + } + } + /** + *
+     * Label annotations on frame level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation frame_label_annotations = 4; + */ + public Builder setFrameLabelAnnotations( + int index, com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation value) { + if (frameLabelAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFrameLabelAnnotationsIsMutable(); + frameLabelAnnotations_.set(index, value); + onChanged(); + } else { + frameLabelAnnotationsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Label annotations on frame level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation frame_label_annotations = 4; + */ + public Builder setFrameLabelAnnotations( + int index, com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation.Builder builderForValue) { + if (frameLabelAnnotationsBuilder_ == null) { + ensureFrameLabelAnnotationsIsMutable(); + frameLabelAnnotations_.set(index, builderForValue.build()); + onChanged(); + } else { + frameLabelAnnotationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Label annotations on frame level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation frame_label_annotations = 4; + */ + public Builder addFrameLabelAnnotations(com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation value) { + if (frameLabelAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFrameLabelAnnotationsIsMutable(); + frameLabelAnnotations_.add(value); + onChanged(); + } else { + frameLabelAnnotationsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Label annotations on frame level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation frame_label_annotations = 4; + */ + public Builder addFrameLabelAnnotations( + int index, com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation value) { + if (frameLabelAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFrameLabelAnnotationsIsMutable(); + frameLabelAnnotations_.add(index, value); + onChanged(); + } else { + frameLabelAnnotationsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Label annotations on frame level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation frame_label_annotations = 4; + */ + public Builder addFrameLabelAnnotations( + com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation.Builder builderForValue) { + if (frameLabelAnnotationsBuilder_ == null) { + ensureFrameLabelAnnotationsIsMutable(); + frameLabelAnnotations_.add(builderForValue.build()); + onChanged(); + } else { + frameLabelAnnotationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Label annotations on frame level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation frame_label_annotations = 4; + */ + public Builder addFrameLabelAnnotations( + int index, com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation.Builder builderForValue) { + if (frameLabelAnnotationsBuilder_ == null) { + ensureFrameLabelAnnotationsIsMutable(); + frameLabelAnnotations_.add(index, builderForValue.build()); + onChanged(); + } else { + frameLabelAnnotationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Label annotations on frame level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation frame_label_annotations = 4; + */ + public Builder addAllFrameLabelAnnotations( + java.lang.Iterable values) { + if (frameLabelAnnotationsBuilder_ == null) { + ensureFrameLabelAnnotationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, frameLabelAnnotations_); + onChanged(); + } else { + frameLabelAnnotationsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Label annotations on frame level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation frame_label_annotations = 4; + */ + public Builder clearFrameLabelAnnotations() { + if (frameLabelAnnotationsBuilder_ == null) { + frameLabelAnnotations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + frameLabelAnnotationsBuilder_.clear(); + } + return this; + } + /** + *
+     * Label annotations on frame level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation frame_label_annotations = 4; + */ + public Builder removeFrameLabelAnnotations(int index) { + if (frameLabelAnnotationsBuilder_ == null) { + ensureFrameLabelAnnotationsIsMutable(); + frameLabelAnnotations_.remove(index); + onChanged(); + } else { + frameLabelAnnotationsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Label annotations on frame level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation frame_label_annotations = 4; + */ + public com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation.Builder getFrameLabelAnnotationsBuilder( + int index) { + return getFrameLabelAnnotationsFieldBuilder().getBuilder(index); + } + /** + *
+     * Label annotations on frame level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation frame_label_annotations = 4; + */ + public com.google.cloud.videointelligence.v1p2beta1.LabelAnnotationOrBuilder getFrameLabelAnnotationsOrBuilder( + int index) { + if (frameLabelAnnotationsBuilder_ == null) { + return frameLabelAnnotations_.get(index); } else { + return frameLabelAnnotationsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Label annotations on frame level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation frame_label_annotations = 4; + */ + public java.util.List + getFrameLabelAnnotationsOrBuilderList() { + if (frameLabelAnnotationsBuilder_ != null) { + return frameLabelAnnotationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(frameLabelAnnotations_); + } + } + /** + *
+     * Label annotations on frame level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation frame_label_annotations = 4; + */ + public com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation.Builder addFrameLabelAnnotationsBuilder() { + return getFrameLabelAnnotationsFieldBuilder().addBuilder( + com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation.getDefaultInstance()); + } + /** + *
+     * Label annotations on frame level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation frame_label_annotations = 4; + */ + public com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation.Builder addFrameLabelAnnotationsBuilder( + int index) { + return getFrameLabelAnnotationsFieldBuilder().addBuilder( + index, com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation.getDefaultInstance()); + } + /** + *
+     * Label annotations on frame level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation frame_label_annotations = 4; + */ + public java.util.List + getFrameLabelAnnotationsBuilderList() { + return getFrameLabelAnnotationsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation, com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation.Builder, com.google.cloud.videointelligence.v1p2beta1.LabelAnnotationOrBuilder> + getFrameLabelAnnotationsFieldBuilder() { + if (frameLabelAnnotationsBuilder_ == null) { + frameLabelAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation, com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation.Builder, com.google.cloud.videointelligence.v1p2beta1.LabelAnnotationOrBuilder>( + frameLabelAnnotations_, + ((bitField0_ & 0x00000008) == 0x00000008), + getParentForChildren(), + isClean()); + frameLabelAnnotations_ = null; + } + return frameLabelAnnotationsBuilder_; + } + + private java.util.List shotAnnotations_ = + java.util.Collections.emptyList(); + private void ensureShotAnnotationsIsMutable() { + if (!((bitField0_ & 0x00000010) == 0x00000010)) { + shotAnnotations_ = new java.util.ArrayList(shotAnnotations_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.VideoSegment, com.google.cloud.videointelligence.v1p2beta1.VideoSegment.Builder, com.google.cloud.videointelligence.v1p2beta1.VideoSegmentOrBuilder> shotAnnotationsBuilder_; + + /** + *
+     * Shot annotations. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment shot_annotations = 6; + */ + public java.util.List getShotAnnotationsList() { + if (shotAnnotationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(shotAnnotations_); + } else { + return shotAnnotationsBuilder_.getMessageList(); + } + } + /** + *
+     * Shot annotations. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment shot_annotations = 6; + */ + public int getShotAnnotationsCount() { + if (shotAnnotationsBuilder_ == null) { + return shotAnnotations_.size(); + } else { + return shotAnnotationsBuilder_.getCount(); + } + } + /** + *
+     * Shot annotations. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment shot_annotations = 6; + */ + public com.google.cloud.videointelligence.v1p2beta1.VideoSegment getShotAnnotations(int index) { + if (shotAnnotationsBuilder_ == null) { + return shotAnnotations_.get(index); + } else { + return shotAnnotationsBuilder_.getMessage(index); + } + } + /** + *
+     * Shot annotations. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment shot_annotations = 6; + */ + public Builder setShotAnnotations( + int index, com.google.cloud.videointelligence.v1p2beta1.VideoSegment value) { + if (shotAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureShotAnnotationsIsMutable(); + shotAnnotations_.set(index, value); + onChanged(); + } else { + shotAnnotationsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Shot annotations. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment shot_annotations = 6; + */ + public Builder setShotAnnotations( + int index, com.google.cloud.videointelligence.v1p2beta1.VideoSegment.Builder builderForValue) { + if (shotAnnotationsBuilder_ == null) { + ensureShotAnnotationsIsMutable(); + shotAnnotations_.set(index, builderForValue.build()); + onChanged(); + } else { + shotAnnotationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Shot annotations. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment shot_annotations = 6; + */ + public Builder addShotAnnotations(com.google.cloud.videointelligence.v1p2beta1.VideoSegment value) { + if (shotAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureShotAnnotationsIsMutable(); + shotAnnotations_.add(value); + onChanged(); + } else { + shotAnnotationsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Shot annotations. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment shot_annotations = 6; + */ + public Builder addShotAnnotations( + int index, com.google.cloud.videointelligence.v1p2beta1.VideoSegment value) { + if (shotAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureShotAnnotationsIsMutable(); + shotAnnotations_.add(index, value); + onChanged(); + } else { + shotAnnotationsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Shot annotations. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment shot_annotations = 6; + */ + public Builder addShotAnnotations( + com.google.cloud.videointelligence.v1p2beta1.VideoSegment.Builder builderForValue) { + if (shotAnnotationsBuilder_ == null) { + ensureShotAnnotationsIsMutable(); + shotAnnotations_.add(builderForValue.build()); + onChanged(); + } else { + shotAnnotationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Shot annotations. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment shot_annotations = 6; + */ + public Builder addShotAnnotations( + int index, com.google.cloud.videointelligence.v1p2beta1.VideoSegment.Builder builderForValue) { + if (shotAnnotationsBuilder_ == null) { + ensureShotAnnotationsIsMutable(); + shotAnnotations_.add(index, builderForValue.build()); + onChanged(); + } else { + shotAnnotationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Shot annotations. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment shot_annotations = 6; + */ + public Builder addAllShotAnnotations( + java.lang.Iterable values) { + if (shotAnnotationsBuilder_ == null) { + ensureShotAnnotationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, shotAnnotations_); + onChanged(); + } else { + shotAnnotationsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Shot annotations. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment shot_annotations = 6; + */ + public Builder clearShotAnnotations() { + if (shotAnnotationsBuilder_ == null) { + shotAnnotations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + shotAnnotationsBuilder_.clear(); + } + return this; + } + /** + *
+     * Shot annotations. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment shot_annotations = 6; + */ + public Builder removeShotAnnotations(int index) { + if (shotAnnotationsBuilder_ == null) { + ensureShotAnnotationsIsMutable(); + shotAnnotations_.remove(index); + onChanged(); + } else { + shotAnnotationsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Shot annotations. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment shot_annotations = 6; + */ + public com.google.cloud.videointelligence.v1p2beta1.VideoSegment.Builder getShotAnnotationsBuilder( + int index) { + return getShotAnnotationsFieldBuilder().getBuilder(index); + } + /** + *
+     * Shot annotations. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment shot_annotations = 6; + */ + public com.google.cloud.videointelligence.v1p2beta1.VideoSegmentOrBuilder getShotAnnotationsOrBuilder( + int index) { + if (shotAnnotationsBuilder_ == null) { + return shotAnnotations_.get(index); } else { + return shotAnnotationsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Shot annotations. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment shot_annotations = 6; + */ + public java.util.List + getShotAnnotationsOrBuilderList() { + if (shotAnnotationsBuilder_ != null) { + return shotAnnotationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(shotAnnotations_); + } + } + /** + *
+     * Shot annotations. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment shot_annotations = 6; + */ + public com.google.cloud.videointelligence.v1p2beta1.VideoSegment.Builder addShotAnnotationsBuilder() { + return getShotAnnotationsFieldBuilder().addBuilder( + com.google.cloud.videointelligence.v1p2beta1.VideoSegment.getDefaultInstance()); + } + /** + *
+     * Shot annotations. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment shot_annotations = 6; + */ + public com.google.cloud.videointelligence.v1p2beta1.VideoSegment.Builder addShotAnnotationsBuilder( + int index) { + return getShotAnnotationsFieldBuilder().addBuilder( + index, com.google.cloud.videointelligence.v1p2beta1.VideoSegment.getDefaultInstance()); + } + /** + *
+     * Shot annotations. Each shot is represented as a video segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment shot_annotations = 6; + */ + public java.util.List + getShotAnnotationsBuilderList() { + return getShotAnnotationsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.VideoSegment, com.google.cloud.videointelligence.v1p2beta1.VideoSegment.Builder, com.google.cloud.videointelligence.v1p2beta1.VideoSegmentOrBuilder> + getShotAnnotationsFieldBuilder() { + if (shotAnnotationsBuilder_ == null) { + shotAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.VideoSegment, com.google.cloud.videointelligence.v1p2beta1.VideoSegment.Builder, com.google.cloud.videointelligence.v1p2beta1.VideoSegmentOrBuilder>( + shotAnnotations_, + ((bitField0_ & 0x00000010) == 0x00000010), + getParentForChildren(), + isClean()); + shotAnnotations_ = null; + } + return shotAnnotationsBuilder_; + } + + private com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation explicitAnnotation_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation, com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation.Builder, com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotationOrBuilder> explicitAnnotationBuilder_; + /** + *
+     * Explicit content annotation.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation explicit_annotation = 7; + */ + public boolean hasExplicitAnnotation() { + return explicitAnnotationBuilder_ != null || explicitAnnotation_ != null; + } + /** + *
+     * Explicit content annotation.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation explicit_annotation = 7; + */ + public com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation getExplicitAnnotation() { + if (explicitAnnotationBuilder_ == null) { + return explicitAnnotation_ == null ? com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation.getDefaultInstance() : explicitAnnotation_; + } else { + return explicitAnnotationBuilder_.getMessage(); + } + } + /** + *
+     * Explicit content annotation.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation explicit_annotation = 7; + */ + public Builder setExplicitAnnotation(com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation value) { + if (explicitAnnotationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + explicitAnnotation_ = value; + onChanged(); + } else { + explicitAnnotationBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Explicit content annotation.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation explicit_annotation = 7; + */ + public Builder setExplicitAnnotation( + com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation.Builder builderForValue) { + if (explicitAnnotationBuilder_ == null) { + explicitAnnotation_ = builderForValue.build(); + onChanged(); + } else { + explicitAnnotationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Explicit content annotation.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation explicit_annotation = 7; + */ + public Builder mergeExplicitAnnotation(com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation value) { + if (explicitAnnotationBuilder_ == null) { + if (explicitAnnotation_ != null) { + explicitAnnotation_ = + com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation.newBuilder(explicitAnnotation_).mergeFrom(value).buildPartial(); + } else { + explicitAnnotation_ = value; + } + onChanged(); + } else { + explicitAnnotationBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Explicit content annotation.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation explicit_annotation = 7; + */ + public Builder clearExplicitAnnotation() { + if (explicitAnnotationBuilder_ == null) { + explicitAnnotation_ = null; + onChanged(); + } else { + explicitAnnotation_ = null; + explicitAnnotationBuilder_ = null; + } + + return this; + } + /** + *
+     * Explicit content annotation.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation explicit_annotation = 7; + */ + public com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation.Builder getExplicitAnnotationBuilder() { + + onChanged(); + return getExplicitAnnotationFieldBuilder().getBuilder(); + } + /** + *
+     * Explicit content annotation.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation explicit_annotation = 7; + */ + public com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotationOrBuilder getExplicitAnnotationOrBuilder() { + if (explicitAnnotationBuilder_ != null) { + return explicitAnnotationBuilder_.getMessageOrBuilder(); + } else { + return explicitAnnotation_ == null ? + com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation.getDefaultInstance() : explicitAnnotation_; + } + } + /** + *
+     * Explicit content annotation.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation explicit_annotation = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation, com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation.Builder, com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotationOrBuilder> + getExplicitAnnotationFieldBuilder() { + if (explicitAnnotationBuilder_ == null) { + explicitAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation, com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation.Builder, com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotationOrBuilder>( + getExplicitAnnotation(), + getParentForChildren(), + isClean()); + explicitAnnotation_ = null; + } + return explicitAnnotationBuilder_; + } + + private java.util.List textAnnotations_ = + java.util.Collections.emptyList(); + private void ensureTextAnnotationsIsMutable() { + if (!((bitField0_ & 0x00000040) == 0x00000040)) { + textAnnotations_ = new java.util.ArrayList(textAnnotations_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.TextAnnotation, com.google.cloud.videointelligence.v1p2beta1.TextAnnotation.Builder, com.google.cloud.videointelligence.v1p2beta1.TextAnnotationOrBuilder> textAnnotationsBuilder_; + + /** + *
+     * OCR text detection and tracking.
+     * Annotations for list of detected text snippets. Each will have list of
+     * frame information associated with it.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextAnnotation text_annotations = 12; + */ + public java.util.List getTextAnnotationsList() { + if (textAnnotationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(textAnnotations_); + } else { + return textAnnotationsBuilder_.getMessageList(); + } + } + /** + *
+     * OCR text detection and tracking.
+     * Annotations for list of detected text snippets. Each will have list of
+     * frame information associated with it.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextAnnotation text_annotations = 12; + */ + public int getTextAnnotationsCount() { + if (textAnnotationsBuilder_ == null) { + return textAnnotations_.size(); + } else { + return textAnnotationsBuilder_.getCount(); + } + } + /** + *
+     * OCR text detection and tracking.
+     * Annotations for list of detected text snippets. Each will have list of
+     * frame information associated with it.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextAnnotation text_annotations = 12; + */ + public com.google.cloud.videointelligence.v1p2beta1.TextAnnotation getTextAnnotations(int index) { + if (textAnnotationsBuilder_ == null) { + return textAnnotations_.get(index); + } else { + return textAnnotationsBuilder_.getMessage(index); + } + } + /** + *
+     * OCR text detection and tracking.
+     * Annotations for list of detected text snippets. Each will have list of
+     * frame information associated with it.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextAnnotation text_annotations = 12; + */ + public Builder setTextAnnotations( + int index, com.google.cloud.videointelligence.v1p2beta1.TextAnnotation value) { + if (textAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTextAnnotationsIsMutable(); + textAnnotations_.set(index, value); + onChanged(); + } else { + textAnnotationsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * OCR text detection and tracking.
+     * Annotations for list of detected text snippets. Each will have list of
+     * frame information associated with it.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextAnnotation text_annotations = 12; + */ + public Builder setTextAnnotations( + int index, com.google.cloud.videointelligence.v1p2beta1.TextAnnotation.Builder builderForValue) { + if (textAnnotationsBuilder_ == null) { + ensureTextAnnotationsIsMutable(); + textAnnotations_.set(index, builderForValue.build()); + onChanged(); + } else { + textAnnotationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * OCR text detection and tracking.
+     * Annotations for list of detected text snippets. Each will have list of
+     * frame information associated with it.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextAnnotation text_annotations = 12; + */ + public Builder addTextAnnotations(com.google.cloud.videointelligence.v1p2beta1.TextAnnotation value) { + if (textAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTextAnnotationsIsMutable(); + textAnnotations_.add(value); + onChanged(); + } else { + textAnnotationsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * OCR text detection and tracking.
+     * Annotations for list of detected text snippets. Each will have list of
+     * frame information associated with it.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextAnnotation text_annotations = 12; + */ + public Builder addTextAnnotations( + int index, com.google.cloud.videointelligence.v1p2beta1.TextAnnotation value) { + if (textAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTextAnnotationsIsMutable(); + textAnnotations_.add(index, value); + onChanged(); + } else { + textAnnotationsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * OCR text detection and tracking.
+     * Annotations for list of detected text snippets. Each will have list of
+     * frame information associated with it.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextAnnotation text_annotations = 12; + */ + public Builder addTextAnnotations( + com.google.cloud.videointelligence.v1p2beta1.TextAnnotation.Builder builderForValue) { + if (textAnnotationsBuilder_ == null) { + ensureTextAnnotationsIsMutable(); + textAnnotations_.add(builderForValue.build()); + onChanged(); + } else { + textAnnotationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * OCR text detection and tracking.
+     * Annotations for list of detected text snippets. Each will have list of
+     * frame information associated with it.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextAnnotation text_annotations = 12; + */ + public Builder addTextAnnotations( + int index, com.google.cloud.videointelligence.v1p2beta1.TextAnnotation.Builder builderForValue) { + if (textAnnotationsBuilder_ == null) { + ensureTextAnnotationsIsMutable(); + textAnnotations_.add(index, builderForValue.build()); + onChanged(); + } else { + textAnnotationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * OCR text detection and tracking.
+     * Annotations for list of detected text snippets. Each will have list of
+     * frame information associated with it.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextAnnotation text_annotations = 12; + */ + public Builder addAllTextAnnotations( + java.lang.Iterable values) { + if (textAnnotationsBuilder_ == null) { + ensureTextAnnotationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, textAnnotations_); + onChanged(); + } else { + textAnnotationsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * OCR text detection and tracking.
+     * Annotations for list of detected text snippets. Each will have list of
+     * frame information associated with it.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextAnnotation text_annotations = 12; + */ + public Builder clearTextAnnotations() { + if (textAnnotationsBuilder_ == null) { + textAnnotations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + textAnnotationsBuilder_.clear(); + } + return this; + } + /** + *
+     * OCR text detection and tracking.
+     * Annotations for list of detected text snippets. Each will have list of
+     * frame information associated with it.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextAnnotation text_annotations = 12; + */ + public Builder removeTextAnnotations(int index) { + if (textAnnotationsBuilder_ == null) { + ensureTextAnnotationsIsMutable(); + textAnnotations_.remove(index); + onChanged(); + } else { + textAnnotationsBuilder_.remove(index); + } + return this; + } + /** + *
+     * OCR text detection and tracking.
+     * Annotations for list of detected text snippets. Each will have list of
+     * frame information associated with it.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextAnnotation text_annotations = 12; + */ + public com.google.cloud.videointelligence.v1p2beta1.TextAnnotation.Builder getTextAnnotationsBuilder( + int index) { + return getTextAnnotationsFieldBuilder().getBuilder(index); + } + /** + *
+     * OCR text detection and tracking.
+     * Annotations for list of detected text snippets. Each will have list of
+     * frame information associated with it.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextAnnotation text_annotations = 12; + */ + public com.google.cloud.videointelligence.v1p2beta1.TextAnnotationOrBuilder getTextAnnotationsOrBuilder( + int index) { + if (textAnnotationsBuilder_ == null) { + return textAnnotations_.get(index); } else { + return textAnnotationsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * OCR text detection and tracking.
+     * Annotations for list of detected text snippets. Each will have list of
+     * frame information associated with it.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextAnnotation text_annotations = 12; + */ + public java.util.List + getTextAnnotationsOrBuilderList() { + if (textAnnotationsBuilder_ != null) { + return textAnnotationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(textAnnotations_); + } + } + /** + *
+     * OCR text detection and tracking.
+     * Annotations for list of detected text snippets. Each will have list of
+     * frame information associated with it.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextAnnotation text_annotations = 12; + */ + public com.google.cloud.videointelligence.v1p2beta1.TextAnnotation.Builder addTextAnnotationsBuilder() { + return getTextAnnotationsFieldBuilder().addBuilder( + com.google.cloud.videointelligence.v1p2beta1.TextAnnotation.getDefaultInstance()); + } + /** + *
+     * OCR text detection and tracking.
+     * Annotations for list of detected text snippets. Each will have list of
+     * frame information associated with it.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextAnnotation text_annotations = 12; + */ + public com.google.cloud.videointelligence.v1p2beta1.TextAnnotation.Builder addTextAnnotationsBuilder( + int index) { + return getTextAnnotationsFieldBuilder().addBuilder( + index, com.google.cloud.videointelligence.v1p2beta1.TextAnnotation.getDefaultInstance()); + } + /** + *
+     * OCR text detection and tracking.
+     * Annotations for list of detected text snippets. Each will have list of
+     * frame information associated with it.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextAnnotation text_annotations = 12; + */ + public java.util.List + getTextAnnotationsBuilderList() { + return getTextAnnotationsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.TextAnnotation, com.google.cloud.videointelligence.v1p2beta1.TextAnnotation.Builder, com.google.cloud.videointelligence.v1p2beta1.TextAnnotationOrBuilder> + getTextAnnotationsFieldBuilder() { + if (textAnnotationsBuilder_ == null) { + textAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.TextAnnotation, com.google.cloud.videointelligence.v1p2beta1.TextAnnotation.Builder, com.google.cloud.videointelligence.v1p2beta1.TextAnnotationOrBuilder>( + textAnnotations_, + ((bitField0_ & 0x00000040) == 0x00000040), + getParentForChildren(), + isClean()); + textAnnotations_ = null; + } + return textAnnotationsBuilder_; + } + + private java.util.List objectAnnotations_ = + java.util.Collections.emptyList(); + private void ensureObjectAnnotationsIsMutable() { + if (!((bitField0_ & 0x00000080) == 0x00000080)) { + objectAnnotations_ = new java.util.ArrayList(objectAnnotations_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation, com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation.Builder, com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotationOrBuilder> objectAnnotationsBuilder_; + + /** + *
+     * Annotations for list of objects detected and tracked in video.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation object_annotations = 14; + */ + public java.util.List getObjectAnnotationsList() { + if (objectAnnotationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(objectAnnotations_); + } else { + return objectAnnotationsBuilder_.getMessageList(); + } + } + /** + *
+     * Annotations for list of objects detected and tracked in video.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation object_annotations = 14; + */ + public int getObjectAnnotationsCount() { + if (objectAnnotationsBuilder_ == null) { + return objectAnnotations_.size(); + } else { + return objectAnnotationsBuilder_.getCount(); + } + } + /** + *
+     * Annotations for list of objects detected and tracked in video.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation object_annotations = 14; + */ + public com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation getObjectAnnotations(int index) { + if (objectAnnotationsBuilder_ == null) { + return objectAnnotations_.get(index); + } else { + return objectAnnotationsBuilder_.getMessage(index); + } + } + /** + *
+     * Annotations for list of objects detected and tracked in video.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation object_annotations = 14; + */ + public Builder setObjectAnnotations( + int index, com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation value) { + if (objectAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureObjectAnnotationsIsMutable(); + objectAnnotations_.set(index, value); + onChanged(); + } else { + objectAnnotationsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Annotations for list of objects detected and tracked in video.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation object_annotations = 14; + */ + public Builder setObjectAnnotations( + int index, com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation.Builder builderForValue) { + if (objectAnnotationsBuilder_ == null) { + ensureObjectAnnotationsIsMutable(); + objectAnnotations_.set(index, builderForValue.build()); + onChanged(); + } else { + objectAnnotationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Annotations for list of objects detected and tracked in video.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation object_annotations = 14; + */ + public Builder addObjectAnnotations(com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation value) { + if (objectAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureObjectAnnotationsIsMutable(); + objectAnnotations_.add(value); + onChanged(); + } else { + objectAnnotationsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Annotations for list of objects detected and tracked in video.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation object_annotations = 14; + */ + public Builder addObjectAnnotations( + int index, com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation value) { + if (objectAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureObjectAnnotationsIsMutable(); + objectAnnotations_.add(index, value); + onChanged(); + } else { + objectAnnotationsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Annotations for list of objects detected and tracked in video.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation object_annotations = 14; + */ + public Builder addObjectAnnotations( + com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation.Builder builderForValue) { + if (objectAnnotationsBuilder_ == null) { + ensureObjectAnnotationsIsMutable(); + objectAnnotations_.add(builderForValue.build()); + onChanged(); + } else { + objectAnnotationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Annotations for list of objects detected and tracked in video.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation object_annotations = 14; + */ + public Builder addObjectAnnotations( + int index, com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation.Builder builderForValue) { + if (objectAnnotationsBuilder_ == null) { + ensureObjectAnnotationsIsMutable(); + objectAnnotations_.add(index, builderForValue.build()); + onChanged(); + } else { + objectAnnotationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Annotations for list of objects detected and tracked in video.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation object_annotations = 14; + */ + public Builder addAllObjectAnnotations( + java.lang.Iterable values) { + if (objectAnnotationsBuilder_ == null) { + ensureObjectAnnotationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, objectAnnotations_); + onChanged(); + } else { + objectAnnotationsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Annotations for list of objects detected and tracked in video.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation object_annotations = 14; + */ + public Builder clearObjectAnnotations() { + if (objectAnnotationsBuilder_ == null) { + objectAnnotations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + objectAnnotationsBuilder_.clear(); + } + return this; + } + /** + *
+     * Annotations for list of objects detected and tracked in video.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation object_annotations = 14; + */ + public Builder removeObjectAnnotations(int index) { + if (objectAnnotationsBuilder_ == null) { + ensureObjectAnnotationsIsMutable(); + objectAnnotations_.remove(index); + onChanged(); + } else { + objectAnnotationsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Annotations for list of objects detected and tracked in video.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation object_annotations = 14; + */ + public com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation.Builder getObjectAnnotationsBuilder( + int index) { + return getObjectAnnotationsFieldBuilder().getBuilder(index); + } + /** + *
+     * Annotations for list of objects detected and tracked in video.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation object_annotations = 14; + */ + public com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotationOrBuilder getObjectAnnotationsOrBuilder( + int index) { + if (objectAnnotationsBuilder_ == null) { + return objectAnnotations_.get(index); } else { + return objectAnnotationsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Annotations for list of objects detected and tracked in video.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation object_annotations = 14; + */ + public java.util.List + getObjectAnnotationsOrBuilderList() { + if (objectAnnotationsBuilder_ != null) { + return objectAnnotationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(objectAnnotations_); + } + } + /** + *
+     * Annotations for list of objects detected and tracked in video.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation object_annotations = 14; + */ + public com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation.Builder addObjectAnnotationsBuilder() { + return getObjectAnnotationsFieldBuilder().addBuilder( + com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation.getDefaultInstance()); + } + /** + *
+     * Annotations for list of objects detected and tracked in video.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation object_annotations = 14; + */ + public com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation.Builder addObjectAnnotationsBuilder( + int index) { + return getObjectAnnotationsFieldBuilder().addBuilder( + index, com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation.getDefaultInstance()); + } + /** + *
+     * Annotations for list of objects detected and tracked in video.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation object_annotations = 14; + */ + public java.util.List + getObjectAnnotationsBuilderList() { + return getObjectAnnotationsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation, com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation.Builder, com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotationOrBuilder> + getObjectAnnotationsFieldBuilder() { + if (objectAnnotationsBuilder_ == null) { + objectAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation, com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation.Builder, com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotationOrBuilder>( + objectAnnotations_, + ((bitField0_ & 0x00000080) == 0x00000080), + getParentForChildren(), + isClean()); + objectAnnotations_ = null; + } + return objectAnnotationsBuilder_; + } + + private com.google.rpc.Status error_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_; + /** + *
+     * If set, indicates an error. Note that for a single `AnnotateVideoRequest`
+     * some videos may succeed and some may fail.
+     * 
+ * + * .google.rpc.Status error = 9; + */ + public boolean hasError() { + return errorBuilder_ != null || error_ != null; + } + /** + *
+     * If set, indicates an error. Note that for a single `AnnotateVideoRequest`
+     * some videos may succeed and some may fail.
+     * 
+ * + * .google.rpc.Status error = 9; + */ + public com.google.rpc.Status getError() { + if (errorBuilder_ == null) { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } else { + return errorBuilder_.getMessage(); + } + } + /** + *
+     * If set, indicates an error. Note that for a single `AnnotateVideoRequest`
+     * some videos may succeed and some may fail.
+     * 
+ * + * .google.rpc.Status error = 9; + */ + public Builder setError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + error_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * If set, indicates an error. Note that for a single `AnnotateVideoRequest`
+     * some videos may succeed and some may fail.
+     * 
+ * + * .google.rpc.Status error = 9; + */ + public Builder setError( + com.google.rpc.Status.Builder builderForValue) { + if (errorBuilder_ == null) { + error_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * If set, indicates an error. Note that for a single `AnnotateVideoRequest`
+     * some videos may succeed and some may fail.
+     * 
+ * + * .google.rpc.Status error = 9; + */ + public Builder mergeError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (error_ != null) { + error_ = + com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial(); + } else { + error_ = value; + } + onChanged(); + } else { + errorBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * If set, indicates an error. Note that for a single `AnnotateVideoRequest`
+     * some videos may succeed and some may fail.
+     * 
+ * + * .google.rpc.Status error = 9; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + error_ = null; + onChanged(); + } else { + error_ = null; + errorBuilder_ = null; + } + + return this; + } + /** + *
+     * If set, indicates an error. Note that for a single `AnnotateVideoRequest`
+     * some videos may succeed and some may fail.
+     * 
+ * + * .google.rpc.Status error = 9; + */ + public com.google.rpc.Status.Builder getErrorBuilder() { + + onChanged(); + return getErrorFieldBuilder().getBuilder(); + } + /** + *
+     * If set, indicates an error. Note that for a single `AnnotateVideoRequest`
+     * some videos may succeed and some may fail.
+     * 
+ * + * .google.rpc.Status error = 9; + */ + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + if (errorBuilder_ != null) { + return errorBuilder_.getMessageOrBuilder(); + } else { + return error_ == null ? + com.google.rpc.Status.getDefaultInstance() : error_; + } + } + /** + *
+     * If set, indicates an error. Note that for a single `AnnotateVideoRequest`
+     * some videos may succeed and some may fail.
+     * 
+ * + * .google.rpc.Status error = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getError(), + getParentForChildren(), + isClean()); + error_ = null; + } + return errorBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults) + private static final com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults(); + } + + public static com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VideoAnnotationResults parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VideoAnnotationResults(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoAnnotationResultsOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoAnnotationResultsOrBuilder.java new file mode 100644 index 000000000000..6ce991e4db10 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoAnnotationResultsOrBuilder.java @@ -0,0 +1,371 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +public interface VideoAnnotationResultsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Video file location in
+   * [Google Cloud Storage](https://cloud.google.com/storage/).
+   * 
+ * + * string input_uri = 1; + */ + java.lang.String getInputUri(); + /** + *
+   * Video file location in
+   * [Google Cloud Storage](https://cloud.google.com/storage/).
+   * 
+ * + * string input_uri = 1; + */ + com.google.protobuf.ByteString + getInputUriBytes(); + + /** + *
+   * Label annotations on video level or user specified segment level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation segment_label_annotations = 2; + */ + java.util.List + getSegmentLabelAnnotationsList(); + /** + *
+   * Label annotations on video level or user specified segment level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation segment_label_annotations = 2; + */ + com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation getSegmentLabelAnnotations(int index); + /** + *
+   * Label annotations on video level or user specified segment level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation segment_label_annotations = 2; + */ + int getSegmentLabelAnnotationsCount(); + /** + *
+   * Label annotations on video level or user specified segment level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation segment_label_annotations = 2; + */ + java.util.List + getSegmentLabelAnnotationsOrBuilderList(); + /** + *
+   * Label annotations on video level or user specified segment level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation segment_label_annotations = 2; + */ + com.google.cloud.videointelligence.v1p2beta1.LabelAnnotationOrBuilder getSegmentLabelAnnotationsOrBuilder( + int index); + + /** + *
+   * Label annotations on shot level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation shot_label_annotations = 3; + */ + java.util.List + getShotLabelAnnotationsList(); + /** + *
+   * Label annotations on shot level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation shot_label_annotations = 3; + */ + com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation getShotLabelAnnotations(int index); + /** + *
+   * Label annotations on shot level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation shot_label_annotations = 3; + */ + int getShotLabelAnnotationsCount(); + /** + *
+   * Label annotations on shot level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation shot_label_annotations = 3; + */ + java.util.List + getShotLabelAnnotationsOrBuilderList(); + /** + *
+   * Label annotations on shot level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation shot_label_annotations = 3; + */ + com.google.cloud.videointelligence.v1p2beta1.LabelAnnotationOrBuilder getShotLabelAnnotationsOrBuilder( + int index); + + /** + *
+   * Label annotations on frame level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation frame_label_annotations = 4; + */ + java.util.List + getFrameLabelAnnotationsList(); + /** + *
+   * Label annotations on frame level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation frame_label_annotations = 4; + */ + com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation getFrameLabelAnnotations(int index); + /** + *
+   * Label annotations on frame level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation frame_label_annotations = 4; + */ + int getFrameLabelAnnotationsCount(); + /** + *
+   * Label annotations on frame level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation frame_label_annotations = 4; + */ + java.util.List + getFrameLabelAnnotationsOrBuilderList(); + /** + *
+   * Label annotations on frame level.
+   * There is exactly one element for each unique label.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.LabelAnnotation frame_label_annotations = 4; + */ + com.google.cloud.videointelligence.v1p2beta1.LabelAnnotationOrBuilder getFrameLabelAnnotationsOrBuilder( + int index); + + /** + *
+   * Shot annotations. Each shot is represented as a video segment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment shot_annotations = 6; + */ + java.util.List + getShotAnnotationsList(); + /** + *
+   * Shot annotations. Each shot is represented as a video segment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment shot_annotations = 6; + */ + com.google.cloud.videointelligence.v1p2beta1.VideoSegment getShotAnnotations(int index); + /** + *
+   * Shot annotations. Each shot is represented as a video segment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment shot_annotations = 6; + */ + int getShotAnnotationsCount(); + /** + *
+   * Shot annotations. Each shot is represented as a video segment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment shot_annotations = 6; + */ + java.util.List + getShotAnnotationsOrBuilderList(); + /** + *
+   * Shot annotations. Each shot is represented as a video segment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment shot_annotations = 6; + */ + com.google.cloud.videointelligence.v1p2beta1.VideoSegmentOrBuilder getShotAnnotationsOrBuilder( + int index); + + /** + *
+   * Explicit content annotation.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation explicit_annotation = 7; + */ + boolean hasExplicitAnnotation(); + /** + *
+   * Explicit content annotation.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation explicit_annotation = 7; + */ + com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation getExplicitAnnotation(); + /** + *
+   * Explicit content annotation.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation explicit_annotation = 7; + */ + com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotationOrBuilder getExplicitAnnotationOrBuilder(); + + /** + *
+   * OCR text detection and tracking.
+   * Annotations for list of detected text snippets. Each will have list of
+   * frame information associated with it.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextAnnotation text_annotations = 12; + */ + java.util.List + getTextAnnotationsList(); + /** + *
+   * OCR text detection and tracking.
+   * Annotations for list of detected text snippets. Each will have list of
+   * frame information associated with it.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextAnnotation text_annotations = 12; + */ + com.google.cloud.videointelligence.v1p2beta1.TextAnnotation getTextAnnotations(int index); + /** + *
+   * OCR text detection and tracking.
+   * Annotations for list of detected text snippets. Each will have list of
+   * frame information associated with it.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextAnnotation text_annotations = 12; + */ + int getTextAnnotationsCount(); + /** + *
+   * OCR text detection and tracking.
+   * Annotations for list of detected text snippets. Each will have list of
+   * frame information associated with it.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextAnnotation text_annotations = 12; + */ + java.util.List + getTextAnnotationsOrBuilderList(); + /** + *
+   * OCR text detection and tracking.
+   * Annotations for list of detected text snippets. Each will have list of
+   * frame information associated with it.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.TextAnnotation text_annotations = 12; + */ + com.google.cloud.videointelligence.v1p2beta1.TextAnnotationOrBuilder getTextAnnotationsOrBuilder( + int index); + + /** + *
+   * Annotations for list of objects detected and tracked in video.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation object_annotations = 14; + */ + java.util.List + getObjectAnnotationsList(); + /** + *
+   * Annotations for list of objects detected and tracked in video.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation object_annotations = 14; + */ + com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation getObjectAnnotations(int index); + /** + *
+   * Annotations for list of objects detected and tracked in video.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation object_annotations = 14; + */ + int getObjectAnnotationsCount(); + /** + *
+   * Annotations for list of objects detected and tracked in video.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation object_annotations = 14; + */ + java.util.List + getObjectAnnotationsOrBuilderList(); + /** + *
+   * Annotations for list of objects detected and tracked in video.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation object_annotations = 14; + */ + com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotationOrBuilder getObjectAnnotationsOrBuilder( + int index); + + /** + *
+   * If set, indicates an error. Note that for a single `AnnotateVideoRequest`
+   * some videos may succeed and some may fail.
+   * 
+ * + * .google.rpc.Status error = 9; + */ + boolean hasError(); + /** + *
+   * If set, indicates an error. Note that for a single `AnnotateVideoRequest`
+   * some videos may succeed and some may fail.
+   * 
+ * + * .google.rpc.Status error = 9; + */ + com.google.rpc.Status getError(); + /** + *
+   * If set, indicates an error. Note that for a single `AnnotateVideoRequest`
+   * some videos may succeed and some may fail.
+   * 
+ * + * .google.rpc.Status error = 9; + */ + com.google.rpc.StatusOrBuilder getErrorOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoContext.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoContext.java new file mode 100644 index 000000000000..204a6bbf4ad5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoContext.java @@ -0,0 +1,1824 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +/** + *
+ * Video context and/or feature-specific parameters.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.VideoContext} + */ +public final class VideoContext extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p2beta1.VideoContext) + VideoContextOrBuilder { +private static final long serialVersionUID = 0L; + // Use VideoContext.newBuilder() to construct. + private VideoContext(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private VideoContext() { + segments_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private VideoContext( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + segments_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + segments_.add( + input.readMessage(com.google.cloud.videointelligence.v1p2beta1.VideoSegment.parser(), extensionRegistry)); + break; + } + case 18: { + com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig.Builder subBuilder = null; + if (labelDetectionConfig_ != null) { + subBuilder = labelDetectionConfig_.toBuilder(); + } + labelDetectionConfig_ = input.readMessage(com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(labelDetectionConfig_); + labelDetectionConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig.Builder subBuilder = null; + if (shotChangeDetectionConfig_ != null) { + subBuilder = shotChangeDetectionConfig_.toBuilder(); + } + shotChangeDetectionConfig_ = input.readMessage(com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(shotChangeDetectionConfig_); + shotChangeDetectionConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig.Builder subBuilder = null; + if (explicitContentDetectionConfig_ != null) { + subBuilder = explicitContentDetectionConfig_.toBuilder(); + } + explicitContentDetectionConfig_ = input.readMessage(com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(explicitContentDetectionConfig_); + explicitContentDetectionConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 66: { + com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig.Builder subBuilder = null; + if (textDetectionConfig_ != null) { + subBuilder = textDetectionConfig_.toBuilder(); + } + textDetectionConfig_ = input.readMessage(com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(textDetectionConfig_); + textDetectionConfig_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + segments_ = java.util.Collections.unmodifiableList(segments_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_VideoContext_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_VideoContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p2beta1.VideoContext.class, com.google.cloud.videointelligence.v1p2beta1.VideoContext.Builder.class); + } + + private int bitField0_; + public static final int SEGMENTS_FIELD_NUMBER = 1; + private java.util.List segments_; + /** + *
+   * Video segments to annotate. The segments may overlap and are not required
+   * to be contiguous or span the whole video. If unspecified, each video is
+   * treated as a single segment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment segments = 1; + */ + public java.util.List getSegmentsList() { + return segments_; + } + /** + *
+   * Video segments to annotate. The segments may overlap and are not required
+   * to be contiguous or span the whole video. If unspecified, each video is
+   * treated as a single segment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment segments = 1; + */ + public java.util.List + getSegmentsOrBuilderList() { + return segments_; + } + /** + *
+   * Video segments to annotate. The segments may overlap and are not required
+   * to be contiguous or span the whole video. If unspecified, each video is
+   * treated as a single segment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment segments = 1; + */ + public int getSegmentsCount() { + return segments_.size(); + } + /** + *
+   * Video segments to annotate. The segments may overlap and are not required
+   * to be contiguous or span the whole video. If unspecified, each video is
+   * treated as a single segment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment segments = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.VideoSegment getSegments(int index) { + return segments_.get(index); + } + /** + *
+   * Video segments to annotate. The segments may overlap and are not required
+   * to be contiguous or span the whole video. If unspecified, each video is
+   * treated as a single segment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment segments = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.VideoSegmentOrBuilder getSegmentsOrBuilder( + int index) { + return segments_.get(index); + } + + public static final int LABEL_DETECTION_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig labelDetectionConfig_; + /** + *
+   * Config for LABEL_DETECTION.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig label_detection_config = 2; + */ + public boolean hasLabelDetectionConfig() { + return labelDetectionConfig_ != null; + } + /** + *
+   * Config for LABEL_DETECTION.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig label_detection_config = 2; + */ + public com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig getLabelDetectionConfig() { + return labelDetectionConfig_ == null ? com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig.getDefaultInstance() : labelDetectionConfig_; + } + /** + *
+   * Config for LABEL_DETECTION.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig label_detection_config = 2; + */ + public com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfigOrBuilder getLabelDetectionConfigOrBuilder() { + return getLabelDetectionConfig(); + } + + public static final int SHOT_CHANGE_DETECTION_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig shotChangeDetectionConfig_; + /** + *
+   * Config for SHOT_CHANGE_DETECTION.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig shot_change_detection_config = 3; + */ + public boolean hasShotChangeDetectionConfig() { + return shotChangeDetectionConfig_ != null; + } + /** + *
+   * Config for SHOT_CHANGE_DETECTION.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig shot_change_detection_config = 3; + */ + public com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig getShotChangeDetectionConfig() { + return shotChangeDetectionConfig_ == null ? com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig.getDefaultInstance() : shotChangeDetectionConfig_; + } + /** + *
+   * Config for SHOT_CHANGE_DETECTION.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig shot_change_detection_config = 3; + */ + public com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfigOrBuilder getShotChangeDetectionConfigOrBuilder() { + return getShotChangeDetectionConfig(); + } + + public static final int EXPLICIT_CONTENT_DETECTION_CONFIG_FIELD_NUMBER = 4; + private com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig explicitContentDetectionConfig_; + /** + *
+   * Config for EXPLICIT_CONTENT_DETECTION.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; + */ + public boolean hasExplicitContentDetectionConfig() { + return explicitContentDetectionConfig_ != null; + } + /** + *
+   * Config for EXPLICIT_CONTENT_DETECTION.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; + */ + public com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig getExplicitContentDetectionConfig() { + return explicitContentDetectionConfig_ == null ? com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig.getDefaultInstance() : explicitContentDetectionConfig_; + } + /** + *
+   * Config for EXPLICIT_CONTENT_DETECTION.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; + */ + public com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfigOrBuilder getExplicitContentDetectionConfigOrBuilder() { + return getExplicitContentDetectionConfig(); + } + + public static final int TEXT_DETECTION_CONFIG_FIELD_NUMBER = 8; + private com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig textDetectionConfig_; + /** + *
+   * Config for TEXT_DETECTION.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.TextDetectionConfig text_detection_config = 8; + */ + public boolean hasTextDetectionConfig() { + return textDetectionConfig_ != null; + } + /** + *
+   * Config for TEXT_DETECTION.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.TextDetectionConfig text_detection_config = 8; + */ + public com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig getTextDetectionConfig() { + return textDetectionConfig_ == null ? com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig.getDefaultInstance() : textDetectionConfig_; + } + /** + *
+   * Config for TEXT_DETECTION.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.TextDetectionConfig text_detection_config = 8; + */ + public com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfigOrBuilder getTextDetectionConfigOrBuilder() { + return getTextDetectionConfig(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < segments_.size(); i++) { + output.writeMessage(1, segments_.get(i)); + } + if (labelDetectionConfig_ != null) { + output.writeMessage(2, getLabelDetectionConfig()); + } + if (shotChangeDetectionConfig_ != null) { + output.writeMessage(3, getShotChangeDetectionConfig()); + } + if (explicitContentDetectionConfig_ != null) { + output.writeMessage(4, getExplicitContentDetectionConfig()); + } + if (textDetectionConfig_ != null) { + output.writeMessage(8, getTextDetectionConfig()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < segments_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, segments_.get(i)); + } + if (labelDetectionConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getLabelDetectionConfig()); + } + if (shotChangeDetectionConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getShotChangeDetectionConfig()); + } + if (explicitContentDetectionConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getExplicitContentDetectionConfig()); + } + if (textDetectionConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getTextDetectionConfig()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1p2beta1.VideoContext)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p2beta1.VideoContext other = (com.google.cloud.videointelligence.v1p2beta1.VideoContext) obj; + + boolean result = true; + result = result && getSegmentsList() + .equals(other.getSegmentsList()); + result = result && (hasLabelDetectionConfig() == other.hasLabelDetectionConfig()); + if (hasLabelDetectionConfig()) { + result = result && getLabelDetectionConfig() + .equals(other.getLabelDetectionConfig()); + } + result = result && (hasShotChangeDetectionConfig() == other.hasShotChangeDetectionConfig()); + if (hasShotChangeDetectionConfig()) { + result = result && getShotChangeDetectionConfig() + .equals(other.getShotChangeDetectionConfig()); + } + result = result && (hasExplicitContentDetectionConfig() == other.hasExplicitContentDetectionConfig()); + if (hasExplicitContentDetectionConfig()) { + result = result && getExplicitContentDetectionConfig() + .equals(other.getExplicitContentDetectionConfig()); + } + result = result && (hasTextDetectionConfig() == other.hasTextDetectionConfig()); + if (hasTextDetectionConfig()) { + result = result && getTextDetectionConfig() + .equals(other.getTextDetectionConfig()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSegmentsCount() > 0) { + hash = (37 * hash) + SEGMENTS_FIELD_NUMBER; + hash = (53 * hash) + getSegmentsList().hashCode(); + } + if (hasLabelDetectionConfig()) { + hash = (37 * hash) + LABEL_DETECTION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getLabelDetectionConfig().hashCode(); + } + if (hasShotChangeDetectionConfig()) { + hash = (37 * hash) + SHOT_CHANGE_DETECTION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getShotChangeDetectionConfig().hashCode(); + } + if (hasExplicitContentDetectionConfig()) { + hash = (37 * hash) + EXPLICIT_CONTENT_DETECTION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getExplicitContentDetectionConfig().hashCode(); + } + if (hasTextDetectionConfig()) { + hash = (37 * hash) + TEXT_DETECTION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getTextDetectionConfig().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p2beta1.VideoContext parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.VideoContext parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.VideoContext parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.VideoContext parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.VideoContext parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.VideoContext parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.VideoContext parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.VideoContext parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.VideoContext parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.VideoContext parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.VideoContext parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.VideoContext parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.videointelligence.v1p2beta1.VideoContext prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Video context and/or feature-specific parameters.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.VideoContext} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p2beta1.VideoContext) + com.google.cloud.videointelligence.v1p2beta1.VideoContextOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_VideoContext_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_VideoContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p2beta1.VideoContext.class, com.google.cloud.videointelligence.v1p2beta1.VideoContext.Builder.class); + } + + // Construct using com.google.cloud.videointelligence.v1p2beta1.VideoContext.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getSegmentsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (segmentsBuilder_ == null) { + segments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + segmentsBuilder_.clear(); + } + if (labelDetectionConfigBuilder_ == null) { + labelDetectionConfig_ = null; + } else { + labelDetectionConfig_ = null; + labelDetectionConfigBuilder_ = null; + } + if (shotChangeDetectionConfigBuilder_ == null) { + shotChangeDetectionConfig_ = null; + } else { + shotChangeDetectionConfig_ = null; + shotChangeDetectionConfigBuilder_ = null; + } + if (explicitContentDetectionConfigBuilder_ == null) { + explicitContentDetectionConfig_ = null; + } else { + explicitContentDetectionConfig_ = null; + explicitContentDetectionConfigBuilder_ = null; + } + if (textDetectionConfigBuilder_ == null) { + textDetectionConfig_ = null; + } else { + textDetectionConfig_ = null; + textDetectionConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_VideoContext_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.VideoContext getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p2beta1.VideoContext.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.VideoContext build() { + com.google.cloud.videointelligence.v1p2beta1.VideoContext result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.VideoContext buildPartial() { + com.google.cloud.videointelligence.v1p2beta1.VideoContext result = new com.google.cloud.videointelligence.v1p2beta1.VideoContext(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (segmentsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + segments_ = java.util.Collections.unmodifiableList(segments_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.segments_ = segments_; + } else { + result.segments_ = segmentsBuilder_.build(); + } + if (labelDetectionConfigBuilder_ == null) { + result.labelDetectionConfig_ = labelDetectionConfig_; + } else { + result.labelDetectionConfig_ = labelDetectionConfigBuilder_.build(); + } + if (shotChangeDetectionConfigBuilder_ == null) { + result.shotChangeDetectionConfig_ = shotChangeDetectionConfig_; + } else { + result.shotChangeDetectionConfig_ = shotChangeDetectionConfigBuilder_.build(); + } + if (explicitContentDetectionConfigBuilder_ == null) { + result.explicitContentDetectionConfig_ = explicitContentDetectionConfig_; + } else { + result.explicitContentDetectionConfig_ = explicitContentDetectionConfigBuilder_.build(); + } + if (textDetectionConfigBuilder_ == null) { + result.textDetectionConfig_ = textDetectionConfig_; + } else { + result.textDetectionConfig_ = textDetectionConfigBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1p2beta1.VideoContext) { + return mergeFrom((com.google.cloud.videointelligence.v1p2beta1.VideoContext)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.videointelligence.v1p2beta1.VideoContext other) { + if (other == com.google.cloud.videointelligence.v1p2beta1.VideoContext.getDefaultInstance()) return this; + if (segmentsBuilder_ == null) { + if (!other.segments_.isEmpty()) { + if (segments_.isEmpty()) { + segments_ = other.segments_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSegmentsIsMutable(); + segments_.addAll(other.segments_); + } + onChanged(); + } + } else { + if (!other.segments_.isEmpty()) { + if (segmentsBuilder_.isEmpty()) { + segmentsBuilder_.dispose(); + segmentsBuilder_ = null; + segments_ = other.segments_; + bitField0_ = (bitField0_ & ~0x00000001); + segmentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSegmentsFieldBuilder() : null; + } else { + segmentsBuilder_.addAllMessages(other.segments_); + } + } + } + if (other.hasLabelDetectionConfig()) { + mergeLabelDetectionConfig(other.getLabelDetectionConfig()); + } + if (other.hasShotChangeDetectionConfig()) { + mergeShotChangeDetectionConfig(other.getShotChangeDetectionConfig()); + } + if (other.hasExplicitContentDetectionConfig()) { + mergeExplicitContentDetectionConfig(other.getExplicitContentDetectionConfig()); + } + if (other.hasTextDetectionConfig()) { + mergeTextDetectionConfig(other.getTextDetectionConfig()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p2beta1.VideoContext parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.videointelligence.v1p2beta1.VideoContext) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List segments_ = + java.util.Collections.emptyList(); + private void ensureSegmentsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + segments_ = new java.util.ArrayList(segments_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.VideoSegment, com.google.cloud.videointelligence.v1p2beta1.VideoSegment.Builder, com.google.cloud.videointelligence.v1p2beta1.VideoSegmentOrBuilder> segmentsBuilder_; + + /** + *
+     * Video segments to annotate. The segments may overlap and are not required
+     * to be contiguous or span the whole video. If unspecified, each video is
+     * treated as a single segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment segments = 1; + */ + public java.util.List getSegmentsList() { + if (segmentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(segments_); + } else { + return segmentsBuilder_.getMessageList(); + } + } + /** + *
+     * Video segments to annotate. The segments may overlap and are not required
+     * to be contiguous or span the whole video. If unspecified, each video is
+     * treated as a single segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment segments = 1; + */ + public int getSegmentsCount() { + if (segmentsBuilder_ == null) { + return segments_.size(); + } else { + return segmentsBuilder_.getCount(); + } + } + /** + *
+     * Video segments to annotate. The segments may overlap and are not required
+     * to be contiguous or span the whole video. If unspecified, each video is
+     * treated as a single segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment segments = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.VideoSegment getSegments(int index) { + if (segmentsBuilder_ == null) { + return segments_.get(index); + } else { + return segmentsBuilder_.getMessage(index); + } + } + /** + *
+     * Video segments to annotate. The segments may overlap and are not required
+     * to be contiguous or span the whole video. If unspecified, each video is
+     * treated as a single segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment segments = 1; + */ + public Builder setSegments( + int index, com.google.cloud.videointelligence.v1p2beta1.VideoSegment value) { + if (segmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSegmentsIsMutable(); + segments_.set(index, value); + onChanged(); + } else { + segmentsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Video segments to annotate. The segments may overlap and are not required
+     * to be contiguous or span the whole video. If unspecified, each video is
+     * treated as a single segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment segments = 1; + */ + public Builder setSegments( + int index, com.google.cloud.videointelligence.v1p2beta1.VideoSegment.Builder builderForValue) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + segments_.set(index, builderForValue.build()); + onChanged(); + } else { + segmentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Video segments to annotate. The segments may overlap and are not required
+     * to be contiguous or span the whole video. If unspecified, each video is
+     * treated as a single segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment segments = 1; + */ + public Builder addSegments(com.google.cloud.videointelligence.v1p2beta1.VideoSegment value) { + if (segmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSegmentsIsMutable(); + segments_.add(value); + onChanged(); + } else { + segmentsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Video segments to annotate. The segments may overlap and are not required
+     * to be contiguous or span the whole video. If unspecified, each video is
+     * treated as a single segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment segments = 1; + */ + public Builder addSegments( + int index, com.google.cloud.videointelligence.v1p2beta1.VideoSegment value) { + if (segmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSegmentsIsMutable(); + segments_.add(index, value); + onChanged(); + } else { + segmentsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Video segments to annotate. The segments may overlap and are not required
+     * to be contiguous or span the whole video. If unspecified, each video is
+     * treated as a single segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment segments = 1; + */ + public Builder addSegments( + com.google.cloud.videointelligence.v1p2beta1.VideoSegment.Builder builderForValue) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + segments_.add(builderForValue.build()); + onChanged(); + } else { + segmentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Video segments to annotate. The segments may overlap and are not required
+     * to be contiguous or span the whole video. If unspecified, each video is
+     * treated as a single segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment segments = 1; + */ + public Builder addSegments( + int index, com.google.cloud.videointelligence.v1p2beta1.VideoSegment.Builder builderForValue) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + segments_.add(index, builderForValue.build()); + onChanged(); + } else { + segmentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Video segments to annotate. The segments may overlap and are not required
+     * to be contiguous or span the whole video. If unspecified, each video is
+     * treated as a single segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment segments = 1; + */ + public Builder addAllSegments( + java.lang.Iterable values) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, segments_); + onChanged(); + } else { + segmentsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Video segments to annotate. The segments may overlap and are not required
+     * to be contiguous or span the whole video. If unspecified, each video is
+     * treated as a single segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment segments = 1; + */ + public Builder clearSegments() { + if (segmentsBuilder_ == null) { + segments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + segmentsBuilder_.clear(); + } + return this; + } + /** + *
+     * Video segments to annotate. The segments may overlap and are not required
+     * to be contiguous or span the whole video. If unspecified, each video is
+     * treated as a single segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment segments = 1; + */ + public Builder removeSegments(int index) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + segments_.remove(index); + onChanged(); + } else { + segmentsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Video segments to annotate. The segments may overlap and are not required
+     * to be contiguous or span the whole video. If unspecified, each video is
+     * treated as a single segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment segments = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.VideoSegment.Builder getSegmentsBuilder( + int index) { + return getSegmentsFieldBuilder().getBuilder(index); + } + /** + *
+     * Video segments to annotate. The segments may overlap and are not required
+     * to be contiguous or span the whole video. If unspecified, each video is
+     * treated as a single segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment segments = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.VideoSegmentOrBuilder getSegmentsOrBuilder( + int index) { + if (segmentsBuilder_ == null) { + return segments_.get(index); } else { + return segmentsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Video segments to annotate. The segments may overlap and are not required
+     * to be contiguous or span the whole video. If unspecified, each video is
+     * treated as a single segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment segments = 1; + */ + public java.util.List + getSegmentsOrBuilderList() { + if (segmentsBuilder_ != null) { + return segmentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(segments_); + } + } + /** + *
+     * Video segments to annotate. The segments may overlap and are not required
+     * to be contiguous or span the whole video. If unspecified, each video is
+     * treated as a single segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment segments = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.VideoSegment.Builder addSegmentsBuilder() { + return getSegmentsFieldBuilder().addBuilder( + com.google.cloud.videointelligence.v1p2beta1.VideoSegment.getDefaultInstance()); + } + /** + *
+     * Video segments to annotate. The segments may overlap and are not required
+     * to be contiguous or span the whole video. If unspecified, each video is
+     * treated as a single segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment segments = 1; + */ + public com.google.cloud.videointelligence.v1p2beta1.VideoSegment.Builder addSegmentsBuilder( + int index) { + return getSegmentsFieldBuilder().addBuilder( + index, com.google.cloud.videointelligence.v1p2beta1.VideoSegment.getDefaultInstance()); + } + /** + *
+     * Video segments to annotate. The segments may overlap and are not required
+     * to be contiguous or span the whole video. If unspecified, each video is
+     * treated as a single segment.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment segments = 1; + */ + public java.util.List + getSegmentsBuilderList() { + return getSegmentsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.VideoSegment, com.google.cloud.videointelligence.v1p2beta1.VideoSegment.Builder, com.google.cloud.videointelligence.v1p2beta1.VideoSegmentOrBuilder> + getSegmentsFieldBuilder() { + if (segmentsBuilder_ == null) { + segmentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.VideoSegment, com.google.cloud.videointelligence.v1p2beta1.VideoSegment.Builder, com.google.cloud.videointelligence.v1p2beta1.VideoSegmentOrBuilder>( + segments_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + segments_ = null; + } + return segmentsBuilder_; + } + + private com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig labelDetectionConfig_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig, com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig.Builder, com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfigOrBuilder> labelDetectionConfigBuilder_; + /** + *
+     * Config for LABEL_DETECTION.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig label_detection_config = 2; + */ + public boolean hasLabelDetectionConfig() { + return labelDetectionConfigBuilder_ != null || labelDetectionConfig_ != null; + } + /** + *
+     * Config for LABEL_DETECTION.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig label_detection_config = 2; + */ + public com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig getLabelDetectionConfig() { + if (labelDetectionConfigBuilder_ == null) { + return labelDetectionConfig_ == null ? com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig.getDefaultInstance() : labelDetectionConfig_; + } else { + return labelDetectionConfigBuilder_.getMessage(); + } + } + /** + *
+     * Config for LABEL_DETECTION.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig label_detection_config = 2; + */ + public Builder setLabelDetectionConfig(com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig value) { + if (labelDetectionConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + labelDetectionConfig_ = value; + onChanged(); + } else { + labelDetectionConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Config for LABEL_DETECTION.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig label_detection_config = 2; + */ + public Builder setLabelDetectionConfig( + com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig.Builder builderForValue) { + if (labelDetectionConfigBuilder_ == null) { + labelDetectionConfig_ = builderForValue.build(); + onChanged(); + } else { + labelDetectionConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Config for LABEL_DETECTION.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig label_detection_config = 2; + */ + public Builder mergeLabelDetectionConfig(com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig value) { + if (labelDetectionConfigBuilder_ == null) { + if (labelDetectionConfig_ != null) { + labelDetectionConfig_ = + com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig.newBuilder(labelDetectionConfig_).mergeFrom(value).buildPartial(); + } else { + labelDetectionConfig_ = value; + } + onChanged(); + } else { + labelDetectionConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Config for LABEL_DETECTION.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig label_detection_config = 2; + */ + public Builder clearLabelDetectionConfig() { + if (labelDetectionConfigBuilder_ == null) { + labelDetectionConfig_ = null; + onChanged(); + } else { + labelDetectionConfig_ = null; + labelDetectionConfigBuilder_ = null; + } + + return this; + } + /** + *
+     * Config for LABEL_DETECTION.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig label_detection_config = 2; + */ + public com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig.Builder getLabelDetectionConfigBuilder() { + + onChanged(); + return getLabelDetectionConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Config for LABEL_DETECTION.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig label_detection_config = 2; + */ + public com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfigOrBuilder getLabelDetectionConfigOrBuilder() { + if (labelDetectionConfigBuilder_ != null) { + return labelDetectionConfigBuilder_.getMessageOrBuilder(); + } else { + return labelDetectionConfig_ == null ? + com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig.getDefaultInstance() : labelDetectionConfig_; + } + } + /** + *
+     * Config for LABEL_DETECTION.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig label_detection_config = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig, com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig.Builder, com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfigOrBuilder> + getLabelDetectionConfigFieldBuilder() { + if (labelDetectionConfigBuilder_ == null) { + labelDetectionConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig, com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig.Builder, com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfigOrBuilder>( + getLabelDetectionConfig(), + getParentForChildren(), + isClean()); + labelDetectionConfig_ = null; + } + return labelDetectionConfigBuilder_; + } + + private com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig shotChangeDetectionConfig_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig, com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig.Builder, com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfigOrBuilder> shotChangeDetectionConfigBuilder_; + /** + *
+     * Config for SHOT_CHANGE_DETECTION.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig shot_change_detection_config = 3; + */ + public boolean hasShotChangeDetectionConfig() { + return shotChangeDetectionConfigBuilder_ != null || shotChangeDetectionConfig_ != null; + } + /** + *
+     * Config for SHOT_CHANGE_DETECTION.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig shot_change_detection_config = 3; + */ + public com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig getShotChangeDetectionConfig() { + if (shotChangeDetectionConfigBuilder_ == null) { + return shotChangeDetectionConfig_ == null ? com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig.getDefaultInstance() : shotChangeDetectionConfig_; + } else { + return shotChangeDetectionConfigBuilder_.getMessage(); + } + } + /** + *
+     * Config for SHOT_CHANGE_DETECTION.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig shot_change_detection_config = 3; + */ + public Builder setShotChangeDetectionConfig(com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig value) { + if (shotChangeDetectionConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + shotChangeDetectionConfig_ = value; + onChanged(); + } else { + shotChangeDetectionConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Config for SHOT_CHANGE_DETECTION.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig shot_change_detection_config = 3; + */ + public Builder setShotChangeDetectionConfig( + com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig.Builder builderForValue) { + if (shotChangeDetectionConfigBuilder_ == null) { + shotChangeDetectionConfig_ = builderForValue.build(); + onChanged(); + } else { + shotChangeDetectionConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Config for SHOT_CHANGE_DETECTION.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig shot_change_detection_config = 3; + */ + public Builder mergeShotChangeDetectionConfig(com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig value) { + if (shotChangeDetectionConfigBuilder_ == null) { + if (shotChangeDetectionConfig_ != null) { + shotChangeDetectionConfig_ = + com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig.newBuilder(shotChangeDetectionConfig_).mergeFrom(value).buildPartial(); + } else { + shotChangeDetectionConfig_ = value; + } + onChanged(); + } else { + shotChangeDetectionConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Config for SHOT_CHANGE_DETECTION.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig shot_change_detection_config = 3; + */ + public Builder clearShotChangeDetectionConfig() { + if (shotChangeDetectionConfigBuilder_ == null) { + shotChangeDetectionConfig_ = null; + onChanged(); + } else { + shotChangeDetectionConfig_ = null; + shotChangeDetectionConfigBuilder_ = null; + } + + return this; + } + /** + *
+     * Config for SHOT_CHANGE_DETECTION.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig shot_change_detection_config = 3; + */ + public com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig.Builder getShotChangeDetectionConfigBuilder() { + + onChanged(); + return getShotChangeDetectionConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Config for SHOT_CHANGE_DETECTION.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig shot_change_detection_config = 3; + */ + public com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfigOrBuilder getShotChangeDetectionConfigOrBuilder() { + if (shotChangeDetectionConfigBuilder_ != null) { + return shotChangeDetectionConfigBuilder_.getMessageOrBuilder(); + } else { + return shotChangeDetectionConfig_ == null ? + com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig.getDefaultInstance() : shotChangeDetectionConfig_; + } + } + /** + *
+     * Config for SHOT_CHANGE_DETECTION.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig shot_change_detection_config = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig, com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig.Builder, com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfigOrBuilder> + getShotChangeDetectionConfigFieldBuilder() { + if (shotChangeDetectionConfigBuilder_ == null) { + shotChangeDetectionConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig, com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig.Builder, com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfigOrBuilder>( + getShotChangeDetectionConfig(), + getParentForChildren(), + isClean()); + shotChangeDetectionConfig_ = null; + } + return shotChangeDetectionConfigBuilder_; + } + + private com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig explicitContentDetectionConfig_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig, com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig.Builder, com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfigOrBuilder> explicitContentDetectionConfigBuilder_; + /** + *
+     * Config for EXPLICIT_CONTENT_DETECTION.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; + */ + public boolean hasExplicitContentDetectionConfig() { + return explicitContentDetectionConfigBuilder_ != null || explicitContentDetectionConfig_ != null; + } + /** + *
+     * Config for EXPLICIT_CONTENT_DETECTION.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; + */ + public com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig getExplicitContentDetectionConfig() { + if (explicitContentDetectionConfigBuilder_ == null) { + return explicitContentDetectionConfig_ == null ? com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig.getDefaultInstance() : explicitContentDetectionConfig_; + } else { + return explicitContentDetectionConfigBuilder_.getMessage(); + } + } + /** + *
+     * Config for EXPLICIT_CONTENT_DETECTION.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; + */ + public Builder setExplicitContentDetectionConfig(com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig value) { + if (explicitContentDetectionConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + explicitContentDetectionConfig_ = value; + onChanged(); + } else { + explicitContentDetectionConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Config for EXPLICIT_CONTENT_DETECTION.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; + */ + public Builder setExplicitContentDetectionConfig( + com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig.Builder builderForValue) { + if (explicitContentDetectionConfigBuilder_ == null) { + explicitContentDetectionConfig_ = builderForValue.build(); + onChanged(); + } else { + explicitContentDetectionConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Config for EXPLICIT_CONTENT_DETECTION.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; + */ + public Builder mergeExplicitContentDetectionConfig(com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig value) { + if (explicitContentDetectionConfigBuilder_ == null) { + if (explicitContentDetectionConfig_ != null) { + explicitContentDetectionConfig_ = + com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig.newBuilder(explicitContentDetectionConfig_).mergeFrom(value).buildPartial(); + } else { + explicitContentDetectionConfig_ = value; + } + onChanged(); + } else { + explicitContentDetectionConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Config for EXPLICIT_CONTENT_DETECTION.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; + */ + public Builder clearExplicitContentDetectionConfig() { + if (explicitContentDetectionConfigBuilder_ == null) { + explicitContentDetectionConfig_ = null; + onChanged(); + } else { + explicitContentDetectionConfig_ = null; + explicitContentDetectionConfigBuilder_ = null; + } + + return this; + } + /** + *
+     * Config for EXPLICIT_CONTENT_DETECTION.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; + */ + public com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig.Builder getExplicitContentDetectionConfigBuilder() { + + onChanged(); + return getExplicitContentDetectionConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Config for EXPLICIT_CONTENT_DETECTION.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; + */ + public com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfigOrBuilder getExplicitContentDetectionConfigOrBuilder() { + if (explicitContentDetectionConfigBuilder_ != null) { + return explicitContentDetectionConfigBuilder_.getMessageOrBuilder(); + } else { + return explicitContentDetectionConfig_ == null ? + com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig.getDefaultInstance() : explicitContentDetectionConfig_; + } + } + /** + *
+     * Config for EXPLICIT_CONTENT_DETECTION.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig, com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig.Builder, com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfigOrBuilder> + getExplicitContentDetectionConfigFieldBuilder() { + if (explicitContentDetectionConfigBuilder_ == null) { + explicitContentDetectionConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig, com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig.Builder, com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfigOrBuilder>( + getExplicitContentDetectionConfig(), + getParentForChildren(), + isClean()); + explicitContentDetectionConfig_ = null; + } + return explicitContentDetectionConfigBuilder_; + } + + private com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig textDetectionConfig_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig, com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig.Builder, com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfigOrBuilder> textDetectionConfigBuilder_; + /** + *
+     * Config for TEXT_DETECTION.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.TextDetectionConfig text_detection_config = 8; + */ + public boolean hasTextDetectionConfig() { + return textDetectionConfigBuilder_ != null || textDetectionConfig_ != null; + } + /** + *
+     * Config for TEXT_DETECTION.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.TextDetectionConfig text_detection_config = 8; + */ + public com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig getTextDetectionConfig() { + if (textDetectionConfigBuilder_ == null) { + return textDetectionConfig_ == null ? com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig.getDefaultInstance() : textDetectionConfig_; + } else { + return textDetectionConfigBuilder_.getMessage(); + } + } + /** + *
+     * Config for TEXT_DETECTION.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.TextDetectionConfig text_detection_config = 8; + */ + public Builder setTextDetectionConfig(com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig value) { + if (textDetectionConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + textDetectionConfig_ = value; + onChanged(); + } else { + textDetectionConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Config for TEXT_DETECTION.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.TextDetectionConfig text_detection_config = 8; + */ + public Builder setTextDetectionConfig( + com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig.Builder builderForValue) { + if (textDetectionConfigBuilder_ == null) { + textDetectionConfig_ = builderForValue.build(); + onChanged(); + } else { + textDetectionConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Config for TEXT_DETECTION.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.TextDetectionConfig text_detection_config = 8; + */ + public Builder mergeTextDetectionConfig(com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig value) { + if (textDetectionConfigBuilder_ == null) { + if (textDetectionConfig_ != null) { + textDetectionConfig_ = + com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig.newBuilder(textDetectionConfig_).mergeFrom(value).buildPartial(); + } else { + textDetectionConfig_ = value; + } + onChanged(); + } else { + textDetectionConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Config for TEXT_DETECTION.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.TextDetectionConfig text_detection_config = 8; + */ + public Builder clearTextDetectionConfig() { + if (textDetectionConfigBuilder_ == null) { + textDetectionConfig_ = null; + onChanged(); + } else { + textDetectionConfig_ = null; + textDetectionConfigBuilder_ = null; + } + + return this; + } + /** + *
+     * Config for TEXT_DETECTION.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.TextDetectionConfig text_detection_config = 8; + */ + public com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig.Builder getTextDetectionConfigBuilder() { + + onChanged(); + return getTextDetectionConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Config for TEXT_DETECTION.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.TextDetectionConfig text_detection_config = 8; + */ + public com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfigOrBuilder getTextDetectionConfigOrBuilder() { + if (textDetectionConfigBuilder_ != null) { + return textDetectionConfigBuilder_.getMessageOrBuilder(); + } else { + return textDetectionConfig_ == null ? + com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig.getDefaultInstance() : textDetectionConfig_; + } + } + /** + *
+     * Config for TEXT_DETECTION.
+     * 
+ * + * .google.cloud.videointelligence.v1p2beta1.TextDetectionConfig text_detection_config = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig, com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig.Builder, com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfigOrBuilder> + getTextDetectionConfigFieldBuilder() { + if (textDetectionConfigBuilder_ == null) { + textDetectionConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig, com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig.Builder, com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfigOrBuilder>( + getTextDetectionConfig(), + getParentForChildren(), + isClean()); + textDetectionConfig_ = null; + } + return textDetectionConfigBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p2beta1.VideoContext) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.VideoContext) + private static final com.google.cloud.videointelligence.v1p2beta1.VideoContext DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p2beta1.VideoContext(); + } + + public static com.google.cloud.videointelligence.v1p2beta1.VideoContext getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VideoContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VideoContext(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.VideoContext getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoContextOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoContextOrBuilder.java new file mode 100644 index 000000000000..079cf04fdf32 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoContextOrBuilder.java @@ -0,0 +1,163 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +public interface VideoContextOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p2beta1.VideoContext) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Video segments to annotate. The segments may overlap and are not required
+   * to be contiguous or span the whole video. If unspecified, each video is
+   * treated as a single segment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment segments = 1; + */ + java.util.List + getSegmentsList(); + /** + *
+   * Video segments to annotate. The segments may overlap and are not required
+   * to be contiguous or span the whole video. If unspecified, each video is
+   * treated as a single segment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment segments = 1; + */ + com.google.cloud.videointelligence.v1p2beta1.VideoSegment getSegments(int index); + /** + *
+   * Video segments to annotate. The segments may overlap and are not required
+   * to be contiguous or span the whole video. If unspecified, each video is
+   * treated as a single segment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment segments = 1; + */ + int getSegmentsCount(); + /** + *
+   * Video segments to annotate. The segments may overlap and are not required
+   * to be contiguous or span the whole video. If unspecified, each video is
+   * treated as a single segment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment segments = 1; + */ + java.util.List + getSegmentsOrBuilderList(); + /** + *
+   * Video segments to annotate. The segments may overlap and are not required
+   * to be contiguous or span the whole video. If unspecified, each video is
+   * treated as a single segment.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p2beta1.VideoSegment segments = 1; + */ + com.google.cloud.videointelligence.v1p2beta1.VideoSegmentOrBuilder getSegmentsOrBuilder( + int index); + + /** + *
+   * Config for LABEL_DETECTION.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig label_detection_config = 2; + */ + boolean hasLabelDetectionConfig(); + /** + *
+   * Config for LABEL_DETECTION.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig label_detection_config = 2; + */ + com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig getLabelDetectionConfig(); + /** + *
+   * Config for LABEL_DETECTION.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig label_detection_config = 2; + */ + com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfigOrBuilder getLabelDetectionConfigOrBuilder(); + + /** + *
+   * Config for SHOT_CHANGE_DETECTION.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig shot_change_detection_config = 3; + */ + boolean hasShotChangeDetectionConfig(); + /** + *
+   * Config for SHOT_CHANGE_DETECTION.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig shot_change_detection_config = 3; + */ + com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig getShotChangeDetectionConfig(); + /** + *
+   * Config for SHOT_CHANGE_DETECTION.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig shot_change_detection_config = 3; + */ + com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfigOrBuilder getShotChangeDetectionConfigOrBuilder(); + + /** + *
+   * Config for EXPLICIT_CONTENT_DETECTION.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; + */ + boolean hasExplicitContentDetectionConfig(); + /** + *
+   * Config for EXPLICIT_CONTENT_DETECTION.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; + */ + com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig getExplicitContentDetectionConfig(); + /** + *
+   * Config for EXPLICIT_CONTENT_DETECTION.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; + */ + com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfigOrBuilder getExplicitContentDetectionConfigOrBuilder(); + + /** + *
+   * Config for TEXT_DETECTION.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.TextDetectionConfig text_detection_config = 8; + */ + boolean hasTextDetectionConfig(); + /** + *
+   * Config for TEXT_DETECTION.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.TextDetectionConfig text_detection_config = 8; + */ + com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig getTextDetectionConfig(); + /** + *
+   * Config for TEXT_DETECTION.
+   * 
+ * + * .google.cloud.videointelligence.v1p2beta1.TextDetectionConfig text_detection_config = 8; + */ + com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfigOrBuilder getTextDetectionConfigOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoIntelligenceServiceProto.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoIntelligenceServiceProto.java new file mode 100644 index 000000000000..3c70cb97ae47 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoIntelligenceServiceProto.java @@ -0,0 +1,467 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +public final class VideoIntelligenceServiceProto { + private VideoIntelligenceServiceProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p2beta1_AnnotateVideoRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p2beta1_AnnotateVideoRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p2beta1_VideoContext_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p2beta1_VideoContext_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p2beta1_LabelDetectionConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p2beta1_LabelDetectionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p2beta1_ShotChangeDetectionConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p2beta1_ShotChangeDetectionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p2beta1_ExplicitContentDetectionConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p2beta1_ExplicitContentDetectionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p2beta1_TextDetectionConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p2beta1_TextDetectionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p2beta1_VideoSegment_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p2beta1_VideoSegment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p2beta1_LabelSegment_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p2beta1_LabelSegment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p2beta1_LabelFrame_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p2beta1_LabelFrame_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p2beta1_Entity_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p2beta1_Entity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p2beta1_LabelAnnotation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p2beta1_LabelAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p2beta1_ExplicitContentFrame_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p2beta1_ExplicitContentFrame_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p2beta1_ExplicitContentAnnotation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p2beta1_ExplicitContentAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p2beta1_NormalizedBoundingBox_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p2beta1_NormalizedBoundingBox_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p2beta1_VideoAnnotationResults_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p2beta1_VideoAnnotationResults_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p2beta1_AnnotateVideoResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p2beta1_AnnotateVideoResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p2beta1_VideoAnnotationProgress_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p2beta1_VideoAnnotationProgress_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p2beta1_AnnotateVideoProgress_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p2beta1_AnnotateVideoProgress_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p2beta1_NormalizedVertex_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p2beta1_NormalizedVertex_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p2beta1_NormalizedBoundingPoly_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p2beta1_NormalizedBoundingPoly_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p2beta1_TextSegment_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p2beta1_TextSegment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p2beta1_TextFrame_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p2beta1_TextFrame_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p2beta1_TextAnnotation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p2beta1_TextAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p2beta1_ObjectTrackingFrame_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p2beta1_ObjectTrackingFrame_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p2beta1_ObjectTrackingAnnotation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p2beta1_ObjectTrackingAnnotation_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\nAgoogle/cloud/videointelligence/v1p2bet" + + "a1/video_intelligence.proto\022(google.clou" + + "d.videointelligence.v1p2beta1\032\034google/ap" + + "i/annotations.proto\032#google/longrunning/" + + "operations.proto\032\036google/protobuf/durati" + + "on.proto\032\037google/protobuf/timestamp.prot" + + "o\032\027google/rpc/status.proto\"\375\001\n\024AnnotateV" + + "ideoRequest\022\021\n\tinput_uri\030\001 \001(\t\022\025\n\rinput_" + + "content\030\006 \001(\014\022C\n\010features\030\002 \003(\01621.google" + + ".cloud.videointelligence.v1p2beta1.Featu" + + "re\022M\n\rvideo_context\030\003 \001(\01326.google.cloud" + + ".videointelligence.v1p2beta1.VideoContex" + + "t\022\022\n\noutput_uri\030\004 \001(\t\022\023\n\013location_id\030\005 \001" + + "(\t\"\366\003\n\014VideoContext\022H\n\010segments\030\001 \003(\01326." + + "google.cloud.videointelligence.v1p2beta1" + + ".VideoSegment\022^\n\026label_detection_config\030" + + "\002 \001(\0132>.google.cloud.videointelligence.v" + + "1p2beta1.LabelDetectionConfig\022i\n\034shot_ch" + + "ange_detection_config\030\003 \001(\0132C.google.clo" + + "ud.videointelligence.v1p2beta1.ShotChang" + + "eDetectionConfig\022s\n!explicit_content_det" + + "ection_config\030\004 \001(\0132H.google.cloud.video" + + "intelligence.v1p2beta1.ExplicitContentDe" + + "tectionConfig\022\\\n\025text_detection_config\030\010" + + " \001(\0132=.google.cloud.videointelligence.v1" + + "p2beta1.TextDetectionConfig\"\234\001\n\024LabelDet" + + "ectionConfig\022Z\n\024label_detection_mode\030\001 \001" + + "(\0162<.google.cloud.videointelligence.v1p2" + + "beta1.LabelDetectionMode\022\031\n\021stationary_c" + + "amera\030\002 \001(\010\022\r\n\005model\030\003 \001(\t\"*\n\031ShotChange" + + "DetectionConfig\022\r\n\005model\030\001 \001(\t\"/\n\036Explic" + + "itContentDetectionConfig\022\r\n\005model\030\001 \001(\t\"" + + "-\n\023TextDetectionConfig\022\026\n\016language_hints" + + "\030\001 \003(\t\"x\n\014VideoSegment\0224\n\021start_time_off" + + "set\030\001 \001(\0132\031.google.protobuf.Duration\0222\n\017" + + "end_time_offset\030\002 \001(\0132\031.google.protobuf." + + "Duration\"k\n\014LabelSegment\022G\n\007segment\030\001 \001(" + + "\01326.google.cloud.videointelligence.v1p2b" + + "eta1.VideoSegment\022\022\n\nconfidence\030\002 \001(\002\"P\n" + + "\nLabelFrame\022.\n\013time_offset\030\001 \001(\0132\031.googl" + + "e.protobuf.Duration\022\022\n\nconfidence\030\002 \001(\002\"" + + "G\n\006Entity\022\021\n\tentity_id\030\001 \001(\t\022\023\n\013descript" + + "ion\030\002 \001(\t\022\025\n\rlanguage_code\030\003 \001(\t\"\260\002\n\017Lab" + + "elAnnotation\022@\n\006entity\030\001 \001(\01320.google.cl" + + "oud.videointelligence.v1p2beta1.Entity\022K" + + "\n\021category_entities\030\002 \003(\01320.google.cloud" + + ".videointelligence.v1p2beta1.Entity\022H\n\010s" + + "egments\030\003 \003(\01326.google.cloud.videointell" + + "igence.v1p2beta1.LabelSegment\022D\n\006frames\030" + + "\004 \003(\01324.google.cloud.videointelligence.v" + + "1p2beta1.LabelFrame\"\234\001\n\024ExplicitContentF" + + "rame\022.\n\013time_offset\030\001 \001(\0132\031.google.proto" + + "buf.Duration\022T\n\026pornography_likelihood\030\002" + + " \001(\01624.google.cloud.videointelligence.v1" + + "p2beta1.Likelihood\"k\n\031ExplicitContentAnn" + + "otation\022N\n\006frames\030\001 \003(\0132>.google.cloud.v" + + "ideointelligence.v1p2beta1.ExplicitConte" + + "ntFrame\"Q\n\025NormalizedBoundingBox\022\014\n\004left" + + "\030\001 \001(\002\022\013\n\003top\030\002 \001(\002\022\r\n\005right\030\003 \001(\002\022\016\n\006bo" + + "ttom\030\004 \001(\002\"\313\005\n\026VideoAnnotationResults\022\021\n" + + "\tinput_uri\030\001 \001(\t\022\\\n\031segment_label_annota" + + "tions\030\002 \003(\01329.google.cloud.videointellig" + + "ence.v1p2beta1.LabelAnnotation\022Y\n\026shot_l" + + "abel_annotations\030\003 \003(\01329.google.cloud.vi" + + "deointelligence.v1p2beta1.LabelAnnotatio" + + "n\022Z\n\027frame_label_annotations\030\004 \003(\01329.goo" + + "gle.cloud.videointelligence.v1p2beta1.La" + + "belAnnotation\022P\n\020shot_annotations\030\006 \003(\0132" + + "6.google.cloud.videointelligence.v1p2bet" + + "a1.VideoSegment\022`\n\023explicit_annotation\030\007" + + " \001(\0132C.google.cloud.videointelligence.v1" + + "p2beta1.ExplicitContentAnnotation\022R\n\020tex" + + "t_annotations\030\014 \003(\01328.google.cloud.video" + + "intelligence.v1p2beta1.TextAnnotation\022^\n" + + "\022object_annotations\030\016 \003(\0132B.google.cloud" + + ".videointelligence.v1p2beta1.ObjectTrack" + + "ingAnnotation\022!\n\005error\030\t \001(\0132\022.google.rp" + + "c.Status\"u\n\025AnnotateVideoResponse\022\\\n\022ann" + + "otation_results\030\001 \003(\0132@.google.cloud.vid" + + "eointelligence.v1p2beta1.VideoAnnotation" + + "Results\"\247\001\n\027VideoAnnotationProgress\022\021\n\ti" + + "nput_uri\030\001 \001(\t\022\030\n\020progress_percent\030\002 \001(\005" + + "\022.\n\nstart_time\030\003 \001(\0132\032.google.protobuf.T" + + "imestamp\022/\n\013update_time\030\004 \001(\0132\032.google.p" + + "rotobuf.Timestamp\"w\n\025AnnotateVideoProgre" + + "ss\022^\n\023annotation_progress\030\001 \003(\0132A.google" + + ".cloud.videointelligence.v1p2beta1.Video" + + "AnnotationProgress\"(\n\020NormalizedVertex\022\t" + + "\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\"f\n\026NormalizedBoundi" + + "ngPoly\022L\n\010vertices\030\001 \003(\0132:.google.cloud." + + "videointelligence.v1p2beta1.NormalizedVe" + + "rtex\"V\n\013TextSegment\022G\n\007segment\030\001 \001(\01326.g" + + "oogle.cloud.videointelligence.v1p2beta1." + + "VideoSegment\"\233\001\n\tTextFrame\022^\n\024rotated_bo" + + "unding_box\030\001 \001(\0132@.google.cloud.videoint" + + "elligence.v1p2beta1.NormalizedBoundingPo" + + "ly\022.\n\013time_offset\030\002 \001(\0132\031.google.protobu" + + "f.Duration\"\300\001\n\016TextAnnotation\022\014\n\004text\030\001 " + + "\001(\t\022\022\n\nconfidence\030\002 \001(\002\022C\n\006frames\030\003 \003(\0132" + + "3.google.cloud.videointelligence.v1p2bet" + + "a1.TextFrame\022G\n\010segments\030\004 \003(\01325.google." + + "cloud.videointelligence.v1p2beta1.TextSe" + + "gment\"\247\001\n\023ObjectTrackingFrame\022`\n\027normali" + + "zed_bounding_box\030\001 \001(\0132?.google.cloud.vi" + + "deointelligence.v1p2beta1.NormalizedBoun" + + "dingBox\022.\n\013time_offset\030\002 \001(\0132\031.google.pr" + + "otobuf.Duration\"\210\002\n\030ObjectTrackingAnnota" + + "tion\022@\n\006entity\030\001 \001(\01320.google.cloud.vide" + + "ointelligence.v1p2beta1.Entity\022\022\n\nconfid" + + "ence\030\004 \001(\002\022M\n\006frames\030\002 \003(\0132=.google.clou" + + "d.videointelligence.v1p2beta1.ObjectTrac" + + "kingFrame\022G\n\007segment\030\003 \001(\01326.google.clou" + + "d.videointelligence.v1p2beta1.VideoSegme" + + "nt*\233\001\n\007Feature\022\027\n\023FEATURE_UNSPECIFIED\020\000\022" + + "\023\n\017LABEL_DETECTION\020\001\022\031\n\025SHOT_CHANGE_DETE" + + "CTION\020\002\022\036\n\032EXPLICIT_CONTENT_DETECTION\020\003\022" + + "\022\n\016TEXT_DETECTION\020\007\022\023\n\017OBJECT_TRACKING\020\t" + + "*r\n\022LabelDetectionMode\022$\n LABEL_DETECTIO" + + "N_MODE_UNSPECIFIED\020\000\022\r\n\tSHOT_MODE\020\001\022\016\n\nF" + + "RAME_MODE\020\002\022\027\n\023SHOT_AND_FRAME_MODE\020\003*t\n\n" + + "Likelihood\022\032\n\026LIKELIHOOD_UNSPECIFIED\020\000\022\021" + + "\n\rVERY_UNLIKELY\020\001\022\014\n\010UNLIKELY\020\002\022\014\n\010POSSI" + + "BLE\020\003\022\n\n\006LIKELY\020\004\022\017\n\013VERY_LIKELY\020\0052\262\001\n\030V" + + "ideoIntelligenceService\022\225\001\n\rAnnotateVide" + + "o\022>.google.cloud.videointelligence.v1p2b" + + "eta1.AnnotateVideoRequest\032\035.google.longr" + + "unning.Operation\"%\202\323\344\223\002\037\"\032/v1p2beta1/vid" + + "eos:annotate:\001*B\200\002\n,com.google.cloud.vid" + + "eointelligence.v1p2beta1B\035VideoIntellige" + + "nceServiceProtoP\001ZYgoogle.golang.org/gen" + + "proto/googleapis/cloud/videointelligence" + + "/v1p2beta1;videointelligence\252\002(Google.Cl" + + "oud.VideoIntelligence.V1P2Beta1\312\002(Google" + + "\\Cloud\\VideoIntelligence\\V1p2beta1b\006prot" + + "o3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }, assigner); + internal_static_google_cloud_videointelligence_v1p2beta1_AnnotateVideoRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_videointelligence_v1p2beta1_AnnotateVideoRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p2beta1_AnnotateVideoRequest_descriptor, + new java.lang.String[] { "InputUri", "InputContent", "Features", "VideoContext", "OutputUri", "LocationId", }); + internal_static_google_cloud_videointelligence_v1p2beta1_VideoContext_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_videointelligence_v1p2beta1_VideoContext_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p2beta1_VideoContext_descriptor, + new java.lang.String[] { "Segments", "LabelDetectionConfig", "ShotChangeDetectionConfig", "ExplicitContentDetectionConfig", "TextDetectionConfig", }); + internal_static_google_cloud_videointelligence_v1p2beta1_LabelDetectionConfig_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_videointelligence_v1p2beta1_LabelDetectionConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p2beta1_LabelDetectionConfig_descriptor, + new java.lang.String[] { "LabelDetectionMode", "StationaryCamera", "Model", }); + internal_static_google_cloud_videointelligence_v1p2beta1_ShotChangeDetectionConfig_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_videointelligence_v1p2beta1_ShotChangeDetectionConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p2beta1_ShotChangeDetectionConfig_descriptor, + new java.lang.String[] { "Model", }); + internal_static_google_cloud_videointelligence_v1p2beta1_ExplicitContentDetectionConfig_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_videointelligence_v1p2beta1_ExplicitContentDetectionConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p2beta1_ExplicitContentDetectionConfig_descriptor, + new java.lang.String[] { "Model", }); + internal_static_google_cloud_videointelligence_v1p2beta1_TextDetectionConfig_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_videointelligence_v1p2beta1_TextDetectionConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p2beta1_TextDetectionConfig_descriptor, + new java.lang.String[] { "LanguageHints", }); + internal_static_google_cloud_videointelligence_v1p2beta1_VideoSegment_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_videointelligence_v1p2beta1_VideoSegment_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p2beta1_VideoSegment_descriptor, + new java.lang.String[] { "StartTimeOffset", "EndTimeOffset", }); + internal_static_google_cloud_videointelligence_v1p2beta1_LabelSegment_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_videointelligence_v1p2beta1_LabelSegment_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p2beta1_LabelSegment_descriptor, + new java.lang.String[] { "Segment", "Confidence", }); + internal_static_google_cloud_videointelligence_v1p2beta1_LabelFrame_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_videointelligence_v1p2beta1_LabelFrame_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p2beta1_LabelFrame_descriptor, + new java.lang.String[] { "TimeOffset", "Confidence", }); + internal_static_google_cloud_videointelligence_v1p2beta1_Entity_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_videointelligence_v1p2beta1_Entity_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p2beta1_Entity_descriptor, + new java.lang.String[] { "EntityId", "Description", "LanguageCode", }); + internal_static_google_cloud_videointelligence_v1p2beta1_LabelAnnotation_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_videointelligence_v1p2beta1_LabelAnnotation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p2beta1_LabelAnnotation_descriptor, + new java.lang.String[] { "Entity", "CategoryEntities", "Segments", "Frames", }); + internal_static_google_cloud_videointelligence_v1p2beta1_ExplicitContentFrame_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_videointelligence_v1p2beta1_ExplicitContentFrame_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p2beta1_ExplicitContentFrame_descriptor, + new java.lang.String[] { "TimeOffset", "PornographyLikelihood", }); + internal_static_google_cloud_videointelligence_v1p2beta1_ExplicitContentAnnotation_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_videointelligence_v1p2beta1_ExplicitContentAnnotation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p2beta1_ExplicitContentAnnotation_descriptor, + new java.lang.String[] { "Frames", }); + internal_static_google_cloud_videointelligence_v1p2beta1_NormalizedBoundingBox_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_videointelligence_v1p2beta1_NormalizedBoundingBox_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p2beta1_NormalizedBoundingBox_descriptor, + new java.lang.String[] { "Left", "Top", "Right", "Bottom", }); + internal_static_google_cloud_videointelligence_v1p2beta1_VideoAnnotationResults_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_videointelligence_v1p2beta1_VideoAnnotationResults_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p2beta1_VideoAnnotationResults_descriptor, + new java.lang.String[] { "InputUri", "SegmentLabelAnnotations", "ShotLabelAnnotations", "FrameLabelAnnotations", "ShotAnnotations", "ExplicitAnnotation", "TextAnnotations", "ObjectAnnotations", "Error", }); + internal_static_google_cloud_videointelligence_v1p2beta1_AnnotateVideoResponse_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_videointelligence_v1p2beta1_AnnotateVideoResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p2beta1_AnnotateVideoResponse_descriptor, + new java.lang.String[] { "AnnotationResults", }); + internal_static_google_cloud_videointelligence_v1p2beta1_VideoAnnotationProgress_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_videointelligence_v1p2beta1_VideoAnnotationProgress_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p2beta1_VideoAnnotationProgress_descriptor, + new java.lang.String[] { "InputUri", "ProgressPercent", "StartTime", "UpdateTime", }); + internal_static_google_cloud_videointelligence_v1p2beta1_AnnotateVideoProgress_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_videointelligence_v1p2beta1_AnnotateVideoProgress_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p2beta1_AnnotateVideoProgress_descriptor, + new java.lang.String[] { "AnnotationProgress", }); + internal_static_google_cloud_videointelligence_v1p2beta1_NormalizedVertex_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_videointelligence_v1p2beta1_NormalizedVertex_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p2beta1_NormalizedVertex_descriptor, + new java.lang.String[] { "X", "Y", }); + internal_static_google_cloud_videointelligence_v1p2beta1_NormalizedBoundingPoly_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_videointelligence_v1p2beta1_NormalizedBoundingPoly_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p2beta1_NormalizedBoundingPoly_descriptor, + new java.lang.String[] { "Vertices", }); + internal_static_google_cloud_videointelligence_v1p2beta1_TextSegment_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_videointelligence_v1p2beta1_TextSegment_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p2beta1_TextSegment_descriptor, + new java.lang.String[] { "Segment", }); + internal_static_google_cloud_videointelligence_v1p2beta1_TextFrame_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_videointelligence_v1p2beta1_TextFrame_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p2beta1_TextFrame_descriptor, + new java.lang.String[] { "RotatedBoundingBox", "TimeOffset", }); + internal_static_google_cloud_videointelligence_v1p2beta1_TextAnnotation_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_videointelligence_v1p2beta1_TextAnnotation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p2beta1_TextAnnotation_descriptor, + new java.lang.String[] { "Text", "Confidence", "Frames", "Segments", }); + internal_static_google_cloud_videointelligence_v1p2beta1_ObjectTrackingFrame_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_videointelligence_v1p2beta1_ObjectTrackingFrame_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p2beta1_ObjectTrackingFrame_descriptor, + new java.lang.String[] { "NormalizedBoundingBox", "TimeOffset", }); + internal_static_google_cloud_videointelligence_v1p2beta1_ObjectTrackingAnnotation_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_videointelligence_v1p2beta1_ObjectTrackingAnnotation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p2beta1_ObjectTrackingAnnotation_descriptor, + new java.lang.String[] { "Entity", "Confidence", "Frames", "Segment", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.AnnotationsProto.http); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoSegment.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoSegment.java new file mode 100644 index 000000000000..64cfcbefe426 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoSegment.java @@ -0,0 +1,904 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +/** + *
+ * Video segment.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.VideoSegment} + */ +public final class VideoSegment extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p2beta1.VideoSegment) + VideoSegmentOrBuilder { +private static final long serialVersionUID = 0L; + // Use VideoSegment.newBuilder() to construct. + private VideoSegment(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private VideoSegment() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private VideoSegment( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (startTimeOffset_ != null) { + subBuilder = startTimeOffset_.toBuilder(); + } + startTimeOffset_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTimeOffset_); + startTimeOffset_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (endTimeOffset_ != null) { + subBuilder = endTimeOffset_.toBuilder(); + } + endTimeOffset_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTimeOffset_); + endTimeOffset_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_VideoSegment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_VideoSegment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p2beta1.VideoSegment.class, com.google.cloud.videointelligence.v1p2beta1.VideoSegment.Builder.class); + } + + public static final int START_TIME_OFFSET_FIELD_NUMBER = 1; + private com.google.protobuf.Duration startTimeOffset_; + /** + *
+   * Time-offset, relative to the beginning of the video,
+   * corresponding to the start of the segment (inclusive).
+   * 
+ * + * .google.protobuf.Duration start_time_offset = 1; + */ + public boolean hasStartTimeOffset() { + return startTimeOffset_ != null; + } + /** + *
+   * Time-offset, relative to the beginning of the video,
+   * corresponding to the start of the segment (inclusive).
+   * 
+ * + * .google.protobuf.Duration start_time_offset = 1; + */ + public com.google.protobuf.Duration getStartTimeOffset() { + return startTimeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : startTimeOffset_; + } + /** + *
+   * Time-offset, relative to the beginning of the video,
+   * corresponding to the start of the segment (inclusive).
+   * 
+ * + * .google.protobuf.Duration start_time_offset = 1; + */ + public com.google.protobuf.DurationOrBuilder getStartTimeOffsetOrBuilder() { + return getStartTimeOffset(); + } + + public static final int END_TIME_OFFSET_FIELD_NUMBER = 2; + private com.google.protobuf.Duration endTimeOffset_; + /** + *
+   * Time-offset, relative to the beginning of the video,
+   * corresponding to the end of the segment (inclusive).
+   * 
+ * + * .google.protobuf.Duration end_time_offset = 2; + */ + public boolean hasEndTimeOffset() { + return endTimeOffset_ != null; + } + /** + *
+   * Time-offset, relative to the beginning of the video,
+   * corresponding to the end of the segment (inclusive).
+   * 
+ * + * .google.protobuf.Duration end_time_offset = 2; + */ + public com.google.protobuf.Duration getEndTimeOffset() { + return endTimeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : endTimeOffset_; + } + /** + *
+   * Time-offset, relative to the beginning of the video,
+   * corresponding to the end of the segment (inclusive).
+   * 
+ * + * .google.protobuf.Duration end_time_offset = 2; + */ + public com.google.protobuf.DurationOrBuilder getEndTimeOffsetOrBuilder() { + return getEndTimeOffset(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (startTimeOffset_ != null) { + output.writeMessage(1, getStartTimeOffset()); + } + if (endTimeOffset_ != null) { + output.writeMessage(2, getEndTimeOffset()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (startTimeOffset_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStartTimeOffset()); + } + if (endTimeOffset_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTimeOffset()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.videointelligence.v1p2beta1.VideoSegment)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p2beta1.VideoSegment other = (com.google.cloud.videointelligence.v1p2beta1.VideoSegment) obj; + + boolean result = true; + result = result && (hasStartTimeOffset() == other.hasStartTimeOffset()); + if (hasStartTimeOffset()) { + result = result && getStartTimeOffset() + .equals(other.getStartTimeOffset()); + } + result = result && (hasEndTimeOffset() == other.hasEndTimeOffset()); + if (hasEndTimeOffset()) { + result = result && getEndTimeOffset() + .equals(other.getEndTimeOffset()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStartTimeOffset()) { + hash = (37 * hash) + START_TIME_OFFSET_FIELD_NUMBER; + hash = (53 * hash) + getStartTimeOffset().hashCode(); + } + if (hasEndTimeOffset()) { + hash = (37 * hash) + END_TIME_OFFSET_FIELD_NUMBER; + hash = (53 * hash) + getEndTimeOffset().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p2beta1.VideoSegment parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.VideoSegment parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.VideoSegment parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.VideoSegment parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.VideoSegment parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.videointelligence.v1p2beta1.VideoSegment parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.VideoSegment parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.VideoSegment parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.VideoSegment parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.VideoSegment parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.videointelligence.v1p2beta1.VideoSegment parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.videointelligence.v1p2beta1.VideoSegment parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.videointelligence.v1p2beta1.VideoSegment prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Video segment.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.VideoSegment} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p2beta1.VideoSegment) + com.google.cloud.videointelligence.v1p2beta1.VideoSegmentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_VideoSegment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_VideoSegment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p2beta1.VideoSegment.class, com.google.cloud.videointelligence.v1p2beta1.VideoSegment.Builder.class); + } + + // Construct using com.google.cloud.videointelligence.v1p2beta1.VideoSegment.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (startTimeOffsetBuilder_ == null) { + startTimeOffset_ = null; + } else { + startTimeOffset_ = null; + startTimeOffsetBuilder_ = null; + } + if (endTimeOffsetBuilder_ == null) { + endTimeOffset_ = null; + } else { + endTimeOffset_ = null; + endTimeOffsetBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceProto.internal_static_google_cloud_videointelligence_v1p2beta1_VideoSegment_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.VideoSegment getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p2beta1.VideoSegment.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.VideoSegment build() { + com.google.cloud.videointelligence.v1p2beta1.VideoSegment result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.VideoSegment buildPartial() { + com.google.cloud.videointelligence.v1p2beta1.VideoSegment result = new com.google.cloud.videointelligence.v1p2beta1.VideoSegment(this); + if (startTimeOffsetBuilder_ == null) { + result.startTimeOffset_ = startTimeOffset_; + } else { + result.startTimeOffset_ = startTimeOffsetBuilder_.build(); + } + if (endTimeOffsetBuilder_ == null) { + result.endTimeOffset_ = endTimeOffset_; + } else { + result.endTimeOffset_ = endTimeOffsetBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1p2beta1.VideoSegment) { + return mergeFrom((com.google.cloud.videointelligence.v1p2beta1.VideoSegment)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.videointelligence.v1p2beta1.VideoSegment other) { + if (other == com.google.cloud.videointelligence.v1p2beta1.VideoSegment.getDefaultInstance()) return this; + if (other.hasStartTimeOffset()) { + mergeStartTimeOffset(other.getStartTimeOffset()); + } + if (other.hasEndTimeOffset()) { + mergeEndTimeOffset(other.getEndTimeOffset()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.videointelligence.v1p2beta1.VideoSegment parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.videointelligence.v1p2beta1.VideoSegment) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.Duration startTimeOffset_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> startTimeOffsetBuilder_; + /** + *
+     * Time-offset, relative to the beginning of the video,
+     * corresponding to the start of the segment (inclusive).
+     * 
+ * + * .google.protobuf.Duration start_time_offset = 1; + */ + public boolean hasStartTimeOffset() { + return startTimeOffsetBuilder_ != null || startTimeOffset_ != null; + } + /** + *
+     * Time-offset, relative to the beginning of the video,
+     * corresponding to the start of the segment (inclusive).
+     * 
+ * + * .google.protobuf.Duration start_time_offset = 1; + */ + public com.google.protobuf.Duration getStartTimeOffset() { + if (startTimeOffsetBuilder_ == null) { + return startTimeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : startTimeOffset_; + } else { + return startTimeOffsetBuilder_.getMessage(); + } + } + /** + *
+     * Time-offset, relative to the beginning of the video,
+     * corresponding to the start of the segment (inclusive).
+     * 
+ * + * .google.protobuf.Duration start_time_offset = 1; + */ + public Builder setStartTimeOffset(com.google.protobuf.Duration value) { + if (startTimeOffsetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTimeOffset_ = value; + onChanged(); + } else { + startTimeOffsetBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Time-offset, relative to the beginning of the video,
+     * corresponding to the start of the segment (inclusive).
+     * 
+ * + * .google.protobuf.Duration start_time_offset = 1; + */ + public Builder setStartTimeOffset( + com.google.protobuf.Duration.Builder builderForValue) { + if (startTimeOffsetBuilder_ == null) { + startTimeOffset_ = builderForValue.build(); + onChanged(); + } else { + startTimeOffsetBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Time-offset, relative to the beginning of the video,
+     * corresponding to the start of the segment (inclusive).
+     * 
+ * + * .google.protobuf.Duration start_time_offset = 1; + */ + public Builder mergeStartTimeOffset(com.google.protobuf.Duration value) { + if (startTimeOffsetBuilder_ == null) { + if (startTimeOffset_ != null) { + startTimeOffset_ = + com.google.protobuf.Duration.newBuilder(startTimeOffset_).mergeFrom(value).buildPartial(); + } else { + startTimeOffset_ = value; + } + onChanged(); + } else { + startTimeOffsetBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Time-offset, relative to the beginning of the video,
+     * corresponding to the start of the segment (inclusive).
+     * 
+ * + * .google.protobuf.Duration start_time_offset = 1; + */ + public Builder clearStartTimeOffset() { + if (startTimeOffsetBuilder_ == null) { + startTimeOffset_ = null; + onChanged(); + } else { + startTimeOffset_ = null; + startTimeOffsetBuilder_ = null; + } + + return this; + } + /** + *
+     * Time-offset, relative to the beginning of the video,
+     * corresponding to the start of the segment (inclusive).
+     * 
+ * + * .google.protobuf.Duration start_time_offset = 1; + */ + public com.google.protobuf.Duration.Builder getStartTimeOffsetBuilder() { + + onChanged(); + return getStartTimeOffsetFieldBuilder().getBuilder(); + } + /** + *
+     * Time-offset, relative to the beginning of the video,
+     * corresponding to the start of the segment (inclusive).
+     * 
+ * + * .google.protobuf.Duration start_time_offset = 1; + */ + public com.google.protobuf.DurationOrBuilder getStartTimeOffsetOrBuilder() { + if (startTimeOffsetBuilder_ != null) { + return startTimeOffsetBuilder_.getMessageOrBuilder(); + } else { + return startTimeOffset_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : startTimeOffset_; + } + } + /** + *
+     * Time-offset, relative to the beginning of the video,
+     * corresponding to the start of the segment (inclusive).
+     * 
+ * + * .google.protobuf.Duration start_time_offset = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getStartTimeOffsetFieldBuilder() { + if (startTimeOffsetBuilder_ == null) { + startTimeOffsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getStartTimeOffset(), + getParentForChildren(), + isClean()); + startTimeOffset_ = null; + } + return startTimeOffsetBuilder_; + } + + private com.google.protobuf.Duration endTimeOffset_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> endTimeOffsetBuilder_; + /** + *
+     * Time-offset, relative to the beginning of the video,
+     * corresponding to the end of the segment (inclusive).
+     * 
+ * + * .google.protobuf.Duration end_time_offset = 2; + */ + public boolean hasEndTimeOffset() { + return endTimeOffsetBuilder_ != null || endTimeOffset_ != null; + } + /** + *
+     * Time-offset, relative to the beginning of the video,
+     * corresponding to the end of the segment (inclusive).
+     * 
+ * + * .google.protobuf.Duration end_time_offset = 2; + */ + public com.google.protobuf.Duration getEndTimeOffset() { + if (endTimeOffsetBuilder_ == null) { + return endTimeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : endTimeOffset_; + } else { + return endTimeOffsetBuilder_.getMessage(); + } + } + /** + *
+     * Time-offset, relative to the beginning of the video,
+     * corresponding to the end of the segment (inclusive).
+     * 
+ * + * .google.protobuf.Duration end_time_offset = 2; + */ + public Builder setEndTimeOffset(com.google.protobuf.Duration value) { + if (endTimeOffsetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTimeOffset_ = value; + onChanged(); + } else { + endTimeOffsetBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Time-offset, relative to the beginning of the video,
+     * corresponding to the end of the segment (inclusive).
+     * 
+ * + * .google.protobuf.Duration end_time_offset = 2; + */ + public Builder setEndTimeOffset( + com.google.protobuf.Duration.Builder builderForValue) { + if (endTimeOffsetBuilder_ == null) { + endTimeOffset_ = builderForValue.build(); + onChanged(); + } else { + endTimeOffsetBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Time-offset, relative to the beginning of the video,
+     * corresponding to the end of the segment (inclusive).
+     * 
+ * + * .google.protobuf.Duration end_time_offset = 2; + */ + public Builder mergeEndTimeOffset(com.google.protobuf.Duration value) { + if (endTimeOffsetBuilder_ == null) { + if (endTimeOffset_ != null) { + endTimeOffset_ = + com.google.protobuf.Duration.newBuilder(endTimeOffset_).mergeFrom(value).buildPartial(); + } else { + endTimeOffset_ = value; + } + onChanged(); + } else { + endTimeOffsetBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Time-offset, relative to the beginning of the video,
+     * corresponding to the end of the segment (inclusive).
+     * 
+ * + * .google.protobuf.Duration end_time_offset = 2; + */ + public Builder clearEndTimeOffset() { + if (endTimeOffsetBuilder_ == null) { + endTimeOffset_ = null; + onChanged(); + } else { + endTimeOffset_ = null; + endTimeOffsetBuilder_ = null; + } + + return this; + } + /** + *
+     * Time-offset, relative to the beginning of the video,
+     * corresponding to the end of the segment (inclusive).
+     * 
+ * + * .google.protobuf.Duration end_time_offset = 2; + */ + public com.google.protobuf.Duration.Builder getEndTimeOffsetBuilder() { + + onChanged(); + return getEndTimeOffsetFieldBuilder().getBuilder(); + } + /** + *
+     * Time-offset, relative to the beginning of the video,
+     * corresponding to the end of the segment (inclusive).
+     * 
+ * + * .google.protobuf.Duration end_time_offset = 2; + */ + public com.google.protobuf.DurationOrBuilder getEndTimeOffsetOrBuilder() { + if (endTimeOffsetBuilder_ != null) { + return endTimeOffsetBuilder_.getMessageOrBuilder(); + } else { + return endTimeOffset_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : endTimeOffset_; + } + } + /** + *
+     * Time-offset, relative to the beginning of the video,
+     * corresponding to the end of the segment (inclusive).
+     * 
+ * + * .google.protobuf.Duration end_time_offset = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getEndTimeOffsetFieldBuilder() { + if (endTimeOffsetBuilder_ == null) { + endTimeOffsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getEndTimeOffset(), + getParentForChildren(), + isClean()); + endTimeOffset_ = null; + } + return endTimeOffsetBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p2beta1.VideoSegment) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.VideoSegment) + private static final com.google.cloud.videointelligence.v1p2beta1.VideoSegment DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p2beta1.VideoSegment(); + } + + public static com.google.cloud.videointelligence.v1p2beta1.VideoSegment getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VideoSegment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VideoSegment(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p2beta1.VideoSegment getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoSegmentOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoSegmentOrBuilder.java new file mode 100644 index 000000000000..39461c4353eb --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoSegmentOrBuilder.java @@ -0,0 +1,65 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p2beta1; + +public interface VideoSegmentOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p2beta1.VideoSegment) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Time-offset, relative to the beginning of the video,
+   * corresponding to the start of the segment (inclusive).
+   * 
+ * + * .google.protobuf.Duration start_time_offset = 1; + */ + boolean hasStartTimeOffset(); + /** + *
+   * Time-offset, relative to the beginning of the video,
+   * corresponding to the start of the segment (inclusive).
+   * 
+ * + * .google.protobuf.Duration start_time_offset = 1; + */ + com.google.protobuf.Duration getStartTimeOffset(); + /** + *
+   * Time-offset, relative to the beginning of the video,
+   * corresponding to the start of the segment (inclusive).
+   * 
+ * + * .google.protobuf.Duration start_time_offset = 1; + */ + com.google.protobuf.DurationOrBuilder getStartTimeOffsetOrBuilder(); + + /** + *
+   * Time-offset, relative to the beginning of the video,
+   * corresponding to the end of the segment (inclusive).
+   * 
+ * + * .google.protobuf.Duration end_time_offset = 2; + */ + boolean hasEndTimeOffset(); + /** + *
+   * Time-offset, relative to the beginning of the video,
+   * corresponding to the end of the segment (inclusive).
+   * 
+ * + * .google.protobuf.Duration end_time_offset = 2; + */ + com.google.protobuf.Duration getEndTimeOffset(); + /** + *
+   * Time-offset, relative to the beginning of the video,
+   * corresponding to the end of the segment (inclusive).
+   * 
+ * + * .google.protobuf.Duration end_time_offset = 2; + */ + com.google.protobuf.DurationOrBuilder getEndTimeOffsetOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/proto/google/cloud/videointelligence/v1p2beta1/video_intelligence.proto b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/proto/google/cloud/videointelligence/v1p2beta1/video_intelligence.proto new file mode 100644 index 000000000000..2c1af2efddd7 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/proto/google/cloud/videointelligence/v1p2beta1/video_intelligence.proto @@ -0,0 +1,466 @@ +// Copyright 2018 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.videointelligence.v1p2beta1; + +import "google/api/annotations.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Cloud.VideoIntelligence.V1P2Beta1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/videointelligence/v1p2beta1;videointelligence"; +option java_multiple_files = true; +option java_outer_classname = "VideoIntelligenceServiceProto"; +option java_package = "com.google.cloud.videointelligence.v1p2beta1"; +option php_namespace = "Google\\Cloud\\VideoIntelligence\\V1p2beta1"; + + +// Service that implements Google Cloud Video Intelligence API. +service VideoIntelligenceService { + // Performs asynchronous video annotation. Progress and results can be + // retrieved through the `google.longrunning.Operations` interface. + // `Operation.metadata` contains `AnnotateVideoProgress` (progress). + // `Operation.response` contains `AnnotateVideoResponse` (results). + rpc AnnotateVideo(AnnotateVideoRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1p2beta1/videos:annotate" + body: "*" + }; + } +} + +// Video annotation request. +message AnnotateVideoRequest { + // Input video location. Currently, only + // [Google Cloud Storage](https://cloud.google.com/storage/) URIs are + // supported, which must be specified in the following format: + // `gs://bucket-id/object-id` (other URI formats return + // [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see + // [Request URIs](/storage/docs/reference-uris). + // A video URI may include wildcards in `object-id`, and thus identify + // multiple videos. Supported wildcards: '*' to match 0 or more characters; + // '?' to match 1 character. If unset, the input video should be embedded + // in the request as `input_content`. If set, `input_content` should be unset. + string input_uri = 1; + + // The video data bytes. + // If unset, the input video(s) should be specified via `input_uri`. + // If set, `input_uri` should be unset. + bytes input_content = 6; + + // Requested video annotation features. + repeated Feature features = 2; + + // Additional video context and/or feature-specific parameters. + VideoContext video_context = 3; + + // Optional location where the output (in JSON format) should be stored. + // Currently, only [Google Cloud Storage](https://cloud.google.com/storage/) + // URIs are supported, which must be specified in the following format: + // `gs://bucket-id/object-id` (other URI formats return + // [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see + // [Request URIs](/storage/docs/reference-uris). + string output_uri = 4; + + // Optional cloud region where annotation should take place. Supported cloud + // regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region + // is specified, a region will be determined based on video file location. + string location_id = 5; +} + +// Video context and/or feature-specific parameters. +message VideoContext { + // Video segments to annotate. The segments may overlap and are not required + // to be contiguous or span the whole video. If unspecified, each video is + // treated as a single segment. + repeated VideoSegment segments = 1; + + // Config for LABEL_DETECTION. + LabelDetectionConfig label_detection_config = 2; + + // Config for SHOT_CHANGE_DETECTION. + ShotChangeDetectionConfig shot_change_detection_config = 3; + + // Config for EXPLICIT_CONTENT_DETECTION. + ExplicitContentDetectionConfig explicit_content_detection_config = 4; + + // Config for TEXT_DETECTION. + TextDetectionConfig text_detection_config = 8; +} + +// Config for LABEL_DETECTION. +message LabelDetectionConfig { + // What labels should be detected with LABEL_DETECTION, in addition to + // video-level labels or segment-level labels. + // If unspecified, defaults to `SHOT_MODE`. + LabelDetectionMode label_detection_mode = 1; + + // Whether the video has been shot from a stationary (i.e. non-moving) camera. + // When set to true, might improve detection accuracy for moving objects. + // Should be used with `SHOT_AND_FRAME_MODE` enabled. + bool stationary_camera = 2; + + // Model to use for label detection. + // Supported values: "builtin/stable" (the default if unset) and + // "builtin/latest". + string model = 3; +} + +// Config for SHOT_CHANGE_DETECTION. +message ShotChangeDetectionConfig { + // Model to use for shot change detection. + // Supported values: "builtin/stable" (the default if unset) and + // "builtin/latest". + string model = 1; +} + +// Config for EXPLICIT_CONTENT_DETECTION. +message ExplicitContentDetectionConfig { + // Model to use for explicit content detection. + // Supported values: "builtin/stable" (the default if unset) and + // "builtin/latest". + string model = 1; +} + +// Config for TEXT_DETECTION. +message TextDetectionConfig { + // Language hint can be specified if the language to be detected is known a + // priori. It can increase the accuracy of the detection. Language hint must + // be language code in BCP-47 format. + // + // Automatic language detection is performed if no hint is provided. + repeated string language_hints = 1; +} + +// Video segment. +message VideoSegment { + // Time-offset, relative to the beginning of the video, + // corresponding to the start of the segment (inclusive). + google.protobuf.Duration start_time_offset = 1; + + // Time-offset, relative to the beginning of the video, + // corresponding to the end of the segment (inclusive). + google.protobuf.Duration end_time_offset = 2; +} + +// Video segment level annotation results for label detection. +message LabelSegment { + // Video segment where a label was detected. + VideoSegment segment = 1; + + // Confidence that the label is accurate. Range: [0, 1]. + float confidence = 2; +} + +// Video frame level annotation results for label detection. +message LabelFrame { + // Time-offset, relative to the beginning of the video, corresponding to the + // video frame for this location. + google.protobuf.Duration time_offset = 1; + + // Confidence that the label is accurate. Range: [0, 1]. + float confidence = 2; +} + +// Detected entity from video analysis. +message Entity { + // Opaque entity ID. Some IDs may be available in + // [Google Knowledge Graph Search + // API](https://developers.google.com/knowledge-graph/). + string entity_id = 1; + + // Textual description, e.g. `Fixed-gear bicycle`. + string description = 2; + + // Language code for `description` in BCP-47 format. + string language_code = 3; +} + +// Label annotation. +message LabelAnnotation { + // Detected entity. + Entity entity = 1; + + // Common categories for the detected entity. + // E.g. when the label is `Terrier` the category is likely `dog`. And in some + // cases there might be more than one categories e.g. `Terrier` could also be + // a `pet`. + repeated Entity category_entities = 2; + + // All video segments where a label was detected. + repeated LabelSegment segments = 3; + + // All video frames where a label was detected. + repeated LabelFrame frames = 4; +} + +// Video frame level annotation results for explicit content. +message ExplicitContentFrame { + // Time-offset, relative to the beginning of the video, corresponding to the + // video frame for this location. + google.protobuf.Duration time_offset = 1; + + // Likelihood of the pornography content.. + Likelihood pornography_likelihood = 2; +} + +// Explicit content annotation (based on per-frame visual signals only). +// If no explicit content has been detected in a frame, no annotations are +// present for that frame. +message ExplicitContentAnnotation { + // All video frames where explicit content was detected. + repeated ExplicitContentFrame frames = 1; +} + +// Normalized bounding box. +// The normalized vertex coordinates are relative to the original image. +// Range: [0, 1]. +message NormalizedBoundingBox { + // Left X coordinate. + float left = 1; + + // Top Y coordinate. + float top = 2; + + // Right X coordinate. + float right = 3; + + // Bottom Y coordinate. + float bottom = 4; +} + +// Annotation results for a single video. +message VideoAnnotationResults { + // Video file location in + // [Google Cloud Storage](https://cloud.google.com/storage/). + string input_uri = 1; + + // Label annotations on video level or user specified segment level. + // There is exactly one element for each unique label. + repeated LabelAnnotation segment_label_annotations = 2; + + // Label annotations on shot level. + // There is exactly one element for each unique label. + repeated LabelAnnotation shot_label_annotations = 3; + + // Label annotations on frame level. + // There is exactly one element for each unique label. + repeated LabelAnnotation frame_label_annotations = 4; + + // Shot annotations. Each shot is represented as a video segment. + repeated VideoSegment shot_annotations = 6; + + // Explicit content annotation. + ExplicitContentAnnotation explicit_annotation = 7; + + // OCR text detection and tracking. + // Annotations for list of detected text snippets. Each will have list of + // frame information associated with it. + repeated TextAnnotation text_annotations = 12; + + // Annotations for list of objects detected and tracked in video. + repeated ObjectTrackingAnnotation object_annotations = 14; + + // If set, indicates an error. Note that for a single `AnnotateVideoRequest` + // some videos may succeed and some may fail. + google.rpc.Status error = 9; +} + +// Video annotation response. Included in the `response` +// field of the `Operation` returned by the `GetOperation` +// call of the `google::longrunning::Operations` service. +message AnnotateVideoResponse { + // Annotation results for all videos specified in `AnnotateVideoRequest`. + repeated VideoAnnotationResults annotation_results = 1; +} + +// Annotation progress for a single video. +message VideoAnnotationProgress { + // Video file location in + // [Google Cloud Storage](https://cloud.google.com/storage/). + string input_uri = 1; + + // Approximate percentage processed thus far. Guaranteed to be + // 100 when fully processed. + int32 progress_percent = 2; + + // Time when the request was received. + google.protobuf.Timestamp start_time = 3; + + // Time of the most recent update. + google.protobuf.Timestamp update_time = 4; +} + +// Video annotation progress. Included in the `metadata` +// field of the `Operation` returned by the `GetOperation` +// call of the `google::longrunning::Operations` service. +message AnnotateVideoProgress { + // Progress metadata for all videos specified in `AnnotateVideoRequest`. + repeated VideoAnnotationProgress annotation_progress = 1; +} + +// 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. +message NormalizedVertex { + // X coordinate. + float x = 1; + + // Y coordinate. + float y = 2; +} + +// Normalized bounding polygon for text (that might not be aligned with axis). +// Contains list of the corner points in clockwise order starting from +// top-left corner. For example, for a rectangular bounding box: +// When the text is horizontal it might look like: +// 0----1 +// | | +// 3----2 +// +// When it's clockwise rotated 180 degrees around the top-left corner it +// becomes: +// 2----3 +// | | +// 1----0 +// +// and the vertex order will still be (0, 1, 2, 3). Note that values can be less +// than 0, or greater than 1 due to trignometric calculations for location of +// the box. +message NormalizedBoundingPoly { + // Normalized vertices of the bounding polygon. + repeated NormalizedVertex vertices = 1; +} + +// Video segment level annotation results for text detection. +message TextSegment { + // Video segment where a text snippet was detected. + VideoSegment segment = 1; +} + +// Video frame level annotation results for text annotation (OCR). +// Contains information regarding timestamp and bounding box locations for the +// frames containing detected OCR text snippets. +message TextFrame { + // Bounding polygon of the detected text for this frame. + NormalizedBoundingPoly rotated_bounding_box = 1; + + // Timestamp of this frame. + google.protobuf.Duration time_offset = 2; +} + +// Annotations related to one detected OCR text snippet. This will contain the +// corresponding text, confidence value, and frame level information for each +// detection. +message TextAnnotation { + // The detected text. + string text = 1; + + // Confidence for the track of detected text. It is calculated as the highest + // over all frames where OCR detected text appears. + float confidence = 2; + + // Information related to the frames where OCR detected text appears. + repeated TextFrame frames = 3; + + // All video segments where OCR detected text appears. + repeated TextSegment segments = 4; +} + +// Video frame level annotations for object detection and tracking. This field +// stores per frame location, time offset, and confidence. +message ObjectTrackingFrame { + // The normalized bounding box location of this object track for the frame. + NormalizedBoundingBox normalized_bounding_box = 1; + + // The timestamp of the frame in microseconds. + google.protobuf.Duration time_offset = 2; +} + +// Annotations corresponding to one tracked object. +message ObjectTrackingAnnotation { + // Entity to specify the object category that this track is labeled as. + Entity entity = 1; + + // Object category's labeling confidence of this track. + float confidence = 4; + + // Information corresponding to all frames where this object track appears. + repeated ObjectTrackingFrame frames = 2; + + // Each object track corresponds to one video segment where it appears. + VideoSegment segment = 3; +} + +// Video annotation feature. +enum Feature { + // Unspecified. + FEATURE_UNSPECIFIED = 0; + + // Label detection. Detect objects, such as dog or flower. + LABEL_DETECTION = 1; + + // Shot change detection. + SHOT_CHANGE_DETECTION = 2; + + // Explicit content detection. + EXPLICIT_CONTENT_DETECTION = 3; + + // OCR text detection and tracking. + TEXT_DETECTION = 7; + + // Object detection and tracking. + OBJECT_TRACKING = 9; +} + +// Label detection mode. +enum LabelDetectionMode { + // Unspecified. + LABEL_DETECTION_MODE_UNSPECIFIED = 0; + + // Detect shot-level labels. + SHOT_MODE = 1; + + // Detect frame-level labels. + FRAME_MODE = 2; + + // Detect both shot-level and frame-level labels. + SHOT_AND_FRAME_MODE = 3; +} + +// Bucketized representation of likelihood. +enum Likelihood { + // Unspecified likelihood. + LIKELIHOOD_UNSPECIFIED = 0; + + // Very unlikely. + VERY_UNLIKELY = 1; + + // Unlikely. + UNLIKELY = 2; + + // Possible. + POSSIBLE = 3; + + // Likely. + LIKELY = 4; + + // Very likely. + VERY_LIKELY = 5; +} diff --git a/google-cloud-bom/pom.xml b/google-cloud-bom/pom.xml index 6b032e422be1..df19dd00b803 100644 --- a/google-cloud-bom/pom.xml +++ b/google-cloud-bom/pom.xml @@ -747,6 +747,16 @@ grpc-google-cloud-redis-v1beta1 0.26.1-SNAPSHOT
+ + com.google.api.grpc + proto-google-cloud-redis-v1 + 0.26.1-SNAPSHOT + + + com.google.api.grpc + grpc-google-cloud-redis-v1 + 0.26.1-SNAPSHOT + com.google.cloud google-cloud-resourcemanager @@ -1057,6 +1067,16 @@ grpc-google-cloud-video-intelligence-v1p1beta1 0.26.1-SNAPSHOT + + com.google.api.grpc + proto-google-cloud-video-intelligence-v1p2beta1 + 0.26.1-SNAPSHOT + + + com.google.api.grpc + grpc-google-cloud-video-intelligence-v1p2beta1 + 0.26.1-SNAPSHOT + com.google.api.grpc proto-google-cloud-iot-v1 diff --git a/google-cloud-clients/google-cloud-redis/pom.xml b/google-cloud-clients/google-cloud-redis/pom.xml index 806b41510396..326ebd48d63d 100644 --- a/google-cloud-clients/google-cloud-redis/pom.xml +++ b/google-cloud-clients/google-cloud-redis/pom.xml @@ -34,6 +34,14 @@ com.google.api.grpc grpc-google-cloud-redis-v1beta1 + + com.google.api.grpc + proto-google-cloud-redis-v1 + + + com.google.api.grpc + grpc-google-cloud-redis-v1 + io.grpc grpc-netty-shaded diff --git a/google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisClient.java b/google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisClient.java new file mode 100644 index 000000000000..117c4ab91338 --- /dev/null +++ b/google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisClient.java @@ -0,0 +1,1080 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.redis.v1; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.redis.v1.stub.CloudRedisStub; +import com.google.cloud.redis.v1.stub.CloudRedisStubSettings; +import com.google.longrunning.Operation; +import com.google.longrunning.OperationsClient; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND SERVICE +/** + * Service Description: Configures and manages Cloud Memorystore for Redis instances + * + *

Google Cloud Memorystore for Redis v1 + * + *

The `redis.googleapis.com` service implements the Google Cloud Memorystore for Redis API and + * defines the following resource model for managing Redis instances: * The service works with a + * collection of cloud projects, named: `/projects/*` * Each project has a collection of + * available locations, named: `/locations/*` * Each location has a collection of Redis + * instances, named: `/instances/*` * As such, Redis instances are resources of the form: + * `/projects/{project_id}/locations/{location_id}/instances/{instance_id}` + * + *

Note that location_id must be refering to a GCP `region`; for example: * + * `projects/redpepper-1290/locations/us-central1/instances/my-redis` + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

+ * 
+ * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
+ *   InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
+ *   Instance response = cloudRedisClient.getInstance(name);
+ * }
+ * 
+ * 
+ * + *

Note: close() needs to be called on the cloudRedisClient object to clean up resources such as + * threads. In the example above, try-with-resources is used, which automatically calls close(). + * + *

The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

    + *
  1. A "flattened" method. With this type of method, the fields of the request type have been + * converted into function parameters. It may be the case that not all fields are available as + * parameters, and not every API method will have a flattened method entry point. + *
  2. A "request object" method. This type of method only takes one parameter, a request object, + * which must be constructed before the call. Not every API method will have a request object + * method. + *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API + * callable object, which can be used to initiate calls to the service. + *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of CloudRedisSettings to + * create(). For example: + * + *

To customize credentials: + * + *

+ * 
+ * CloudRedisSettings cloudRedisSettings =
+ *     CloudRedisSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * CloudRedisClient cloudRedisClient =
+ *     CloudRedisClient.create(cloudRedisSettings);
+ * 
+ * 
+ * + * To customize the endpoint: + * + *
+ * 
+ * CloudRedisSettings cloudRedisSettings =
+ *     CloudRedisSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * CloudRedisClient cloudRedisClient =
+ *     CloudRedisClient.create(cloudRedisSettings);
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class CloudRedisClient implements BackgroundResource { + private final CloudRedisSettings settings; + private final CloudRedisStub stub; + private final OperationsClient operationsClient; + + /** Constructs an instance of CloudRedisClient with default settings. */ + public static final CloudRedisClient create() throws IOException { + return create(CloudRedisSettings.newBuilder().build()); + } + + /** + * Constructs an instance of CloudRedisClient, using the given settings. The channels are created + * based on the settings passed in, or defaults for any settings that are not set. + */ + public static final CloudRedisClient create(CloudRedisSettings settings) throws IOException { + return new CloudRedisClient(settings); + } + + /** + * Constructs an instance of CloudRedisClient, using the given stub for making calls. This is for + * advanced usage - prefer to use CloudRedisSettings}. + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public static final CloudRedisClient create(CloudRedisStub stub) { + return new CloudRedisClient(stub); + } + + /** + * Constructs an instance of CloudRedisClient, using the given settings. This is protected so that + * it is easy to make a subclass, but otherwise, the static factory methods should be preferred. + */ + protected CloudRedisClient(CloudRedisSettings settings) throws IOException { + this.settings = settings; + this.stub = ((CloudRedisStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected CloudRedisClient(CloudRedisStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + public final CloudRedisSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public CloudRedisStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationsClient getOperationsClient() { + return operationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists all Redis instances owned by a project in either the specified location (region) or all + * locations. + * + *

The location should have the following format: * + * `projects/{project_id}/locations/{location_id}` + * + *

If `location_id` is specified as `-` (wildcard), then all regions available to the project + * are queried, and the results are aggregated. + * + *

Sample code: + * + *


+   * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (Instance element : cloudRedisClient.listInstances(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Required. The resource name of the instance location using the form: + * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListInstancesPagedResponse listInstances(LocationName parent) { + ListInstancesRequest request = + ListInstancesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listInstances(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists all Redis instances owned by a project in either the specified location (region) or all + * locations. + * + *

The location should have the following format: * + * `projects/{project_id}/locations/{location_id}` + * + *

If `location_id` is specified as `-` (wildcard), then all regions available to the project + * are queried, and the results are aggregated. + * + *

Sample code: + * + *


+   * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (Instance element : cloudRedisClient.listInstances(parent.toString()).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Required. The resource name of the instance location using the form: + * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListInstancesPagedResponse listInstances(String parent) { + ListInstancesRequest request = ListInstancesRequest.newBuilder().setParent(parent).build(); + return listInstances(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists all Redis instances owned by a project in either the specified location (region) or all + * locations. + * + *

The location should have the following format: * + * `projects/{project_id}/locations/{location_id}` + * + *

If `location_id` is specified as `-` (wildcard), then all regions available to the project + * are queried, and the results are aggregated. + * + *

Sample code: + * + *


+   * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   ListInstancesRequest request = ListInstancesRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   for (Instance element : cloudRedisClient.listInstances(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListInstancesPagedResponse listInstances(ListInstancesRequest request) { + return listInstancesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists all Redis instances owned by a project in either the specified location (region) or all + * locations. + * + *

The location should have the following format: * + * `projects/{project_id}/locations/{location_id}` + * + *

If `location_id` is specified as `-` (wildcard), then all regions available to the project + * are queried, and the results are aggregated. + * + *

Sample code: + * + *


+   * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   ListInstancesRequest request = ListInstancesRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   ApiFuture<ListInstancesPagedResponse> future = cloudRedisClient.listInstancesPagedCallable().futureCall(request);
+   *   // Do something
+   *   for (Instance element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable + listInstancesPagedCallable() { + return stub.listInstancesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists all Redis instances owned by a project in either the specified location (region) or all + * locations. + * + *

The location should have the following format: * + * `projects/{project_id}/locations/{location_id}` + * + *

If `location_id` is specified as `-` (wildcard), then all regions available to the project + * are queried, and the results are aggregated. + * + *

Sample code: + * + *


+   * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   ListInstancesRequest request = ListInstancesRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   while (true) {
+   *     ListInstancesResponse response = cloudRedisClient.listInstancesCallable().call(request);
+   *     for (Instance element : response.getInstancesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable listInstancesCallable() { + return stub.listInstancesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets the details of a specific Redis instance. + * + *

Sample code: + * + *


+   * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
+   *   InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
+   *   Instance response = cloudRedisClient.getInstance(name);
+   * }
+   * 
+ * + * @param name Required. Redis instance resource name using the form: + * `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` + * refers to a GCP region + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Instance getInstance(InstanceName name) { + + GetInstanceRequest request = + GetInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getInstance(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets the details of a specific Redis instance. + * + *

Sample code: + * + *


+   * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
+   *   InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
+   *   Instance response = cloudRedisClient.getInstance(name.toString());
+   * }
+   * 
+ * + * @param name Required. Redis instance resource name using the form: + * `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` + * refers to a GCP region + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Instance getInstance(String name) { + + GetInstanceRequest request = GetInstanceRequest.newBuilder().setName(name).build(); + return getInstance(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets the details of a specific Redis instance. + * + *

Sample code: + * + *


+   * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
+   *   InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
+   *   GetInstanceRequest request = GetInstanceRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   Instance response = cloudRedisClient.getInstance(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + private final Instance getInstance(GetInstanceRequest request) { + return getInstanceCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets the details of a specific Redis instance. + * + *

Sample code: + * + *


+   * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
+   *   InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
+   *   GetInstanceRequest request = GetInstanceRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<Instance> future = cloudRedisClient.getInstanceCallable().futureCall(request);
+   *   // Do something
+   *   Instance response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable getInstanceCallable() { + return stub.getInstanceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a Redis instance based on the specified tier and memory size. + * + *

By default, the instance is accessible from the project's [default + * network](/compute/docs/networks-and-firewalls#networks). + * + *

The creation is executed asynchronously and callers may check the returned operation to + * track its progress. Once the operation is completed the Redis instance will be fully + * functional. Completed longrunning.Operation will contain the new instance object in the + * response field. + * + *

The returned operation is automatically deleted after a few hours, so there is no need to + * call DeleteOperation. + * + *

Sample code: + * + *


+   * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   String instanceId = "test_instance";
+   *   Instance.Tier tier = Instance.Tier.BASIC;
+   *   int memorySizeGb = 1;
+   *   Instance instance = Instance.newBuilder()
+   *     .setTier(tier)
+   *     .setMemorySizeGb(memorySizeGb)
+   *     .build();
+   *   Instance response = cloudRedisClient.createInstanceAsync(parent, instanceId, instance).get();
+   * }
+   * 
+ * + * @param parent Required. The resource name of the instance location using the form: + * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region + * @param instanceId Required. The logical name of the Redis instance in the customer project with + * the following restrictions: + *

* Must contain only lowercase letters, numbers, and hyphens. * Must start with a + * letter. * Must be between 1-40 characters. * Must end with a number or a letter. + * * Must be unique within the customer project / location + * @param instance Required. A Redis [Instance] resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture createInstanceAsync( + LocationName parent, String instanceId, Instance instance) { + + CreateInstanceRequest request = + CreateInstanceRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setInstanceId(instanceId) + .setInstance(instance) + .build(); + return createInstanceAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a Redis instance based on the specified tier and memory size. + * + *

By default, the instance is accessible from the project's [default + * network](/compute/docs/networks-and-firewalls#networks). + * + *

The creation is executed asynchronously and callers may check the returned operation to + * track its progress. Once the operation is completed the Redis instance will be fully + * functional. Completed longrunning.Operation will contain the new instance object in the + * response field. + * + *

The returned operation is automatically deleted after a few hours, so there is no need to + * call DeleteOperation. + * + *

Sample code: + * + *


+   * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   String instanceId = "test_instance";
+   *   Instance.Tier tier = Instance.Tier.BASIC;
+   *   int memorySizeGb = 1;
+   *   Instance instance = Instance.newBuilder()
+   *     .setTier(tier)
+   *     .setMemorySizeGb(memorySizeGb)
+   *     .build();
+   *   Instance response = cloudRedisClient.createInstanceAsync(parent.toString(), instanceId, instance).get();
+   * }
+   * 
+ * + * @param parent Required. The resource name of the instance location using the form: + * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region + * @param instanceId Required. The logical name of the Redis instance in the customer project with + * the following restrictions: + *

* Must contain only lowercase letters, numbers, and hyphens. * Must start with a + * letter. * Must be between 1-40 characters. * Must end with a number or a letter. + * * Must be unique within the customer project / location + * @param instance Required. A Redis [Instance] resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture createInstanceAsync( + String parent, String instanceId, Instance instance) { + + CreateInstanceRequest request = + CreateInstanceRequest.newBuilder() + .setParent(parent) + .setInstanceId(instanceId) + .setInstance(instance) + .build(); + return createInstanceAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a Redis instance based on the specified tier and memory size. + * + *

By default, the instance is accessible from the project's [default + * network](/compute/docs/networks-and-firewalls#networks). + * + *

The creation is executed asynchronously and callers may check the returned operation to + * track its progress. Once the operation is completed the Redis instance will be fully + * functional. Completed longrunning.Operation will contain the new instance object in the + * response field. + * + *

The returned operation is automatically deleted after a few hours, so there is no need to + * call DeleteOperation. + * + *

Sample code: + * + *


+   * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   String instanceId = "test_instance";
+   *   Instance.Tier tier = Instance.Tier.BASIC;
+   *   int memorySizeGb = 1;
+   *   Instance instance = Instance.newBuilder()
+   *     .setTier(tier)
+   *     .setMemorySizeGb(memorySizeGb)
+   *     .build();
+   *   CreateInstanceRequest request = CreateInstanceRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setInstanceId(instanceId)
+   *     .setInstance(instance)
+   *     .build();
+   *   Instance response = cloudRedisClient.createInstanceAsync(request).get();
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture createInstanceAsync( + CreateInstanceRequest request) { + return createInstanceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a Redis instance based on the specified tier and memory size. + * + *

By default, the instance is accessible from the project's [default + * network](/compute/docs/networks-and-firewalls#networks). + * + *

The creation is executed asynchronously and callers may check the returned operation to + * track its progress. Once the operation is completed the Redis instance will be fully + * functional. Completed longrunning.Operation will contain the new instance object in the + * response field. + * + *

The returned operation is automatically deleted after a few hours, so there is no need to + * call DeleteOperation. + * + *

Sample code: + * + *


+   * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   String instanceId = "test_instance";
+   *   Instance.Tier tier = Instance.Tier.BASIC;
+   *   int memorySizeGb = 1;
+   *   Instance instance = Instance.newBuilder()
+   *     .setTier(tier)
+   *     .setMemorySizeGb(memorySizeGb)
+   *     .build();
+   *   CreateInstanceRequest request = CreateInstanceRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setInstanceId(instanceId)
+   *     .setInstance(instance)
+   *     .build();
+   *   OperationFuture<Operation> future = cloudRedisClient.createInstanceOperationCallable().futureCall(request);
+   *   // Do something
+   *   Instance response = future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + createInstanceOperationCallable() { + return stub.createInstanceOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a Redis instance based on the specified tier and memory size. + * + *

By default, the instance is accessible from the project's [default + * network](/compute/docs/networks-and-firewalls#networks). + * + *

The creation is executed asynchronously and callers may check the returned operation to + * track its progress. Once the operation is completed the Redis instance will be fully + * functional. Completed longrunning.Operation will contain the new instance object in the + * response field. + * + *

The returned operation is automatically deleted after a few hours, so there is no need to + * call DeleteOperation. + * + *

Sample code: + * + *


+   * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   String instanceId = "test_instance";
+   *   Instance.Tier tier = Instance.Tier.BASIC;
+   *   int memorySizeGb = 1;
+   *   Instance instance = Instance.newBuilder()
+   *     .setTier(tier)
+   *     .setMemorySizeGb(memorySizeGb)
+   *     .build();
+   *   CreateInstanceRequest request = CreateInstanceRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setInstanceId(instanceId)
+   *     .setInstance(instance)
+   *     .build();
+   *   ApiFuture<Operation> future = cloudRedisClient.createInstanceCallable().futureCall(request);
+   *   // Do something
+   *   Operation response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable createInstanceCallable() { + return stub.createInstanceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates the metadata and configuration of a specific Redis instance. + * + *

Completed longrunning.Operation will contain the new instance object in the response field. + * The returned operation is automatically deleted after a few hours, so there is no need to call + * DeleteOperation. + * + *

Sample code: + * + *


+   * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
+   *   String pathsElement = "display_name";
+   *   String pathsElement2 = "memory_size_gb";
+   *   List<String> paths = Arrays.asList(pathsElement, pathsElement2);
+   *   FieldMask updateMask = FieldMask.newBuilder()
+   *     .addAllPaths(paths)
+   *     .build();
+   *   String displayName = "UpdatedDisplayName";
+   *   int memorySizeGb = 4;
+   *   Instance instance = Instance.newBuilder()
+   *     .setDisplayName(displayName)
+   *     .setMemorySizeGb(memorySizeGb)
+   *     .build();
+   *   Instance response = cloudRedisClient.updateInstanceAsync(updateMask, instance).get();
+   * }
+   * 
+ * + * @param updateMask Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field may only include these fields from + * [Instance][CloudRedis.Instance]: + *

* `displayName` * `labels` * `memorySizeGb` * `redisConfig` + * @param instance Required. Update description. Only fields specified in update_mask are updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture updateInstanceAsync( + FieldMask updateMask, Instance instance) { + + UpdateInstanceRequest request = + UpdateInstanceRequest.newBuilder().setUpdateMask(updateMask).setInstance(instance).build(); + return updateInstanceAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates the metadata and configuration of a specific Redis instance. + * + *

Completed longrunning.Operation will contain the new instance object in the response field. + * The returned operation is automatically deleted after a few hours, so there is no need to call + * DeleteOperation. + * + *

Sample code: + * + *


+   * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
+   *   String pathsElement = "display_name";
+   *   String pathsElement2 = "memory_size_gb";
+   *   List<String> paths = Arrays.asList(pathsElement, pathsElement2);
+   *   FieldMask updateMask = FieldMask.newBuilder()
+   *     .addAllPaths(paths)
+   *     .build();
+   *   String displayName = "UpdatedDisplayName";
+   *   int memorySizeGb = 4;
+   *   Instance instance = Instance.newBuilder()
+   *     .setDisplayName(displayName)
+   *     .setMemorySizeGb(memorySizeGb)
+   *     .build();
+   *   UpdateInstanceRequest request = UpdateInstanceRequest.newBuilder()
+   *     .setUpdateMask(updateMask)
+   *     .setInstance(instance)
+   *     .build();
+   *   Instance response = cloudRedisClient.updateInstanceAsync(request).get();
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture updateInstanceAsync( + UpdateInstanceRequest request) { + return updateInstanceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates the metadata and configuration of a specific Redis instance. + * + *

Completed longrunning.Operation will contain the new instance object in the response field. + * The returned operation is automatically deleted after a few hours, so there is no need to call + * DeleteOperation. + * + *

Sample code: + * + *


+   * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
+   *   String pathsElement = "display_name";
+   *   String pathsElement2 = "memory_size_gb";
+   *   List<String> paths = Arrays.asList(pathsElement, pathsElement2);
+   *   FieldMask updateMask = FieldMask.newBuilder()
+   *     .addAllPaths(paths)
+   *     .build();
+   *   String displayName = "UpdatedDisplayName";
+   *   int memorySizeGb = 4;
+   *   Instance instance = Instance.newBuilder()
+   *     .setDisplayName(displayName)
+   *     .setMemorySizeGb(memorySizeGb)
+   *     .build();
+   *   UpdateInstanceRequest request = UpdateInstanceRequest.newBuilder()
+   *     .setUpdateMask(updateMask)
+   *     .setInstance(instance)
+   *     .build();
+   *   OperationFuture<Operation> future = cloudRedisClient.updateInstanceOperationCallable().futureCall(request);
+   *   // Do something
+   *   Instance response = future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + updateInstanceOperationCallable() { + return stub.updateInstanceOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates the metadata and configuration of a specific Redis instance. + * + *

Completed longrunning.Operation will contain the new instance object in the response field. + * The returned operation is automatically deleted after a few hours, so there is no need to call + * DeleteOperation. + * + *

Sample code: + * + *


+   * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
+   *   String pathsElement = "display_name";
+   *   String pathsElement2 = "memory_size_gb";
+   *   List<String> paths = Arrays.asList(pathsElement, pathsElement2);
+   *   FieldMask updateMask = FieldMask.newBuilder()
+   *     .addAllPaths(paths)
+   *     .build();
+   *   String displayName = "UpdatedDisplayName";
+   *   int memorySizeGb = 4;
+   *   Instance instance = Instance.newBuilder()
+   *     .setDisplayName(displayName)
+   *     .setMemorySizeGb(memorySizeGb)
+   *     .build();
+   *   UpdateInstanceRequest request = UpdateInstanceRequest.newBuilder()
+   *     .setUpdateMask(updateMask)
+   *     .setInstance(instance)
+   *     .build();
+   *   ApiFuture<Operation> future = cloudRedisClient.updateInstanceCallable().futureCall(request);
+   *   // Do something
+   *   Operation response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable updateInstanceCallable() { + return stub.updateInstanceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes a specific Redis instance. Instance stops serving and data is deleted. + * + *

Sample code: + * + *


+   * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
+   *   InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
+   *   Empty response = cloudRedisClient.deleteInstanceAsync(name).get();
+   * }
+   * 
+ * + * @param name Required. Redis instance resource name using the form: + * `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` + * refers to a GCP region + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteInstanceAsync(InstanceName name) { + + DeleteInstanceRequest request = + DeleteInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteInstanceAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes a specific Redis instance. Instance stops serving and data is deleted. + * + *

Sample code: + * + *


+   * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
+   *   InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
+   *   Empty response = cloudRedisClient.deleteInstanceAsync(name.toString()).get();
+   * }
+   * 
+ * + * @param name Required. Redis instance resource name using the form: + * `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` + * refers to a GCP region + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteInstanceAsync(String name) { + + DeleteInstanceRequest request = DeleteInstanceRequest.newBuilder().setName(name).build(); + return deleteInstanceAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes a specific Redis instance. Instance stops serving and data is deleted. + * + *

Sample code: + * + *


+   * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
+   *   InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
+   *   DeleteInstanceRequest request = DeleteInstanceRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   Empty response = cloudRedisClient.deleteInstanceAsync(request).get();
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + private final OperationFuture deleteInstanceAsync( + DeleteInstanceRequest request) { + return deleteInstanceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes a specific Redis instance. Instance stops serving and data is deleted. + * + *

Sample code: + * + *


+   * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
+   *   InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
+   *   DeleteInstanceRequest request = DeleteInstanceRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   OperationFuture<Operation> future = cloudRedisClient.deleteInstanceOperationCallable().futureCall(request);
+   *   // Do something
+   *   Empty response = future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + deleteInstanceOperationCallable() { + return stub.deleteInstanceOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes a specific Redis instance. Instance stops serving and data is deleted. + * + *

Sample code: + * + *


+   * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
+   *   InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
+   *   DeleteInstanceRequest request = DeleteInstanceRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<Operation> future = cloudRedisClient.deleteInstanceCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + public final UnaryCallable deleteInstanceCallable() { + return stub.deleteInstanceCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListInstancesPagedResponse + extends AbstractPagedListResponse< + ListInstancesRequest, ListInstancesResponse, Instance, ListInstancesPage, + ListInstancesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListInstancesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public ListInstancesPagedResponse apply(ListInstancesPage input) { + return new ListInstancesPagedResponse(input); + } + }); + } + + private ListInstancesPagedResponse(ListInstancesPage page) { + super(page, ListInstancesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListInstancesPage + extends AbstractPage< + ListInstancesRequest, ListInstancesResponse, Instance, ListInstancesPage> { + + private ListInstancesPage( + PageContext context, + ListInstancesResponse response) { + super(context, response); + } + + private static ListInstancesPage createEmptyPage() { + return new ListInstancesPage(null, null); + } + + @Override + protected ListInstancesPage createPage( + PageContext context, + ListInstancesResponse response) { + return new ListInstancesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListInstancesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListInstancesRequest, ListInstancesResponse, Instance, ListInstancesPage, + ListInstancesFixedSizeCollection> { + + private ListInstancesFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListInstancesFixedSizeCollection createEmptyCollection() { + return new ListInstancesFixedSizeCollection(null, 0); + } + + @Override + protected ListInstancesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListInstancesFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisSettings.java b/google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisSettings.java new file mode 100644 index 000000000000..147927b04922 --- /dev/null +++ b/google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisSettings.java @@ -0,0 +1,270 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.redis.v1; + +import static com.google.cloud.redis.v1.CloudRedisClient.ListInstancesPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.redis.v1.stub.CloudRedisStubSettings; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link CloudRedisClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (redis.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of getInstance to 30 seconds: + * + *

+ * 
+ * CloudRedisSettings.Builder cloudRedisSettingsBuilder =
+ *     CloudRedisSettings.newBuilder();
+ * cloudRedisSettingsBuilder.getInstanceSettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * CloudRedisSettings cloudRedisSettings = cloudRedisSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class CloudRedisSettings extends ClientSettings { + /** Returns the object with the settings used for calls to listInstances. */ + public PagedCallSettings + listInstancesSettings() { + return ((CloudRedisStubSettings) getStubSettings()).listInstancesSettings(); + } + + /** Returns the object with the settings used for calls to getInstance. */ + public UnaryCallSettings getInstanceSettings() { + return ((CloudRedisStubSettings) getStubSettings()).getInstanceSettings(); + } + + /** Returns the object with the settings used for calls to createInstance. */ + public UnaryCallSettings createInstanceSettings() { + return ((CloudRedisStubSettings) getStubSettings()).createInstanceSettings(); + } + + /** Returns the object with the settings used for calls to createInstance. */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public OperationCallSettings + createInstanceOperationSettings() { + return ((CloudRedisStubSettings) getStubSettings()).createInstanceOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateInstance. */ + public UnaryCallSettings updateInstanceSettings() { + return ((CloudRedisStubSettings) getStubSettings()).updateInstanceSettings(); + } + + /** Returns the object with the settings used for calls to updateInstance. */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public OperationCallSettings + updateInstanceOperationSettings() { + return ((CloudRedisStubSettings) getStubSettings()).updateInstanceOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteInstance. */ + public UnaryCallSettings deleteInstanceSettings() { + return ((CloudRedisStubSettings) getStubSettings()).deleteInstanceSettings(); + } + + /** Returns the object with the settings used for calls to deleteInstance. */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public OperationCallSettings + deleteInstanceOperationSettings() { + return ((CloudRedisStubSettings) getStubSettings()).deleteInstanceOperationSettings(); + } + + public static final CloudRedisSettings create(CloudRedisStubSettings stub) throws IOException { + return new CloudRedisSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return CloudRedisStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return CloudRedisStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return CloudRedisStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return CloudRedisStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return CloudRedisStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return CloudRedisStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return CloudRedisStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected CloudRedisSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for CloudRedisSettings. */ + public static class Builder extends ClientSettings.Builder { + protected Builder() throws IOException { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(CloudRedisStubSettings.newBuilder(clientContext)); + } + + private static Builder createDefault() { + return new Builder(CloudRedisStubSettings.newBuilder()); + } + + protected Builder(CloudRedisSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(CloudRedisStubSettings.Builder stubSettings) { + super(stubSettings); + } + + public CloudRedisStubSettings.Builder getStubSettingsBuilder() { + return ((CloudRedisStubSettings.Builder) getStubSettings()); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to listInstances. */ + public PagedCallSettings.Builder< + ListInstancesRequest, ListInstancesResponse, ListInstancesPagedResponse> + listInstancesSettings() { + return getStubSettingsBuilder().listInstancesSettings(); + } + + /** Returns the builder for the settings used for calls to getInstance. */ + public UnaryCallSettings.Builder getInstanceSettings() { + return getStubSettingsBuilder().getInstanceSettings(); + } + + /** Returns the builder for the settings used for calls to createInstance. */ + public UnaryCallSettings.Builder createInstanceSettings() { + return getStubSettingsBuilder().createInstanceSettings(); + } + + /** Returns the builder for the settings used for calls to createInstance. */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public OperationCallSettings.Builder + createInstanceOperationSettings() { + return getStubSettingsBuilder().createInstanceOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateInstance. */ + public UnaryCallSettings.Builder updateInstanceSettings() { + return getStubSettingsBuilder().updateInstanceSettings(); + } + + /** Returns the builder for the settings used for calls to updateInstance. */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public OperationCallSettings.Builder + updateInstanceOperationSettings() { + return getStubSettingsBuilder().updateInstanceOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteInstance. */ + public UnaryCallSettings.Builder deleteInstanceSettings() { + return getStubSettingsBuilder().deleteInstanceSettings(); + } + + /** Returns the builder for the settings used for calls to deleteInstance. */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public OperationCallSettings.Builder + deleteInstanceOperationSettings() { + return getStubSettingsBuilder().deleteInstanceOperationSettings(); + } + + @Override + public CloudRedisSettings build() throws IOException { + return new CloudRedisSettings(this); + } + } +} diff --git a/google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/package-info.java b/google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/package-info.java new file mode 100644 index 000000000000..0c17f3a67e8d --- /dev/null +++ b/google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/package-info.java @@ -0,0 +1,49 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * A client to Google Cloud Memorystore for Redis API. + * + *

The interfaces provided are listed below, along with usage samples. + * + *

================ CloudRedisClient ================ + * + *

Service Description: Configures and manages Cloud Memorystore for Redis instances + * + *

Google Cloud Memorystore for Redis v1 + * + *

The `redis.googleapis.com` service implements the Google Cloud Memorystore for Redis API and + * defines the following resource model for managing Redis instances: * The service works with a + * collection of cloud projects, named: `/projects/*` * Each project has a collection of + * available locations, named: `/locations/*` * Each location has a collection of Redis + * instances, named: `/instances/*` * As such, Redis instances are resources of the form: + * `/projects/{project_id}/locations/{location_id}/instances/{instance_id}` + * + *

Note that location_id must be refering to a GCP `region`; for example: * + * `projects/redpepper-1290/locations/us-central1/instances/my-redis` + * + *

Sample for CloudRedisClient: + * + *

+ * 
+ * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
+ *   InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
+ *   Instance response = cloudRedisClient.getInstance(name);
+ * }
+ * 
+ * 
+ */ +package com.google.cloud.redis.v1; diff --git a/google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStub.java b/google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStub.java new file mode 100644 index 000000000000..796a5a50a900 --- /dev/null +++ b/google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStub.java @@ -0,0 +1,97 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.redis.v1.stub; + +import static com.google.cloud.redis.v1.CloudRedisClient.ListInstancesPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.redis.v1.CreateInstanceRequest; +import com.google.cloud.redis.v1.DeleteInstanceRequest; +import com.google.cloud.redis.v1.GetInstanceRequest; +import com.google.cloud.redis.v1.Instance; +import com.google.cloud.redis.v1.ListInstancesRequest; +import com.google.cloud.redis.v1.ListInstancesResponse; +import com.google.cloud.redis.v1.OperationMetadata; +import com.google.cloud.redis.v1.UpdateInstanceRequest; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Base stub class for Google Cloud Memorystore for Redis API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public abstract class CloudRedisStub implements BackgroundResource { + + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public OperationsStub getOperationsStub() { + throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + } + + public UnaryCallable + listInstancesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listInstancesPagedCallable()"); + } + + public UnaryCallable listInstancesCallable() { + throw new UnsupportedOperationException("Not implemented: listInstancesCallable()"); + } + + public UnaryCallable getInstanceCallable() { + throw new UnsupportedOperationException("Not implemented: getInstanceCallable()"); + } + + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallable + createInstanceOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createInstanceOperationCallable()"); + } + + public UnaryCallable createInstanceCallable() { + throw new UnsupportedOperationException("Not implemented: createInstanceCallable()"); + } + + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallable + updateInstanceOperationCallable() { + throw new UnsupportedOperationException("Not implemented: updateInstanceOperationCallable()"); + } + + public UnaryCallable updateInstanceCallable() { + throw new UnsupportedOperationException("Not implemented: updateInstanceCallable()"); + } + + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallable + deleteInstanceOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteInstanceOperationCallable()"); + } + + public UnaryCallable deleteInstanceCallable() { + throw new UnsupportedOperationException("Not implemented: deleteInstanceCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStubSettings.java b/google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStubSettings.java new file mode 100644 index 000000000000..0456e15fbf03 --- /dev/null +++ b/google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStubSettings.java @@ -0,0 +1,578 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.redis.v1.stub; + +import static com.google.cloud.redis.v1.CloudRedisClient.ListInstancesPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.redis.v1.CreateInstanceRequest; +import com.google.cloud.redis.v1.DeleteInstanceRequest; +import com.google.cloud.redis.v1.GetInstanceRequest; +import com.google.cloud.redis.v1.Instance; +import com.google.cloud.redis.v1.ListInstancesRequest; +import com.google.cloud.redis.v1.ListInstancesResponse; +import com.google.cloud.redis.v1.OperationMetadata; +import com.google.cloud.redis.v1.UpdateInstanceRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link CloudRedisStub}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (redis.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of getInstance to 30 seconds: + * + *

+ * 
+ * CloudRedisStubSettings.Builder cloudRedisSettingsBuilder =
+ *     CloudRedisStubSettings.newBuilder();
+ * cloudRedisSettingsBuilder.getInstanceSettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * CloudRedisStubSettings cloudRedisSettings = cloudRedisSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class CloudRedisStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final PagedCallSettings< + ListInstancesRequest, ListInstancesResponse, ListInstancesPagedResponse> + listInstancesSettings; + private final UnaryCallSettings getInstanceSettings; + private final UnaryCallSettings createInstanceSettings; + private final OperationCallSettings + createInstanceOperationSettings; + private final UnaryCallSettings updateInstanceSettings; + private final OperationCallSettings + updateInstanceOperationSettings; + private final UnaryCallSettings deleteInstanceSettings; + private final OperationCallSettings + deleteInstanceOperationSettings; + + /** Returns the object with the settings used for calls to listInstances. */ + public PagedCallSettings + listInstancesSettings() { + return listInstancesSettings; + } + + /** Returns the object with the settings used for calls to getInstance. */ + public UnaryCallSettings getInstanceSettings() { + return getInstanceSettings; + } + + /** Returns the object with the settings used for calls to createInstance. */ + public UnaryCallSettings createInstanceSettings() { + return createInstanceSettings; + } + + /** Returns the object with the settings used for calls to createInstance. */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings + createInstanceOperationSettings() { + return createInstanceOperationSettings; + } + + /** Returns the object with the settings used for calls to updateInstance. */ + public UnaryCallSettings updateInstanceSettings() { + return updateInstanceSettings; + } + + /** Returns the object with the settings used for calls to updateInstance. */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings + updateInstanceOperationSettings() { + return updateInstanceOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteInstance. */ + public UnaryCallSettings deleteInstanceSettings() { + return deleteInstanceSettings; + } + + /** Returns the object with the settings used for calls to deleteInstance. */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings + deleteInstanceOperationSettings() { + return deleteInstanceOperationSettings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public CloudRedisStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcCloudRedisStub.create(this); + } else { + throw new UnsupportedOperationException( + "Transport not supported: " + getTransportChannelProvider().getTransportName()); + } + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "redis.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(CloudRedisStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected CloudRedisStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + listInstancesSettings = settingsBuilder.listInstancesSettings().build(); + getInstanceSettings = settingsBuilder.getInstanceSettings().build(); + createInstanceSettings = settingsBuilder.createInstanceSettings().build(); + createInstanceOperationSettings = settingsBuilder.createInstanceOperationSettings().build(); + updateInstanceSettings = settingsBuilder.updateInstanceSettings().build(); + updateInstanceOperationSettings = settingsBuilder.updateInstanceOperationSettings().build(); + deleteInstanceSettings = settingsBuilder.deleteInstanceSettings().build(); + deleteInstanceOperationSettings = settingsBuilder.deleteInstanceOperationSettings().build(); + } + + private static final PagedListDescriptor + LIST_INSTANCES_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListInstancesRequest injectToken(ListInstancesRequest payload, String token) { + return ListInstancesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListInstancesRequest injectPageSize(ListInstancesRequest payload, int pageSize) { + return ListInstancesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListInstancesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListInstancesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListInstancesResponse payload) { + return payload.getInstancesList(); + } + }; + + private static final PagedListResponseFactory< + ListInstancesRequest, ListInstancesResponse, ListInstancesPagedResponse> + LIST_INSTANCES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListInstancesRequest, ListInstancesResponse, ListInstancesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListInstancesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_INSTANCES_PAGE_STR_DESC, request, context); + return ListInstancesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Builder for CloudRedisStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + + private final PagedCallSettings.Builder< + ListInstancesRequest, ListInstancesResponse, ListInstancesPagedResponse> + listInstancesSettings; + private final UnaryCallSettings.Builder getInstanceSettings; + private final UnaryCallSettings.Builder + createInstanceSettings; + private final OperationCallSettings.Builder + createInstanceOperationSettings; + private final UnaryCallSettings.Builder + updateInstanceSettings; + private final OperationCallSettings.Builder + updateInstanceOperationSettings; + private final UnaryCallSettings.Builder + deleteInstanceSettings; + private final OperationCallSettings.Builder + deleteInstanceOperationSettings; + + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "idempotent", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(20000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(20000L)) + .setTotalTimeout(Duration.ofMillis(600000L)) + .build(); + definitions.put("default", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + listInstancesSettings = PagedCallSettings.newBuilder(LIST_INSTANCES_PAGE_STR_FACT); + + getInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + createInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + createInstanceOperationSettings = OperationCallSettings.newBuilder(); + + updateInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + updateInstanceOperationSettings = OperationCallSettings.newBuilder(); + + deleteInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + deleteInstanceOperationSettings = OperationCallSettings.newBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listInstancesSettings, + getInstanceSettings, + createInstanceSettings, + updateInstanceSettings, + deleteInstanceSettings); + + initDefaults(this); + } + + private static Builder createDefault() { + Builder builder = new Builder((ClientContext) null); + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + + builder + .listInstancesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .getInstanceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .createInstanceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .updateInstanceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .deleteInstanceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + builder + .createInstanceOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Instance.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(60000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(360000L)) + .setInitialRpcTimeout(Duration.ZERO) // ignored + .setRpcTimeoutMultiplier(1.0) // ignored + .setMaxRpcTimeout(Duration.ZERO) // ignored + .setTotalTimeout(Duration.ofMillis(1200000L)) + .build())); + builder + .updateInstanceOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Instance.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(60000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(360000L)) + .setInitialRpcTimeout(Duration.ZERO) // ignored + .setRpcTimeoutMultiplier(1.0) // ignored + .setMaxRpcTimeout(Duration.ZERO) // ignored + .setTotalTimeout(Duration.ofMillis(1200000L)) + .build())); + builder + .deleteInstanceOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(60000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(360000L)) + .setInitialRpcTimeout(Duration.ZERO) // ignored + .setRpcTimeoutMultiplier(1.0) // ignored + .setMaxRpcTimeout(Duration.ZERO) // ignored + .setTotalTimeout(Duration.ofMillis(1200000L)) + .build())); + + return builder; + } + + protected Builder(CloudRedisStubSettings settings) { + super(settings); + + listInstancesSettings = settings.listInstancesSettings.toBuilder(); + getInstanceSettings = settings.getInstanceSettings.toBuilder(); + createInstanceSettings = settings.createInstanceSettings.toBuilder(); + createInstanceOperationSettings = settings.createInstanceOperationSettings.toBuilder(); + updateInstanceSettings = settings.updateInstanceSettings.toBuilder(); + updateInstanceOperationSettings = settings.updateInstanceOperationSettings.toBuilder(); + deleteInstanceSettings = settings.deleteInstanceSettings.toBuilder(); + deleteInstanceOperationSettings = settings.deleteInstanceOperationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listInstancesSettings, + getInstanceSettings, + createInstanceSettings, + updateInstanceSettings, + deleteInstanceSettings); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to listInstances. */ + public PagedCallSettings.Builder< + ListInstancesRequest, ListInstancesResponse, ListInstancesPagedResponse> + listInstancesSettings() { + return listInstancesSettings; + } + + /** Returns the builder for the settings used for calls to getInstance. */ + public UnaryCallSettings.Builder getInstanceSettings() { + return getInstanceSettings; + } + + /** Returns the builder for the settings used for calls to createInstance. */ + public UnaryCallSettings.Builder createInstanceSettings() { + return createInstanceSettings; + } + + /** Returns the builder for the settings used for calls to createInstance. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + createInstanceOperationSettings() { + return createInstanceOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateInstance. */ + public UnaryCallSettings.Builder updateInstanceSettings() { + return updateInstanceSettings; + } + + /** Returns the builder for the settings used for calls to updateInstance. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + updateInstanceOperationSettings() { + return updateInstanceOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteInstance. */ + public UnaryCallSettings.Builder deleteInstanceSettings() { + return deleteInstanceSettings; + } + + /** Returns the builder for the settings used for calls to deleteInstance. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + deleteInstanceOperationSettings() { + return deleteInstanceOperationSettings; + } + + @Override + public CloudRedisStubSettings build() throws IOException { + return new CloudRedisStubSettings(this); + } + } +} diff --git a/google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/GrpcCloudRedisCallableFactory.java b/google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/GrpcCloudRedisCallableFactory.java new file mode 100644 index 000000000000..84e4dd99a0c0 --- /dev/null +++ b/google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/GrpcCloudRedisCallableFactory.java @@ -0,0 +1,116 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.redis.v1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC callable factory implementation for Google Cloud Memorystore for Redis API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator") +@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") +public class GrpcCloudRedisCallableFactory implements GrpcStubCallableFactory { + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings pagedCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable( + grpcCallSettings, pagedCallSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings batchingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, batchingCallSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, operationCallSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } +} diff --git a/google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/GrpcCloudRedisStub.java b/google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/GrpcCloudRedisStub.java new file mode 100644 index 000000000000..ce0855f72b60 --- /dev/null +++ b/google-cloud-clients/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/GrpcCloudRedisStub.java @@ -0,0 +1,295 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.redis.v1.stub; + +import static com.google.cloud.redis.v1.CloudRedisClient.ListInstancesPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.redis.v1.CreateInstanceRequest; +import com.google.cloud.redis.v1.DeleteInstanceRequest; +import com.google.cloud.redis.v1.GetInstanceRequest; +import com.google.cloud.redis.v1.Instance; +import com.google.cloud.redis.v1.ListInstancesRequest; +import com.google.cloud.redis.v1.ListInstancesResponse; +import com.google.cloud.redis.v1.OperationMetadata; +import com.google.cloud.redis.v1.UpdateInstanceRequest; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC stub implementation for Google Cloud Memorystore for Redis API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public class GrpcCloudRedisStub extends CloudRedisStub { + + private static final MethodDescriptor + listInstancesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.redis.v1.CloudRedis/ListInstances") + .setRequestMarshaller( + ProtoUtils.marshaller(ListInstancesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListInstancesResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor getInstanceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.redis.v1.CloudRedis/GetInstance") + .setRequestMarshaller(ProtoUtils.marshaller(GetInstanceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Instance.getDefaultInstance())) + .build(); + private static final MethodDescriptor + createInstanceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.redis.v1.CloudRedis/CreateInstance") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateInstanceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor + updateInstanceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.redis.v1.CloudRedis/UpdateInstance") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateInstanceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor + deleteInstanceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.redis.v1.CloudRedis/DeleteInstance") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteInstanceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + + private final UnaryCallable listInstancesCallable; + private final UnaryCallable + listInstancesPagedCallable; + private final UnaryCallable getInstanceCallable; + private final UnaryCallable createInstanceCallable; + private final OperationCallable + createInstanceOperationCallable; + private final UnaryCallable updateInstanceCallable; + private final OperationCallable + updateInstanceOperationCallable; + private final UnaryCallable deleteInstanceCallable; + private final OperationCallable + deleteInstanceOperationCallable; + + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcCloudRedisStub create(CloudRedisStubSettings settings) + throws IOException { + return new GrpcCloudRedisStub(settings, ClientContext.create(settings)); + } + + public static final GrpcCloudRedisStub create(ClientContext clientContext) throws IOException { + return new GrpcCloudRedisStub(CloudRedisStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcCloudRedisStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcCloudRedisStub( + CloudRedisStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcCloudRedisStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcCloudRedisStub(CloudRedisStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcCloudRedisCallableFactory()); + } + + /** + * Constructs an instance of GrpcCloudRedisStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcCloudRedisStub( + CloudRedisStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings listInstancesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listInstancesMethodDescriptor) + .build(); + GrpcCallSettings getInstanceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getInstanceMethodDescriptor) + .build(); + GrpcCallSettings createInstanceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createInstanceMethodDescriptor) + .build(); + GrpcCallSettings updateInstanceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateInstanceMethodDescriptor) + .build(); + GrpcCallSettings deleteInstanceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteInstanceMethodDescriptor) + .build(); + + this.listInstancesCallable = + callableFactory.createUnaryCallable( + listInstancesTransportSettings, settings.listInstancesSettings(), clientContext); + this.listInstancesPagedCallable = + callableFactory.createPagedCallable( + listInstancesTransportSettings, settings.listInstancesSettings(), clientContext); + this.getInstanceCallable = + callableFactory.createUnaryCallable( + getInstanceTransportSettings, settings.getInstanceSettings(), clientContext); + this.createInstanceCallable = + callableFactory.createUnaryCallable( + createInstanceTransportSettings, settings.createInstanceSettings(), clientContext); + this.createInstanceOperationCallable = + callableFactory.createOperationCallable( + createInstanceTransportSettings, + settings.createInstanceOperationSettings(), + clientContext, + this.operationsStub); + this.updateInstanceCallable = + callableFactory.createUnaryCallable( + updateInstanceTransportSettings, settings.updateInstanceSettings(), clientContext); + this.updateInstanceOperationCallable = + callableFactory.createOperationCallable( + updateInstanceTransportSettings, + settings.updateInstanceOperationSettings(), + clientContext, + this.operationsStub); + this.deleteInstanceCallable = + callableFactory.createUnaryCallable( + deleteInstanceTransportSettings, settings.deleteInstanceSettings(), clientContext); + this.deleteInstanceOperationCallable = + callableFactory.createOperationCallable( + deleteInstanceTransportSettings, + settings.deleteInstanceOperationSettings(), + clientContext, + this.operationsStub); + + backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + public UnaryCallable + listInstancesPagedCallable() { + return listInstancesPagedCallable; + } + + public UnaryCallable listInstancesCallable() { + return listInstancesCallable; + } + + public UnaryCallable getInstanceCallable() { + return getInstanceCallable; + } + + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallable + createInstanceOperationCallable() { + return createInstanceOperationCallable; + } + + public UnaryCallable createInstanceCallable() { + return createInstanceCallable; + } + + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallable + updateInstanceOperationCallable() { + return updateInstanceOperationCallable; + } + + public UnaryCallable updateInstanceCallable() { + return updateInstanceCallable; + } + + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallable + deleteInstanceOperationCallable() { + return deleteInstanceOperationCallable; + } + + public UnaryCallable deleteInstanceCallable() { + return deleteInstanceCallable; + } + + @Override + public final void close() { + shutdown(); + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-clients/google-cloud-redis/src/test/java/com/google/cloud/redis/v1/CloudRedisClientTest.java b/google-cloud-clients/google-cloud-redis/src/test/java/com/google/cloud/redis/v1/CloudRedisClientTest.java new file mode 100644 index 000000000000..2975ba212f9f --- /dev/null +++ b/google-cloud-clients/google-cloud-redis/src/test/java/com/google/cloud/redis/v1/CloudRedisClientTest.java @@ -0,0 +1,411 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.redis.v1; + +import static com.google.cloud.redis.v1.CloudRedisClient.ListInstancesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.cloud.redis.v1.Instance.Tier; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.Status; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.concurrent.ExecutionException; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@javax.annotation.Generated("by GAPIC") +public class CloudRedisClientTest { + private static MockCloudRedis mockCloudRedis; + private static MockServiceHelper serviceHelper; + private CloudRedisClient client; + private LocalChannelProvider channelProvider; + + @BeforeClass + public static void startStaticServer() { + mockCloudRedis = new MockCloudRedis(); + serviceHelper = + new MockServiceHelper("in-process-1", Arrays.asList(mockCloudRedis)); + serviceHelper.start(); + } + + @AfterClass + public static void stopServer() { + serviceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + serviceHelper.reset(); + channelProvider = serviceHelper.createChannelProvider(); + CloudRedisSettings settings = + CloudRedisSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = CloudRedisClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + @SuppressWarnings("all") + public void listInstancesTest() { + String nextPageToken = ""; + Instance instancesElement = Instance.newBuilder().build(); + List instances = Arrays.asList(instancesElement); + ListInstancesResponse expectedResponse = + ListInstancesResponse.newBuilder() + .setNextPageToken(nextPageToken) + .addAllInstances(instances) + .build(); + mockCloudRedis.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListInstancesPagedResponse pagedListResponse = client.listInstances(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getInstancesList().get(0), resources.get(0)); + + List actualRequests = mockCloudRedis.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListInstancesRequest actualRequest = (ListInstancesRequest) actualRequests.get(0); + + Assert.assertEquals(parent, LocationName.parse(actualRequest.getParent())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void listInstancesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockCloudRedis.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + client.listInstances(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void getInstanceTest() { + String name2 = "name2-1052831874"; + String displayName = "displayName1615086568"; + String locationId = "locationId552319461"; + String alternativeLocationId = "alternativeLocationId-718920621"; + String redisVersion = "redisVersion-685310444"; + String reservedIpRange = "reservedIpRange-1082940580"; + String host = "host3208616"; + int port = 3446913; + String currentLocationId = "currentLocationId1312712735"; + String statusMessage = "statusMessage-239442758"; + int memorySizeGb = 34199707; + String authorizedNetwork = "authorizedNetwork-1733809270"; + Instance expectedResponse = + Instance.newBuilder() + .setName(name2) + .setDisplayName(displayName) + .setLocationId(locationId) + .setAlternativeLocationId(alternativeLocationId) + .setRedisVersion(redisVersion) + .setReservedIpRange(reservedIpRange) + .setHost(host) + .setPort(port) + .setCurrentLocationId(currentLocationId) + .setStatusMessage(statusMessage) + .setMemorySizeGb(memorySizeGb) + .setAuthorizedNetwork(authorizedNetwork) + .build(); + mockCloudRedis.addResponse(expectedResponse); + + InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + + Instance actualResponse = client.getInstance(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudRedis.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetInstanceRequest actualRequest = (GetInstanceRequest) actualRequests.get(0); + + Assert.assertEquals(name, InstanceName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void getInstanceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockCloudRedis.addException(exception); + + try { + InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + + client.getInstance(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void createInstanceTest() throws Exception { + String name = "name3373707"; + String displayName = "displayName1615086568"; + String locationId = "locationId552319461"; + String alternativeLocationId = "alternativeLocationId-718920621"; + String redisVersion = "redisVersion-685310444"; + String reservedIpRange = "reservedIpRange-1082940580"; + String host = "host3208616"; + int port = 3446913; + String currentLocationId = "currentLocationId1312712735"; + String statusMessage = "statusMessage-239442758"; + int memorySizeGb2 = 1493816946; + String authorizedNetwork = "authorizedNetwork-1733809270"; + Instance expectedResponse = + Instance.newBuilder() + .setName(name) + .setDisplayName(displayName) + .setLocationId(locationId) + .setAlternativeLocationId(alternativeLocationId) + .setRedisVersion(redisVersion) + .setReservedIpRange(reservedIpRange) + .setHost(host) + .setPort(port) + .setCurrentLocationId(currentLocationId) + .setStatusMessage(statusMessage) + .setMemorySizeGb(memorySizeGb2) + .setAuthorizedNetwork(authorizedNetwork) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createInstanceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCloudRedis.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String instanceId = "test_instance"; + Instance.Tier tier = Instance.Tier.BASIC; + int memorySizeGb = 1; + Instance instance = Instance.newBuilder().setTier(tier).setMemorySizeGb(memorySizeGb).build(); + + Instance actualResponse = client.createInstanceAsync(parent, instanceId, instance).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudRedis.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateInstanceRequest actualRequest = (CreateInstanceRequest) actualRequests.get(0); + + Assert.assertEquals(parent, LocationName.parse(actualRequest.getParent())); + Assert.assertEquals(instanceId, actualRequest.getInstanceId()); + Assert.assertEquals(instance, actualRequest.getInstance()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void createInstanceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockCloudRedis.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String instanceId = "test_instance"; + Instance.Tier tier = Instance.Tier.BASIC; + int memorySizeGb = 1; + Instance instance = Instance.newBuilder().setTier(tier).setMemorySizeGb(memorySizeGb).build(); + + client.createInstanceAsync(parent, instanceId, instance).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + @SuppressWarnings("all") + public void updateInstanceTest() throws Exception { + String name = "name3373707"; + String displayName2 = "displayName21615000987"; + String locationId = "locationId552319461"; + String alternativeLocationId = "alternativeLocationId-718920621"; + String redisVersion = "redisVersion-685310444"; + String reservedIpRange = "reservedIpRange-1082940580"; + String host = "host3208616"; + int port = 3446913; + String currentLocationId = "currentLocationId1312712735"; + String statusMessage = "statusMessage-239442758"; + int memorySizeGb2 = 1493816946; + String authorizedNetwork = "authorizedNetwork-1733809270"; + Instance expectedResponse = + Instance.newBuilder() + .setName(name) + .setDisplayName(displayName2) + .setLocationId(locationId) + .setAlternativeLocationId(alternativeLocationId) + .setRedisVersion(redisVersion) + .setReservedIpRange(reservedIpRange) + .setHost(host) + .setPort(port) + .setCurrentLocationId(currentLocationId) + .setStatusMessage(statusMessage) + .setMemorySizeGb(memorySizeGb2) + .setAuthorizedNetwork(authorizedNetwork) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateInstanceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCloudRedis.addResponse(resultOperation); + + String pathsElement = "display_name"; + String pathsElement2 = "memory_size_gb"; + List paths = Arrays.asList(pathsElement, pathsElement2); + FieldMask updateMask = FieldMask.newBuilder().addAllPaths(paths).build(); + String displayName = "UpdatedDisplayName"; + int memorySizeGb = 4; + Instance instance = + Instance.newBuilder().setDisplayName(displayName).setMemorySizeGb(memorySizeGb).build(); + + Instance actualResponse = client.updateInstanceAsync(updateMask, instance).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudRedis.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateInstanceRequest actualRequest = (UpdateInstanceRequest) actualRequests.get(0); + + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertEquals(instance, actualRequest.getInstance()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void updateInstanceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockCloudRedis.addException(exception); + + try { + String pathsElement = "display_name"; + String pathsElement2 = "memory_size_gb"; + List paths = Arrays.asList(pathsElement, pathsElement2); + FieldMask updateMask = FieldMask.newBuilder().addAllPaths(paths).build(); + String displayName = "UpdatedDisplayName"; + int memorySizeGb = 4; + Instance instance = + Instance.newBuilder().setDisplayName(displayName).setMemorySizeGb(memorySizeGb).build(); + + client.updateInstanceAsync(updateMask, instance).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + @SuppressWarnings("all") + public void deleteInstanceTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteInstanceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCloudRedis.addResponse(resultOperation); + + InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + + Empty actualResponse = client.deleteInstanceAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudRedis.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteInstanceRequest actualRequest = (DeleteInstanceRequest) actualRequests.get(0); + + Assert.assertEquals(name, InstanceName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void deleteInstanceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockCloudRedis.addException(exception); + + try { + InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + + client.deleteInstanceAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } +} diff --git a/google-cloud-clients/google-cloud-redis/src/test/java/com/google/cloud/redis/v1/MockCloudRedis.java b/google-cloud-clients/google-cloud-redis/src/test/java/com/google/cloud/redis/v1/MockCloudRedis.java new file mode 100644 index 000000000000..cee6f5f1dbfc --- /dev/null +++ b/google-cloud-clients/google-cloud-redis/src/test/java/com/google/cloud/redis/v1/MockCloudRedis.java @@ -0,0 +1,57 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.redis.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.ServerServiceDefinition; +import java.util.List; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockCloudRedis implements MockGrpcService { + private final MockCloudRedisImpl serviceImpl; + + public MockCloudRedis() { + serviceImpl = new MockCloudRedisImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(GeneratedMessageV3 response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/google-cloud-clients/google-cloud-redis/src/test/java/com/google/cloud/redis/v1/MockCloudRedisImpl.java b/google-cloud-clients/google-cloud-redis/src/test/java/com/google/cloud/redis/v1/MockCloudRedisImpl.java new file mode 100644 index 000000000000..0fe2e9c2ae82 --- /dev/null +++ b/google-cloud-clients/google-cloud-redis/src/test/java/com/google/cloud/redis/v1/MockCloudRedisImpl.java @@ -0,0 +1,133 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.redis.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.redis.v1.CloudRedisGrpc.CloudRedisImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockCloudRedisImpl extends CloudRedisImplBase { + private ArrayList requests; + private Queue responses; + + public MockCloudRedisImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(GeneratedMessageV3 response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void listInstances( + ListInstancesRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof ListInstancesResponse) { + requests.add(request); + responseObserver.onNext((ListInstancesResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void getInstance(GetInstanceRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Instance) { + requests.add(request); + responseObserver.onNext((Instance) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void createInstance( + CreateInstanceRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext((Operation) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void updateInstance( + UpdateInstanceRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext((Operation) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void deleteInstance( + DeleteInstanceRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext((Operation) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } +} diff --git a/google-cloud-clients/google-cloud-video-intelligence/pom.xml b/google-cloud-clients/google-cloud-video-intelligence/pom.xml index adff02cc3852..6c1a3deb4a2b 100644 --- a/google-cloud-clients/google-cloud-video-intelligence/pom.xml +++ b/google-cloud-clients/google-cloud-video-intelligence/pom.xml @@ -42,6 +42,10 @@ com.google.api.grpc proto-google-cloud-video-intelligence-v1p1beta1 + + com.google.api.grpc + proto-google-cloud-video-intelligence-v1p2beta1 + io.grpc grpc-netty-shaded @@ -95,6 +99,11 @@ grpc-google-cloud-video-intelligence-v1p1beta1 test + + com.google.api.grpc + grpc-google-cloud-video-intelligence-v1p2beta1 + test + com.google.api gax-grpc diff --git a/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoIntelligenceServiceClient.java b/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoIntelligenceServiceClient.java new file mode 100644 index 000000000000..ca2d434d6d88 --- /dev/null +++ b/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoIntelligenceServiceClient.java @@ -0,0 +1,328 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.videointelligence.v1p2beta1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.videointelligence.v1p2beta1.stub.VideoIntelligenceServiceStub; +import com.google.cloud.videointelligence.v1p2beta1.stub.VideoIntelligenceServiceStubSettings; +import com.google.longrunning.Operation; +import com.google.longrunning.OperationsClient; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND SERVICE +/** + * Service Description: Service that implements Google Cloud Video Intelligence API. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

+ * 
+ * try (VideoIntelligenceServiceClient videoIntelligenceServiceClient = VideoIntelligenceServiceClient.create()) {
+ *   String inputUri = "gs://demomaker/cat.mp4";
+ *   Feature featuresElement = Feature.LABEL_DETECTION;
+ *   List<Feature> features = Arrays.asList(featuresElement);
+ *   AnnotateVideoResponse response = videoIntelligenceServiceClient.annotateVideoAsync(inputUri, features).get();
+ * }
+ * 
+ * 
+ * + *

Note: close() needs to be called on the videoIntelligenceServiceClient object to clean up + * resources such as threads. In the example above, try-with-resources is used, which automatically + * calls close(). + * + *

The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

    + *
  1. A "flattened" method. With this type of method, the fields of the request type have been + * converted into function parameters. It may be the case that not all fields are available as + * parameters, and not every API method will have a flattened method entry point. + *
  2. A "request object" method. This type of method only takes one parameter, a request object, + * which must be constructed before the call. Not every API method will have a request object + * method. + *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API + * callable object, which can be used to initiate calls to the service. + *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of + * VideoIntelligenceServiceSettings to create(). For example: + * + *

To customize credentials: + * + *

+ * 
+ * VideoIntelligenceServiceSettings videoIntelligenceServiceSettings =
+ *     VideoIntelligenceServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * VideoIntelligenceServiceClient videoIntelligenceServiceClient =
+ *     VideoIntelligenceServiceClient.create(videoIntelligenceServiceSettings);
+ * 
+ * 
+ * + * To customize the endpoint: + * + *
+ * 
+ * VideoIntelligenceServiceSettings videoIntelligenceServiceSettings =
+ *     VideoIntelligenceServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * VideoIntelligenceServiceClient videoIntelligenceServiceClient =
+ *     VideoIntelligenceServiceClient.create(videoIntelligenceServiceSettings);
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class VideoIntelligenceServiceClient implements BackgroundResource { + private final VideoIntelligenceServiceSettings settings; + private final VideoIntelligenceServiceStub stub; + private final OperationsClient operationsClient; + + /** Constructs an instance of VideoIntelligenceServiceClient with default settings. */ + public static final VideoIntelligenceServiceClient create() throws IOException { + return create(VideoIntelligenceServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of VideoIntelligenceServiceClient, using the given settings. The + * channels are created based on the settings passed in, or defaults for any settings that are not + * set. + */ + public static final VideoIntelligenceServiceClient create( + VideoIntelligenceServiceSettings settings) throws IOException { + return new VideoIntelligenceServiceClient(settings); + } + + /** + * Constructs an instance of VideoIntelligenceServiceClient, using the given stub for making + * calls. This is for advanced usage - prefer to use VideoIntelligenceServiceSettings}. + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public static final VideoIntelligenceServiceClient create(VideoIntelligenceServiceStub stub) { + return new VideoIntelligenceServiceClient(stub); + } + + /** + * Constructs an instance of VideoIntelligenceServiceClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected VideoIntelligenceServiceClient(VideoIntelligenceServiceSettings settings) + throws IOException { + this.settings = settings; + this.stub = ((VideoIntelligenceServiceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected VideoIntelligenceServiceClient(VideoIntelligenceServiceStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + public final VideoIntelligenceServiceSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public VideoIntelligenceServiceStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationsClient getOperationsClient() { + return operationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Performs asynchronous video annotation. Progress and results can be retrieved through the + * `google.longrunning.Operations` interface. `Operation.metadata` contains + * `AnnotateVideoProgress` (progress). `Operation.response` contains `AnnotateVideoResponse` + * (results). + * + *

Sample code: + * + *


+   * try (VideoIntelligenceServiceClient videoIntelligenceServiceClient = VideoIntelligenceServiceClient.create()) {
+   *   String inputUri = "gs://demomaker/cat.mp4";
+   *   Feature featuresElement = Feature.LABEL_DETECTION;
+   *   List<Feature> features = Arrays.asList(featuresElement);
+   *   AnnotateVideoResponse response = videoIntelligenceServiceClient.annotateVideoAsync(inputUri, features).get();
+   * }
+   * 
+ * + * @param inputUri Input video location. Currently, only [Google Cloud + * Storage](https://cloud.google.com/storage/) URIs are supported, which must be specified in + * the following format: `gs://bucket-id/object-id` (other URI formats return + * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more + * information, see [Request URIs](/storage/docs/reference-uris). A video URI may include + * wildcards in `object-id`, and thus identify multiple videos. Supported wildcards: '*' + * to match 0 or more characters; '?' to match 1 character. If unset, the input video should + * be embedded in the request as `input_content`. If set, `input_content` should be unset. + * @param features Requested video annotation features. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture annotateVideoAsync( + String inputUri, List features) { + + AnnotateVideoRequest request = + AnnotateVideoRequest.newBuilder().setInputUri(inputUri).addAllFeatures(features).build(); + return annotateVideoAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Performs asynchronous video annotation. Progress and results can be retrieved through the + * `google.longrunning.Operations` interface. `Operation.metadata` contains + * `AnnotateVideoProgress` (progress). `Operation.response` contains `AnnotateVideoResponse` + * (results). + * + *

Sample code: + * + *


+   * try (VideoIntelligenceServiceClient videoIntelligenceServiceClient = VideoIntelligenceServiceClient.create()) {
+   *   String inputUri = "gs://demomaker/cat.mp4";
+   *   Feature featuresElement = Feature.LABEL_DETECTION;
+   *   List<Feature> features = Arrays.asList(featuresElement);
+   *   AnnotateVideoRequest request = AnnotateVideoRequest.newBuilder()
+   *     .setInputUri(inputUri)
+   *     .addAllFeatures(features)
+   *     .build();
+   *   AnnotateVideoResponse response = videoIntelligenceServiceClient.annotateVideoAsync(request).get();
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture annotateVideoAsync( + AnnotateVideoRequest request) { + return annotateVideoOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Performs asynchronous video annotation. Progress and results can be retrieved through the + * `google.longrunning.Operations` interface. `Operation.metadata` contains + * `AnnotateVideoProgress` (progress). `Operation.response` contains `AnnotateVideoResponse` + * (results). + * + *

Sample code: + * + *


+   * try (VideoIntelligenceServiceClient videoIntelligenceServiceClient = VideoIntelligenceServiceClient.create()) {
+   *   String inputUri = "gs://demomaker/cat.mp4";
+   *   Feature featuresElement = Feature.LABEL_DETECTION;
+   *   List<Feature> features = Arrays.asList(featuresElement);
+   *   AnnotateVideoRequest request = AnnotateVideoRequest.newBuilder()
+   *     .setInputUri(inputUri)
+   *     .addAllFeatures(features)
+   *     .build();
+   *   OperationFuture<Operation> future = videoIntelligenceServiceClient.annotateVideoOperationCallable().futureCall(request);
+   *   // Do something
+   *   AnnotateVideoResponse response = future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + annotateVideoOperationCallable() { + return stub.annotateVideoOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Performs asynchronous video annotation. Progress and results can be retrieved through the + * `google.longrunning.Operations` interface. `Operation.metadata` contains + * `AnnotateVideoProgress` (progress). `Operation.response` contains `AnnotateVideoResponse` + * (results). + * + *

Sample code: + * + *


+   * try (VideoIntelligenceServiceClient videoIntelligenceServiceClient = VideoIntelligenceServiceClient.create()) {
+   *   String inputUri = "gs://demomaker/cat.mp4";
+   *   Feature featuresElement = Feature.LABEL_DETECTION;
+   *   List<Feature> features = Arrays.asList(featuresElement);
+   *   AnnotateVideoRequest request = AnnotateVideoRequest.newBuilder()
+   *     .setInputUri(inputUri)
+   *     .addAllFeatures(features)
+   *     .build();
+   *   ApiFuture<Operation> future = videoIntelligenceServiceClient.annotateVideoCallable().futureCall(request);
+   *   // Do something
+   *   Operation response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable annotateVideoCallable() { + return stub.annotateVideoCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoIntelligenceServiceSettings.java b/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoIntelligenceServiceSettings.java new file mode 100644 index 000000000000..1fb265e62626 --- /dev/null +++ b/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoIntelligenceServiceSettings.java @@ -0,0 +1,197 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.videointelligence.v1p2beta1; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.videointelligence.v1p2beta1.stub.VideoIntelligenceServiceStubSettings; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link VideoIntelligenceServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (videointelligence.googleapis.com) and default port (443) are + * used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of annotateVideoAsync to 30 seconds: + * + *

+ * 
+ * VideoIntelligenceServiceSettings.Builder videoIntelligenceServiceSettingsBuilder =
+ *     VideoIntelligenceServiceSettings.newBuilder();
+ * videoIntelligenceServiceSettingsBuilder.annotateVideoSettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * VideoIntelligenceServiceSettings videoIntelligenceServiceSettings = videoIntelligenceServiceSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class VideoIntelligenceServiceSettings + extends ClientSettings { + /** Returns the object with the settings used for calls to annotateVideo. */ + public UnaryCallSettings annotateVideoSettings() { + return ((VideoIntelligenceServiceStubSettings) getStubSettings()).annotateVideoSettings(); + } + + /** Returns the object with the settings used for calls to annotateVideo. */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public OperationCallSettings + annotateVideoOperationSettings() { + return ((VideoIntelligenceServiceStubSettings) getStubSettings()) + .annotateVideoOperationSettings(); + } + + public static final VideoIntelligenceServiceSettings create( + VideoIntelligenceServiceStubSettings stub) throws IOException { + return new VideoIntelligenceServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return VideoIntelligenceServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return VideoIntelligenceServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return VideoIntelligenceServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return VideoIntelligenceServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return VideoIntelligenceServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return VideoIntelligenceServiceStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return VideoIntelligenceServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected VideoIntelligenceServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for VideoIntelligenceServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + protected Builder() throws IOException { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(VideoIntelligenceServiceStubSettings.newBuilder(clientContext)); + } + + private static Builder createDefault() { + return new Builder(VideoIntelligenceServiceStubSettings.newBuilder()); + } + + protected Builder(VideoIntelligenceServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(VideoIntelligenceServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + public VideoIntelligenceServiceStubSettings.Builder getStubSettingsBuilder() { + return ((VideoIntelligenceServiceStubSettings.Builder) getStubSettings()); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to annotateVideo. */ + public UnaryCallSettings.Builder annotateVideoSettings() { + return getStubSettingsBuilder().annotateVideoSettings(); + } + + /** Returns the builder for the settings used for calls to annotateVideo. */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + AnnotateVideoRequest, AnnotateVideoResponse, AnnotateVideoProgress> + annotateVideoOperationSettings() { + return getStubSettingsBuilder().annotateVideoOperationSettings(); + } + + @Override + public VideoIntelligenceServiceSettings build() throws IOException { + return new VideoIntelligenceServiceSettings(this); + } + } +} diff --git a/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/package-info.java b/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/package-info.java new file mode 100644 index 000000000000..3477c47bb675 --- /dev/null +++ b/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/package-info.java @@ -0,0 +1,39 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * A client to Cloud Video Intelligence API. + * + *

The interfaces provided are listed below, along with usage samples. + * + *

============================== VideoIntelligenceServiceClient ============================== + * + *

Service Description: Service that implements Google Cloud Video Intelligence API. + * + *

Sample for VideoIntelligenceServiceClient: + * + *

+ * 
+ * try (VideoIntelligenceServiceClient videoIntelligenceServiceClient = VideoIntelligenceServiceClient.create()) {
+ *   String inputUri = "gs://demomaker/cat.mp4";
+ *   Feature featuresElement = Feature.LABEL_DETECTION;
+ *   List<Feature> features = Arrays.asList(featuresElement);
+ *   AnnotateVideoResponse response = videoIntelligenceServiceClient.annotateVideoAsync(inputUri, features);
+ * }
+ * 
+ * 
+ */ +package com.google.cloud.videointelligence.v1p2beta1; diff --git a/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/stub/GrpcVideoIntelligenceServiceCallableFactory.java b/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/stub/GrpcVideoIntelligenceServiceCallableFactory.java new file mode 100644 index 000000000000..92abad8bfadf --- /dev/null +++ b/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/stub/GrpcVideoIntelligenceServiceCallableFactory.java @@ -0,0 +1,116 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.videointelligence.v1p2beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC callable factory implementation for Cloud Video Intelligence API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator") +@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") +public class GrpcVideoIntelligenceServiceCallableFactory implements GrpcStubCallableFactory { + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings pagedCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable( + grpcCallSettings, pagedCallSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings batchingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, batchingCallSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, operationCallSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } +} diff --git a/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/stub/GrpcVideoIntelligenceServiceStub.java b/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/stub/GrpcVideoIntelligenceServiceStub.java new file mode 100644 index 000000000000..2391fbf5d1b7 --- /dev/null +++ b/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/stub/GrpcVideoIntelligenceServiceStub.java @@ -0,0 +1,171 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.videointelligence.v1p2beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress; +import com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest; +import com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC stub implementation for Cloud Video Intelligence API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public class GrpcVideoIntelligenceServiceStub extends VideoIntelligenceServiceStub { + + private static final MethodDescriptor + annotateVideoMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.videointelligence.v1p2beta1.VideoIntelligenceService/AnnotateVideo") + .setRequestMarshaller( + ProtoUtils.marshaller(AnnotateVideoRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + + private final UnaryCallable annotateVideoCallable; + private final OperationCallable< + AnnotateVideoRequest, AnnotateVideoResponse, AnnotateVideoProgress> + annotateVideoOperationCallable; + + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcVideoIntelligenceServiceStub create( + VideoIntelligenceServiceStubSettings settings) throws IOException { + return new GrpcVideoIntelligenceServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcVideoIntelligenceServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcVideoIntelligenceServiceStub( + VideoIntelligenceServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcVideoIntelligenceServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcVideoIntelligenceServiceStub( + VideoIntelligenceServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcVideoIntelligenceServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcVideoIntelligenceServiceStub( + VideoIntelligenceServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcVideoIntelligenceServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcVideoIntelligenceServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcVideoIntelligenceServiceStub( + VideoIntelligenceServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings annotateVideoTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(annotateVideoMethodDescriptor) + .build(); + + this.annotateVideoCallable = + callableFactory.createUnaryCallable( + annotateVideoTransportSettings, settings.annotateVideoSettings(), clientContext); + this.annotateVideoOperationCallable = + callableFactory.createOperationCallable( + annotateVideoTransportSettings, + settings.annotateVideoOperationSettings(), + clientContext, + this.operationsStub); + + backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallable + annotateVideoOperationCallable() { + return annotateVideoOperationCallable; + } + + public UnaryCallable annotateVideoCallable() { + return annotateVideoCallable; + } + + @Override + public final void close() { + shutdown(); + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/stub/VideoIntelligenceServiceStub.java b/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/stub/VideoIntelligenceServiceStub.java new file mode 100644 index 000000000000..3bb5daec9b6f --- /dev/null +++ b/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/stub/VideoIntelligenceServiceStub.java @@ -0,0 +1,56 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.videointelligence.v1p2beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress; +import com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest; +import com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Base stub class for Cloud Video Intelligence API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public abstract class VideoIntelligenceServiceStub implements BackgroundResource { + + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public OperationsStub getOperationsStub() { + throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + } + + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallable + annotateVideoOperationCallable() { + throw new UnsupportedOperationException("Not implemented: annotateVideoOperationCallable()"); + } + + public UnaryCallable annotateVideoCallable() { + throw new UnsupportedOperationException("Not implemented: annotateVideoCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/stub/VideoIntelligenceServiceStubSettings.java b/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/stub/VideoIntelligenceServiceStubSettings.java new file mode 100644 index 000000000000..e270bde83520 --- /dev/null +++ b/google-cloud-clients/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/stub/VideoIntelligenceServiceStubSettings.java @@ -0,0 +1,322 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.videointelligence.v1p2beta1.stub; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress; +import com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest; +import com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link VideoIntelligenceServiceStub}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (videointelligence.googleapis.com) and default port (443) are + * used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of annotateVideoAsync to 30 seconds: + * + *

+ * 
+ * VideoIntelligenceServiceStubSettings.Builder videoIntelligenceServiceSettingsBuilder =
+ *     VideoIntelligenceServiceStubSettings.newBuilder();
+ * videoIntelligenceServiceSettingsBuilder.annotateVideoSettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * VideoIntelligenceServiceStubSettings videoIntelligenceServiceSettings = videoIntelligenceServiceSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class VideoIntelligenceServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final UnaryCallSettings annotateVideoSettings; + private final OperationCallSettings< + AnnotateVideoRequest, AnnotateVideoResponse, AnnotateVideoProgress> + annotateVideoOperationSettings; + + /** Returns the object with the settings used for calls to annotateVideo. */ + public UnaryCallSettings annotateVideoSettings() { + return annotateVideoSettings; + } + + /** Returns the object with the settings used for calls to annotateVideo. */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings + annotateVideoOperationSettings() { + return annotateVideoOperationSettings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public VideoIntelligenceServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcVideoIntelligenceServiceStub.create(this); + } else { + throw new UnsupportedOperationException( + "Transport not supported: " + getTransportChannelProvider().getTransportName()); + } + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "videointelligence.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(VideoIntelligenceServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected VideoIntelligenceServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + annotateVideoSettings = settingsBuilder.annotateVideoSettings().build(); + annotateVideoOperationSettings = settingsBuilder.annotateVideoOperationSettings().build(); + } + + /** Builder for VideoIntelligenceServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + + private final UnaryCallSettings.Builder annotateVideoSettings; + private final OperationCallSettings.Builder< + AnnotateVideoRequest, AnnotateVideoResponse, AnnotateVideoProgress> + annotateVideoOperationSettings; + + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "idempotent", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(2.5) + .setMaxRetryDelay(Duration.ofMillis(120000L)) + .setInitialRpcTimeout(Duration.ofMillis(120000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(120000L)) + .setTotalTimeout(Duration.ofMillis(600000L)) + .build(); + definitions.put("default", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + annotateVideoSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + annotateVideoOperationSettings = OperationCallSettings.newBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of(annotateVideoSettings); + + initDefaults(this); + } + + private static Builder createDefault() { + Builder builder = new Builder((ClientContext) null); + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + + builder + .annotateVideoSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + builder + .annotateVideoOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(AnnotateVideoResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(AnnotateVideoProgress.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(20000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) // ignored + .setRpcTimeoutMultiplier(1.0) // ignored + .setMaxRpcTimeout(Duration.ZERO) // ignored + .setTotalTimeout(Duration.ofMillis(86400000L)) + .build())); + + return builder; + } + + protected Builder(VideoIntelligenceServiceStubSettings settings) { + super(settings); + + annotateVideoSettings = settings.annotateVideoSettings.toBuilder(); + annotateVideoOperationSettings = settings.annotateVideoOperationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of(annotateVideoSettings); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to annotateVideo. */ + public UnaryCallSettings.Builder annotateVideoSettings() { + return annotateVideoSettings; + } + + /** Returns the builder for the settings used for calls to annotateVideo. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + AnnotateVideoRequest, AnnotateVideoResponse, AnnotateVideoProgress> + annotateVideoOperationSettings() { + return annotateVideoOperationSettings; + } + + @Override + public VideoIntelligenceServiceStubSettings build() throws IOException { + return new VideoIntelligenceServiceStubSettings(this); + } + } +} diff --git a/google-cloud-clients/google-cloud-video-intelligence/src/test/java/com/google/cloud/videointelligence/v1p2beta1/MockVideoIntelligenceService.java b/google-cloud-clients/google-cloud-video-intelligence/src/test/java/com/google/cloud/videointelligence/v1p2beta1/MockVideoIntelligenceService.java new file mode 100644 index 000000000000..6f537cdf7493 --- /dev/null +++ b/google-cloud-clients/google-cloud-video-intelligence/src/test/java/com/google/cloud/videointelligence/v1p2beta1/MockVideoIntelligenceService.java @@ -0,0 +1,57 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.videointelligence.v1p2beta1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.ServerServiceDefinition; +import java.util.List; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockVideoIntelligenceService implements MockGrpcService { + private final MockVideoIntelligenceServiceImpl serviceImpl; + + public MockVideoIntelligenceService() { + serviceImpl = new MockVideoIntelligenceServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(GeneratedMessageV3 response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/google-cloud-clients/google-cloud-video-intelligence/src/test/java/com/google/cloud/videointelligence/v1p2beta1/MockVideoIntelligenceServiceImpl.java b/google-cloud-clients/google-cloud-video-intelligence/src/test/java/com/google/cloud/videointelligence/v1p2beta1/MockVideoIntelligenceServiceImpl.java new file mode 100644 index 000000000000..11ba75d8620a --- /dev/null +++ b/google-cloud-clients/google-cloud-video-intelligence/src/test/java/com/google/cloud/videointelligence/v1p2beta1/MockVideoIntelligenceServiceImpl.java @@ -0,0 +1,74 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.videointelligence.v1p2beta1; + +import com.google.api.core.BetaApi; +import com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceGrpc.VideoIntelligenceServiceImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockVideoIntelligenceServiceImpl extends VideoIntelligenceServiceImplBase { + private ArrayList requests; + private Queue responses; + + public MockVideoIntelligenceServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(GeneratedMessageV3 response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void annotateVideo( + AnnotateVideoRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext((Operation) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } +} diff --git a/google-cloud-clients/google-cloud-video-intelligence/src/test/java/com/google/cloud/videointelligence/v1p2beta1/VideoIntelligenceServiceClientTest.java b/google-cloud-clients/google-cloud-video-intelligence/src/test/java/com/google/cloud/videointelligence/v1p2beta1/VideoIntelligenceServiceClientTest.java new file mode 100644 index 000000000000..0cbaf299cff1 --- /dev/null +++ b/google-cloud-clients/google-cloud-video-intelligence/src/test/java/com/google/cloud/videointelligence/v1p2beta1/VideoIntelligenceServiceClientTest.java @@ -0,0 +1,130 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.videointelligence.v1p2beta1; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.Status; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.concurrent.ExecutionException; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@javax.annotation.Generated("by GAPIC") +public class VideoIntelligenceServiceClientTest { + private static MockVideoIntelligenceService mockVideoIntelligenceService; + private static MockServiceHelper serviceHelper; + private VideoIntelligenceServiceClient client; + private LocalChannelProvider channelProvider; + + @BeforeClass + public static void startStaticServer() { + mockVideoIntelligenceService = new MockVideoIntelligenceService(); + serviceHelper = + new MockServiceHelper( + "in-process-1", Arrays.asList(mockVideoIntelligenceService)); + serviceHelper.start(); + } + + @AfterClass + public static void stopServer() { + serviceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + serviceHelper.reset(); + channelProvider = serviceHelper.createChannelProvider(); + VideoIntelligenceServiceSettings settings = + VideoIntelligenceServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = VideoIntelligenceServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + @SuppressWarnings("all") + public void annotateVideoTest() throws Exception { + AnnotateVideoResponse expectedResponse = AnnotateVideoResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("annotateVideoTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVideoIntelligenceService.addResponse(resultOperation); + + String inputUri = "gs://demomaker/cat.mp4"; + Feature featuresElement = Feature.LABEL_DETECTION; + List features = Arrays.asList(featuresElement); + + AnnotateVideoResponse actualResponse = client.annotateVideoAsync(inputUri, features).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVideoIntelligenceService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + AnnotateVideoRequest actualRequest = (AnnotateVideoRequest) actualRequests.get(0); + + Assert.assertEquals(inputUri, actualRequest.getInputUri()); + Assert.assertEquals(features, actualRequest.getFeaturesList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void annotateVideoExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockVideoIntelligenceService.addException(exception); + + try { + String inputUri = "gs://demomaker/cat.mp4"; + Feature featuresElement = Feature.LABEL_DETECTION; + List features = Arrays.asList(featuresElement); + + client.annotateVideoAsync(inputUri, features).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } +} diff --git a/google-cloud-clients/google-cloud-video-intelligence/src/test/java/com/google/cloud/videointelligence/v1p2beta1/VideoIntelligenceServiceSmokeTest.java b/google-cloud-clients/google-cloud-video-intelligence/src/test/java/com/google/cloud/videointelligence/v1p2beta1/VideoIntelligenceServiceSmokeTest.java new file mode 100644 index 000000000000..54b1fb5771b2 --- /dev/null +++ b/google-cloud-clients/google-cloud-video-intelligence/src/test/java/com/google/cloud/videointelligence/v1p2beta1/VideoIntelligenceServiceSmokeTest.java @@ -0,0 +1,66 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.videointelligence.v1p2beta1; + +import com.google.common.base.Preconditions; +import java.util.Arrays; +import java.util.List; +import java.util.logging.Level; +import java.util.logging.Logger; +import org.junit.Test; + +@javax.annotation.Generated("by GAPIC") +public class VideoIntelligenceServiceSmokeTest { + private static final String PROJECT_ENV_NAME = "GOOGLE_CLOUD_PROJECT"; + private static final String LEGACY_PROJECT_ENV_NAME = "GCLOUD_PROJECT"; + + @Test + public void run() { + main(null); + } + + public static void main(String args[]) { + Logger.getLogger("").setLevel(Level.WARNING); + try { + executeNoCatch(); + System.out.println("OK"); + } catch (Exception e) { + System.err.println("Failed with exception:"); + e.printStackTrace(System.err); + System.exit(1); + } + } + + public static void executeNoCatch() throws Exception { + try (VideoIntelligenceServiceClient client = VideoIntelligenceServiceClient.create()) { + String inputUri = "gs://demomaker/cat.mp4"; + Feature featuresElement = Feature.LABEL_DETECTION; + List features = Arrays.asList(featuresElement); + + AnnotateVideoResponse response = client.annotateVideoAsync(inputUri, features).get(); + } + } + + private static String getProjectId() { + String projectId = System.getProperty(PROJECT_ENV_NAME, System.getenv(PROJECT_ENV_NAME)); + if (projectId == null) { + projectId = + System.getProperty(LEGACY_PROJECT_ENV_NAME, System.getenv(LEGACY_PROJECT_ENV_NAME)); + } + Preconditions.checkArgument(projectId != null, "A project ID is required."); + return projectId; + } +} diff --git a/google-cloud-clients/pom.xml b/google-cloud-clients/pom.xml index ae1d8cf75141..cc3cc08688a5 100644 --- a/google-cloud-clients/pom.xml +++ b/google-cloud-clients/pom.xml @@ -757,7 +757,7 @@ Stub packages - com.google.cloud.asset.v1beta1.stub:com.google.cloud.automl.v1beta1.stub:com.google.cloud.bigquery.datatransfer.v1.stub:com.google.cloud.bigtable.admin.v2.stub:com.google.cloud.bigtable.data.v2.stub*:com.google.cloud.compute.v1.stub:com.google.cloud.container.v1.stub:com.google.cloud.devtools.containeranalysis.v1beta1.stub:com.google.cloud.dataproc.v1.stub:com.google.cloud.dataproc.v1beta2.stub:com.google.cloud.dlp.v2beta1.stub:com.google.cloud.dlp.v2.stub:com.google.cloud.dialogflow.v2beta1.stub:com.google.cloud.dialogflow.v2.stub:com.google.cloud.errorreporting.v1beta1.stub:com.google.cloud.firestore.v1beta1.stub:com.google.cloud.iot.v1.stub:com.google.cloud.kms.v1.stub:com.google.cloud.language.v1beta2.stub:com.google.cloud.language.v1.stub:com.google.cloud.logging.v2.stub:com.google.cloud.monitoring.v3.stub:com.google.cloud.oslogin.v1.stub:com.google.cloud.pubsub.v1.stub:com.google.cloud.redis.v1beta1.stub:com.google.cloud.spanner.admin.database.v1.stub:com.google.cloud.spanner.admin.instance.v1.stub:com.google.cloud.spanner.v1.stub:com.google.cloud.speech.v1beta1.stub:com.google.cloud.speech.v1p1beta1.stub:com.google.cloud.speech.v1.stub:com.google.cloud.tasks.v2beta2.stub:com.google.cloud.texttospeech.v1beta1.stub:com.google.cloud.texttospeech.v1.stub:com.google.cloud.trace.v1.stub:com.google.cloud.trace.v2.stub:com.google.cloud.videointelligence.v1beta1.stub:com.google.cloud.videointelligence.v1beta2.stub:com.google.cloud.videointelligence.v1.stub:com.google.cloud.videointelligence.v1p1beta1.stub:com.google.cloud.vision.v1.stub:com.google.cloud.vision.v1p1beta1.stub:com.google.cloud.vision.v1p2beta1.stub:com.google.cloud.vision.v1p3beta1.stub:com.google.cloud.websecurityscanner.v1alpha.stub + com.google.cloud.asset.v1beta1.stub:com.google.cloud.automl.v1beta1.stub:com.google.cloud.bigquery.datatransfer.v1.stub:com.google.cloud.bigtable.admin.v2.stub:com.google.cloud.bigtable.data.v2.stub*:com.google.cloud.compute.v1.stub:com.google.cloud.container.v1.stub:com.google.cloud.devtools.containeranalysis.v1beta1.stub:com.google.cloud.dataproc.v1.stub:com.google.cloud.dataproc.v1beta2.stub:com.google.cloud.dlp.v2beta1.stub:com.google.cloud.dlp.v2.stub:com.google.cloud.dialogflow.v2beta1.stub:com.google.cloud.dialogflow.v2.stub:com.google.cloud.errorreporting.v1beta1.stub:com.google.cloud.firestore.v1beta1.stub:com.google.cloud.iot.v1.stub:com.google.cloud.kms.v1.stub:com.google.cloud.language.v1beta2.stub:com.google.cloud.language.v1.stub:com.google.cloud.logging.v2.stub:com.google.cloud.monitoring.v3.stub:com.google.cloud.oslogin.v1.stub:com.google.cloud.pubsub.v1.stub:com.google.cloud.redis.v1beta1.stub:com.google.cloud.redis.v1.stub:com.google.cloud.spanner.admin.database.v1.stub:com.google.cloud.spanner.admin.instance.v1.stub:com.google.cloud.spanner.v1.stub:com.google.cloud.speech.v1beta1.stub:com.google.cloud.speech.v1p1beta1.stub:com.google.cloud.speech.v1.stub:com.google.cloud.tasks.v2beta2.stub:com.google.cloud.texttospeech.v1beta1.stub:com.google.cloud.texttospeech.v1.stub:com.google.cloud.trace.v1.stub:com.google.cloud.trace.v2.stub:com.google.cloud.videointelligence.v1beta1.stub:com.google.cloud.videointelligence.v1beta2.stub:com.google.cloud.videointelligence.v1.stub:com.google.cloud.videointelligence.v1p1beta1.stub:com.google.cloud.videointelligence.v1p2beta1.stub:com.google.cloud.vision.v1.stub:com.google.cloud.vision.v1p1beta1.stub:com.google.cloud.vision.v1p2beta1.stub:com.google.cloud.vision.v1p3beta1.stub:com.google.cloud.websecurityscanner.v1alpha.stub Deprecated packages diff --git a/versions.txt b/versions.txt index d5d737634045..93c08afe2cee 100644 --- a/versions.txt +++ b/versions.txt @@ -30,6 +30,7 @@ grpc-google-cloud-logging-v2:0.26.0:0.26.1-SNAPSHOT grpc-google-cloud-monitoring-v3:1.25.0:1.25.1-SNAPSHOT grpc-google-cloud-os-login-v1:0.26.0:0.26.1-SNAPSHOT grpc-google-cloud-pubsub-v1:1.25.0:1.25.1-SNAPSHOT +grpc-google-cloud-redis-v1:0.26.0:0.26.1-SNAPSHOT grpc-google-cloud-redis-v1beta1:0.26.0:0.26.1-SNAPSHOT grpc-google-cloud-spanner-admin-database-v1:0.26.0:0.26.1-SNAPSHOT grpc-google-cloud-spanner-admin-instance-v1:0.26.0:0.26.1-SNAPSHOT @@ -47,6 +48,7 @@ grpc-google-cloud-video-intelligence-v1:0.26.0:0.26.1-SNAPSHOT grpc-google-cloud-video-intelligence-v1beta1:0.26.0:0.26.1-SNAPSHOT grpc-google-cloud-video-intelligence-v1beta2:0.26.0:0.26.1-SNAPSHOT grpc-google-cloud-video-intelligence-v1p1beta1:0.26.0:0.26.1-SNAPSHOT +grpc-google-cloud-video-intelligence-v1p2beta1:0.26.0:0.26.1-SNAPSHOT grpc-google-cloud-vision-v1:1.25.0:1.25.1-SNAPSHOT grpc-google-cloud-vision-v1p1beta1:0.26.0:0.26.1-SNAPSHOT grpc-google-cloud-vision-v1p2beta1:1.25.0:1.25.1-SNAPSHOT @@ -76,6 +78,7 @@ proto-google-cloud-logging-v2:0.26.0:0.26.1-SNAPSHOT proto-google-cloud-monitoring-v3:1.25.0:1.25.1-SNAPSHOT proto-google-cloud-os-login-v1:0.26.0:0.26.1-SNAPSHOT proto-google-cloud-pubsub-v1:1.25.0:1.25.1-SNAPSHOT +proto-google-cloud-redis-v1:0.26.0:0.26.1-SNAPSHOT proto-google-cloud-redis-v1beta1:0.26.0:0.26.1-SNAPSHOT proto-google-cloud-spanner-admin-database-v1:0.26.0:0.26.1-SNAPSHOT proto-google-cloud-spanner-admin-instance-v1:0.26.0:0.26.1-SNAPSHOT @@ -93,6 +96,7 @@ proto-google-cloud-video-intelligence-v1:0.26.0:0.26.1-SNAPSHOT proto-google-cloud-video-intelligence-v1beta1:0.26.0:0.26.1-SNAPSHOT proto-google-cloud-video-intelligence-v1beta2:0.26.0:0.26.1-SNAPSHOT proto-google-cloud-video-intelligence-v1p1beta1:0.26.0:0.26.1-SNAPSHOT +proto-google-cloud-video-intelligence-v1p2beta1:0.26.0:0.26.1-SNAPSHOT proto-google-cloud-vision-v1:1.25.0:1.25.1-SNAPSHOT proto-google-cloud-vision-v1p1beta1:0.26.0:0.26.1-SNAPSHOT proto-google-cloud-vision-v1p2beta1:1.25.0:1.25.1-SNAPSHOT From 705acb77085dbc47c35cfbbdd8a4febde173bf98 Mon Sep 17 00:00:00 2001 From: Hanzhen Yi <33737743+hzyi-google@users.noreply.github.com> Date: Wed, 12 Sep 2018 16:58:13 -0700 Subject: [PATCH 05/21] update gax to 1.31/0.48 (#3675) --- google-cloud-bom/pom.xml | 12 ++++++------ google-cloud-clients/pom.xml | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/google-cloud-bom/pom.xml b/google-cloud-bom/pom.xml index df19dd00b803..e5cb4f0e6123 100644 --- a/google-cloud-bom/pom.xml +++ b/google-cloud-bom/pom.xml @@ -168,34 +168,34 @@ com.google.api gax - 1.30.0 + 1.31.0 com.google.api gax - 1.30.0 + 1.31.0 testlib com.google.api gax-grpc - 1.30.0 + 1.31.0 com.google.api gax-grpc - 1.30.0 + 1.31.0 testlib com.google.api gax-httpjson - 0.47.0 + 0.48.0 com.google.api gax-httpjson - 0.47.0 + 0.48.0 testlib diff --git a/google-cloud-clients/pom.xml b/google-cloud-clients/pom.xml index cc3cc08688a5..622a718fbcc5 100644 --- a/google-cloud-clients/pom.xml +++ b/google-cloud-clients/pom.xml @@ -156,7 +156,7 @@ google-cloud-clients 0.61.1-alpha-SNAPSHOT 1.24.1 - 1.30.0 + 1.31.0 0.11.0 1.13.1 2.0.7.Final From 47c5500028b8a492cd0c3c95ab3b18009686b818 Mon Sep 17 00:00:00 2001 From: Frank Natividad Date: Thu, 13 Sep 2018 08:48:36 -0700 Subject: [PATCH 06/21] Fix typos --- .../cloud/examples/storage/snippets/ITStorageSnippets.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/google-cloud-examples/src/test/java/com/google/cloud/examples/storage/snippets/ITStorageSnippets.java b/google-cloud-examples/src/test/java/com/google/cloud/examples/storage/snippets/ITStorageSnippets.java index 9450d71f2859..f5ee3826fc87 100644 --- a/google-cloud-examples/src/test/java/com/google/cloud/examples/storage/snippets/ITStorageSnippets.java +++ b/google-cloud-examples/src/test/java/com/google/cloud/examples/storage/snippets/ITStorageSnippets.java @@ -424,7 +424,8 @@ public void testAuthListBuckets() { @Test public void testBlobDownload() { String blobName = "test-create-empty-blob"; - Blob remoteBlob = bucket.create(blobName, BLOB_BYTE_CONTENT); + BlobId blobId = BlobId.of(BUCKET, blobName); + Blob remoteBlob = storage.create(blobId, BLOB_BYTE_CONTENT); assertNotNull(remoteBlob); storageSnippets.downloadFile(BUCKET, blobName, Paths.get(blobName)); byte[] readBytes = Files.readAllBytes(Paths.get(blobName)); From a420738c4d335896f56c30e9afcd77a076a9f18a Mon Sep 17 00:00:00 2001 From: Garrett Jones Date: Thu, 13 Sep 2018 08:51:12 -0700 Subject: [PATCH 07/21] Weekly proto refresh (#3674) --- .../kms/v1/KeyManagementServiceGrpc.java | 390 ++++- .../admin/v2/BigtableInstanceAdminProto.java | 189 +-- .../admin/v2/BigtableTableAdminProto.java | 203 +-- .../admin/v2/CreateInstanceRequest.java | 22 +- .../v2/CreateInstanceRequestOrBuilder.java | 10 +- .../admin/v2/ListAppProfilesRequest.java | 92 ++ .../v2/ListAppProfilesRequestOrBuilder.java | 14 + .../admin/v2/ListAppProfilesResponse.java | 261 +++ .../v2/ListAppProfilesResponseOrBuilder.java | 47 + .../admin/v2/ListClustersRequest.java | 14 +- .../v2/ListClustersRequestOrBuilder.java | 4 +- .../admin/v2/ListClustersResponse.java | 41 +- .../v2/ListClustersResponseOrBuilder.java | 12 +- .../admin/v2/ListInstancesRequest.java | 14 +- .../v2/ListInstancesRequestOrBuilder.java | 4 +- .../admin/v2/ListInstancesResponse.java | 41 +- .../v2/ListInstancesResponseOrBuilder.java | 12 +- .../admin/v2/ListSnapshotsRequest.java | 12 +- .../v2/ListSnapshotsRequestOrBuilder.java | 3 +- .../bigtable/admin/v2/ListTablesRequest.java | 78 + .../admin/v2/ListTablesRequestOrBuilder.java | 10 + .../admin/v2/bigtable_instance_admin.proto | 31 +- .../admin/v2/bigtable_table_admin.proto | 10 +- .../google/bigtable/admin/v2/common.proto | 3 +- .../google/bigtable/admin/v2/instance.proto | 3 +- .../google/bigtable/admin/v2/table.proto | 3 +- .../kms/v1/AsymmetricDecryptRequest.java | 665 ++++++++ .../v1/AsymmetricDecryptRequestOrBuilder.java | 39 + .../kms/v1/AsymmetricDecryptResponse.java | 499 ++++++ .../AsymmetricDecryptResponseOrBuilder.java | 18 + .../cloud/kms/v1/AsymmetricSignRequest.java | 830 ++++++++++ .../v1/AsymmetricSignRequestOrBuilder.java | 58 + .../cloud/kms/v1/AsymmetricSignResponse.java | 499 ++++++ .../v1/AsymmetricSignResponseOrBuilder.java | 18 + .../com/google/cloud/kms/v1/CryptoKey.java | 446 ++++- .../cloud/kms/v1/CryptoKeyOrBuilder.java | 67 +- .../google/cloud/kms/v1/CryptoKeyVersion.java | 1439 +++++++++++++++-- .../kms/v1/CryptoKeyVersionOrBuilder.java | 100 ++ .../kms/v1/CryptoKeyVersionTemplate.java | 689 ++++++++ .../v1/CryptoKeyVersionTemplateOrBuilder.java | 53 + .../java/com/google/cloud/kms/v1/Digest.java | 763 +++++++++ .../google/cloud/kms/v1/DigestOrBuilder.java | 38 + .../google/cloud/kms/v1/EncryptRequest.java | 60 +- .../cloud/kms/v1/EncryptRequestOrBuilder.java | 15 +- .../cloud/kms/v1/GetPublicKeyRequest.java | 584 +++++++ .../kms/v1/GetPublicKeyRequestOrBuilder.java | 29 + .../cloud/kms/v1/KeyOperationAttestation.java | 728 +++++++++ .../v1/KeyOperationAttestationOrBuilder.java | 36 + .../com/google/cloud/kms/v1/KmsProto.java | 383 +++-- .../cloud/kms/v1/KmsResourcesProto.java | 117 +- .../kms/v1/ListCryptoKeyVersionsRequest.java | 113 ++ ...ListCryptoKeyVersionsRequestOrBuilder.java | 17 + .../cloud/kms/v1/ListCryptoKeysRequest.java | 113 ++ .../v1/ListCryptoKeysRequestOrBuilder.java | 17 + .../google/cloud/kms/v1/LocationMetadata.java | 505 ++++++ .../kms/v1/LocationMetadataOrBuilder.java | 20 + .../google/cloud/kms/v1/ProtectionLevel.java | 140 ++ .../com/google/cloud/kms/v1/PublicKey.java | 727 +++++++++ .../cloud/kms/v1/PublicKeyOrBuilder.java | 54 + .../proto/google/cloud/kms/v1/resources.proto | 225 ++- .../proto/google/cloud/kms/v1/service.proto | 212 ++- .../v2/BaseBigtableInstanceAdminClient.java | 12 +- .../data/v2/stub/BigtableStubSettings.java | 15 - .../v1beta1/stub/FirestoreStubSettings.java | 10 - .../kms/v1/KeyManagementServiceClient.java | 432 ++++- .../kms/v1/KeyManagementServiceSettings.java | 33 + .../com/google/cloud/kms/v1/package-info.java | 5 +- ...pcKeyManagementServiceCallableFactory.java | 2 +- .../v1/stub/GrpcKeyManagementServiceStub.java | 105 +- .../kms/v1/stub/KeyManagementServiceStub.java | 21 +- .../KeyManagementServiceStubSettings.java | 82 + .../v1/KeyManagementServiceClientTest.java | 137 ++ .../kms/v1/MockKeyManagementServiceImpl.java | 46 + .../spanner/v1/stub/SpannerStubSettings.java | 10 - 74 files changed, 12015 insertions(+), 734 deletions(-) create mode 100644 google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricDecryptRequest.java create mode 100644 google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricDecryptRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricDecryptResponse.java create mode 100644 google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricDecryptResponseOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricSignRequest.java create mode 100644 google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricSignRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricSignResponse.java create mode 100644 google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricSignResponseOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersionTemplate.java create mode 100644 google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersionTemplateOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/Digest.java create mode 100644 google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DigestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetPublicKeyRequest.java create mode 100644 google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetPublicKeyRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyOperationAttestation.java create mode 100644 google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyOperationAttestationOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/LocationMetadata.java create mode 100644 google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/LocationMetadataOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ProtectionLevel.java create mode 100644 google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/PublicKey.java create mode 100644 google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/PublicKeyOrBuilder.java diff --git a/google-api-grpc/grpc-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceGrpc.java b/google-api-grpc/grpc-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceGrpc.java index 6b603439de11..73b36efa26cd 100644 --- a/google-api-grpc/grpc-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceGrpc.java +++ b/google-api-grpc/grpc-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceGrpc.java @@ -23,6 +23,8 @@ * * [KeyRing][google.cloud.kms.v1.KeyRing] * * [CryptoKey][google.cloud.kms.v1.CryptoKey] * * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] + * If you are using manual gRPC libraries, see + * [Using gRPC with Cloud KMS](https://cloud.google.com/kms/docs/grpc). * */ @javax.annotation.Generated( @@ -258,6 +260,43 @@ com.google.cloud.kms.v1.CryptoKeyVersion> getGetCryptoKeyVersionMethodHelper() { return getGetCryptoKeyVersionMethod; } @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getGetPublicKeyMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_GET_PUBLIC_KEY = getGetPublicKeyMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getGetPublicKeyMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getGetPublicKeyMethod() { + return getGetPublicKeyMethodHelper(); + } + + private static io.grpc.MethodDescriptor getGetPublicKeyMethodHelper() { + io.grpc.MethodDescriptor getGetPublicKeyMethod; + if ((getGetPublicKeyMethod = KeyManagementServiceGrpc.getGetPublicKeyMethod) == null) { + synchronized (KeyManagementServiceGrpc.class) { + if ((getGetPublicKeyMethod = KeyManagementServiceGrpc.getGetPublicKeyMethod) == null) { + KeyManagementServiceGrpc.getGetPublicKeyMethod = getGetPublicKeyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.cloud.kms.v1.KeyManagementService", "GetPublicKey")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.kms.v1.GetPublicKeyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.kms.v1.PublicKey.getDefaultInstance())) + .setSchemaDescriptor(new KeyManagementServiceMethodDescriptorSupplier("GetPublicKey")) + .build(); + } + } + } + return getGetPublicKeyMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") @java.lang.Deprecated // Use {@link #getCreateKeyRingMethod()} instead. public static final io.grpc.MethodDescriptor METHOD_CREATE_KEY_RING = getCreateKeyRingMethodHelper(); @@ -517,6 +556,80 @@ com.google.cloud.kms.v1.DecryptResponse> getDecryptMethodHelper() { return getDecryptMethod; } @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getAsymmetricSignMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_ASYMMETRIC_SIGN = getAsymmetricSignMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getAsymmetricSignMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getAsymmetricSignMethod() { + return getAsymmetricSignMethodHelper(); + } + + private static io.grpc.MethodDescriptor getAsymmetricSignMethodHelper() { + io.grpc.MethodDescriptor getAsymmetricSignMethod; + if ((getAsymmetricSignMethod = KeyManagementServiceGrpc.getAsymmetricSignMethod) == null) { + synchronized (KeyManagementServiceGrpc.class) { + if ((getAsymmetricSignMethod = KeyManagementServiceGrpc.getAsymmetricSignMethod) == null) { + KeyManagementServiceGrpc.getAsymmetricSignMethod = getAsymmetricSignMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.cloud.kms.v1.KeyManagementService", "AsymmetricSign")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.kms.v1.AsymmetricSignRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.kms.v1.AsymmetricSignResponse.getDefaultInstance())) + .setSchemaDescriptor(new KeyManagementServiceMethodDescriptorSupplier("AsymmetricSign")) + .build(); + } + } + } + return getAsymmetricSignMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getAsymmetricDecryptMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_ASYMMETRIC_DECRYPT = getAsymmetricDecryptMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getAsymmetricDecryptMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getAsymmetricDecryptMethod() { + return getAsymmetricDecryptMethodHelper(); + } + + private static io.grpc.MethodDescriptor getAsymmetricDecryptMethodHelper() { + io.grpc.MethodDescriptor getAsymmetricDecryptMethod; + if ((getAsymmetricDecryptMethod = KeyManagementServiceGrpc.getAsymmetricDecryptMethod) == null) { + synchronized (KeyManagementServiceGrpc.class) { + if ((getAsymmetricDecryptMethod = KeyManagementServiceGrpc.getAsymmetricDecryptMethod) == null) { + KeyManagementServiceGrpc.getAsymmetricDecryptMethod = getAsymmetricDecryptMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.cloud.kms.v1.KeyManagementService", "AsymmetricDecrypt")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.kms.v1.AsymmetricDecryptRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.kms.v1.AsymmetricDecryptResponse.getDefaultInstance())) + .setSchemaDescriptor(new KeyManagementServiceMethodDescriptorSupplier("AsymmetricDecrypt")) + .build(); + } + } + } + return getAsymmetricDecryptMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") @java.lang.Deprecated // Use {@link #getUpdateCryptoKeyPrimaryVersionMethod()} instead. public static final io.grpc.MethodDescriptor METHOD_UPDATE_CRYPTO_KEY_PRIMARY_VERSION = getUpdateCryptoKeyPrimaryVersionMethodHelper(); @@ -659,6 +772,8 @@ public static KeyManagementServiceFutureStub newFutureStub( * * [KeyRing][google.cloud.kms.v1.KeyRing] * * [CryptoKey][google.cloud.kms.v1.CryptoKey] * * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] + * If you are using manual gRPC libraries, see + * [Using gRPC with Cloud KMS](https://cloud.google.com/kms/docs/grpc). * */ public static abstract class KeyManagementServiceImplBase implements io.grpc.BindableService { @@ -724,6 +839,19 @@ public void getCryptoKeyVersion(com.google.cloud.kms.v1.GetCryptoKeyVersionReque asyncUnimplementedUnaryCall(getGetCryptoKeyVersionMethodHelper(), responseObserver); } + /** + *
+     * Returns the public key for the given [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. The
+     * [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] must be
+     * [ASYMMETRIC_SIGN][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ASYMMETRIC_SIGN] or
+     * [ASYMMETRIC_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ASYMMETRIC_DECRYPT].
+     * 
+ */ + public void getPublicKey(com.google.cloud.kms.v1.GetPublicKeyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetPublicKeyMethodHelper(), responseObserver); + } + /** *
      * Create a new [KeyRing][google.cloud.kms.v1.KeyRing] in a given Project and Location.
@@ -737,7 +865,9 @@ public void createKeyRing(com.google.cloud.kms.v1.CreateKeyRingRequest request,
     /**
      * 
      * Create a new [CryptoKey][google.cloud.kms.v1.CryptoKey] within a [KeyRing][google.cloud.kms.v1.KeyRing].
-     * [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] is required.
+     * [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] and
+     * [CryptoKey.version_template.algorithm][google.cloud.kms.v1.CryptoKeyVersionTemplate.algorithm]
+     * are required.
      * 
*/ public void createCryptoKey(com.google.cloud.kms.v1.CreateCryptoKeyRequest request, @@ -786,6 +916,8 @@ public void updateCryptoKeyVersion(com.google.cloud.kms.v1.UpdateCryptoKeyVersio /** *
      * Encrypts data, so that it can only be recovered by a call to [Decrypt][google.cloud.kms.v1.KeyManagementService.Decrypt].
+     * The [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] must be
+     * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
      * 
*/ public void encrypt(com.google.cloud.kms.v1.EncryptRequest request, @@ -795,7 +927,8 @@ public void encrypt(com.google.cloud.kms.v1.EncryptRequest request, /** *
-     * Decrypts data that was protected by [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt].
+     * Decrypts data that was protected by [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]. The [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose]
+     * must be [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
      * 
*/ public void decrypt(com.google.cloud.kms.v1.DecryptRequest request, @@ -805,7 +938,32 @@ public void decrypt(com.google.cloud.kms.v1.DecryptRequest request, /** *
-     * Update the version of a [CryptoKey][google.cloud.kms.v1.CryptoKey] that will be used in [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]
+     * Signs data using a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose]
+     * ASYMMETRIC_SIGN, producing a signature that can be verified with the public
+     * key retrieved from [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey].
+     * 
+ */ + public void asymmetricSign(com.google.cloud.kms.v1.AsymmetricSignRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getAsymmetricSignMethodHelper(), responseObserver); + } + + /** + *
+     * Decrypts data that was encrypted with a public key retrieved from
+     * [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey] corresponding to a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with
+     * [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] ASYMMETRIC_DECRYPT.
+     * 
+ */ + public void asymmetricDecrypt(com.google.cloud.kms.v1.AsymmetricDecryptRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getAsymmetricDecryptMethodHelper(), responseObserver); + } + + /** + *
+     * Update the version of a [CryptoKey][google.cloud.kms.v1.CryptoKey] that will be used in [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt].
+     * Returns an error if called on an asymmetric key.
      * 
*/ public void updateCryptoKeyPrimaryVersion(com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest request, @@ -835,7 +993,7 @@ public void destroyCryptoKeyVersion(com.google.cloud.kms.v1.DestroyCryptoKeyVers /** *
      * Restore a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in the
-     * [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED],
+     * [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED]
      * state.
      * Upon restoration of the CryptoKeyVersion, [state][google.cloud.kms.v1.CryptoKeyVersion.state]
      * will be set to [DISABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DISABLED],
@@ -891,6 +1049,13 @@ public void restoreCryptoKeyVersion(com.google.cloud.kms.v1.RestoreCryptoKeyVers
                 com.google.cloud.kms.v1.GetCryptoKeyVersionRequest,
                 com.google.cloud.kms.v1.CryptoKeyVersion>(
                   this, METHODID_GET_CRYPTO_KEY_VERSION)))
+          .addMethod(
+            getGetPublicKeyMethodHelper(),
+            asyncUnaryCall(
+              new MethodHandlers<
+                com.google.cloud.kms.v1.GetPublicKeyRequest,
+                com.google.cloud.kms.v1.PublicKey>(
+                  this, METHODID_GET_PUBLIC_KEY)))
           .addMethod(
             getCreateKeyRingMethodHelper(),
             asyncUnaryCall(
@@ -940,6 +1105,20 @@ public void restoreCryptoKeyVersion(com.google.cloud.kms.v1.RestoreCryptoKeyVers
                 com.google.cloud.kms.v1.DecryptRequest,
                 com.google.cloud.kms.v1.DecryptResponse>(
                   this, METHODID_DECRYPT)))
+          .addMethod(
+            getAsymmetricSignMethodHelper(),
+            asyncUnaryCall(
+              new MethodHandlers<
+                com.google.cloud.kms.v1.AsymmetricSignRequest,
+                com.google.cloud.kms.v1.AsymmetricSignResponse>(
+                  this, METHODID_ASYMMETRIC_SIGN)))
+          .addMethod(
+            getAsymmetricDecryptMethodHelper(),
+            asyncUnaryCall(
+              new MethodHandlers<
+                com.google.cloud.kms.v1.AsymmetricDecryptRequest,
+                com.google.cloud.kms.v1.AsymmetricDecryptResponse>(
+                  this, METHODID_ASYMMETRIC_DECRYPT)))
           .addMethod(
             getUpdateCryptoKeyPrimaryVersionMethodHelper(),
             asyncUnaryCall(
@@ -973,6 +1152,8 @@ public void restoreCryptoKeyVersion(com.google.cloud.kms.v1.RestoreCryptoKeyVers
    * * [KeyRing][google.cloud.kms.v1.KeyRing]
    * * [CryptoKey][google.cloud.kms.v1.CryptoKey]
    * * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]
+   * If you are using manual gRPC libraries, see
+   * [Using gRPC with Cloud KMS](https://cloud.google.com/kms/docs/grpc).
    * 
*/ public static final class KeyManagementServiceStub extends io.grpc.stub.AbstractStub { @@ -1058,6 +1239,20 @@ public void getCryptoKeyVersion(com.google.cloud.kms.v1.GetCryptoKeyVersionReque getChannel().newCall(getGetCryptoKeyVersionMethodHelper(), getCallOptions()), request, responseObserver); } + /** + *
+     * Returns the public key for the given [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. The
+     * [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] must be
+     * [ASYMMETRIC_SIGN][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ASYMMETRIC_SIGN] or
+     * [ASYMMETRIC_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ASYMMETRIC_DECRYPT].
+     * 
+ */ + public void getPublicKey(com.google.cloud.kms.v1.GetPublicKeyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetPublicKeyMethodHelper(), getCallOptions()), request, responseObserver); + } + /** *
      * Create a new [KeyRing][google.cloud.kms.v1.KeyRing] in a given Project and Location.
@@ -1072,7 +1267,9 @@ public void createKeyRing(com.google.cloud.kms.v1.CreateKeyRingRequest request,
     /**
      * 
      * Create a new [CryptoKey][google.cloud.kms.v1.CryptoKey] within a [KeyRing][google.cloud.kms.v1.KeyRing].
-     * [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] is required.
+     * [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] and
+     * [CryptoKey.version_template.algorithm][google.cloud.kms.v1.CryptoKeyVersionTemplate.algorithm]
+     * are required.
      * 
*/ public void createCryptoKey(com.google.cloud.kms.v1.CreateCryptoKeyRequest request, @@ -1125,6 +1322,8 @@ public void updateCryptoKeyVersion(com.google.cloud.kms.v1.UpdateCryptoKeyVersio /** *
      * Encrypts data, so that it can only be recovered by a call to [Decrypt][google.cloud.kms.v1.KeyManagementService.Decrypt].
+     * The [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] must be
+     * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
      * 
*/ public void encrypt(com.google.cloud.kms.v1.EncryptRequest request, @@ -1135,7 +1334,8 @@ public void encrypt(com.google.cloud.kms.v1.EncryptRequest request, /** *
-     * Decrypts data that was protected by [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt].
+     * Decrypts data that was protected by [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]. The [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose]
+     * must be [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
      * 
*/ public void decrypt(com.google.cloud.kms.v1.DecryptRequest request, @@ -1146,7 +1346,34 @@ public void decrypt(com.google.cloud.kms.v1.DecryptRequest request, /** *
-     * Update the version of a [CryptoKey][google.cloud.kms.v1.CryptoKey] that will be used in [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]
+     * Signs data using a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose]
+     * ASYMMETRIC_SIGN, producing a signature that can be verified with the public
+     * key retrieved from [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey].
+     * 
+ */ + public void asymmetricSign(com.google.cloud.kms.v1.AsymmetricSignRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getAsymmetricSignMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Decrypts data that was encrypted with a public key retrieved from
+     * [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey] corresponding to a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with
+     * [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] ASYMMETRIC_DECRYPT.
+     * 
+ */ + public void asymmetricDecrypt(com.google.cloud.kms.v1.AsymmetricDecryptRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getAsymmetricDecryptMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Update the version of a [CryptoKey][google.cloud.kms.v1.CryptoKey] that will be used in [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt].
+     * Returns an error if called on an asymmetric key.
      * 
*/ public void updateCryptoKeyPrimaryVersion(com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest request, @@ -1178,7 +1405,7 @@ public void destroyCryptoKeyVersion(com.google.cloud.kms.v1.DestroyCryptoKeyVers /** *
      * Restore a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in the
-     * [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED],
+     * [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED]
      * state.
      * Upon restoration of the CryptoKeyVersion, [state][google.cloud.kms.v1.CryptoKeyVersion.state]
      * will be set to [DISABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DISABLED],
@@ -1200,6 +1427,8 @@ public void restoreCryptoKeyVersion(com.google.cloud.kms.v1.RestoreCryptoKeyVers
    * * [KeyRing][google.cloud.kms.v1.KeyRing]
    * * [CryptoKey][google.cloud.kms.v1.CryptoKey]
    * * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]
+   * If you are using manual gRPC libraries, see
+   * [Using gRPC with Cloud KMS](https://cloud.google.com/kms/docs/grpc).
    * 
*/ public static final class KeyManagementServiceBlockingStub extends io.grpc.stub.AbstractStub { @@ -1279,6 +1508,19 @@ public com.google.cloud.kms.v1.CryptoKeyVersion getCryptoKeyVersion(com.google.c getChannel(), getGetCryptoKeyVersionMethodHelper(), getCallOptions(), request); } + /** + *
+     * Returns the public key for the given [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. The
+     * [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] must be
+     * [ASYMMETRIC_SIGN][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ASYMMETRIC_SIGN] or
+     * [ASYMMETRIC_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ASYMMETRIC_DECRYPT].
+     * 
+ */ + public com.google.cloud.kms.v1.PublicKey getPublicKey(com.google.cloud.kms.v1.GetPublicKeyRequest request) { + return blockingUnaryCall( + getChannel(), getGetPublicKeyMethodHelper(), getCallOptions(), request); + } + /** *
      * Create a new [KeyRing][google.cloud.kms.v1.KeyRing] in a given Project and Location.
@@ -1292,7 +1534,9 @@ public com.google.cloud.kms.v1.KeyRing createKeyRing(com.google.cloud.kms.v1.Cre
     /**
      * 
      * Create a new [CryptoKey][google.cloud.kms.v1.CryptoKey] within a [KeyRing][google.cloud.kms.v1.KeyRing].
-     * [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] is required.
+     * [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] and
+     * [CryptoKey.version_template.algorithm][google.cloud.kms.v1.CryptoKeyVersionTemplate.algorithm]
+     * are required.
      * 
*/ public com.google.cloud.kms.v1.CryptoKey createCryptoKey(com.google.cloud.kms.v1.CreateCryptoKeyRequest request) { @@ -1341,6 +1585,8 @@ public com.google.cloud.kms.v1.CryptoKeyVersion updateCryptoKeyVersion(com.googl /** *
      * Encrypts data, so that it can only be recovered by a call to [Decrypt][google.cloud.kms.v1.KeyManagementService.Decrypt].
+     * The [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] must be
+     * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
      * 
*/ public com.google.cloud.kms.v1.EncryptResponse encrypt(com.google.cloud.kms.v1.EncryptRequest request) { @@ -1350,7 +1596,8 @@ public com.google.cloud.kms.v1.EncryptResponse encrypt(com.google.cloud.kms.v1.E /** *
-     * Decrypts data that was protected by [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt].
+     * Decrypts data that was protected by [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]. The [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose]
+     * must be [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
      * 
*/ public com.google.cloud.kms.v1.DecryptResponse decrypt(com.google.cloud.kms.v1.DecryptRequest request) { @@ -1360,7 +1607,32 @@ public com.google.cloud.kms.v1.DecryptResponse decrypt(com.google.cloud.kms.v1.D /** *
-     * Update the version of a [CryptoKey][google.cloud.kms.v1.CryptoKey] that will be used in [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]
+     * Signs data using a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose]
+     * ASYMMETRIC_SIGN, producing a signature that can be verified with the public
+     * key retrieved from [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey].
+     * 
+ */ + public com.google.cloud.kms.v1.AsymmetricSignResponse asymmetricSign(com.google.cloud.kms.v1.AsymmetricSignRequest request) { + return blockingUnaryCall( + getChannel(), getAsymmetricSignMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Decrypts data that was encrypted with a public key retrieved from
+     * [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey] corresponding to a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with
+     * [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] ASYMMETRIC_DECRYPT.
+     * 
+ */ + public com.google.cloud.kms.v1.AsymmetricDecryptResponse asymmetricDecrypt(com.google.cloud.kms.v1.AsymmetricDecryptRequest request) { + return blockingUnaryCall( + getChannel(), getAsymmetricDecryptMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Update the version of a [CryptoKey][google.cloud.kms.v1.CryptoKey] that will be used in [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt].
+     * Returns an error if called on an asymmetric key.
      * 
*/ public com.google.cloud.kms.v1.CryptoKey updateCryptoKeyPrimaryVersion(com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest request) { @@ -1390,7 +1662,7 @@ public com.google.cloud.kms.v1.CryptoKeyVersion destroyCryptoKeyVersion(com.goog /** *
      * Restore a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in the
-     * [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED],
+     * [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED]
      * state.
      * Upon restoration of the CryptoKeyVersion, [state][google.cloud.kms.v1.CryptoKeyVersion.state]
      * will be set to [DISABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DISABLED],
@@ -1411,6 +1683,8 @@ public com.google.cloud.kms.v1.CryptoKeyVersion restoreCryptoKeyVersion(com.goog
    * * [KeyRing][google.cloud.kms.v1.KeyRing]
    * * [CryptoKey][google.cloud.kms.v1.CryptoKey]
    * * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]
+   * If you are using manual gRPC libraries, see
+   * [Using gRPC with Cloud KMS](https://cloud.google.com/kms/docs/grpc).
    * 
*/ public static final class KeyManagementServiceFutureStub extends io.grpc.stub.AbstractStub { @@ -1496,6 +1770,20 @@ public com.google.common.util.concurrent.ListenableFuture + * Returns the public key for the given [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. The + * [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] must be + * [ASYMMETRIC_SIGN][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ASYMMETRIC_SIGN] or + * [ASYMMETRIC_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ASYMMETRIC_DECRYPT]. + *
+ */ + public com.google.common.util.concurrent.ListenableFuture getPublicKey( + com.google.cloud.kms.v1.GetPublicKeyRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetPublicKeyMethodHelper(), getCallOptions()), request); + } + /** *
      * Create a new [KeyRing][google.cloud.kms.v1.KeyRing] in a given Project and Location.
@@ -1510,7 +1798,9 @@ public com.google.common.util.concurrent.ListenableFuture
      * Create a new [CryptoKey][google.cloud.kms.v1.CryptoKey] within a [KeyRing][google.cloud.kms.v1.KeyRing].
-     * [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] is required.
+     * [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] and
+     * [CryptoKey.version_template.algorithm][google.cloud.kms.v1.CryptoKeyVersionTemplate.algorithm]
+     * are required.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture createCryptoKey( @@ -1563,6 +1853,8 @@ public com.google.common.util.concurrent.ListenableFuture * Encrypts data, so that it can only be recovered by a call to [Decrypt][google.cloud.kms.v1.KeyManagementService.Decrypt]. + * The [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] must be + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT]. *
*/ public com.google.common.util.concurrent.ListenableFuture encrypt( @@ -1573,7 +1865,8 @@ public com.google.common.util.concurrent.ListenableFuture - * Decrypts data that was protected by [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]. + * Decrypts data that was protected by [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]. The [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] + * must be [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT]. *
*/ public com.google.common.util.concurrent.ListenableFuture decrypt( @@ -1584,7 +1877,34 @@ public com.google.common.util.concurrent.ListenableFuture - * Update the version of a [CryptoKey][google.cloud.kms.v1.CryptoKey] that will be used in [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt] + * Signs data using a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] + * ASYMMETRIC_SIGN, producing a signature that can be verified with the public + * key retrieved from [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey]. + * + */ + public com.google.common.util.concurrent.ListenableFuture asymmetricSign( + com.google.cloud.kms.v1.AsymmetricSignRequest request) { + return futureUnaryCall( + getChannel().newCall(getAsymmetricSignMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Decrypts data that was encrypted with a public key retrieved from
+     * [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey] corresponding to a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with
+     * [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] ASYMMETRIC_DECRYPT.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture asymmetricDecrypt( + com.google.cloud.kms.v1.AsymmetricDecryptRequest request) { + return futureUnaryCall( + getChannel().newCall(getAsymmetricDecryptMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Update the version of a [CryptoKey][google.cloud.kms.v1.CryptoKey] that will be used in [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt].
+     * Returns an error if called on an asymmetric key.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture updateCryptoKeyPrimaryVersion( @@ -1616,7 +1936,7 @@ public com.google.common.util.concurrent.ListenableFuture * Restore a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in the - * [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED], + * [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED] * state. * Upon restoration of the CryptoKeyVersion, [state][google.cloud.kms.v1.CryptoKeyVersion.state] * will be set to [DISABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DISABLED], @@ -1636,16 +1956,19 @@ public com.google.common.util.concurrent.ListenableFuture implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1688,6 +2011,10 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv serviceImpl.getCryptoKeyVersion((com.google.cloud.kms.v1.GetCryptoKeyVersionRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_GET_PUBLIC_KEY: + serviceImpl.getPublicKey((com.google.cloud.kms.v1.GetPublicKeyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_CREATE_KEY_RING: serviceImpl.createKeyRing((com.google.cloud.kms.v1.CreateKeyRingRequest) request, (io.grpc.stub.StreamObserver) responseObserver); @@ -1716,6 +2043,14 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv serviceImpl.decrypt((com.google.cloud.kms.v1.DecryptRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_ASYMMETRIC_SIGN: + serviceImpl.asymmetricSign((com.google.cloud.kms.v1.AsymmetricSignRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_ASYMMETRIC_DECRYPT: + serviceImpl.asymmetricDecrypt((com.google.cloud.kms.v1.AsymmetricDecryptRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_UPDATE_CRYPTO_KEY_PRIMARY_VERSION: serviceImpl.updateCryptoKeyPrimaryVersion((com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest) request, (io.grpc.stub.StreamObserver) responseObserver); @@ -1795,6 +2130,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getGetKeyRingMethodHelper()) .addMethod(getGetCryptoKeyMethodHelper()) .addMethod(getGetCryptoKeyVersionMethodHelper()) + .addMethod(getGetPublicKeyMethodHelper()) .addMethod(getCreateKeyRingMethodHelper()) .addMethod(getCreateCryptoKeyMethodHelper()) .addMethod(getCreateCryptoKeyVersionMethodHelper()) @@ -1802,6 +2138,8 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getUpdateCryptoKeyVersionMethodHelper()) .addMethod(getEncryptMethodHelper()) .addMethod(getDecryptMethodHelper()) + .addMethod(getAsymmetricSignMethodHelper()) + .addMethod(getAsymmetricDecryptMethodHelper()) .addMethod(getUpdateCryptoKeyPrimaryVersionMethodHelper()) .addMethod(getDestroyCryptoKeyVersionMethodHelper()) .addMethod(getRestoreCryptoKeyVersionMethodHelper()) diff --git a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/BigtableInstanceAdminProto.java b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/BigtableInstanceAdminProto.java index 9927bf2348cc..96714cd1e1cb 100644 --- a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/BigtableInstanceAdminProto.java +++ b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/BigtableInstanceAdminProto.java @@ -197,98 +197,99 @@ public static void registerAllExtensions( "\t\022\026\n\016app_profile_id\030\002 \001(\t\0229\n\013app_profile" + "\030\003 \001(\0132$.google.bigtable.admin.v2.AppPro" + "file\022\027\n\017ignore_warnings\030\004 \001(\010\"$\n\024GetAppP" + - "rofileRequest\022\014\n\004name\030\001 \001(\t\"<\n\026ListAppPr" + - "ofilesRequest\022\016\n\006parent\030\001 \001(\t\022\022\n\npage_to" + - "ken\030\002 \001(\t\"n\n\027ListAppProfilesResponse\022:\n\014" + - "app_profiles\030\001 \003(\0132$.google.bigtable.adm" + - "in.v2.AppProfile\022\027\n\017next_page_token\030\002 \001(" + - "\t\"\236\001\n\027UpdateAppProfileRequest\0229\n\013app_pro" + - "file\030\001 \001(\0132$.google.bigtable.admin.v2.Ap" + - "pProfile\022/\n\013update_mask\030\002 \001(\0132\032.google.p" + - "rotobuf.FieldMask\022\027\n\017ignore_warnings\030\003 \001" + - "(\010\"@\n\027DeleteAppProfileRequest\022\014\n\004name\030\001 " + - "\001(\t\022\027\n\017ignore_warnings\030\002 \001(\010\"\032\n\030UpdateAp" + - "pProfileMetadata2\252\027\n\025BigtableInstanceAdm" + - "in\022\216\001\n\016CreateInstance\022/.google.bigtable." + - "admin.v2.CreateInstanceRequest\032\035.google." + - "longrunning.Operation\",\202\323\344\223\002&\"!/v2/{pare" + - "nt=projects/*}/instances:\001*\022\212\001\n\013GetInsta" + - "nce\022,.google.bigtable.admin.v2.GetInstan" + - "ceRequest\032\".google.bigtable.admin.v2.Ins" + - "tance\")\202\323\344\223\002#\022!/v2/{name=projects/*/inst" + - "ances/*}\022\233\001\n\rListInstances\022..google.bigt" + - "able.admin.v2.ListInstancesRequest\032/.goo" + - "gle.bigtable.admin.v2.ListInstancesRespo" + - "nse\")\202\323\344\223\002#\022!/v2/{parent=projects/*}/ins" + - "tances\022\206\001\n\016UpdateInstance\022\".google.bigta" + - "ble.admin.v2.Instance\032\".google.bigtable." + - "admin.v2.Instance\",\202\323\344\223\002&\032!/v2/{name=pro" + - "jects/*/instances/*}:\001*\022\254\001\n\025PartialUpdat" + - "eInstance\0226.google.bigtable.admin.v2.Par" + - "tialUpdateInstanceRequest\032\035.google.longr" + - "unning.Operation\"<\202\323\344\223\00262*/v2/{instance." + - "name=projects/*/instances/*}:\010instance\022\204" + - "\001\n\016DeleteInstance\022/.google.bigtable.admi" + - "n.v2.DeleteInstanceRequest\032\026.google.prot" + - "obuf.Empty\")\202\323\344\223\002#*!/v2/{name=projects/*" + - "/instances/*}\022\235\001\n\rCreateCluster\022..google" + - ".bigtable.admin.v2.CreateClusterRequest\032" + - "\035.google.longrunning.Operation\"=\202\323\344\223\0027\"," + - "/v2/{parent=projects/*/instances/*}/clus" + - "ters:\007cluster\022\222\001\n\nGetCluster\022+.google.bi" + - "gtable.admin.v2.GetClusterRequest\032!.goog" + - "le.bigtable.admin.v2.Cluster\"4\202\323\344\223\002.\022,/v" + - "2/{name=projects/*/instances/*/clusters/" + - "*}\022\243\001\n\014ListClusters\022-.google.bigtable.ad" + - "min.v2.ListClustersRequest\032..google.bigt" + - "able.admin.v2.ListClustersResponse\"4\202\323\344\223" + - "\002.\022,/v2/{parent=projects/*/instances/*}/" + - "clusters\022\212\001\n\rUpdateCluster\022!.google.bigt" + - "able.admin.v2.Cluster\032\035.google.longrunni" + - "ng.Operation\"7\202\323\344\223\0021\032,/v2/{name=projects" + - "/*/instances/*/clusters/*}:\001*\022\215\001\n\rDelete" + - "Cluster\022..google.bigtable.admin.v2.Delet" + - "eClusterRequest\032\026.google.protobuf.Empty\"" + - "4\202\323\344\223\002.*,/v2/{name=projects/*/instances/" + - "*/clusters/*}\022\261\001\n\020CreateAppProfile\0221.goo" + - "gle.bigtable.admin.v2.CreateAppProfileRe" + - "quest\032$.google.bigtable.admin.v2.AppProf" + - "ile\"D\202\323\344\223\002>\"//v2/{parent=projects/*/inst" + - "ances/*}/appProfiles:\013app_profile\022\236\001\n\rGe" + - "tAppProfile\022..google.bigtable.admin.v2.G" + - "etAppProfileRequest\032$.google.bigtable.ad" + - "min.v2.AppProfile\"7\202\323\344\223\0021\022//v2/{name=pro" + - "jects/*/instances/*/appProfiles/*}\022\257\001\n\017L" + - "istAppProfiles\0220.google.bigtable.admin.v" + - "2.ListAppProfilesRequest\0321.google.bigtab" + - "le.admin.v2.ListAppProfilesResponse\"7\202\323\344" + - "\223\0021\022//v2/{parent=projects/*/instances/*}" + - "/appProfiles\022\266\001\n\020UpdateAppProfile\0221.goog" + - "le.bigtable.admin.v2.UpdateAppProfileReq" + - "uest\032\035.google.longrunning.Operation\"P\202\323\344" + - "\223\002J2;/v2/{app_profile.name=projects/*/in" + - "stances/*/appProfiles/*}:\013app_profile\022\226\001" + - "\n\020DeleteAppProfile\0221.google.bigtable.adm" + - "in.v2.DeleteAppProfileRequest\032\026.google.p" + - "rotobuf.Empty\"7\202\323\344\223\0021*//v2/{name=project" + - "s/*/instances/*/appProfiles/*}\022\210\001\n\014GetIa" + - "mPolicy\022\".google.iam.v1.GetIamPolicyRequ" + - "est\032\025.google.iam.v1.Policy\"=\202\323\344\223\0027\"2/v2/" + - "{resource=projects/*/instances/*}:getIam" + - "Policy:\001*\022\210\001\n\014SetIamPolicy\022\".google.iam." + - "v1.SetIamPolicyRequest\032\025.google.iam.v1.P" + - "olicy\"=\202\323\344\223\0027\"2/v2/{resource=projects/*/" + - "instances/*}:setIamPolicy:\001*\022\256\001\n\022TestIam" + - "Permissions\022(.google.iam.v1.TestIamPermi" + - "ssionsRequest\032).google.iam.v1.TestIamPer" + - "missionsResponse\"C\202\323\344\223\002=\"8/v2/{resource=" + - "projects/*/instances/*}:testIamPermissio" + - "ns:\001*B\275\001\n\034com.google.bigtable.admin.v2B\032" + - "BigtableInstanceAdminProtoP\001Z=google.gol" + - "ang.org/genproto/googleapis/bigtable/adm" + - "in/v2;admin\252\002\036Google.Cloud.Bigtable.Admi" + - "n.V2\312\002\036Google\\Cloud\\Bigtable\\Admin\\V2b\006p" + - "roto3" + "rofileRequest\022\014\n\004name\030\001 \001(\t\"O\n\026ListAppPr" + + "ofilesRequest\022\016\n\006parent\030\001 \001(\t\022\021\n\tpage_si" + + "ze\030\003 \001(\005\022\022\n\npage_token\030\002 \001(\t\"\210\001\n\027ListApp" + + "ProfilesResponse\022:\n\014app_profiles\030\001 \003(\0132$" + + ".google.bigtable.admin.v2.AppProfile\022\027\n\017" + + "next_page_token\030\002 \001(\t\022\030\n\020failed_location" + + "s\030\003 \003(\t\"\236\001\n\027UpdateAppProfileRequest\0229\n\013a" + + "pp_profile\030\001 \001(\0132$.google.bigtable.admin" + + ".v2.AppProfile\022/\n\013update_mask\030\002 \001(\0132\032.go" + + "ogle.protobuf.FieldMask\022\027\n\017ignore_warnin" + + "gs\030\003 \001(\010\"@\n\027DeleteAppProfileRequest\022\014\n\004n" + + "ame\030\001 \001(\t\022\027\n\017ignore_warnings\030\002 \001(\010\"\032\n\030Up" + + "dateAppProfileMetadata2\252\027\n\025BigtableInsta" + + "nceAdmin\022\216\001\n\016CreateInstance\022/.google.big" + + "table.admin.v2.CreateInstanceRequest\032\035.g" + + "oogle.longrunning.Operation\",\202\323\344\223\002&\"!/v2" + + "/{parent=projects/*}/instances:\001*\022\212\001\n\013Ge" + + "tInstance\022,.google.bigtable.admin.v2.Get" + + "InstanceRequest\032\".google.bigtable.admin." + + "v2.Instance\")\202\323\344\223\002#\022!/v2/{name=projects/" + + "*/instances/*}\022\233\001\n\rListInstances\022..googl" + + "e.bigtable.admin.v2.ListInstancesRequest" + + "\032/.google.bigtable.admin.v2.ListInstance" + + "sResponse\")\202\323\344\223\002#\022!/v2/{parent=projects/" + + "*}/instances\022\206\001\n\016UpdateInstance\022\".google" + + ".bigtable.admin.v2.Instance\032\".google.big" + + "table.admin.v2.Instance\",\202\323\344\223\002&\032!/v2/{na" + + "me=projects/*/instances/*}:\001*\022\254\001\n\025Partia" + + "lUpdateInstance\0226.google.bigtable.admin." + + "v2.PartialUpdateInstanceRequest\032\035.google" + + ".longrunning.Operation\"<\202\323\344\223\00262*/v2/{ins" + + "tance.name=projects/*/instances/*}:\010inst" + + "ance\022\204\001\n\016DeleteInstance\022/.google.bigtabl" + + "e.admin.v2.DeleteInstanceRequest\032\026.googl" + + "e.protobuf.Empty\")\202\323\344\223\002#*!/v2/{name=proj" + + "ects/*/instances/*}\022\235\001\n\rCreateCluster\022.." + + "google.bigtable.admin.v2.CreateClusterRe" + + "quest\032\035.google.longrunning.Operation\"=\202\323" + + "\344\223\0027\",/v2/{parent=projects/*/instances/*" + + "}/clusters:\007cluster\022\222\001\n\nGetCluster\022+.goo" + + "gle.bigtable.admin.v2.GetClusterRequest\032" + + "!.google.bigtable.admin.v2.Cluster\"4\202\323\344\223" + + "\002.\022,/v2/{name=projects/*/instances/*/clu" + + "sters/*}\022\243\001\n\014ListClusters\022-.google.bigta" + + "ble.admin.v2.ListClustersRequest\032..googl" + + "e.bigtable.admin.v2.ListClustersResponse" + + "\"4\202\323\344\223\002.\022,/v2/{parent=projects/*/instanc" + + "es/*}/clusters\022\212\001\n\rUpdateCluster\022!.googl" + + "e.bigtable.admin.v2.Cluster\032\035.google.lon" + + "grunning.Operation\"7\202\323\344\223\0021\032,/v2/{name=pr" + + "ojects/*/instances/*/clusters/*}:\001*\022\215\001\n\r" + + "DeleteCluster\022..google.bigtable.admin.v2" + + ".DeleteClusterRequest\032\026.google.protobuf." + + "Empty\"4\202\323\344\223\002.*,/v2/{name=projects/*/inst" + + "ances/*/clusters/*}\022\261\001\n\020CreateAppProfile" + + "\0221.google.bigtable.admin.v2.CreateAppPro" + + "fileRequest\032$.google.bigtable.admin.v2.A" + + "ppProfile\"D\202\323\344\223\002>\"//v2/{parent=projects/" + + "*/instances/*}/appProfiles:\013app_profile\022" + + "\236\001\n\rGetAppProfile\022..google.bigtable.admi" + + "n.v2.GetAppProfileRequest\032$.google.bigta" + + "ble.admin.v2.AppProfile\"7\202\323\344\223\0021\022//v2/{na" + + "me=projects/*/instances/*/appProfiles/*}" + + "\022\257\001\n\017ListAppProfiles\0220.google.bigtable.a" + + "dmin.v2.ListAppProfilesRequest\0321.google." + + "bigtable.admin.v2.ListAppProfilesRespons" + + "e\"7\202\323\344\223\0021\022//v2/{parent=projects/*/instan" + + "ces/*}/appProfiles\022\266\001\n\020UpdateAppProfile\022" + + "1.google.bigtable.admin.v2.UpdateAppProf" + + "ileRequest\032\035.google.longrunning.Operatio" + + "n\"P\202\323\344\223\002J2;/v2/{app_profile.name=project" + + "s/*/instances/*/appProfiles/*}:\013app_prof" + + "ile\022\226\001\n\020DeleteAppProfile\0221.google.bigtab" + + "le.admin.v2.DeleteAppProfileRequest\032\026.go" + + "ogle.protobuf.Empty\"7\202\323\344\223\0021*//v2/{name=p" + + "rojects/*/instances/*/appProfiles/*}\022\210\001\n" + + "\014GetIamPolicy\022\".google.iam.v1.GetIamPoli" + + "cyRequest\032\025.google.iam.v1.Policy\"=\202\323\344\223\0027" + + "\"2/v2/{resource=projects/*/instances/*}:" + + "getIamPolicy:\001*\022\210\001\n\014SetIamPolicy\022\".googl" + + "e.iam.v1.SetIamPolicyRequest\032\025.google.ia" + + "m.v1.Policy\"=\202\323\344\223\0027\"2/v2/{resource=proje" + + "cts/*/instances/*}:setIamPolicy:\001*\022\256\001\n\022T" + + "estIamPermissions\022(.google.iam.v1.TestIa" + + "mPermissionsRequest\032).google.iam.v1.Test" + + "IamPermissionsResponse\"C\202\323\344\223\002=\"8/v2/{res" + + "ource=projects/*/instances/*}:testIamPer" + + "missions:\001*B\275\001\n\034com.google.bigtable.admi" + + "n.v2B\032BigtableInstanceAdminProtoP\001Z=goog" + + "le.golang.org/genproto/googleapis/bigtab" + + "le/admin/v2;admin\252\002\036Google.Cloud.Bigtabl" + + "e.Admin.V2\312\002\036Google\\Cloud\\Bigtable\\Admin" + + "\\V2b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -423,13 +424,13 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_bigtable_admin_v2_ListAppProfilesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_bigtable_admin_v2_ListAppProfilesRequest_descriptor, - new java.lang.String[] { "Parent", "PageToken", }); + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); internal_static_google_bigtable_admin_v2_ListAppProfilesResponse_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_google_bigtable_admin_v2_ListAppProfilesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_bigtable_admin_v2_ListAppProfilesResponse_descriptor, - new java.lang.String[] { "AppProfiles", "NextPageToken", }); + new java.lang.String[] { "AppProfiles", "NextPageToken", "FailedLocations", }); internal_static_google_bigtable_admin_v2_UpdateAppProfileRequest_descriptor = getDescriptor().getMessageTypes().get(19); internal_static_google_bigtable_admin_v2_UpdateAppProfileRequest_fieldAccessorTable = new diff --git a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/BigtableTableAdminProto.java b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/BigtableTableAdminProto.java index 66a2c55f77d7..0ab5a18e6173 100644 --- a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/BigtableTableAdminProto.java +++ b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/BigtableTableAdminProto.java @@ -145,109 +145,110 @@ public static void registerAllExtensions( "snapshot\030\003 \001(\t\"m\n\023DropRowRangeRequest\022\014\n" + "\004name\030\001 \001(\t\022\030\n\016row_key_prefix\030\002 \001(\014H\000\022$\n" + "\032delete_all_data_from_table\030\003 \001(\010H\000B\010\n\006t" + - "arget\"k\n\021ListTablesRequest\022\016\n\006parent\030\001 \001" + + "arget\"~\n\021ListTablesRequest\022\016\n\006parent\030\001 \001" + "(\t\0222\n\004view\030\002 \001(\0162$.google.bigtable.admin" + - ".v2.Table.View\022\022\n\npage_token\030\003 \001(\t\"^\n\022Li" + - "stTablesResponse\022/\n\006tables\030\001 \003(\0132\037.googl" + - "e.bigtable.admin.v2.Table\022\027\n\017next_page_t" + - "oken\030\002 \001(\t\"S\n\017GetTableRequest\022\014\n\004name\030\001 " + - "\001(\t\0222\n\004view\030\002 \001(\0162$.google.bigtable.admi" + - "n.v2.Table.View\"\"\n\022DeleteTableRequest\022\014\n" + - "\004name\030\001 \001(\t\"\256\002\n\033ModifyColumnFamiliesRequ" + - "est\022\014\n\004name\030\001 \001(\t\022Y\n\rmodifications\030\002 \003(\013" + - "2B.google.bigtable.admin.v2.ModifyColumn" + - "FamiliesRequest.Modification\032\245\001\n\014Modific" + - "ation\022\n\n\002id\030\001 \001(\t\0228\n\006create\030\002 \001(\0132&.goog" + - "le.bigtable.admin.v2.ColumnFamilyH\000\0228\n\006u" + - "pdate\030\003 \001(\0132&.google.bigtable.admin.v2.C" + - "olumnFamilyH\000\022\016\n\004drop\030\004 \001(\010H\000B\005\n\003mod\"/\n\037" + - "GenerateConsistencyTokenRequest\022\014\n\004name\030" + - "\001 \001(\t\"=\n GenerateConsistencyTokenRespons" + - "e\022\031\n\021consistency_token\030\001 \001(\t\"B\n\027CheckCon" + - "sistencyRequest\022\014\n\004name\030\001 \001(\t\022\031\n\021consist" + - "ency_token\030\002 \001(\t\".\n\030CheckConsistencyResp" + - "onse\022\022\n\nconsistent\030\001 \001(\010\"\207\001\n\024SnapshotTab" + - "leRequest\022\014\n\004name\030\001 \001(\t\022\017\n\007cluster\030\002 \001(\t" + - "\022\023\n\013snapshot_id\030\003 \001(\t\022&\n\003ttl\030\004 \001(\0132\031.goo" + - "gle.protobuf.Duration\022\023\n\013description\030\005 \001" + - "(\t\"\"\n\022GetSnapshotRequest\022\014\n\004name\030\001 \001(\t\"M" + - "\n\024ListSnapshotsRequest\022\016\n\006parent\030\001 \001(\t\022\021" + - "\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"g\n" + - "\025ListSnapshotsResponse\0225\n\tsnapshots\030\001 \003(" + - "\0132\".google.bigtable.admin.v2.Snapshot\022\027\n" + - "\017next_page_token\030\002 \001(\t\"%\n\025DeleteSnapshot" + - "Request\022\014\n\004name\030\001 \001(\t\"\304\001\n\025SnapshotTableM" + - "etadata\022H\n\020original_request\030\001 \001(\0132..goog" + - "le.bigtable.admin.v2.SnapshotTableReques" + - "t\0220\n\014request_time\030\002 \001(\0132\032.google.protobu" + - "f.Timestamp\022/\n\013finish_time\030\003 \001(\0132\032.googl" + - "e.protobuf.Timestamp\"\330\001\n\037CreateTableFrom" + - "SnapshotMetadata\022R\n\020original_request\030\001 \001" + - "(\01328.google.bigtable.admin.v2.CreateTabl" + - "eFromSnapshotRequest\0220\n\014request_time\030\002 \001" + + ".v2.Table.View\022\021\n\tpage_size\030\004 \001(\005\022\022\n\npag" + + "e_token\030\003 \001(\t\"^\n\022ListTablesResponse\022/\n\006t" + + "ables\030\001 \003(\0132\037.google.bigtable.admin.v2.T" + + "able\022\027\n\017next_page_token\030\002 \001(\t\"S\n\017GetTabl" + + "eRequest\022\014\n\004name\030\001 \001(\t\0222\n\004view\030\002 \001(\0162$.g" + + "oogle.bigtable.admin.v2.Table.View\"\"\n\022De" + + "leteTableRequest\022\014\n\004name\030\001 \001(\t\"\256\002\n\033Modif" + + "yColumnFamiliesRequest\022\014\n\004name\030\001 \001(\t\022Y\n\r" + + "modifications\030\002 \003(\0132B.google.bigtable.ad" + + "min.v2.ModifyColumnFamiliesRequest.Modif" + + "ication\032\245\001\n\014Modification\022\n\n\002id\030\001 \001(\t\0228\n\006" + + "create\030\002 \001(\0132&.google.bigtable.admin.v2." + + "ColumnFamilyH\000\0228\n\006update\030\003 \001(\0132&.google." + + "bigtable.admin.v2.ColumnFamilyH\000\022\016\n\004drop" + + "\030\004 \001(\010H\000B\005\n\003mod\"/\n\037GenerateConsistencyTo" + + "kenRequest\022\014\n\004name\030\001 \001(\t\"=\n GenerateCons" + + "istencyTokenResponse\022\031\n\021consistency_toke" + + "n\030\001 \001(\t\"B\n\027CheckConsistencyRequest\022\014\n\004na" + + "me\030\001 \001(\t\022\031\n\021consistency_token\030\002 \001(\t\".\n\030C" + + "heckConsistencyResponse\022\022\n\nconsistent\030\001 " + + "\001(\010\"\207\001\n\024SnapshotTableRequest\022\014\n\004name\030\001 \001" + + "(\t\022\017\n\007cluster\030\002 \001(\t\022\023\n\013snapshot_id\030\003 \001(\t" + + "\022&\n\003ttl\030\004 \001(\0132\031.google.protobuf.Duration" + + "\022\023\n\013description\030\005 \001(\t\"\"\n\022GetSnapshotRequ" + + "est\022\014\n\004name\030\001 \001(\t\"M\n\024ListSnapshotsReques" + + "t\022\016\n\006parent\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\n" + + "page_token\030\003 \001(\t\"g\n\025ListSnapshotsRespons" + + "e\0225\n\tsnapshots\030\001 \003(\0132\".google.bigtable.a" + + "dmin.v2.Snapshot\022\027\n\017next_page_token\030\002 \001(" + + "\t\"%\n\025DeleteSnapshotRequest\022\014\n\004name\030\001 \001(\t" + + "\"\304\001\n\025SnapshotTableMetadata\022H\n\020original_r" + + "equest\030\001 \001(\0132..google.bigtable.admin.v2." + + "SnapshotTableRequest\0220\n\014request_time\030\002 \001" + "(\0132\032.google.protobuf.Timestamp\022/\n\013finish" + - "_time\030\003 \001(\0132\032.google.protobuf.Timestamp2" + - "\267\021\n\022BigtableTableAdmin\022\223\001\n\013CreateTable\022," + - ".google.bigtable.admin.v2.CreateTableReq" + - "uest\032\037.google.bigtable.admin.v2.Table\"5\202" + - "\323\344\223\002/\"*/v2/{parent=projects/*/instances/" + - "*}/tables:\001*\022\274\001\n\027CreateTableFromSnapshot" + - "\0228.google.bigtable.admin.v2.CreateTableF" + - "romSnapshotRequest\032\035.google.longrunning." + - "Operation\"H\202\323\344\223\002B\"=/v2/{parent=projects/" + - "*/instances/*}/tables:createFromSnapshot" + - ":\001*\022\233\001\n\nListTables\022+.google.bigtable.adm" + - "in.v2.ListTablesRequest\032,.google.bigtabl" + - "e.admin.v2.ListTablesResponse\"2\202\323\344\223\002,\022*/" + - "v2/{parent=projects/*/instances/*}/table" + - "s\022\212\001\n\010GetTable\022).google.bigtable.admin.v" + - "2.GetTableRequest\032\037.google.bigtable.admi" + - "n.v2.Table\"2\202\323\344\223\002,\022*/v2/{name=projects/*" + - "/instances/*/tables/*}\022\207\001\n\013DeleteTable\022," + - ".google.bigtable.admin.v2.DeleteTableReq" + - "uest\032\026.google.protobuf.Empty\"2\202\323\344\223\002,**/v" + - "2/{name=projects/*/instances/*/tables/*}" + - "\022\272\001\n\024ModifyColumnFamilies\0225.google.bigta" + - "ble.admin.v2.ModifyColumnFamiliesRequest" + - "\032\037.google.bigtable.admin.v2.Table\"J\202\323\344\223\002" + - "D\"?/v2/{name=projects/*/instances/*/tabl" + - "es/*}:modifyColumnFamilies:\001*\022\231\001\n\014DropRo" + - "wRange\022-.google.bigtable.admin.v2.DropRo" + - "wRangeRequest\032\026.google.protobuf.Empty\"B\202" + - "\323\344\223\002<\"7/v2/{name=projects/*/instances/*/" + - "tables/*}:dropRowRange:\001*\022\341\001\n\030GenerateCo" + - "nsistencyToken\0229.google.bigtable.admin.v" + - "2.GenerateConsistencyTokenRequest\032:.goog" + + "_time\030\003 \001(\0132\032.google.protobuf.Timestamp\"" + + "\330\001\n\037CreateTableFromSnapshotMetadata\022R\n\020o" + + "riginal_request\030\001 \001(\01328.google.bigtable." + + "admin.v2.CreateTableFromSnapshotRequest\022" + + "0\n\014request_time\030\002 \001(\0132\032.google.protobuf." + + "Timestamp\022/\n\013finish_time\030\003 \001(\0132\032.google." + + "protobuf.Timestamp2\267\021\n\022BigtableTableAdmi" + + "n\022\223\001\n\013CreateTable\022,.google.bigtable.admi" + + "n.v2.CreateTableRequest\032\037.google.bigtabl" + + "e.admin.v2.Table\"5\202\323\344\223\002/\"*/v2/{parent=pr" + + "ojects/*/instances/*}/tables:\001*\022\274\001\n\027Crea" + + "teTableFromSnapshot\0228.google.bigtable.ad" + + "min.v2.CreateTableFromSnapshotRequest\032\035." + + "google.longrunning.Operation\"H\202\323\344\223\002B\"=/v" + + "2/{parent=projects/*/instances/*}/tables" + + ":createFromSnapshot:\001*\022\233\001\n\nListTables\022+." + + "google.bigtable.admin.v2.ListTablesReque" + + "st\032,.google.bigtable.admin.v2.ListTables" + + "Response\"2\202\323\344\223\002,\022*/v2/{parent=projects/*" + + "/instances/*}/tables\022\212\001\n\010GetTable\022).goog" + + "le.bigtable.admin.v2.GetTableRequest\032\037.g" + + "oogle.bigtable.admin.v2.Table\"2\202\323\344\223\002,\022*/" + + "v2/{name=projects/*/instances/*/tables/*" + + "}\022\207\001\n\013DeleteTable\022,.google.bigtable.admi" + + "n.v2.DeleteTableRequest\032\026.google.protobu" + + "f.Empty\"2\202\323\344\223\002,**/v2/{name=projects/*/in" + + "stances/*/tables/*}\022\272\001\n\024ModifyColumnFami" + + "lies\0225.google.bigtable.admin.v2.ModifyCo" + + "lumnFamiliesRequest\032\037.google.bigtable.ad" + + "min.v2.Table\"J\202\323\344\223\002D\"?/v2/{name=projects" + + "/*/instances/*/tables/*}:modifyColumnFam" + + "ilies:\001*\022\231\001\n\014DropRowRange\022-.google.bigta" + + "ble.admin.v2.DropRowRangeRequest\032\026.googl" + + "e.protobuf.Empty\"B\202\323\344\223\002<\"7/v2/{name=proj" + + "ects/*/instances/*/tables/*}:dropRowRang" + + "e:\001*\022\341\001\n\030GenerateConsistencyToken\0229.goog" + "le.bigtable.admin.v2.GenerateConsistency" + - "TokenResponse\"N\202\323\344\223\002H\"C/v2/{name=project" + - "s/*/instances/*/tables/*}:generateConsis" + - "tencyToken:\001*\022\301\001\n\020CheckConsistency\0221.goo" + - "gle.bigtable.admin.v2.CheckConsistencyRe" + - "quest\0322.google.bigtable.admin.v2.CheckCo" + - "nsistencyResponse\"F\202\323\344\223\002@\";/v2/{name=pro" + - "jects/*/instances/*/tables/*}:checkConsi" + - "stency:\001*\022\236\001\n\rSnapshotTable\022..google.big" + - "table.admin.v2.SnapshotTableRequest\032\035.go" + - "ogle.longrunning.Operation\">\202\323\344\223\0028\"3/v2/" + - "{name=projects/*/instances/*/tables/*}:s" + - "napshot:\001*\022\241\001\n\013GetSnapshot\022,.google.bigt" + - "able.admin.v2.GetSnapshotRequest\032\".googl" + - "e.bigtable.admin.v2.Snapshot\"@\202\323\344\223\002:\0228/v" + - "2/{name=projects/*/instances/*/clusters/" + - "*/snapshots/*}\022\262\001\n\rListSnapshots\022..googl" + - "e.bigtable.admin.v2.ListSnapshotsRequest" + - "\032/.google.bigtable.admin.v2.ListSnapshot" + - "sResponse\"@\202\323\344\223\002:\0228/v2/{parent=projects/" + - "*/instances/*/clusters/*}/snapshots\022\233\001\n\016" + - "DeleteSnapshot\022/.google.bigtable.admin.v" + - "2.DeleteSnapshotRequest\032\026.google.protobu" + - "f.Empty\"@\202\323\344\223\002:*8/v2/{name=projects/*/in" + - "stances/*/clusters/*/snapshots/*}B\272\001\n\034co" + - "m.google.bigtable.admin.v2B\027BigtableTabl" + - "eAdminProtoP\001Z=google.golang.org/genprot" + - "o/googleapis/bigtable/admin/v2;admin\252\002\036G" + - "oogle.Cloud.Bigtable.Admin.V2\312\002\036Google\\C" + - "loud\\Bigtable\\Admin\\V2b\006proto3" + "TokenRequest\032:.google.bigtable.admin.v2." + + "GenerateConsistencyTokenResponse\"N\202\323\344\223\002H" + + "\"C/v2/{name=projects/*/instances/*/table" + + "s/*}:generateConsistencyToken:\001*\022\301\001\n\020Che" + + "ckConsistency\0221.google.bigtable.admin.v2" + + ".CheckConsistencyRequest\0322.google.bigtab" + + "le.admin.v2.CheckConsistencyResponse\"F\202\323" + + "\344\223\002@\";/v2/{name=projects/*/instances/*/t" + + "ables/*}:checkConsistency:\001*\022\236\001\n\rSnapsho" + + "tTable\022..google.bigtable.admin.v2.Snapsh" + + "otTableRequest\032\035.google.longrunning.Oper" + + "ation\">\202\323\344\223\0028\"3/v2/{name=projects/*/inst" + + "ances/*/tables/*}:snapshot:\001*\022\241\001\n\013GetSna" + + "pshot\022,.google.bigtable.admin.v2.GetSnap" + + "shotRequest\032\".google.bigtable.admin.v2.S" + + "napshot\"@\202\323\344\223\002:\0228/v2/{name=projects/*/in" + + "stances/*/clusters/*/snapshots/*}\022\262\001\n\rLi" + + "stSnapshots\022..google.bigtable.admin.v2.L" + + "istSnapshotsRequest\032/.google.bigtable.ad" + + "min.v2.ListSnapshotsResponse\"@\202\323\344\223\002:\0228/v" + + "2/{parent=projects/*/instances/*/cluster" + + "s/*}/snapshots\022\233\001\n\016DeleteSnapshot\022/.goog" + + "le.bigtable.admin.v2.DeleteSnapshotReque" + + "st\032\026.google.protobuf.Empty\"@\202\323\344\223\002:*8/v2/" + + "{name=projects/*/instances/*/clusters/*/" + + "snapshots/*}B\272\001\n\034com.google.bigtable.adm" + + "in.v2B\027BigtableTableAdminProtoP\001Z=google" + + ".golang.org/genproto/googleapis/bigtable" + + "/admin/v2;admin\252\002\036Google.Cloud.Bigtable." + + "Admin.V2\312\002\036Google\\Cloud\\Bigtable\\Admin\\V" + + "2b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -296,7 +297,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_bigtable_admin_v2_ListTablesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_bigtable_admin_v2_ListTablesRequest_descriptor, - new java.lang.String[] { "Parent", "View", "PageToken", }); + new java.lang.String[] { "Parent", "View", "PageSize", "PageToken", }); internal_static_google_bigtable_admin_v2_ListTablesResponse_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_google_bigtable_admin_v2_ListTablesResponse_fieldAccessorTable = new diff --git a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateInstanceRequest.java b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateInstanceRequest.java index 8dadd6210911..c17f6fc8de84 100644 --- a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateInstanceRequest.java +++ b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateInstanceRequest.java @@ -289,7 +289,7 @@ public int getClustersCount() { * cluster ID, e.g., just `mycluster` rather than * `projects/myproject/instances/myinstance/clusters/mycluster`. * Fields marked `OutputOnly` must be left blank. - * Currently exactly one cluster must be specified. + * Currently, at most two clusters can be specified. * * * map<string, .google.bigtable.admin.v2.Cluster> clusters = 4; @@ -313,7 +313,7 @@ public java.util.Map get * cluster ID, e.g., just `mycluster` rather than * `projects/myproject/instances/myinstance/clusters/mycluster`. * Fields marked `OutputOnly` must be left blank. - * Currently exactly one cluster must be specified. + * Currently, at most two clusters can be specified. * * * map<string, .google.bigtable.admin.v2.Cluster> clusters = 4; @@ -328,7 +328,7 @@ public java.util.Map get * cluster ID, e.g., just `mycluster` rather than * `projects/myproject/instances/myinstance/clusters/mycluster`. * Fields marked `OutputOnly` must be left blank. - * Currently exactly one cluster must be specified. + * Currently, at most two clusters can be specified. * * * map<string, .google.bigtable.admin.v2.Cluster> clusters = 4; @@ -348,7 +348,7 @@ public com.google.bigtable.admin.v2.Cluster getClustersOrDefault( * cluster ID, e.g., just `mycluster` rather than * `projects/myproject/instances/myinstance/clusters/mycluster`. * Fields marked `OutputOnly` must be left blank. - * Currently exactly one cluster must be specified. + * Currently, at most two clusters can be specified. * * * map<string, .google.bigtable.admin.v2.Cluster> clusters = 4; @@ -1159,7 +1159,7 @@ public int getClustersCount() { * cluster ID, e.g., just `mycluster` rather than * `projects/myproject/instances/myinstance/clusters/mycluster`. * Fields marked `OutputOnly` must be left blank. - * Currently exactly one cluster must be specified. + * Currently, at most two clusters can be specified. * * * map<string, .google.bigtable.admin.v2.Cluster> clusters = 4; @@ -1183,7 +1183,7 @@ public java.util.Map get * cluster ID, e.g., just `mycluster` rather than * `projects/myproject/instances/myinstance/clusters/mycluster`. * Fields marked `OutputOnly` must be left blank. - * Currently exactly one cluster must be specified. + * Currently, at most two clusters can be specified. * * * map<string, .google.bigtable.admin.v2.Cluster> clusters = 4; @@ -1198,7 +1198,7 @@ public java.util.Map get * cluster ID, e.g., just `mycluster` rather than * `projects/myproject/instances/myinstance/clusters/mycluster`. * Fields marked `OutputOnly` must be left blank. - * Currently exactly one cluster must be specified. + * Currently, at most two clusters can be specified. * * * map<string, .google.bigtable.admin.v2.Cluster> clusters = 4; @@ -1218,7 +1218,7 @@ public com.google.bigtable.admin.v2.Cluster getClustersOrDefault( * cluster ID, e.g., just `mycluster` rather than * `projects/myproject/instances/myinstance/clusters/mycluster`. * Fields marked `OutputOnly` must be left blank. - * Currently exactly one cluster must be specified. + * Currently, at most two clusters can be specified. * * * map<string, .google.bigtable.admin.v2.Cluster> clusters = 4; @@ -1246,7 +1246,7 @@ public Builder clearClusters() { * cluster ID, e.g., just `mycluster` rather than * `projects/myproject/instances/myinstance/clusters/mycluster`. * Fields marked `OutputOnly` must be left blank. - * Currently exactly one cluster must be specified. + * Currently, at most two clusters can be specified. * * * map<string, .google.bigtable.admin.v2.Cluster> clusters = 4; @@ -1273,7 +1273,7 @@ public Builder removeClusters( * cluster ID, e.g., just `mycluster` rather than * `projects/myproject/instances/myinstance/clusters/mycluster`. * Fields marked `OutputOnly` must be left blank. - * Currently exactly one cluster must be specified. + * Currently, at most two clusters can be specified. * * * map<string, .google.bigtable.admin.v2.Cluster> clusters = 4; @@ -1293,7 +1293,7 @@ public Builder putClusters( * cluster ID, e.g., just `mycluster` rather than * `projects/myproject/instances/myinstance/clusters/mycluster`. * Fields marked `OutputOnly` must be left blank. - * Currently exactly one cluster must be specified. + * Currently, at most two clusters can be specified. * * * map<string, .google.bigtable.admin.v2.Cluster> clusters = 4; diff --git a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateInstanceRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateInstanceRequestOrBuilder.java index 58993a670263..cc62009b40d9 100644 --- a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateInstanceRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateInstanceRequestOrBuilder.java @@ -83,7 +83,7 @@ public interface CreateInstanceRequestOrBuilder extends * cluster ID, e.g., just `mycluster` rather than * `projects/myproject/instances/myinstance/clusters/mycluster`. * Fields marked `OutputOnly` must be left blank. - * Currently exactly one cluster must be specified. + * Currently, at most two clusters can be specified. * * * map<string, .google.bigtable.admin.v2.Cluster> clusters = 4; @@ -95,7 +95,7 @@ public interface CreateInstanceRequestOrBuilder extends * cluster ID, e.g., just `mycluster` rather than * `projects/myproject/instances/myinstance/clusters/mycluster`. * Fields marked `OutputOnly` must be left blank. - * Currently exactly one cluster must be specified. + * Currently, at most two clusters can be specified. * * * map<string, .google.bigtable.admin.v2.Cluster> clusters = 4; @@ -114,7 +114,7 @@ boolean containsClusters( * cluster ID, e.g., just `mycluster` rather than * `projects/myproject/instances/myinstance/clusters/mycluster`. * Fields marked `OutputOnly` must be left blank. - * Currently exactly one cluster must be specified. + * Currently, at most two clusters can be specified. * * * map<string, .google.bigtable.admin.v2.Cluster> clusters = 4; @@ -127,7 +127,7 @@ boolean containsClusters( * cluster ID, e.g., just `mycluster` rather than * `projects/myproject/instances/myinstance/clusters/mycluster`. * Fields marked `OutputOnly` must be left blank. - * Currently exactly one cluster must be specified. + * Currently, at most two clusters can be specified. * * * map<string, .google.bigtable.admin.v2.Cluster> clusters = 4; @@ -142,7 +142,7 @@ com.google.bigtable.admin.v2.Cluster getClustersOrDefault( * cluster ID, e.g., just `mycluster` rather than * `projects/myproject/instances/myinstance/clusters/mycluster`. * Fields marked `OutputOnly` must be left blank. - * Currently exactly one cluster must be specified. + * Currently, at most two clusters can be specified. * * * map<string, .google.bigtable.admin.v2.Cluster> clusters = 4; diff --git a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListAppProfilesRequest.java b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListAppProfilesRequest.java index 851f72b64a7c..2b927cc44487 100644 --- a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListAppProfilesRequest.java +++ b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListAppProfilesRequest.java @@ -21,6 +21,7 @@ private ListAppProfilesRequest(com.google.protobuf.GeneratedMessageV3.Builder } private ListAppProfilesRequest() { parent_ = ""; + pageSize_ = 0; pageToken_ = ""; } @@ -60,6 +61,11 @@ private ListAppProfilesRequest( pageToken_ = s; break; } + case 24: { + + pageSize_ = input.readInt32(); + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -99,6 +105,8 @@ private ListAppProfilesRequest( * The unique name of the instance for which a list of app profiles is * requested. Values are of the form * `projects/<project>/instances/<instance>`. + * Use `<instance> = '-'` to list AppProfiles for all Instances in a project, + * e.g., `projects/myproject/instances/-`. * * * string parent = 1; @@ -120,6 +128,8 @@ public java.lang.String getParent() { * The unique name of the instance for which a list of app profiles is * requested. Values are of the form * `projects/<project>/instances/<instance>`. + * Use `<instance> = '-'` to list AppProfiles for all Instances in a project, + * e.g., `projects/myproject/instances/-`. * * * string parent = 1; @@ -138,6 +148,20 @@ public java.lang.String getParent() { } } + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_; + /** + *
+   * Maximum number of results per page.
+   * CURRENTLY UNIMPLEMENTED AND IGNORED.
+   * 
+ * + * int32 page_size = 3; + */ + public int getPageSize() { + return pageSize_; + } + public static final int PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object pageToken_; /** @@ -200,6 +224,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getPageTokenBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pageToken_); } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } unknownFields.writeTo(output); } @@ -215,6 +242,10 @@ public int getSerializedSize() { if (!getPageTokenBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -233,6 +264,8 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && getParent() .equals(other.getParent()); + result = result && (getPageSize() + == other.getPageSize()); result = result && getPageToken() .equals(other.getPageToken()); result = result && unknownFields.equals(other.unknownFields); @@ -248,6 +281,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PARENT_FIELD_NUMBER; hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -389,6 +424,8 @@ public Builder clear() { super.clear(); parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; return this; @@ -418,6 +455,7 @@ public com.google.bigtable.admin.v2.ListAppProfilesRequest build() { public com.google.bigtable.admin.v2.ListAppProfilesRequest buildPartial() { com.google.bigtable.admin.v2.ListAppProfilesRequest result = new com.google.bigtable.admin.v2.ListAppProfilesRequest(this); result.parent_ = parent_; + result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; onBuilt(); return result; @@ -471,6 +509,9 @@ public Builder mergeFrom(com.google.bigtable.admin.v2.ListAppProfilesRequest oth parent_ = other.parent_; onChanged(); } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; onChanged(); @@ -510,6 +551,8 @@ public Builder mergeFrom( * The unique name of the instance for which a list of app profiles is * requested. Values are of the form * `projects/<project>/instances/<instance>`. + * Use `<instance> = '-'` to list AppProfiles for all Instances in a project, + * e.g., `projects/myproject/instances/-`. * * * string parent = 1; @@ -531,6 +574,8 @@ public java.lang.String getParent() { * The unique name of the instance for which a list of app profiles is * requested. Values are of the form * `projects/<project>/instances/<instance>`. + * Use `<instance> = '-'` to list AppProfiles for all Instances in a project, + * e.g., `projects/myproject/instances/-`. * * * string parent = 1; @@ -553,6 +598,8 @@ public java.lang.String getParent() { * The unique name of the instance for which a list of app profiles is * requested. Values are of the form * `projects/<project>/instances/<instance>`. + * Use `<instance> = '-'` to list AppProfiles for all Instances in a project, + * e.g., `projects/myproject/instances/-`. * * * string parent = 1; @@ -572,6 +619,8 @@ public Builder setParent( * The unique name of the instance for which a list of app profiles is * requested. Values are of the form * `projects/<project>/instances/<instance>`. + * Use `<instance> = '-'` to list AppProfiles for all Instances in a project, + * e.g., `projects/myproject/instances/-`. * * * string parent = 1; @@ -587,6 +636,8 @@ public Builder clearParent() { * The unique name of the instance for which a list of app profiles is * requested. Values are of the form * `projects/<project>/instances/<instance>`. + * Use `<instance> = '-'` to list AppProfiles for all Instances in a project, + * e.g., `projects/myproject/instances/-`. * * * string parent = 1; @@ -603,6 +654,47 @@ public Builder setParentBytes( return this; } + private int pageSize_ ; + /** + *
+     * Maximum number of results per page.
+     * CURRENTLY UNIMPLEMENTED AND IGNORED.
+     * 
+ * + * int32 page_size = 3; + */ + public int getPageSize() { + return pageSize_; + } + /** + *
+     * Maximum number of results per page.
+     * CURRENTLY UNIMPLEMENTED AND IGNORED.
+     * 
+ * + * int32 page_size = 3; + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + *
+     * Maximum number of results per page.
+     * CURRENTLY UNIMPLEMENTED AND IGNORED.
+     * 
+ * + * int32 page_size = 3; + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + private java.lang.Object pageToken_ = ""; /** *
diff --git a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListAppProfilesRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListAppProfilesRequestOrBuilder.java
index e7cd2aa1edd4..931e354a7736 100644
--- a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListAppProfilesRequestOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListAppProfilesRequestOrBuilder.java
@@ -12,6 +12,8 @@ public interface ListAppProfilesRequestOrBuilder extends
    * The unique name of the instance for which a list of app profiles is
    * requested. Values are of the form
    * `projects/<project>/instances/<instance>`.
+   * Use `<instance> = '-'` to list AppProfiles for all Instances in a project,
+   * e.g., `projects/myproject/instances/-`.
    * 
* * string parent = 1; @@ -22,6 +24,8 @@ public interface ListAppProfilesRequestOrBuilder extends * The unique name of the instance for which a list of app profiles is * requested. Values are of the form * `projects/<project>/instances/<instance>`. + * Use `<instance> = '-'` to list AppProfiles for all Instances in a project, + * e.g., `projects/myproject/instances/-`. * * * string parent = 1; @@ -29,6 +33,16 @@ public interface ListAppProfilesRequestOrBuilder extends com.google.protobuf.ByteString getParentBytes(); + /** + *
+   * Maximum number of results per page.
+   * CURRENTLY UNIMPLEMENTED AND IGNORED.
+   * 
+ * + * int32 page_size = 3; + */ + int getPageSize(); + /** *
    * The value of `next_page_token` returned by a previous call.
diff --git a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListAppProfilesResponse.java b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListAppProfilesResponse.java
index f321dfd533fe..6c8752eb567d 100644
--- a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListAppProfilesResponse.java
+++ b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListAppProfilesResponse.java
@@ -22,6 +22,7 @@ private ListAppProfilesResponse(com.google.protobuf.GeneratedMessageV3.Builder
+   * Locations from which AppProfile information could not be retrieved,
+   * due to an outage or some other transient condition.
+   * AppProfiles from these locations may be missing from `app_profiles`.
+   * Values are of the form `projects/<project>/locations/<zone_id>`
+   * 
+ * + * repeated string failed_locations = 3; + */ + public com.google.protobuf.ProtocolStringList + getFailedLocationsList() { + return failedLocations_; + } + /** + *
+   * Locations from which AppProfile information could not be retrieved,
+   * due to an outage or some other transient condition.
+   * AppProfiles from these locations may be missing from `app_profiles`.
+   * Values are of the form `projects/<project>/locations/<zone_id>`
+   * 
+ * + * repeated string failed_locations = 3; + */ + public int getFailedLocationsCount() { + return failedLocations_.size(); + } + /** + *
+   * Locations from which AppProfile information could not be retrieved,
+   * due to an outage or some other transient condition.
+   * AppProfiles from these locations may be missing from `app_profiles`.
+   * Values are of the form `projects/<project>/locations/<zone_id>`
+   * 
+ * + * repeated string failed_locations = 3; + */ + public java.lang.String getFailedLocations(int index) { + return failedLocations_.get(index); + } + /** + *
+   * Locations from which AppProfile information could not be retrieved,
+   * due to an outage or some other transient condition.
+   * AppProfiles from these locations may be missing from `app_profiles`.
+   * Values are of the form `projects/<project>/locations/<zone_id>`
+   * 
+ * + * repeated string failed_locations = 3; + */ + public com.google.protobuf.ByteString + getFailedLocationsBytes(int index) { + return failedLocations_.getByteString(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -220,6 +290,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getNextPageTokenBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } + for (int i = 0; i < failedLocations_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, failedLocations_.getRaw(i)); + } unknownFields.writeTo(output); } @@ -236,6 +309,14 @@ public int getSerializedSize() { if (!getNextPageTokenBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } + { + int dataSize = 0; + for (int i = 0; i < failedLocations_.size(); i++) { + dataSize += computeStringSizeNoTag(failedLocations_.getRaw(i)); + } + size += dataSize; + size += 1 * getFailedLocationsList().size(); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -256,6 +337,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getAppProfilesList()); result = result && getNextPageToken() .equals(other.getNextPageToken()); + result = result && getFailedLocationsList() + .equals(other.getFailedLocationsList()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -273,6 +356,10 @@ public int hashCode() { } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); + if (getFailedLocationsCount() > 0) { + hash = (37 * hash) + FAILED_LOCATIONS_FIELD_NUMBER; + hash = (53 * hash) + getFailedLocationsList().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -419,6 +506,8 @@ public Builder clear() { } nextPageToken_ = ""; + failedLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -457,6 +546,11 @@ public com.google.bigtable.admin.v2.ListAppProfilesResponse buildPartial() { result.appProfiles_ = appProfilesBuilder_.build(); } result.nextPageToken_ = nextPageToken_; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + failedLocations_ = failedLocations_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.failedLocations_ = failedLocations_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -536,6 +630,16 @@ public Builder mergeFrom(com.google.bigtable.admin.v2.ListAppProfilesResponse ot nextPageToken_ = other.nextPageToken_; onChanged(); } + if (!other.failedLocations_.isEmpty()) { + if (failedLocations_.isEmpty()) { + failedLocations_ = other.failedLocations_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureFailedLocationsIsMutable(); + failedLocations_.addAll(other.failedLocations_); + } + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -976,6 +1080,163 @@ public Builder setNextPageTokenBytes( onChanged(); return this; } + + private com.google.protobuf.LazyStringList failedLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureFailedLocationsIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + failedLocations_ = new com.google.protobuf.LazyStringArrayList(failedLocations_); + bitField0_ |= 0x00000004; + } + } + /** + *
+     * Locations from which AppProfile information could not be retrieved,
+     * due to an outage or some other transient condition.
+     * AppProfiles from these locations may be missing from `app_profiles`.
+     * Values are of the form `projects/<project>/locations/<zone_id>`
+     * 
+ * + * repeated string failed_locations = 3; + */ + public com.google.protobuf.ProtocolStringList + getFailedLocationsList() { + return failedLocations_.getUnmodifiableView(); + } + /** + *
+     * Locations from which AppProfile information could not be retrieved,
+     * due to an outage or some other transient condition.
+     * AppProfiles from these locations may be missing from `app_profiles`.
+     * Values are of the form `projects/<project>/locations/<zone_id>`
+     * 
+ * + * repeated string failed_locations = 3; + */ + public int getFailedLocationsCount() { + return failedLocations_.size(); + } + /** + *
+     * Locations from which AppProfile information could not be retrieved,
+     * due to an outage or some other transient condition.
+     * AppProfiles from these locations may be missing from `app_profiles`.
+     * Values are of the form `projects/<project>/locations/<zone_id>`
+     * 
+ * + * repeated string failed_locations = 3; + */ + public java.lang.String getFailedLocations(int index) { + return failedLocations_.get(index); + } + /** + *
+     * Locations from which AppProfile information could not be retrieved,
+     * due to an outage or some other transient condition.
+     * AppProfiles from these locations may be missing from `app_profiles`.
+     * Values are of the form `projects/<project>/locations/<zone_id>`
+     * 
+ * + * repeated string failed_locations = 3; + */ + public com.google.protobuf.ByteString + getFailedLocationsBytes(int index) { + return failedLocations_.getByteString(index); + } + /** + *
+     * Locations from which AppProfile information could not be retrieved,
+     * due to an outage or some other transient condition.
+     * AppProfiles from these locations may be missing from `app_profiles`.
+     * Values are of the form `projects/<project>/locations/<zone_id>`
+     * 
+ * + * repeated string failed_locations = 3; + */ + public Builder setFailedLocations( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFailedLocationsIsMutable(); + failedLocations_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * Locations from which AppProfile information could not be retrieved,
+     * due to an outage or some other transient condition.
+     * AppProfiles from these locations may be missing from `app_profiles`.
+     * Values are of the form `projects/<project>/locations/<zone_id>`
+     * 
+ * + * repeated string failed_locations = 3; + */ + public Builder addFailedLocations( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFailedLocationsIsMutable(); + failedLocations_.add(value); + onChanged(); + return this; + } + /** + *
+     * Locations from which AppProfile information could not be retrieved,
+     * due to an outage or some other transient condition.
+     * AppProfiles from these locations may be missing from `app_profiles`.
+     * Values are of the form `projects/<project>/locations/<zone_id>`
+     * 
+ * + * repeated string failed_locations = 3; + */ + public Builder addAllFailedLocations( + java.lang.Iterable values) { + ensureFailedLocationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, failedLocations_); + onChanged(); + return this; + } + /** + *
+     * Locations from which AppProfile information could not be retrieved,
+     * due to an outage or some other transient condition.
+     * AppProfiles from these locations may be missing from `app_profiles`.
+     * Values are of the form `projects/<project>/locations/<zone_id>`
+     * 
+ * + * repeated string failed_locations = 3; + */ + public Builder clearFailedLocations() { + failedLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Locations from which AppProfile information could not be retrieved,
+     * due to an outage or some other transient condition.
+     * AppProfiles from these locations may be missing from `app_profiles`.
+     * Values are of the form `projects/<project>/locations/<zone_id>`
+     * 
+ * + * repeated string failed_locations = 3; + */ + public Builder addFailedLocationsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureFailedLocationsIsMutable(); + failedLocations_.add(value); + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListAppProfilesResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListAppProfilesResponseOrBuilder.java index 729a3946c263..15ce255193ff 100644 --- a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListAppProfilesResponseOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListAppProfilesResponseOrBuilder.java @@ -72,4 +72,51 @@ com.google.bigtable.admin.v2.AppProfileOrBuilder getAppProfilesOrBuilder( */ com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + *
+   * Locations from which AppProfile information could not be retrieved,
+   * due to an outage or some other transient condition.
+   * AppProfiles from these locations may be missing from `app_profiles`.
+   * Values are of the form `projects/<project>/locations/<zone_id>`
+   * 
+ * + * repeated string failed_locations = 3; + */ + java.util.List + getFailedLocationsList(); + /** + *
+   * Locations from which AppProfile information could not be retrieved,
+   * due to an outage or some other transient condition.
+   * AppProfiles from these locations may be missing from `app_profiles`.
+   * Values are of the form `projects/<project>/locations/<zone_id>`
+   * 
+ * + * repeated string failed_locations = 3; + */ + int getFailedLocationsCount(); + /** + *
+   * Locations from which AppProfile information could not be retrieved,
+   * due to an outage or some other transient condition.
+   * AppProfiles from these locations may be missing from `app_profiles`.
+   * Values are of the form `projects/<project>/locations/<zone_id>`
+   * 
+ * + * repeated string failed_locations = 3; + */ + java.lang.String getFailedLocations(int index); + /** + *
+   * Locations from which AppProfile information could not be retrieved,
+   * due to an outage or some other transient condition.
+   * AppProfiles from these locations may be missing from `app_profiles`.
+   * Values are of the form `projects/<project>/locations/<zone_id>`
+   * 
+ * + * repeated string failed_locations = 3; + */ + com.google.protobuf.ByteString + getFailedLocationsBytes(int index); } diff --git a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListClustersRequest.java b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListClustersRequest.java index cfaab249c135..21ee4caaf7b8 100644 --- a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListClustersRequest.java +++ b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListClustersRequest.java @@ -144,7 +144,7 @@ public java.lang.String getParent() { private volatile java.lang.Object pageToken_; /** *
-   * The value of `next_page_token` returned by a previous call.
+   * DEPRECATED: This field is unused and ignored.
    * 
* * string page_token = 2; @@ -163,7 +163,7 @@ public java.lang.String getPageToken() { } /** *
-   * The value of `next_page_token` returned by a previous call.
+   * DEPRECATED: This field is unused and ignored.
    * 
* * string page_token = 2; @@ -613,7 +613,7 @@ public Builder setParentBytes( private java.lang.Object pageToken_ = ""; /** *
-     * The value of `next_page_token` returned by a previous call.
+     * DEPRECATED: This field is unused and ignored.
      * 
* * string page_token = 2; @@ -632,7 +632,7 @@ public java.lang.String getPageToken() { } /** *
-     * The value of `next_page_token` returned by a previous call.
+     * DEPRECATED: This field is unused and ignored.
      * 
* * string page_token = 2; @@ -652,7 +652,7 @@ public java.lang.String getPageToken() { } /** *
-     * The value of `next_page_token` returned by a previous call.
+     * DEPRECATED: This field is unused and ignored.
      * 
* * string page_token = 2; @@ -669,7 +669,7 @@ public Builder setPageToken( } /** *
-     * The value of `next_page_token` returned by a previous call.
+     * DEPRECATED: This field is unused and ignored.
      * 
* * string page_token = 2; @@ -682,7 +682,7 @@ public Builder clearPageToken() { } /** *
-     * The value of `next_page_token` returned by a previous call.
+     * DEPRECATED: This field is unused and ignored.
      * 
* * string page_token = 2; diff --git a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListClustersRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListClustersRequestOrBuilder.java index dc95d5d82fb0..6fd4fe78b2fe 100644 --- a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListClustersRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListClustersRequestOrBuilder.java @@ -33,7 +33,7 @@ public interface ListClustersRequestOrBuilder extends /** *
-   * The value of `next_page_token` returned by a previous call.
+   * DEPRECATED: This field is unused and ignored.
    * 
* * string page_token = 2; @@ -41,7 +41,7 @@ public interface ListClustersRequestOrBuilder extends java.lang.String getPageToken(); /** *
-   * The value of `next_page_token` returned by a previous call.
+   * DEPRECATED: This field is unused and ignored.
    * 
* * string page_token = 2; diff --git a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListClustersResponse.java b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListClustersResponse.java index 2521ddaded8d..aeab0829adc9 100644 --- a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListClustersResponse.java +++ b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListClustersResponse.java @@ -175,6 +175,7 @@ public com.google.bigtable.admin.v2.ClusterOrBuilder getClustersOrBuilder( * due to an outage or some other transient condition. * Clusters from these locations may be missing from `clusters`, * or may only have partial information returned. + * Values are of the form `projects/<project>/locations/<zone_id>` * * * repeated string failed_locations = 2; @@ -189,6 +190,7 @@ public com.google.bigtable.admin.v2.ClusterOrBuilder getClustersOrBuilder( * due to an outage or some other transient condition. * Clusters from these locations may be missing from `clusters`, * or may only have partial information returned. + * Values are of the form `projects/<project>/locations/<zone_id>` * * * repeated string failed_locations = 2; @@ -202,6 +204,7 @@ public int getFailedLocationsCount() { * due to an outage or some other transient condition. * Clusters from these locations may be missing from `clusters`, * or may only have partial information returned. + * Values are of the form `projects/<project>/locations/<zone_id>` * * * repeated string failed_locations = 2; @@ -215,6 +218,7 @@ public java.lang.String getFailedLocations(int index) { * due to an outage or some other transient condition. * Clusters from these locations may be missing from `clusters`, * or may only have partial information returned. + * Values are of the form `projects/<project>/locations/<zone_id>` * * * repeated string failed_locations = 2; @@ -228,9 +232,7 @@ public java.lang.String getFailedLocations(int index) { private volatile java.lang.Object nextPageToken_; /** *
-   * Set if not all clusters could be returned in a single response.
-   * Pass this value to `page_token` in another request to get the next
-   * page of results.
+   * DEPRECATED: This field is unused and ignored.
    * 
* * string next_page_token = 3; @@ -249,9 +251,7 @@ public java.lang.String getNextPageToken() { } /** *
-   * Set if not all clusters could be returned in a single response.
-   * Pass this value to `page_token` in another request to get the next
-   * page of results.
+   * DEPRECATED: This field is unused and ignored.
    * 
* * string next_page_token = 3; @@ -995,6 +995,7 @@ private void ensureFailedLocationsIsMutable() { * due to an outage or some other transient condition. * Clusters from these locations may be missing from `clusters`, * or may only have partial information returned. + * Values are of the form `projects/<project>/locations/<zone_id>` * * * repeated string failed_locations = 2; @@ -1009,6 +1010,7 @@ private void ensureFailedLocationsIsMutable() { * due to an outage or some other transient condition. * Clusters from these locations may be missing from `clusters`, * or may only have partial information returned. + * Values are of the form `projects/<project>/locations/<zone_id>` * * * repeated string failed_locations = 2; @@ -1022,6 +1024,7 @@ public int getFailedLocationsCount() { * due to an outage or some other transient condition. * Clusters from these locations may be missing from `clusters`, * or may only have partial information returned. + * Values are of the form `projects/<project>/locations/<zone_id>` * * * repeated string failed_locations = 2; @@ -1035,6 +1038,7 @@ public java.lang.String getFailedLocations(int index) { * due to an outage or some other transient condition. * Clusters from these locations may be missing from `clusters`, * or may only have partial information returned. + * Values are of the form `projects/<project>/locations/<zone_id>` * * * repeated string failed_locations = 2; @@ -1049,6 +1053,7 @@ public java.lang.String getFailedLocations(int index) { * due to an outage or some other transient condition. * Clusters from these locations may be missing from `clusters`, * or may only have partial information returned. + * Values are of the form `projects/<project>/locations/<zone_id>` * * * repeated string failed_locations = 2; @@ -1069,6 +1074,7 @@ public Builder setFailedLocations( * due to an outage or some other transient condition. * Clusters from these locations may be missing from `clusters`, * or may only have partial information returned. + * Values are of the form `projects/<project>/locations/<zone_id>` * * * repeated string failed_locations = 2; @@ -1089,6 +1095,7 @@ public Builder addFailedLocations( * due to an outage or some other transient condition. * Clusters from these locations may be missing from `clusters`, * or may only have partial information returned. + * Values are of the form `projects/<project>/locations/<zone_id>` * * * repeated string failed_locations = 2; @@ -1107,6 +1114,7 @@ public Builder addAllFailedLocations( * due to an outage or some other transient condition. * Clusters from these locations may be missing from `clusters`, * or may only have partial information returned. + * Values are of the form `projects/<project>/locations/<zone_id>` * * * repeated string failed_locations = 2; @@ -1123,6 +1131,7 @@ public Builder clearFailedLocations() { * due to an outage or some other transient condition. * Clusters from these locations may be missing from `clusters`, * or may only have partial information returned. + * Values are of the form `projects/<project>/locations/<zone_id>` * * * repeated string failed_locations = 2; @@ -1142,9 +1151,7 @@ public Builder addFailedLocationsBytes( private java.lang.Object nextPageToken_ = ""; /** *
-     * Set if not all clusters could be returned in a single response.
-     * Pass this value to `page_token` in another request to get the next
-     * page of results.
+     * DEPRECATED: This field is unused and ignored.
      * 
* * string next_page_token = 3; @@ -1163,9 +1170,7 @@ public java.lang.String getNextPageToken() { } /** *
-     * Set if not all clusters could be returned in a single response.
-     * Pass this value to `page_token` in another request to get the next
-     * page of results.
+     * DEPRECATED: This field is unused and ignored.
      * 
* * string next_page_token = 3; @@ -1185,9 +1190,7 @@ public java.lang.String getNextPageToken() { } /** *
-     * Set if not all clusters could be returned in a single response.
-     * Pass this value to `page_token` in another request to get the next
-     * page of results.
+     * DEPRECATED: This field is unused and ignored.
      * 
* * string next_page_token = 3; @@ -1204,9 +1207,7 @@ public Builder setNextPageToken( } /** *
-     * Set if not all clusters could be returned in a single response.
-     * Pass this value to `page_token` in another request to get the next
-     * page of results.
+     * DEPRECATED: This field is unused and ignored.
      * 
* * string next_page_token = 3; @@ -1219,9 +1220,7 @@ public Builder clearNextPageToken() { } /** *
-     * Set if not all clusters could be returned in a single response.
-     * Pass this value to `page_token` in another request to get the next
-     * page of results.
+     * DEPRECATED: This field is unused and ignored.
      * 
* * string next_page_token = 3; diff --git a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListClustersResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListClustersResponseOrBuilder.java index bc74ad5fb3b7..070196852e71 100644 --- a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListClustersResponseOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListClustersResponseOrBuilder.java @@ -57,6 +57,7 @@ com.google.bigtable.admin.v2.ClusterOrBuilder getClustersOrBuilder( * due to an outage or some other transient condition. * Clusters from these locations may be missing from `clusters`, * or may only have partial information returned. + * Values are of the form `projects/<project>/locations/<zone_id>` * * * repeated string failed_locations = 2; @@ -69,6 +70,7 @@ com.google.bigtable.admin.v2.ClusterOrBuilder getClustersOrBuilder( * due to an outage or some other transient condition. * Clusters from these locations may be missing from `clusters`, * or may only have partial information returned. + * Values are of the form `projects/<project>/locations/<zone_id>` * * * repeated string failed_locations = 2; @@ -80,6 +82,7 @@ com.google.bigtable.admin.v2.ClusterOrBuilder getClustersOrBuilder( * due to an outage or some other transient condition. * Clusters from these locations may be missing from `clusters`, * or may only have partial information returned. + * Values are of the form `projects/<project>/locations/<zone_id>` * * * repeated string failed_locations = 2; @@ -91,6 +94,7 @@ com.google.bigtable.admin.v2.ClusterOrBuilder getClustersOrBuilder( * due to an outage or some other transient condition. * Clusters from these locations may be missing from `clusters`, * or may only have partial information returned. + * Values are of the form `projects/<project>/locations/<zone_id>` * * * repeated string failed_locations = 2; @@ -100,9 +104,7 @@ com.google.bigtable.admin.v2.ClusterOrBuilder getClustersOrBuilder( /** *
-   * Set if not all clusters could be returned in a single response.
-   * Pass this value to `page_token` in another request to get the next
-   * page of results.
+   * DEPRECATED: This field is unused and ignored.
    * 
* * string next_page_token = 3; @@ -110,9 +112,7 @@ com.google.bigtable.admin.v2.ClusterOrBuilder getClustersOrBuilder( java.lang.String getNextPageToken(); /** *
-   * Set if not all clusters could be returned in a single response.
-   * Pass this value to `page_token` in another request to get the next
-   * page of results.
+   * DEPRECATED: This field is unused and ignored.
    * 
* * string next_page_token = 3; diff --git a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListInstancesRequest.java b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListInstancesRequest.java index 075910a0b59a..e2aefdc9821d 100644 --- a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListInstancesRequest.java +++ b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListInstancesRequest.java @@ -140,7 +140,7 @@ public java.lang.String getParent() { private volatile java.lang.Object pageToken_; /** *
-   * The value of `next_page_token` returned by a previous call.
+   * DEPRECATED: This field is unused and ignored.
    * 
* * string page_token = 2; @@ -159,7 +159,7 @@ public java.lang.String getPageToken() { } /** *
-   * The value of `next_page_token` returned by a previous call.
+   * DEPRECATED: This field is unused and ignored.
    * 
* * string page_token = 2; @@ -599,7 +599,7 @@ public Builder setParentBytes( private java.lang.Object pageToken_ = ""; /** *
-     * The value of `next_page_token` returned by a previous call.
+     * DEPRECATED: This field is unused and ignored.
      * 
* * string page_token = 2; @@ -618,7 +618,7 @@ public java.lang.String getPageToken() { } /** *
-     * The value of `next_page_token` returned by a previous call.
+     * DEPRECATED: This field is unused and ignored.
      * 
* * string page_token = 2; @@ -638,7 +638,7 @@ public java.lang.String getPageToken() { } /** *
-     * The value of `next_page_token` returned by a previous call.
+     * DEPRECATED: This field is unused and ignored.
      * 
* * string page_token = 2; @@ -655,7 +655,7 @@ public Builder setPageToken( } /** *
-     * The value of `next_page_token` returned by a previous call.
+     * DEPRECATED: This field is unused and ignored.
      * 
* * string page_token = 2; @@ -668,7 +668,7 @@ public Builder clearPageToken() { } /** *
-     * The value of `next_page_token` returned by a previous call.
+     * DEPRECATED: This field is unused and ignored.
      * 
* * string page_token = 2; diff --git a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListInstancesRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListInstancesRequestOrBuilder.java index e8ca792820a2..83c0fe7809f4 100644 --- a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListInstancesRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListInstancesRequestOrBuilder.java @@ -29,7 +29,7 @@ public interface ListInstancesRequestOrBuilder extends /** *
-   * The value of `next_page_token` returned by a previous call.
+   * DEPRECATED: This field is unused and ignored.
    * 
* * string page_token = 2; @@ -37,7 +37,7 @@ public interface ListInstancesRequestOrBuilder extends java.lang.String getPageToken(); /** *
-   * The value of `next_page_token` returned by a previous call.
+   * DEPRECATED: This field is unused and ignored.
    * 
* * string page_token = 2; diff --git a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListInstancesResponse.java b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListInstancesResponse.java index 96675697372f..a1ababaab94d 100644 --- a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListInstancesResponse.java +++ b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListInstancesResponse.java @@ -176,6 +176,7 @@ public com.google.bigtable.admin.v2.InstanceOrBuilder getInstancesOrBuilder( * Instances whose Clusters are all in one of the failed locations * may be missing from `instances`, and Instances with at least one * Cluster in a failed location may only have partial information returned. + * Values are of the form `projects/<project>/locations/<zone_id>` * * * repeated string failed_locations = 2; @@ -191,6 +192,7 @@ public com.google.bigtable.admin.v2.InstanceOrBuilder getInstancesOrBuilder( * Instances whose Clusters are all in one of the failed locations * may be missing from `instances`, and Instances with at least one * Cluster in a failed location may only have partial information returned. + * Values are of the form `projects/<project>/locations/<zone_id>` * * * repeated string failed_locations = 2; @@ -205,6 +207,7 @@ public int getFailedLocationsCount() { * Instances whose Clusters are all in one of the failed locations * may be missing from `instances`, and Instances with at least one * Cluster in a failed location may only have partial information returned. + * Values are of the form `projects/<project>/locations/<zone_id>` * * * repeated string failed_locations = 2; @@ -219,6 +222,7 @@ public java.lang.String getFailedLocations(int index) { * Instances whose Clusters are all in one of the failed locations * may be missing from `instances`, and Instances with at least one * Cluster in a failed location may only have partial information returned. + * Values are of the form `projects/<project>/locations/<zone_id>` * * * repeated string failed_locations = 2; @@ -232,9 +236,7 @@ public java.lang.String getFailedLocations(int index) { private volatile java.lang.Object nextPageToken_; /** *
-   * Set if not all instances could be returned in a single response.
-   * Pass this value to `page_token` in another request to get the next
-   * page of results.
+   * DEPRECATED: This field is unused and ignored.
    * 
* * string next_page_token = 3; @@ -253,9 +255,7 @@ public java.lang.String getNextPageToken() { } /** *
-   * Set if not all instances could be returned in a single response.
-   * Pass this value to `page_token` in another request to get the next
-   * page of results.
+   * DEPRECATED: This field is unused and ignored.
    * 
* * string next_page_token = 3; @@ -1000,6 +1000,7 @@ private void ensureFailedLocationsIsMutable() { * Instances whose Clusters are all in one of the failed locations * may be missing from `instances`, and Instances with at least one * Cluster in a failed location may only have partial information returned. + * Values are of the form `projects/<project>/locations/<zone_id>` * * * repeated string failed_locations = 2; @@ -1015,6 +1016,7 @@ private void ensureFailedLocationsIsMutable() { * Instances whose Clusters are all in one of the failed locations * may be missing from `instances`, and Instances with at least one * Cluster in a failed location may only have partial information returned. + * Values are of the form `projects/<project>/locations/<zone_id>` * * * repeated string failed_locations = 2; @@ -1029,6 +1031,7 @@ public int getFailedLocationsCount() { * Instances whose Clusters are all in one of the failed locations * may be missing from `instances`, and Instances with at least one * Cluster in a failed location may only have partial information returned. + * Values are of the form `projects/<project>/locations/<zone_id>` * * * repeated string failed_locations = 2; @@ -1043,6 +1046,7 @@ public java.lang.String getFailedLocations(int index) { * Instances whose Clusters are all in one of the failed locations * may be missing from `instances`, and Instances with at least one * Cluster in a failed location may only have partial information returned. + * Values are of the form `projects/<project>/locations/<zone_id>` * * * repeated string failed_locations = 2; @@ -1058,6 +1062,7 @@ public java.lang.String getFailedLocations(int index) { * Instances whose Clusters are all in one of the failed locations * may be missing from `instances`, and Instances with at least one * Cluster in a failed location may only have partial information returned. + * Values are of the form `projects/<project>/locations/<zone_id>` * * * repeated string failed_locations = 2; @@ -1079,6 +1084,7 @@ public Builder setFailedLocations( * Instances whose Clusters are all in one of the failed locations * may be missing from `instances`, and Instances with at least one * Cluster in a failed location may only have partial information returned. + * Values are of the form `projects/<project>/locations/<zone_id>` * * * repeated string failed_locations = 2; @@ -1100,6 +1106,7 @@ public Builder addFailedLocations( * Instances whose Clusters are all in one of the failed locations * may be missing from `instances`, and Instances with at least one * Cluster in a failed location may only have partial information returned. + * Values are of the form `projects/<project>/locations/<zone_id>` * * * repeated string failed_locations = 2; @@ -1119,6 +1126,7 @@ public Builder addAllFailedLocations( * Instances whose Clusters are all in one of the failed locations * may be missing from `instances`, and Instances with at least one * Cluster in a failed location may only have partial information returned. + * Values are of the form `projects/<project>/locations/<zone_id>` * * * repeated string failed_locations = 2; @@ -1136,6 +1144,7 @@ public Builder clearFailedLocations() { * Instances whose Clusters are all in one of the failed locations * may be missing from `instances`, and Instances with at least one * Cluster in a failed location may only have partial information returned. + * Values are of the form `projects/<project>/locations/<zone_id>` * * * repeated string failed_locations = 2; @@ -1155,9 +1164,7 @@ public Builder addFailedLocationsBytes( private java.lang.Object nextPageToken_ = ""; /** *
-     * Set if not all instances could be returned in a single response.
-     * Pass this value to `page_token` in another request to get the next
-     * page of results.
+     * DEPRECATED: This field is unused and ignored.
      * 
* * string next_page_token = 3; @@ -1176,9 +1183,7 @@ public java.lang.String getNextPageToken() { } /** *
-     * Set if not all instances could be returned in a single response.
-     * Pass this value to `page_token` in another request to get the next
-     * page of results.
+     * DEPRECATED: This field is unused and ignored.
      * 
* * string next_page_token = 3; @@ -1198,9 +1203,7 @@ public java.lang.String getNextPageToken() { } /** *
-     * Set if not all instances could be returned in a single response.
-     * Pass this value to `page_token` in another request to get the next
-     * page of results.
+     * DEPRECATED: This field is unused and ignored.
      * 
* * string next_page_token = 3; @@ -1217,9 +1220,7 @@ public Builder setNextPageToken( } /** *
-     * Set if not all instances could be returned in a single response.
-     * Pass this value to `page_token` in another request to get the next
-     * page of results.
+     * DEPRECATED: This field is unused and ignored.
      * 
* * string next_page_token = 3; @@ -1232,9 +1233,7 @@ public Builder clearNextPageToken() { } /** *
-     * Set if not all instances could be returned in a single response.
-     * Pass this value to `page_token` in another request to get the next
-     * page of results.
+     * DEPRECATED: This field is unused and ignored.
      * 
* * string next_page_token = 3; diff --git a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListInstancesResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListInstancesResponseOrBuilder.java index 69e40c4d031f..05de58aa3c59 100644 --- a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListInstancesResponseOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListInstancesResponseOrBuilder.java @@ -58,6 +58,7 @@ com.google.bigtable.admin.v2.InstanceOrBuilder getInstancesOrBuilder( * Instances whose Clusters are all in one of the failed locations * may be missing from `instances`, and Instances with at least one * Cluster in a failed location may only have partial information returned. + * Values are of the form `projects/<project>/locations/<zone_id>` * * * repeated string failed_locations = 2; @@ -71,6 +72,7 @@ com.google.bigtable.admin.v2.InstanceOrBuilder getInstancesOrBuilder( * Instances whose Clusters are all in one of the failed locations * may be missing from `instances`, and Instances with at least one * Cluster in a failed location may only have partial information returned. + * Values are of the form `projects/<project>/locations/<zone_id>` * * * repeated string failed_locations = 2; @@ -83,6 +85,7 @@ com.google.bigtable.admin.v2.InstanceOrBuilder getInstancesOrBuilder( * Instances whose Clusters are all in one of the failed locations * may be missing from `instances`, and Instances with at least one * Cluster in a failed location may only have partial information returned. + * Values are of the form `projects/<project>/locations/<zone_id>` * * * repeated string failed_locations = 2; @@ -95,6 +98,7 @@ com.google.bigtable.admin.v2.InstanceOrBuilder getInstancesOrBuilder( * Instances whose Clusters are all in one of the failed locations * may be missing from `instances`, and Instances with at least one * Cluster in a failed location may only have partial information returned. + * Values are of the form `projects/<project>/locations/<zone_id>` * * * repeated string failed_locations = 2; @@ -104,9 +108,7 @@ com.google.bigtable.admin.v2.InstanceOrBuilder getInstancesOrBuilder( /** *
-   * Set if not all instances could be returned in a single response.
-   * Pass this value to `page_token` in another request to get the next
-   * page of results.
+   * DEPRECATED: This field is unused and ignored.
    * 
* * string next_page_token = 3; @@ -114,9 +116,7 @@ com.google.bigtable.admin.v2.InstanceOrBuilder getInstancesOrBuilder( java.lang.String getNextPageToken(); /** *
-   * Set if not all instances could be returned in a single response.
-   * Pass this value to `page_token` in another request to get the next
-   * page of results.
+   * DEPRECATED: This field is unused and ignored.
    * 
* * string next_page_token = 3; diff --git a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListSnapshotsRequest.java b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListSnapshotsRequest.java index c1d129646f00..1eed20b5ffa3 100644 --- a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListSnapshotsRequest.java +++ b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListSnapshotsRequest.java @@ -157,7 +157,8 @@ public java.lang.String getParent() { private int pageSize_; /** *
-   * The maximum number of snapshots to return.
+   * The maximum number of snapshots to return per page.
+   * CURRENTLY UNIMPLEMENTED AND IGNORED.
    * 
* * int32 page_size = 2; @@ -666,7 +667,8 @@ public Builder setParentBytes( private int pageSize_ ; /** *
-     * The maximum number of snapshots to return.
+     * The maximum number of snapshots to return per page.
+     * CURRENTLY UNIMPLEMENTED AND IGNORED.
      * 
* * int32 page_size = 2; @@ -676,7 +678,8 @@ public int getPageSize() { } /** *
-     * The maximum number of snapshots to return.
+     * The maximum number of snapshots to return per page.
+     * CURRENTLY UNIMPLEMENTED AND IGNORED.
      * 
* * int32 page_size = 2; @@ -689,7 +692,8 @@ public Builder setPageSize(int value) { } /** *
-     * The maximum number of snapshots to return.
+     * The maximum number of snapshots to return per page.
+     * CURRENTLY UNIMPLEMENTED AND IGNORED.
      * 
* * int32 page_size = 2; diff --git a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListSnapshotsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListSnapshotsRequestOrBuilder.java index a5566f9a2911..fd560f00226b 100644 --- a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListSnapshotsRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListSnapshotsRequestOrBuilder.java @@ -35,7 +35,8 @@ public interface ListSnapshotsRequestOrBuilder extends /** *
-   * The maximum number of snapshots to return.
+   * The maximum number of snapshots to return per page.
+   * CURRENTLY UNIMPLEMENTED AND IGNORED.
    * 
* * int32 page_size = 2; diff --git a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListTablesRequest.java b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListTablesRequest.java index d65cce0fcbf3..09cf9c3c9611 100644 --- a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListTablesRequest.java +++ b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListTablesRequest.java @@ -23,6 +23,7 @@ private ListTablesRequest(com.google.protobuf.GeneratedMessageV3.Builder buil private ListTablesRequest() { parent_ = ""; view_ = 0; + pageSize_ = 0; pageToken_ = ""; } @@ -68,6 +69,11 @@ private ListTablesRequest( pageToken_ = s; break; } + case 32: { + + pageSize_ = input.readInt32(); + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -171,6 +177,20 @@ public com.google.bigtable.admin.v2.Table.View getView() { return result == null ? com.google.bigtable.admin.v2.Table.View.UNRECOGNIZED : result; } + public static final int PAGE_SIZE_FIELD_NUMBER = 4; + private int pageSize_; + /** + *
+   * Maximum number of results per page.
+   * CURRENTLY UNIMPLEMENTED AND IGNORED.
+   * 
+ * + * int32 page_size = 4; + */ + public int getPageSize() { + return pageSize_; + } + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** @@ -236,6 +256,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getPageTokenBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } + if (pageSize_ != 0) { + output.writeInt32(4, pageSize_); + } unknownFields.writeTo(output); } @@ -255,6 +278,10 @@ public int getSerializedSize() { if (!getPageTokenBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, pageSize_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -274,6 +301,8 @@ public boolean equals(final java.lang.Object obj) { result = result && getParent() .equals(other.getParent()); result = result && view_ == other.view_; + result = result && (getPageSize() + == other.getPageSize()); result = result && getPageToken() .equals(other.getPageToken()); result = result && unknownFields.equals(other.unknownFields); @@ -291,6 +320,8 @@ public int hashCode() { hash = (53 * hash) + getParent().hashCode(); hash = (37 * hash) + VIEW_FIELD_NUMBER; hash = (53 * hash) + view_; + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -435,6 +466,8 @@ public Builder clear() { view_ = 0; + pageSize_ = 0; + pageToken_ = ""; return this; @@ -465,6 +498,7 @@ public com.google.bigtable.admin.v2.ListTablesRequest buildPartial() { com.google.bigtable.admin.v2.ListTablesRequest result = new com.google.bigtable.admin.v2.ListTablesRequest(this); result.parent_ = parent_; result.view_ = view_; + result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; onBuilt(); return result; @@ -521,6 +555,9 @@ public Builder mergeFrom(com.google.bigtable.admin.v2.ListTablesRequest other) { if (other.view_ != 0) { setViewValue(other.getViewValue()); } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; onChanged(); @@ -718,6 +755,47 @@ public Builder clearView() { return this; } + private int pageSize_ ; + /** + *
+     * Maximum number of results per page.
+     * CURRENTLY UNIMPLEMENTED AND IGNORED.
+     * 
+ * + * int32 page_size = 4; + */ + public int getPageSize() { + return pageSize_; + } + /** + *
+     * Maximum number of results per page.
+     * CURRENTLY UNIMPLEMENTED AND IGNORED.
+     * 
+ * + * int32 page_size = 4; + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + *
+     * Maximum number of results per page.
+     * CURRENTLY UNIMPLEMENTED AND IGNORED.
+     * 
+ * + * int32 page_size = 4; + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + private java.lang.Object pageToken_ = ""; /** *
diff --git a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListTablesRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListTablesRequestOrBuilder.java
index 5ea6768bf0f1..3f3a5cb665f9 100644
--- a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListTablesRequestOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListTablesRequestOrBuilder.java
@@ -46,6 +46,16 @@ public interface ListTablesRequestOrBuilder extends
    */
   com.google.bigtable.admin.v2.Table.View getView();
 
+  /**
+   * 
+   * Maximum number of results per page.
+   * CURRENTLY UNIMPLEMENTED AND IGNORED.
+   * 
+ * + * int32 page_size = 4; + */ + int getPageSize(); + /** *
    * The value of `next_page_token` returned by a previous call.
diff --git a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/bigtable_instance_admin.proto b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/bigtable_instance_admin.proto
index 25d2c0991ea5..ec992ea0f818 100644
--- a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/bigtable_instance_admin.proto
+++ b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/bigtable_instance_admin.proto
@@ -1,4 +1,4 @@
-// Copyright 2018 Google Inc.
+// Copyright 2018 Google LLC.
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -11,6 +11,7 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
+//
 
 syntax = "proto3";
 
@@ -202,7 +203,7 @@ message CreateInstanceRequest {
   // cluster ID, e.g., just `mycluster` rather than
   // `projects/myproject/instances/myinstance/clusters/mycluster`.
   // Fields marked `OutputOnly` must be left blank.
-  // Currently exactly one cluster must be specified.
+  // Currently, at most two clusters can be specified.
   map clusters = 4;
 }
 
@@ -219,7 +220,7 @@ message ListInstancesRequest {
   // Values are of the form `projects/`.
   string parent = 1;
 
-  // The value of `next_page_token` returned by a previous call.
+  // DEPRECATED: This field is unused and ignored.
   string page_token = 2;
 }
 
@@ -233,11 +234,10 @@ message ListInstancesResponse {
   // Instances whose Clusters are all in one of the failed locations
   // may be missing from `instances`, and Instances with at least one
   // Cluster in a failed location may only have partial information returned.
+  // Values are of the form `projects//locations/`
   repeated string failed_locations = 2;
 
-  // Set if not all instances could be returned in a single response.
-  // Pass this value to `page_token` in another request to get the next
-  // page of results.
+  // DEPRECATED: This field is unused and ignored.
   string next_page_token = 3;
 }
 
@@ -290,7 +290,7 @@ message ListClustersRequest {
   // e.g., `projects/myproject/instances/-`.
   string parent = 1;
 
-  // The value of `next_page_token` returned by a previous call.
+  // DEPRECATED: This field is unused and ignored.
   string page_token = 2;
 }
 
@@ -303,11 +303,10 @@ message ListClustersResponse {
   // due to an outage or some other transient condition.
   // Clusters from these locations may be missing from `clusters`,
   // or may only have partial information returned.
+  // Values are of the form `projects//locations/`
   repeated string failed_locations = 2;
 
-  // Set if not all clusters could be returned in a single response.
-  // Pass this value to `page_token` in another request to get the next
-  // page of results.
+  // DEPRECATED: This field is unused and ignored.
   string next_page_token = 3;
 }
 
@@ -398,8 +397,14 @@ message ListAppProfilesRequest {
   // The unique name of the instance for which a list of app profiles is
   // requested. Values are of the form
   // `projects//instances/`.
+  // Use ` = '-'` to list AppProfiles for all Instances in a project,
+  // e.g., `projects/myproject/instances/-`.
   string parent = 1;
 
+  // Maximum number of results per page.
+  // CURRENTLY UNIMPLEMENTED AND IGNORED.
+  int32 page_size = 3;
+
   // The value of `next_page_token` returned by a previous call.
   string page_token = 2;
 }
@@ -413,6 +418,12 @@ message ListAppProfilesResponse {
   // Pass this value to `page_token` in another request to get the next
   // page of results.
   string next_page_token = 2;
+
+  // Locations from which AppProfile information could not be retrieved,
+  // due to an outage or some other transient condition.
+  // AppProfiles from these locations may be missing from `app_profiles`.
+  // Values are of the form `projects//locations/`
+  repeated string failed_locations = 3;
 }
 
 // Request message for BigtableInstanceAdmin.UpdateAppProfile.
diff --git a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/bigtable_table_admin.proto b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/bigtable_table_admin.proto
index 650c5b8663d7..2d5bddf302aa 100644
--- a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/bigtable_table_admin.proto
+++ b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/bigtable_table_admin.proto
@@ -1,4 +1,4 @@
-// Copyright 2018 Google Inc.
+// Copyright 2018 Google LLC.
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -11,6 +11,7 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
+//
 
 syntax = "proto3";
 
@@ -272,6 +273,10 @@ message ListTablesRequest {
   // Defaults to `NAME_ONLY` if unspecified; no others are currently supported.
   Table.View view = 2;
 
+  // Maximum number of results per page.
+  // CURRENTLY UNIMPLEMENTED AND IGNORED.
+  int32 page_size = 4;
+
   // The value of `next_page_token` returned by a previous call.
   string page_token = 3;
 }
@@ -445,7 +450,8 @@ message ListSnapshotsRequest {
   // e.g., `projects//instances//clusters/-`.
   string parent = 1;
 
-  // The maximum number of snapshots to return.
+  // The maximum number of snapshots to return per page.
+  // CURRENTLY UNIMPLEMENTED AND IGNORED.
   int32 page_size = 2;
 
   // The value of `next_page_token` returned by a previous call.
diff --git a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/common.proto b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/common.proto
index d4c1795b5f5d..0ece12780eb9 100644
--- a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/common.proto
+++ b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/common.proto
@@ -1,4 +1,4 @@
-// Copyright 2018 Google Inc.
+// Copyright 2018 Google LLC.
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -11,6 +11,7 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
+//
 
 syntax = "proto3";
 
diff --git a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/instance.proto b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/instance.proto
index 1ee649b02221..bb69b1f66d42 100644
--- a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/instance.proto
+++ b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/instance.proto
@@ -1,4 +1,4 @@
-// Copyright 2018 Google Inc.
+// Copyright 2018 Google LLC.
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -11,6 +11,7 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
+//
 
 syntax = "proto3";
 
diff --git a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/table.proto b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/table.proto
index 95827c217c82..5d4374effc59 100644
--- a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/table.proto
+++ b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/table.proto
@@ -1,4 +1,4 @@
-// Copyright 2018 Google Inc.
+// Copyright 2018 Google LLC.
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -11,6 +11,7 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
+//
 
 syntax = "proto3";
 
diff --git a/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricDecryptRequest.java b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricDecryptRequest.java
new file mode 100644
index 000000000000..67e502ddf5db
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricDecryptRequest.java
@@ -0,0 +1,665 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/kms/v1/service.proto
+
+package com.google.cloud.kms.v1;
+
+/**
+ * 
+ * Request message for [KeyManagementService.AsymmetricDecrypt][google.cloud.kms.v1.KeyManagementService.AsymmetricDecrypt].
+ * 
+ * + * Protobuf type {@code google.cloud.kms.v1.AsymmetricDecryptRequest} + */ +public final class AsymmetricDecryptRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.AsymmetricDecryptRequest) + AsymmetricDecryptRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use AsymmetricDecryptRequest.newBuilder() to construct. + private AsymmetricDecryptRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AsymmetricDecryptRequest() { + name_ = ""; + ciphertext_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AsymmetricDecryptRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 26: { + + ciphertext_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_AsymmetricDecryptRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_AsymmetricDecryptRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.kms.v1.AsymmetricDecryptRequest.class, com.google.cloud.kms.v1.AsymmetricDecryptRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * Required. The resource name of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
+   * decryption.
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Required. The resource name of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
+   * decryption.
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CIPHERTEXT_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString ciphertext_; + /** + *
+   * Required. The data encrypted with the named [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s public
+   * key using OAEP.
+   * 
+ * + * bytes ciphertext = 3; + */ + public com.google.protobuf.ByteString getCiphertext() { + return ciphertext_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!ciphertext_.isEmpty()) { + output.writeBytes(3, ciphertext_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!ciphertext_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, ciphertext_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.kms.v1.AsymmetricDecryptRequest)) { + return super.equals(obj); + } + com.google.cloud.kms.v1.AsymmetricDecryptRequest other = (com.google.cloud.kms.v1.AsymmetricDecryptRequest) obj; + + boolean result = true; + result = result && getName() + .equals(other.getName()); + result = result && getCiphertext() + .equals(other.getCiphertext()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + CIPHERTEXT_FIELD_NUMBER; + hash = (53 * hash) + getCiphertext().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.kms.v1.AsymmetricDecryptRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.kms.v1.AsymmetricDecryptRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.kms.v1.AsymmetricDecryptRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.kms.v1.AsymmetricDecryptRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.kms.v1.AsymmetricDecryptRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.kms.v1.AsymmetricDecryptRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.kms.v1.AsymmetricDecryptRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.kms.v1.AsymmetricDecryptRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.kms.v1.AsymmetricDecryptRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.kms.v1.AsymmetricDecryptRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.kms.v1.AsymmetricDecryptRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.kms.v1.AsymmetricDecryptRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.kms.v1.AsymmetricDecryptRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request message for [KeyManagementService.AsymmetricDecrypt][google.cloud.kms.v1.KeyManagementService.AsymmetricDecrypt].
+   * 
+ * + * Protobuf type {@code google.cloud.kms.v1.AsymmetricDecryptRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.kms.v1.AsymmetricDecryptRequest) + com.google.cloud.kms.v1.AsymmetricDecryptRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_AsymmetricDecryptRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_AsymmetricDecryptRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.kms.v1.AsymmetricDecryptRequest.class, com.google.cloud.kms.v1.AsymmetricDecryptRequest.Builder.class); + } + + // Construct using com.google.cloud.kms.v1.AsymmetricDecryptRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + ciphertext_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_AsymmetricDecryptRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.kms.v1.AsymmetricDecryptRequest getDefaultInstanceForType() { + return com.google.cloud.kms.v1.AsymmetricDecryptRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.kms.v1.AsymmetricDecryptRequest build() { + com.google.cloud.kms.v1.AsymmetricDecryptRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.kms.v1.AsymmetricDecryptRequest buildPartial() { + com.google.cloud.kms.v1.AsymmetricDecryptRequest result = new com.google.cloud.kms.v1.AsymmetricDecryptRequest(this); + result.name_ = name_; + result.ciphertext_ = ciphertext_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.kms.v1.AsymmetricDecryptRequest) { + return mergeFrom((com.google.cloud.kms.v1.AsymmetricDecryptRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.kms.v1.AsymmetricDecryptRequest other) { + if (other == com.google.cloud.kms.v1.AsymmetricDecryptRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.getCiphertext() != com.google.protobuf.ByteString.EMPTY) { + setCiphertext(other.getCiphertext()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.kms.v1.AsymmetricDecryptRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.kms.v1.AsymmetricDecryptRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * Required. The resource name of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
+     * decryption.
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The resource name of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
+     * decryption.
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The resource name of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
+     * decryption.
+     * 
+ * + * string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. The resource name of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
+     * decryption.
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * Required. The resource name of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
+     * decryption.
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString ciphertext_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+     * Required. The data encrypted with the named [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s public
+     * key using OAEP.
+     * 
+ * + * bytes ciphertext = 3; + */ + public com.google.protobuf.ByteString getCiphertext() { + return ciphertext_; + } + /** + *
+     * Required. The data encrypted with the named [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s public
+     * key using OAEP.
+     * 
+ * + * bytes ciphertext = 3; + */ + public Builder setCiphertext(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + ciphertext_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. The data encrypted with the named [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s public
+     * key using OAEP.
+     * 
+ * + * bytes ciphertext = 3; + */ + public Builder clearCiphertext() { + + ciphertext_ = getDefaultInstance().getCiphertext(); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.AsymmetricDecryptRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.AsymmetricDecryptRequest) + private static final com.google.cloud.kms.v1.AsymmetricDecryptRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.kms.v1.AsymmetricDecryptRequest(); + } + + public static com.google.cloud.kms.v1.AsymmetricDecryptRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsymmetricDecryptRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AsymmetricDecryptRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.kms.v1.AsymmetricDecryptRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricDecryptRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricDecryptRequestOrBuilder.java new file mode 100644 index 000000000000..8881d8f001a2 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricDecryptRequestOrBuilder.java @@ -0,0 +1,39 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/kms/v1/service.proto + +package com.google.cloud.kms.v1; + +public interface AsymmetricDecryptRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.AsymmetricDecryptRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
+   * decryption.
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
+   * decryption.
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Required. The data encrypted with the named [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s public
+   * key using OAEP.
+   * 
+ * + * bytes ciphertext = 3; + */ + com.google.protobuf.ByteString getCiphertext(); +} diff --git a/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricDecryptResponse.java b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricDecryptResponse.java new file mode 100644 index 000000000000..e0f7e0bad741 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricDecryptResponse.java @@ -0,0 +1,499 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/kms/v1/service.proto + +package com.google.cloud.kms.v1; + +/** + *
+ * Response message for [KeyManagementService.AsymmetricDecrypt][google.cloud.kms.v1.KeyManagementService.AsymmetricDecrypt].
+ * 
+ * + * Protobuf type {@code google.cloud.kms.v1.AsymmetricDecryptResponse} + */ +public final class AsymmetricDecryptResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.AsymmetricDecryptResponse) + AsymmetricDecryptResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use AsymmetricDecryptResponse.newBuilder() to construct. + private AsymmetricDecryptResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AsymmetricDecryptResponse() { + plaintext_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AsymmetricDecryptResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + + plaintext_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_AsymmetricDecryptResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_AsymmetricDecryptResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.kms.v1.AsymmetricDecryptResponse.class, com.google.cloud.kms.v1.AsymmetricDecryptResponse.Builder.class); + } + + public static final int PLAINTEXT_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString plaintext_; + /** + *
+   * The decrypted data originally encrypted with the matching public key.
+   * 
+ * + * bytes plaintext = 1; + */ + public com.google.protobuf.ByteString getPlaintext() { + return plaintext_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!plaintext_.isEmpty()) { + output.writeBytes(1, plaintext_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!plaintext_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, plaintext_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.kms.v1.AsymmetricDecryptResponse)) { + return super.equals(obj); + } + com.google.cloud.kms.v1.AsymmetricDecryptResponse other = (com.google.cloud.kms.v1.AsymmetricDecryptResponse) obj; + + boolean result = true; + result = result && getPlaintext() + .equals(other.getPlaintext()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PLAINTEXT_FIELD_NUMBER; + hash = (53 * hash) + getPlaintext().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.kms.v1.AsymmetricDecryptResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.kms.v1.AsymmetricDecryptResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.kms.v1.AsymmetricDecryptResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.kms.v1.AsymmetricDecryptResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.kms.v1.AsymmetricDecryptResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.kms.v1.AsymmetricDecryptResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.kms.v1.AsymmetricDecryptResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.kms.v1.AsymmetricDecryptResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.kms.v1.AsymmetricDecryptResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.kms.v1.AsymmetricDecryptResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.kms.v1.AsymmetricDecryptResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.kms.v1.AsymmetricDecryptResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.kms.v1.AsymmetricDecryptResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Response message for [KeyManagementService.AsymmetricDecrypt][google.cloud.kms.v1.KeyManagementService.AsymmetricDecrypt].
+   * 
+ * + * Protobuf type {@code google.cloud.kms.v1.AsymmetricDecryptResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.kms.v1.AsymmetricDecryptResponse) + com.google.cloud.kms.v1.AsymmetricDecryptResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_AsymmetricDecryptResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_AsymmetricDecryptResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.kms.v1.AsymmetricDecryptResponse.class, com.google.cloud.kms.v1.AsymmetricDecryptResponse.Builder.class); + } + + // Construct using com.google.cloud.kms.v1.AsymmetricDecryptResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + plaintext_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_AsymmetricDecryptResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.kms.v1.AsymmetricDecryptResponse getDefaultInstanceForType() { + return com.google.cloud.kms.v1.AsymmetricDecryptResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.kms.v1.AsymmetricDecryptResponse build() { + com.google.cloud.kms.v1.AsymmetricDecryptResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.kms.v1.AsymmetricDecryptResponse buildPartial() { + com.google.cloud.kms.v1.AsymmetricDecryptResponse result = new com.google.cloud.kms.v1.AsymmetricDecryptResponse(this); + result.plaintext_ = plaintext_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.kms.v1.AsymmetricDecryptResponse) { + return mergeFrom((com.google.cloud.kms.v1.AsymmetricDecryptResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.kms.v1.AsymmetricDecryptResponse other) { + if (other == com.google.cloud.kms.v1.AsymmetricDecryptResponse.getDefaultInstance()) return this; + if (other.getPlaintext() != com.google.protobuf.ByteString.EMPTY) { + setPlaintext(other.getPlaintext()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.kms.v1.AsymmetricDecryptResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.kms.v1.AsymmetricDecryptResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString plaintext_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+     * The decrypted data originally encrypted with the matching public key.
+     * 
+ * + * bytes plaintext = 1; + */ + public com.google.protobuf.ByteString getPlaintext() { + return plaintext_; + } + /** + *
+     * The decrypted data originally encrypted with the matching public key.
+     * 
+ * + * bytes plaintext = 1; + */ + public Builder setPlaintext(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + plaintext_ = value; + onChanged(); + return this; + } + /** + *
+     * The decrypted data originally encrypted with the matching public key.
+     * 
+ * + * bytes plaintext = 1; + */ + public Builder clearPlaintext() { + + plaintext_ = getDefaultInstance().getPlaintext(); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.AsymmetricDecryptResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.AsymmetricDecryptResponse) + private static final com.google.cloud.kms.v1.AsymmetricDecryptResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.kms.v1.AsymmetricDecryptResponse(); + } + + public static com.google.cloud.kms.v1.AsymmetricDecryptResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsymmetricDecryptResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AsymmetricDecryptResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.kms.v1.AsymmetricDecryptResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricDecryptResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricDecryptResponseOrBuilder.java new file mode 100644 index 000000000000..dfd91da627c6 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricDecryptResponseOrBuilder.java @@ -0,0 +1,18 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/kms/v1/service.proto + +package com.google.cloud.kms.v1; + +public interface AsymmetricDecryptResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.AsymmetricDecryptResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The decrypted data originally encrypted with the matching public key.
+   * 
+ * + * bytes plaintext = 1; + */ + com.google.protobuf.ByteString getPlaintext(); +} diff --git a/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricSignRequest.java b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricSignRequest.java new file mode 100644 index 000000000000..e336661e283b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricSignRequest.java @@ -0,0 +1,830 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/kms/v1/service.proto + +package com.google.cloud.kms.v1; + +/** + *
+ * Request message for [KeyManagementService.AsymmetricSign][google.cloud.kms.v1.KeyManagementService.AsymmetricSign].
+ * 
+ * + * Protobuf type {@code google.cloud.kms.v1.AsymmetricSignRequest} + */ +public final class AsymmetricSignRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.AsymmetricSignRequest) + AsymmetricSignRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use AsymmetricSignRequest.newBuilder() to construct. + private AsymmetricSignRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AsymmetricSignRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AsymmetricSignRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 26: { + com.google.cloud.kms.v1.Digest.Builder subBuilder = null; + if (digest_ != null) { + subBuilder = digest_.toBuilder(); + } + digest_ = input.readMessage(com.google.cloud.kms.v1.Digest.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(digest_); + digest_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_AsymmetricSignRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_AsymmetricSignRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.kms.v1.AsymmetricSignRequest.class, com.google.cloud.kms.v1.AsymmetricSignRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * Required. The resource name of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for signing.
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Required. The resource name of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for signing.
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DIGEST_FIELD_NUMBER = 3; + private com.google.cloud.kms.v1.Digest digest_; + /** + *
+   * Required. The digest of the data to sign. The digest must be produced with
+   * the same digest algorithm as specified by the key version's
+   * [algorithm][google.cloud.kms.v1.CryptoKeyVersion.algorithm].
+   * 
+ * + * .google.cloud.kms.v1.Digest digest = 3; + */ + public boolean hasDigest() { + return digest_ != null; + } + /** + *
+   * Required. The digest of the data to sign. The digest must be produced with
+   * the same digest algorithm as specified by the key version's
+   * [algorithm][google.cloud.kms.v1.CryptoKeyVersion.algorithm].
+   * 
+ * + * .google.cloud.kms.v1.Digest digest = 3; + */ + public com.google.cloud.kms.v1.Digest getDigest() { + return digest_ == null ? com.google.cloud.kms.v1.Digest.getDefaultInstance() : digest_; + } + /** + *
+   * Required. The digest of the data to sign. The digest must be produced with
+   * the same digest algorithm as specified by the key version's
+   * [algorithm][google.cloud.kms.v1.CryptoKeyVersion.algorithm].
+   * 
+ * + * .google.cloud.kms.v1.Digest digest = 3; + */ + public com.google.cloud.kms.v1.DigestOrBuilder getDigestOrBuilder() { + return getDigest(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (digest_ != null) { + output.writeMessage(3, getDigest()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (digest_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getDigest()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.kms.v1.AsymmetricSignRequest)) { + return super.equals(obj); + } + com.google.cloud.kms.v1.AsymmetricSignRequest other = (com.google.cloud.kms.v1.AsymmetricSignRequest) obj; + + boolean result = true; + result = result && getName() + .equals(other.getName()); + result = result && (hasDigest() == other.hasDigest()); + if (hasDigest()) { + result = result && getDigest() + .equals(other.getDigest()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasDigest()) { + hash = (37 * hash) + DIGEST_FIELD_NUMBER; + hash = (53 * hash) + getDigest().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.kms.v1.AsymmetricSignRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.kms.v1.AsymmetricSignRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.kms.v1.AsymmetricSignRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.kms.v1.AsymmetricSignRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.kms.v1.AsymmetricSignRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.kms.v1.AsymmetricSignRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.kms.v1.AsymmetricSignRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.kms.v1.AsymmetricSignRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.kms.v1.AsymmetricSignRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.kms.v1.AsymmetricSignRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.kms.v1.AsymmetricSignRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.kms.v1.AsymmetricSignRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.kms.v1.AsymmetricSignRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request message for [KeyManagementService.AsymmetricSign][google.cloud.kms.v1.KeyManagementService.AsymmetricSign].
+   * 
+ * + * Protobuf type {@code google.cloud.kms.v1.AsymmetricSignRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.kms.v1.AsymmetricSignRequest) + com.google.cloud.kms.v1.AsymmetricSignRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_AsymmetricSignRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_AsymmetricSignRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.kms.v1.AsymmetricSignRequest.class, com.google.cloud.kms.v1.AsymmetricSignRequest.Builder.class); + } + + // Construct using com.google.cloud.kms.v1.AsymmetricSignRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (digestBuilder_ == null) { + digest_ = null; + } else { + digest_ = null; + digestBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_AsymmetricSignRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.kms.v1.AsymmetricSignRequest getDefaultInstanceForType() { + return com.google.cloud.kms.v1.AsymmetricSignRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.kms.v1.AsymmetricSignRequest build() { + com.google.cloud.kms.v1.AsymmetricSignRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.kms.v1.AsymmetricSignRequest buildPartial() { + com.google.cloud.kms.v1.AsymmetricSignRequest result = new com.google.cloud.kms.v1.AsymmetricSignRequest(this); + result.name_ = name_; + if (digestBuilder_ == null) { + result.digest_ = digest_; + } else { + result.digest_ = digestBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.kms.v1.AsymmetricSignRequest) { + return mergeFrom((com.google.cloud.kms.v1.AsymmetricSignRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.kms.v1.AsymmetricSignRequest other) { + if (other == com.google.cloud.kms.v1.AsymmetricSignRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasDigest()) { + mergeDigest(other.getDigest()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.kms.v1.AsymmetricSignRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.kms.v1.AsymmetricSignRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * Required. The resource name of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for signing.
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The resource name of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for signing.
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The resource name of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for signing.
+     * 
+ * + * string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. The resource name of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for signing.
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * Required. The resource name of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for signing.
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.cloud.kms.v1.Digest digest_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.kms.v1.Digest, com.google.cloud.kms.v1.Digest.Builder, com.google.cloud.kms.v1.DigestOrBuilder> digestBuilder_; + /** + *
+     * Required. The digest of the data to sign. The digest must be produced with
+     * the same digest algorithm as specified by the key version's
+     * [algorithm][google.cloud.kms.v1.CryptoKeyVersion.algorithm].
+     * 
+ * + * .google.cloud.kms.v1.Digest digest = 3; + */ + public boolean hasDigest() { + return digestBuilder_ != null || digest_ != null; + } + /** + *
+     * Required. The digest of the data to sign. The digest must be produced with
+     * the same digest algorithm as specified by the key version's
+     * [algorithm][google.cloud.kms.v1.CryptoKeyVersion.algorithm].
+     * 
+ * + * .google.cloud.kms.v1.Digest digest = 3; + */ + public com.google.cloud.kms.v1.Digest getDigest() { + if (digestBuilder_ == null) { + return digest_ == null ? com.google.cloud.kms.v1.Digest.getDefaultInstance() : digest_; + } else { + return digestBuilder_.getMessage(); + } + } + /** + *
+     * Required. The digest of the data to sign. The digest must be produced with
+     * the same digest algorithm as specified by the key version's
+     * [algorithm][google.cloud.kms.v1.CryptoKeyVersion.algorithm].
+     * 
+ * + * .google.cloud.kms.v1.Digest digest = 3; + */ + public Builder setDigest(com.google.cloud.kms.v1.Digest value) { + if (digestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + digest_ = value; + onChanged(); + } else { + digestBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Required. The digest of the data to sign. The digest must be produced with
+     * the same digest algorithm as specified by the key version's
+     * [algorithm][google.cloud.kms.v1.CryptoKeyVersion.algorithm].
+     * 
+ * + * .google.cloud.kms.v1.Digest digest = 3; + */ + public Builder setDigest( + com.google.cloud.kms.v1.Digest.Builder builderForValue) { + if (digestBuilder_ == null) { + digest_ = builderForValue.build(); + onChanged(); + } else { + digestBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Required. The digest of the data to sign. The digest must be produced with
+     * the same digest algorithm as specified by the key version's
+     * [algorithm][google.cloud.kms.v1.CryptoKeyVersion.algorithm].
+     * 
+ * + * .google.cloud.kms.v1.Digest digest = 3; + */ + public Builder mergeDigest(com.google.cloud.kms.v1.Digest value) { + if (digestBuilder_ == null) { + if (digest_ != null) { + digest_ = + com.google.cloud.kms.v1.Digest.newBuilder(digest_).mergeFrom(value).buildPartial(); + } else { + digest_ = value; + } + onChanged(); + } else { + digestBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Required. The digest of the data to sign. The digest must be produced with
+     * the same digest algorithm as specified by the key version's
+     * [algorithm][google.cloud.kms.v1.CryptoKeyVersion.algorithm].
+     * 
+ * + * .google.cloud.kms.v1.Digest digest = 3; + */ + public Builder clearDigest() { + if (digestBuilder_ == null) { + digest_ = null; + onChanged(); + } else { + digest_ = null; + digestBuilder_ = null; + } + + return this; + } + /** + *
+     * Required. The digest of the data to sign. The digest must be produced with
+     * the same digest algorithm as specified by the key version's
+     * [algorithm][google.cloud.kms.v1.CryptoKeyVersion.algorithm].
+     * 
+ * + * .google.cloud.kms.v1.Digest digest = 3; + */ + public com.google.cloud.kms.v1.Digest.Builder getDigestBuilder() { + + onChanged(); + return getDigestFieldBuilder().getBuilder(); + } + /** + *
+     * Required. The digest of the data to sign. The digest must be produced with
+     * the same digest algorithm as specified by the key version's
+     * [algorithm][google.cloud.kms.v1.CryptoKeyVersion.algorithm].
+     * 
+ * + * .google.cloud.kms.v1.Digest digest = 3; + */ + public com.google.cloud.kms.v1.DigestOrBuilder getDigestOrBuilder() { + if (digestBuilder_ != null) { + return digestBuilder_.getMessageOrBuilder(); + } else { + return digest_ == null ? + com.google.cloud.kms.v1.Digest.getDefaultInstance() : digest_; + } + } + /** + *
+     * Required. The digest of the data to sign. The digest must be produced with
+     * the same digest algorithm as specified by the key version's
+     * [algorithm][google.cloud.kms.v1.CryptoKeyVersion.algorithm].
+     * 
+ * + * .google.cloud.kms.v1.Digest digest = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.kms.v1.Digest, com.google.cloud.kms.v1.Digest.Builder, com.google.cloud.kms.v1.DigestOrBuilder> + getDigestFieldBuilder() { + if (digestBuilder_ == null) { + digestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.kms.v1.Digest, com.google.cloud.kms.v1.Digest.Builder, com.google.cloud.kms.v1.DigestOrBuilder>( + getDigest(), + getParentForChildren(), + isClean()); + digest_ = null; + } + return digestBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.AsymmetricSignRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.AsymmetricSignRequest) + private static final com.google.cloud.kms.v1.AsymmetricSignRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.kms.v1.AsymmetricSignRequest(); + } + + public static com.google.cloud.kms.v1.AsymmetricSignRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsymmetricSignRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AsymmetricSignRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.kms.v1.AsymmetricSignRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricSignRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricSignRequestOrBuilder.java new file mode 100644 index 000000000000..49ce227515df --- /dev/null +++ b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricSignRequestOrBuilder.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/kms/v1/service.proto + +package com.google.cloud.kms.v1; + +public interface AsymmetricSignRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.AsymmetricSignRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for signing.
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for signing.
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Required. The digest of the data to sign. The digest must be produced with
+   * the same digest algorithm as specified by the key version's
+   * [algorithm][google.cloud.kms.v1.CryptoKeyVersion.algorithm].
+   * 
+ * + * .google.cloud.kms.v1.Digest digest = 3; + */ + boolean hasDigest(); + /** + *
+   * Required. The digest of the data to sign. The digest must be produced with
+   * the same digest algorithm as specified by the key version's
+   * [algorithm][google.cloud.kms.v1.CryptoKeyVersion.algorithm].
+   * 
+ * + * .google.cloud.kms.v1.Digest digest = 3; + */ + com.google.cloud.kms.v1.Digest getDigest(); + /** + *
+   * Required. The digest of the data to sign. The digest must be produced with
+   * the same digest algorithm as specified by the key version's
+   * [algorithm][google.cloud.kms.v1.CryptoKeyVersion.algorithm].
+   * 
+ * + * .google.cloud.kms.v1.Digest digest = 3; + */ + com.google.cloud.kms.v1.DigestOrBuilder getDigestOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricSignResponse.java b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricSignResponse.java new file mode 100644 index 000000000000..e54e861a7f63 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricSignResponse.java @@ -0,0 +1,499 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/kms/v1/service.proto + +package com.google.cloud.kms.v1; + +/** + *
+ * Response message for [KeyManagementService.AsymmetricSign][google.cloud.kms.v1.KeyManagementService.AsymmetricSign].
+ * 
+ * + * Protobuf type {@code google.cloud.kms.v1.AsymmetricSignResponse} + */ +public final class AsymmetricSignResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.AsymmetricSignResponse) + AsymmetricSignResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use AsymmetricSignResponse.newBuilder() to construct. + private AsymmetricSignResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AsymmetricSignResponse() { + signature_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AsymmetricSignResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + + signature_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_AsymmetricSignResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_AsymmetricSignResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.kms.v1.AsymmetricSignResponse.class, com.google.cloud.kms.v1.AsymmetricSignResponse.Builder.class); + } + + public static final int SIGNATURE_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString signature_; + /** + *
+   * The created signature.
+   * 
+ * + * bytes signature = 1; + */ + public com.google.protobuf.ByteString getSignature() { + return signature_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!signature_.isEmpty()) { + output.writeBytes(1, signature_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!signature_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, signature_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.kms.v1.AsymmetricSignResponse)) { + return super.equals(obj); + } + com.google.cloud.kms.v1.AsymmetricSignResponse other = (com.google.cloud.kms.v1.AsymmetricSignResponse) obj; + + boolean result = true; + result = result && getSignature() + .equals(other.getSignature()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; + hash = (53 * hash) + getSignature().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.kms.v1.AsymmetricSignResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.kms.v1.AsymmetricSignResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.kms.v1.AsymmetricSignResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.kms.v1.AsymmetricSignResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.kms.v1.AsymmetricSignResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.kms.v1.AsymmetricSignResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.kms.v1.AsymmetricSignResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.kms.v1.AsymmetricSignResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.kms.v1.AsymmetricSignResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.kms.v1.AsymmetricSignResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.kms.v1.AsymmetricSignResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.kms.v1.AsymmetricSignResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.kms.v1.AsymmetricSignResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Response message for [KeyManagementService.AsymmetricSign][google.cloud.kms.v1.KeyManagementService.AsymmetricSign].
+   * 
+ * + * Protobuf type {@code google.cloud.kms.v1.AsymmetricSignResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.kms.v1.AsymmetricSignResponse) + com.google.cloud.kms.v1.AsymmetricSignResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_AsymmetricSignResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_AsymmetricSignResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.kms.v1.AsymmetricSignResponse.class, com.google.cloud.kms.v1.AsymmetricSignResponse.Builder.class); + } + + // Construct using com.google.cloud.kms.v1.AsymmetricSignResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + signature_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_AsymmetricSignResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.kms.v1.AsymmetricSignResponse getDefaultInstanceForType() { + return com.google.cloud.kms.v1.AsymmetricSignResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.kms.v1.AsymmetricSignResponse build() { + com.google.cloud.kms.v1.AsymmetricSignResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.kms.v1.AsymmetricSignResponse buildPartial() { + com.google.cloud.kms.v1.AsymmetricSignResponse result = new com.google.cloud.kms.v1.AsymmetricSignResponse(this); + result.signature_ = signature_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.kms.v1.AsymmetricSignResponse) { + return mergeFrom((com.google.cloud.kms.v1.AsymmetricSignResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.kms.v1.AsymmetricSignResponse other) { + if (other == com.google.cloud.kms.v1.AsymmetricSignResponse.getDefaultInstance()) return this; + if (other.getSignature() != com.google.protobuf.ByteString.EMPTY) { + setSignature(other.getSignature()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.kms.v1.AsymmetricSignResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.kms.v1.AsymmetricSignResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+     * The created signature.
+     * 
+ * + * bytes signature = 1; + */ + public com.google.protobuf.ByteString getSignature() { + return signature_; + } + /** + *
+     * The created signature.
+     * 
+ * + * bytes signature = 1; + */ + public Builder setSignature(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + signature_ = value; + onChanged(); + return this; + } + /** + *
+     * The created signature.
+     * 
+ * + * bytes signature = 1; + */ + public Builder clearSignature() { + + signature_ = getDefaultInstance().getSignature(); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.AsymmetricSignResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.AsymmetricSignResponse) + private static final com.google.cloud.kms.v1.AsymmetricSignResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.kms.v1.AsymmetricSignResponse(); + } + + public static com.google.cloud.kms.v1.AsymmetricSignResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsymmetricSignResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AsymmetricSignResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.kms.v1.AsymmetricSignResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricSignResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricSignResponseOrBuilder.java new file mode 100644 index 000000000000..e7509b3f7d3e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AsymmetricSignResponseOrBuilder.java @@ -0,0 +1,18 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/kms/v1/service.proto + +package com.google.cloud.kms.v1; + +public interface AsymmetricSignResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.AsymmetricSignResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The created signature.
+   * 
+ * + * bytes signature = 1; + */ + com.google.protobuf.ByteString getSignature(); +} diff --git a/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKey.java b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKey.java index 794c14754e76..94c6e36f6205 100644 --- a/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKey.java +++ b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKey.java @@ -117,10 +117,10 @@ private CryptoKey( break; } case 82: { - if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { labels_ = com.google.protobuf.MapField.newMapField( LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000040; + mutable_bitField0_ |= 0x00000080; } com.google.protobuf.MapEntry labels__ = input.readMessage( @@ -129,6 +129,19 @@ private CryptoKey( labels__.getKey(), labels__.getValue()); break; } + case 90: { + com.google.cloud.kms.v1.CryptoKeyVersionTemplate.Builder subBuilder = null; + if (versionTemplate_ != null) { + subBuilder = versionTemplate_.toBuilder(); + } + versionTemplate_ = input.readMessage(com.google.cloud.kms.v1.CryptoKeyVersionTemplate.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(versionTemplate_); + versionTemplate_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -175,9 +188,9 @@ protected com.google.protobuf.MapField internalGetMapField( /** *
-   * [CryptoKeyPurpose][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose] describes the capabilities of a [CryptoKey][google.cloud.kms.v1.CryptoKey]. Two
-   * keys with the same purpose may use different underlying algorithms, but
-   * must support the same set of operations.
+   * [CryptoKeyPurpose][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose] describes the cryptographic capabilities of a
+   * [CryptoKey][google.cloud.kms.v1.CryptoKey]. A given key can only be used for the operations allowed by
+   * its purpose.
    * 
* * Protobuf enum {@code google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose} @@ -202,6 +215,26 @@ public enum CryptoKeyPurpose * ENCRYPT_DECRYPT = 1; */ ENCRYPT_DECRYPT(1), + /** + *
+     * [CryptoKeys][google.cloud.kms.v1.CryptoKey] with this purpose may be used with
+     * [AsymmetricSign][google.cloud.kms.v1.KeyManagementService.AsymmetricSign] and
+     * [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey].
+     * 
+ * + * ASYMMETRIC_SIGN = 5; + */ + ASYMMETRIC_SIGN(5), + /** + *
+     * [CryptoKeys][google.cloud.kms.v1.CryptoKey] with this purpose may be used with
+     * [AsymmetricDecrypt][google.cloud.kms.v1.KeyManagementService.AsymmetricDecrypt] and
+     * [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey].
+     * 
+ * + * ASYMMETRIC_DECRYPT = 6; + */ + ASYMMETRIC_DECRYPT(6), UNRECOGNIZED(-1), ; @@ -223,6 +256,26 @@ public enum CryptoKeyPurpose * ENCRYPT_DECRYPT = 1; */ public static final int ENCRYPT_DECRYPT_VALUE = 1; + /** + *
+     * [CryptoKeys][google.cloud.kms.v1.CryptoKey] with this purpose may be used with
+     * [AsymmetricSign][google.cloud.kms.v1.KeyManagementService.AsymmetricSign] and
+     * [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey].
+     * 
+ * + * ASYMMETRIC_SIGN = 5; + */ + public static final int ASYMMETRIC_SIGN_VALUE = 5; + /** + *
+     * [CryptoKeys][google.cloud.kms.v1.CryptoKey] with this purpose may be used with
+     * [AsymmetricDecrypt][google.cloud.kms.v1.KeyManagementService.AsymmetricDecrypt] and
+     * [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey].
+     * 
+ * + * ASYMMETRIC_DECRYPT = 6; + */ + public static final int ASYMMETRIC_DECRYPT_VALUE = 6; public final int getNumber() { @@ -245,6 +298,8 @@ public static CryptoKeyPurpose forNumber(int value) { switch (value) { case 0: return CRYPTO_KEY_PURPOSE_UNSPECIFIED; case 1: return ENCRYPT_DECRYPT; + case 5: return ASYMMETRIC_SIGN; + case 6: return ASYMMETRIC_DECRYPT; default: return null; } } @@ -387,6 +442,9 @@ public java.lang.String getName() { * in [EncryptRequest.name][google.cloud.kms.v1.EncryptRequest.name]. * The [CryptoKey][google.cloud.kms.v1.CryptoKey]'s primary version can be updated via * [UpdateCryptoKeyPrimaryVersion][google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyPrimaryVersion]. + * All keys with [purpose][google.cloud.kms.v1.CryptoKey.purpose] + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT] have a + * primary. For other keys, this field will be omitted. *
* * .google.cloud.kms.v1.CryptoKeyVersion primary = 2; @@ -401,6 +459,9 @@ public boolean hasPrimary() { * in [EncryptRequest.name][google.cloud.kms.v1.EncryptRequest.name]. * The [CryptoKey][google.cloud.kms.v1.CryptoKey]'s primary version can be updated via * [UpdateCryptoKeyPrimaryVersion][google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyPrimaryVersion]. + * All keys with [purpose][google.cloud.kms.v1.CryptoKey.purpose] + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT] have a + * primary. For other keys, this field will be omitted. *
* * .google.cloud.kms.v1.CryptoKeyVersion primary = 2; @@ -415,6 +476,9 @@ public com.google.cloud.kms.v1.CryptoKeyVersion getPrimary() { * in [EncryptRequest.name][google.cloud.kms.v1.EncryptRequest.name]. * The [CryptoKey][google.cloud.kms.v1.CryptoKey]'s primary version can be updated via * [UpdateCryptoKeyPrimaryVersion][google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyPrimaryVersion]. + * All keys with [purpose][google.cloud.kms.v1.CryptoKey.purpose] + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT] have a + * primary. For other keys, this field will be omitted. * * * .google.cloud.kms.v1.CryptoKeyVersion primary = 2; @@ -427,8 +491,7 @@ public com.google.cloud.kms.v1.CryptoKeyVersionOrBuilder getPrimaryOrBuilder() { private int purpose_; /** *
-   * The immutable purpose of this [CryptoKey][google.cloud.kms.v1.CryptoKey]. Currently, the only acceptable
-   * purpose is [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
+   * The immutable purpose of this [CryptoKey][google.cloud.kms.v1.CryptoKey].
    * 
* * .google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose purpose = 3; @@ -438,8 +501,7 @@ public int getPurposeValue() { } /** *
-   * The immutable purpose of this [CryptoKey][google.cloud.kms.v1.CryptoKey]. Currently, the only acceptable
-   * purpose is [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
+   * The immutable purpose of this [CryptoKey][google.cloud.kms.v1.CryptoKey].
    * 
* * .google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose purpose = 3; @@ -494,6 +556,9 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * [CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion] and * [UpdateCryptoKeyPrimaryVersion][google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyPrimaryVersion] * do not affect [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time]. + * Keys with [purpose][google.cloud.kms.v1.CryptoKey.purpose] + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT] support + * automatic rotation. For other keys, this field must be omitted. * * * .google.protobuf.Timestamp next_rotation_time = 7; @@ -510,6 +575,9 @@ public boolean hasNextRotationTime() { * [CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion] and * [UpdateCryptoKeyPrimaryVersion][google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyPrimaryVersion] * do not affect [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time]. + * Keys with [purpose][google.cloud.kms.v1.CryptoKey.purpose] + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT] support + * automatic rotation. For other keys, this field must be omitted. * * * .google.protobuf.Timestamp next_rotation_time = 7; @@ -526,6 +594,9 @@ public com.google.protobuf.Timestamp getNextRotationTime() { * [CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion] and * [UpdateCryptoKeyPrimaryVersion][google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyPrimaryVersion] * do not affect [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time]. + * Keys with [purpose][google.cloud.kms.v1.CryptoKey.purpose] + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT] support + * automatic rotation. For other keys, this field must be omitted. * * * .google.protobuf.Timestamp next_rotation_time = 7; @@ -540,6 +611,9 @@ public com.google.protobuf.TimestampOrBuilder getNextRotationTimeOrBuilder() { * [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time] will be advanced by this period when the service * automatically rotates a key. Must be at least one day. * If [rotation_period][google.cloud.kms.v1.CryptoKey.rotation_period] is set, [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time] must also be set. + * Keys with [purpose][google.cloud.kms.v1.CryptoKey.purpose] + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT] support + * automatic rotation. For other keys, this field must be omitted. * * * .google.protobuf.Duration rotation_period = 8; @@ -552,6 +626,9 @@ public boolean hasRotationPeriod() { * [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time] will be advanced by this period when the service * automatically rotates a key. Must be at least one day. * If [rotation_period][google.cloud.kms.v1.CryptoKey.rotation_period] is set, [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time] must also be set. + * Keys with [purpose][google.cloud.kms.v1.CryptoKey.purpose] + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT] support + * automatic rotation. For other keys, this field must be omitted. * * * .google.protobuf.Duration rotation_period = 8; @@ -567,6 +644,9 @@ public com.google.protobuf.Duration getRotationPeriod() { * [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time] will be advanced by this period when the service * automatically rotates a key. Must be at least one day. * If [rotation_period][google.cloud.kms.v1.CryptoKey.rotation_period] is set, [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time] must also be set. + * Keys with [purpose][google.cloud.kms.v1.CryptoKey.purpose] + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT] support + * automatic rotation. For other keys, this field must be omitted. * * * .google.protobuf.Duration rotation_period = 8; @@ -578,6 +658,48 @@ public com.google.protobuf.DurationOrBuilder getRotationPeriodOrBuilder() { return com.google.protobuf.Duration.getDefaultInstance(); } + public static final int VERSION_TEMPLATE_FIELD_NUMBER = 11; + private com.google.cloud.kms.v1.CryptoKeyVersionTemplate versionTemplate_; + /** + *
+   * A template describing settings for new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] instances.
+   * The properties of new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] instances created by either
+   * [CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion] or
+   * auto-rotation are controlled by this template.
+   * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersionTemplate version_template = 11; + */ + public boolean hasVersionTemplate() { + return versionTemplate_ != null; + } + /** + *
+   * A template describing settings for new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] instances.
+   * The properties of new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] instances created by either
+   * [CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion] or
+   * auto-rotation are controlled by this template.
+   * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersionTemplate version_template = 11; + */ + public com.google.cloud.kms.v1.CryptoKeyVersionTemplate getVersionTemplate() { + return versionTemplate_ == null ? com.google.cloud.kms.v1.CryptoKeyVersionTemplate.getDefaultInstance() : versionTemplate_; + } + /** + *
+   * A template describing settings for new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] instances.
+   * The properties of new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] instances created by either
+   * [CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion] or
+   * auto-rotation are controlled by this template.
+   * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersionTemplate version_template = 11; + */ + public com.google.cloud.kms.v1.CryptoKeyVersionTemplateOrBuilder getVersionTemplateOrBuilder() { + return getVersionTemplate(); + } + public static final int LABELS_FIELD_NUMBER = 10; private static final class LabelsDefaultEntryHolder { static final com.google.protobuf.MapEntry< @@ -712,6 +834,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 10); + if (versionTemplate_ != null) { + output.writeMessage(11, getVersionTemplate()); + } unknownFields.writeTo(output); } @@ -754,6 +879,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, labels__); } + if (versionTemplate_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getVersionTemplate()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -788,6 +917,11 @@ public boolean equals(final java.lang.Object obj) { result = result && getNextRotationTime() .equals(other.getNextRotationTime()); } + result = result && (hasVersionTemplate() == other.hasVersionTemplate()); + if (hasVersionTemplate()) { + result = result && getVersionTemplate() + .equals(other.getVersionTemplate()); + } result = result && internalGetLabels().equals( other.internalGetLabels()); result = result && getRotationScheduleCase().equals( @@ -828,6 +962,10 @@ public int hashCode() { hash = (37 * hash) + NEXT_ROTATION_TIME_FIELD_NUMBER; hash = (53 * hash) + getNextRotationTime().hashCode(); } + if (hasVersionTemplate()) { + hash = (37 * hash) + VERSION_TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getVersionTemplate().hashCode(); + } if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); @@ -1024,6 +1162,12 @@ public Builder clear() { nextRotationTime_ = null; nextRotationTimeBuilder_ = null; } + if (versionTemplateBuilder_ == null) { + versionTemplate_ = null; + } else { + versionTemplate_ = null; + versionTemplateBuilder_ = null; + } internalGetMutableLabels().clear(); rotationScheduleCase_ = 0; rotationSchedule_ = null; @@ -1079,6 +1223,11 @@ public com.google.cloud.kms.v1.CryptoKey buildPartial() { result.rotationSchedule_ = rotationPeriodBuilder_.build(); } } + if (versionTemplateBuilder_ == null) { + result.versionTemplate_ = versionTemplate_; + } else { + result.versionTemplate_ = versionTemplateBuilder_.build(); + } result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); result.bitField0_ = to_bitField0_; @@ -1147,6 +1296,9 @@ public Builder mergeFrom(com.google.cloud.kms.v1.CryptoKey other) { if (other.hasNextRotationTime()) { mergeNextRotationTime(other.getNextRotationTime()); } + if (other.hasVersionTemplate()) { + mergeVersionTemplate(other.getVersionTemplate()); + } internalGetMutableLabels().mergeFrom( other.internalGetLabels()); switch (other.getRotationScheduleCase()) { @@ -1307,6 +1459,9 @@ public Builder setNameBytes( * in [EncryptRequest.name][google.cloud.kms.v1.EncryptRequest.name]. * The [CryptoKey][google.cloud.kms.v1.CryptoKey]'s primary version can be updated via * [UpdateCryptoKeyPrimaryVersion][google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyPrimaryVersion]. + * All keys with [purpose][google.cloud.kms.v1.CryptoKey.purpose] + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT] have a + * primary. For other keys, this field will be omitted. * * * .google.cloud.kms.v1.CryptoKeyVersion primary = 2; @@ -1321,6 +1476,9 @@ public boolean hasPrimary() { * in [EncryptRequest.name][google.cloud.kms.v1.EncryptRequest.name]. * The [CryptoKey][google.cloud.kms.v1.CryptoKey]'s primary version can be updated via * [UpdateCryptoKeyPrimaryVersion][google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyPrimaryVersion]. + * All keys with [purpose][google.cloud.kms.v1.CryptoKey.purpose] + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT] have a + * primary. For other keys, this field will be omitted. * * * .google.cloud.kms.v1.CryptoKeyVersion primary = 2; @@ -1339,6 +1497,9 @@ public com.google.cloud.kms.v1.CryptoKeyVersion getPrimary() { * in [EncryptRequest.name][google.cloud.kms.v1.EncryptRequest.name]. * The [CryptoKey][google.cloud.kms.v1.CryptoKey]'s primary version can be updated via * [UpdateCryptoKeyPrimaryVersion][google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyPrimaryVersion]. + * All keys with [purpose][google.cloud.kms.v1.CryptoKey.purpose] + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT] have a + * primary. For other keys, this field will be omitted. * * * .google.cloud.kms.v1.CryptoKeyVersion primary = 2; @@ -1363,6 +1524,9 @@ public Builder setPrimary(com.google.cloud.kms.v1.CryptoKeyVersion value) { * in [EncryptRequest.name][google.cloud.kms.v1.EncryptRequest.name]. * The [CryptoKey][google.cloud.kms.v1.CryptoKey]'s primary version can be updated via * [UpdateCryptoKeyPrimaryVersion][google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyPrimaryVersion]. + * All keys with [purpose][google.cloud.kms.v1.CryptoKey.purpose] + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT] have a + * primary. For other keys, this field will be omitted. * * * .google.cloud.kms.v1.CryptoKeyVersion primary = 2; @@ -1385,6 +1549,9 @@ public Builder setPrimary( * in [EncryptRequest.name][google.cloud.kms.v1.EncryptRequest.name]. * The [CryptoKey][google.cloud.kms.v1.CryptoKey]'s primary version can be updated via * [UpdateCryptoKeyPrimaryVersion][google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyPrimaryVersion]. + * All keys with [purpose][google.cloud.kms.v1.CryptoKey.purpose] + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT] have a + * primary. For other keys, this field will be omitted. * * * .google.cloud.kms.v1.CryptoKeyVersion primary = 2; @@ -1411,6 +1578,9 @@ public Builder mergePrimary(com.google.cloud.kms.v1.CryptoKeyVersion value) { * in [EncryptRequest.name][google.cloud.kms.v1.EncryptRequest.name]. * The [CryptoKey][google.cloud.kms.v1.CryptoKey]'s primary version can be updated via * [UpdateCryptoKeyPrimaryVersion][google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyPrimaryVersion]. + * All keys with [purpose][google.cloud.kms.v1.CryptoKey.purpose] + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT] have a + * primary. For other keys, this field will be omitted. * * * .google.cloud.kms.v1.CryptoKeyVersion primary = 2; @@ -1433,6 +1603,9 @@ public Builder clearPrimary() { * in [EncryptRequest.name][google.cloud.kms.v1.EncryptRequest.name]. * The [CryptoKey][google.cloud.kms.v1.CryptoKey]'s primary version can be updated via * [UpdateCryptoKeyPrimaryVersion][google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyPrimaryVersion]. + * All keys with [purpose][google.cloud.kms.v1.CryptoKey.purpose] + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT] have a + * primary. For other keys, this field will be omitted. * * * .google.cloud.kms.v1.CryptoKeyVersion primary = 2; @@ -1449,6 +1622,9 @@ public com.google.cloud.kms.v1.CryptoKeyVersion.Builder getPrimaryBuilder() { * in [EncryptRequest.name][google.cloud.kms.v1.EncryptRequest.name]. * The [CryptoKey][google.cloud.kms.v1.CryptoKey]'s primary version can be updated via * [UpdateCryptoKeyPrimaryVersion][google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyPrimaryVersion]. + * All keys with [purpose][google.cloud.kms.v1.CryptoKey.purpose] + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT] have a + * primary. For other keys, this field will be omitted. * * * .google.cloud.kms.v1.CryptoKeyVersion primary = 2; @@ -1468,6 +1644,9 @@ public com.google.cloud.kms.v1.CryptoKeyVersionOrBuilder getPrimaryOrBuilder() { * in [EncryptRequest.name][google.cloud.kms.v1.EncryptRequest.name]. * The [CryptoKey][google.cloud.kms.v1.CryptoKey]'s primary version can be updated via * [UpdateCryptoKeyPrimaryVersion][google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyPrimaryVersion]. + * All keys with [purpose][google.cloud.kms.v1.CryptoKey.purpose] + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT] have a + * primary. For other keys, this field will be omitted. * * * .google.cloud.kms.v1.CryptoKeyVersion primary = 2; @@ -1489,8 +1668,7 @@ public com.google.cloud.kms.v1.CryptoKeyVersionOrBuilder getPrimaryOrBuilder() { private int purpose_ = 0; /** *
-     * The immutable purpose of this [CryptoKey][google.cloud.kms.v1.CryptoKey]. Currently, the only acceptable
-     * purpose is [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
+     * The immutable purpose of this [CryptoKey][google.cloud.kms.v1.CryptoKey].
      * 
* * .google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose purpose = 3; @@ -1500,8 +1678,7 @@ public int getPurposeValue() { } /** *
-     * The immutable purpose of this [CryptoKey][google.cloud.kms.v1.CryptoKey]. Currently, the only acceptable
-     * purpose is [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
+     * The immutable purpose of this [CryptoKey][google.cloud.kms.v1.CryptoKey].
      * 
* * .google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose purpose = 3; @@ -1513,8 +1690,7 @@ public Builder setPurposeValue(int value) { } /** *
-     * The immutable purpose of this [CryptoKey][google.cloud.kms.v1.CryptoKey]. Currently, the only acceptable
-     * purpose is [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
+     * The immutable purpose of this [CryptoKey][google.cloud.kms.v1.CryptoKey].
      * 
* * .google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose purpose = 3; @@ -1526,8 +1702,7 @@ public com.google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose getPurpose() { } /** *
-     * The immutable purpose of this [CryptoKey][google.cloud.kms.v1.CryptoKey]. Currently, the only acceptable
-     * purpose is [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
+     * The immutable purpose of this [CryptoKey][google.cloud.kms.v1.CryptoKey].
      * 
* * .google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose purpose = 3; @@ -1543,8 +1718,7 @@ public Builder setPurpose(com.google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose val } /** *
-     * The immutable purpose of this [CryptoKey][google.cloud.kms.v1.CryptoKey]. Currently, the only acceptable
-     * purpose is [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
+     * The immutable purpose of this [CryptoKey][google.cloud.kms.v1.CryptoKey].
      * 
* * .google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose purpose = 3; @@ -1721,6 +1895,9 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * [CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion] and * [UpdateCryptoKeyPrimaryVersion][google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyPrimaryVersion] * do not affect [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time]. + * Keys with [purpose][google.cloud.kms.v1.CryptoKey.purpose] + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT] support + * automatic rotation. For other keys, this field must be omitted. * * * .google.protobuf.Timestamp next_rotation_time = 7; @@ -1737,6 +1914,9 @@ public boolean hasNextRotationTime() { * [CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion] and * [UpdateCryptoKeyPrimaryVersion][google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyPrimaryVersion] * do not affect [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time]. + * Keys with [purpose][google.cloud.kms.v1.CryptoKey.purpose] + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT] support + * automatic rotation. For other keys, this field must be omitted. * * * .google.protobuf.Timestamp next_rotation_time = 7; @@ -1757,6 +1937,9 @@ public com.google.protobuf.Timestamp getNextRotationTime() { * [CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion] and * [UpdateCryptoKeyPrimaryVersion][google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyPrimaryVersion] * do not affect [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time]. + * Keys with [purpose][google.cloud.kms.v1.CryptoKey.purpose] + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT] support + * automatic rotation. For other keys, this field must be omitted. * * * .google.protobuf.Timestamp next_rotation_time = 7; @@ -1783,6 +1966,9 @@ public Builder setNextRotationTime(com.google.protobuf.Timestamp value) { * [CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion] and * [UpdateCryptoKeyPrimaryVersion][google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyPrimaryVersion] * do not affect [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time]. + * Keys with [purpose][google.cloud.kms.v1.CryptoKey.purpose] + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT] support + * automatic rotation. For other keys, this field must be omitted. * * * .google.protobuf.Timestamp next_rotation_time = 7; @@ -1807,6 +1993,9 @@ public Builder setNextRotationTime( * [CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion] and * [UpdateCryptoKeyPrimaryVersion][google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyPrimaryVersion] * do not affect [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time]. + * Keys with [purpose][google.cloud.kms.v1.CryptoKey.purpose] + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT] support + * automatic rotation. For other keys, this field must be omitted. * * * .google.protobuf.Timestamp next_rotation_time = 7; @@ -1835,6 +2024,9 @@ public Builder mergeNextRotationTime(com.google.protobuf.Timestamp value) { * [CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion] and * [UpdateCryptoKeyPrimaryVersion][google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyPrimaryVersion] * do not affect [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time]. + * Keys with [purpose][google.cloud.kms.v1.CryptoKey.purpose] + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT] support + * automatic rotation. For other keys, this field must be omitted. * * * .google.protobuf.Timestamp next_rotation_time = 7; @@ -1859,6 +2051,9 @@ public Builder clearNextRotationTime() { * [CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion] and * [UpdateCryptoKeyPrimaryVersion][google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyPrimaryVersion] * do not affect [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time]. + * Keys with [purpose][google.cloud.kms.v1.CryptoKey.purpose] + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT] support + * automatic rotation. For other keys, this field must be omitted. * * * .google.protobuf.Timestamp next_rotation_time = 7; @@ -1877,6 +2072,9 @@ public com.google.protobuf.Timestamp.Builder getNextRotationTimeBuilder() { * [CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion] and * [UpdateCryptoKeyPrimaryVersion][google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyPrimaryVersion] * do not affect [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time]. + * Keys with [purpose][google.cloud.kms.v1.CryptoKey.purpose] + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT] support + * automatic rotation. For other keys, this field must be omitted. * * * .google.protobuf.Timestamp next_rotation_time = 7; @@ -1898,6 +2096,9 @@ public com.google.protobuf.TimestampOrBuilder getNextRotationTimeOrBuilder() { * [CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion] and * [UpdateCryptoKeyPrimaryVersion][google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyPrimaryVersion] * do not affect [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time]. + * Keys with [purpose][google.cloud.kms.v1.CryptoKey.purpose] + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT] support + * automatic rotation. For other keys, this field must be omitted. * * * .google.protobuf.Timestamp next_rotation_time = 7; @@ -1923,6 +2124,9 @@ public com.google.protobuf.TimestampOrBuilder getNextRotationTimeOrBuilder() { * [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time] will be advanced by this period when the service * automatically rotates a key. Must be at least one day. * If [rotation_period][google.cloud.kms.v1.CryptoKey.rotation_period] is set, [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time] must also be set. + * Keys with [purpose][google.cloud.kms.v1.CryptoKey.purpose] + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT] support + * automatic rotation. For other keys, this field must be omitted. * * * .google.protobuf.Duration rotation_period = 8; @@ -1935,6 +2139,9 @@ public boolean hasRotationPeriod() { * [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time] will be advanced by this period when the service * automatically rotates a key. Must be at least one day. * If [rotation_period][google.cloud.kms.v1.CryptoKey.rotation_period] is set, [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time] must also be set. + * Keys with [purpose][google.cloud.kms.v1.CryptoKey.purpose] + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT] support + * automatic rotation. For other keys, this field must be omitted. * * * .google.protobuf.Duration rotation_period = 8; @@ -1957,6 +2164,9 @@ public com.google.protobuf.Duration getRotationPeriod() { * [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time] will be advanced by this period when the service * automatically rotates a key. Must be at least one day. * If [rotation_period][google.cloud.kms.v1.CryptoKey.rotation_period] is set, [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time] must also be set. + * Keys with [purpose][google.cloud.kms.v1.CryptoKey.purpose] + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT] support + * automatic rotation. For other keys, this field must be omitted. * * * .google.protobuf.Duration rotation_period = 8; @@ -1979,6 +2189,9 @@ public Builder setRotationPeriod(com.google.protobuf.Duration value) { * [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time] will be advanced by this period when the service * automatically rotates a key. Must be at least one day. * If [rotation_period][google.cloud.kms.v1.CryptoKey.rotation_period] is set, [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time] must also be set. + * Keys with [purpose][google.cloud.kms.v1.CryptoKey.purpose] + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT] support + * automatic rotation. For other keys, this field must be omitted. * * * .google.protobuf.Duration rotation_period = 8; @@ -1999,6 +2212,9 @@ public Builder setRotationPeriod( * [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time] will be advanced by this period when the service * automatically rotates a key. Must be at least one day. * If [rotation_period][google.cloud.kms.v1.CryptoKey.rotation_period] is set, [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time] must also be set. + * Keys with [purpose][google.cloud.kms.v1.CryptoKey.purpose] + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT] support + * automatic rotation. For other keys, this field must be omitted. * * * .google.protobuf.Duration rotation_period = 8; @@ -2027,6 +2243,9 @@ public Builder mergeRotationPeriod(com.google.protobuf.Duration value) { * [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time] will be advanced by this period when the service * automatically rotates a key. Must be at least one day. * If [rotation_period][google.cloud.kms.v1.CryptoKey.rotation_period] is set, [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time] must also be set. + * Keys with [purpose][google.cloud.kms.v1.CryptoKey.purpose] + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT] support + * automatic rotation. For other keys, this field must be omitted. * * * .google.protobuf.Duration rotation_period = 8; @@ -2052,6 +2271,9 @@ public Builder clearRotationPeriod() { * [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time] will be advanced by this period when the service * automatically rotates a key. Must be at least one day. * If [rotation_period][google.cloud.kms.v1.CryptoKey.rotation_period] is set, [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time] must also be set. + * Keys with [purpose][google.cloud.kms.v1.CryptoKey.purpose] + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT] support + * automatic rotation. For other keys, this field must be omitted. * * * .google.protobuf.Duration rotation_period = 8; @@ -2064,6 +2286,9 @@ public com.google.protobuf.Duration.Builder getRotationPeriodBuilder() { * [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time] will be advanced by this period when the service * automatically rotates a key. Must be at least one day. * If [rotation_period][google.cloud.kms.v1.CryptoKey.rotation_period] is set, [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time] must also be set. + * Keys with [purpose][google.cloud.kms.v1.CryptoKey.purpose] + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT] support + * automatic rotation. For other keys, this field must be omitted. * * * .google.protobuf.Duration rotation_period = 8; @@ -2083,6 +2308,9 @@ public com.google.protobuf.DurationOrBuilder getRotationPeriodOrBuilder() { * [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time] will be advanced by this period when the service * automatically rotates a key. Must be at least one day. * If [rotation_period][google.cloud.kms.v1.CryptoKey.rotation_period] is set, [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time] must also be set. + * Keys with [purpose][google.cloud.kms.v1.CryptoKey.purpose] + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT] support + * automatic rotation. For other keys, this field must be omitted. * * * .google.protobuf.Duration rotation_period = 8; @@ -2106,6 +2334,186 @@ public com.google.protobuf.DurationOrBuilder getRotationPeriodOrBuilder() { return rotationPeriodBuilder_; } + private com.google.cloud.kms.v1.CryptoKeyVersionTemplate versionTemplate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.kms.v1.CryptoKeyVersionTemplate, com.google.cloud.kms.v1.CryptoKeyVersionTemplate.Builder, com.google.cloud.kms.v1.CryptoKeyVersionTemplateOrBuilder> versionTemplateBuilder_; + /** + *
+     * A template describing settings for new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] instances.
+     * The properties of new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] instances created by either
+     * [CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion] or
+     * auto-rotation are controlled by this template.
+     * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersionTemplate version_template = 11; + */ + public boolean hasVersionTemplate() { + return versionTemplateBuilder_ != null || versionTemplate_ != null; + } + /** + *
+     * A template describing settings for new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] instances.
+     * The properties of new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] instances created by either
+     * [CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion] or
+     * auto-rotation are controlled by this template.
+     * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersionTemplate version_template = 11; + */ + public com.google.cloud.kms.v1.CryptoKeyVersionTemplate getVersionTemplate() { + if (versionTemplateBuilder_ == null) { + return versionTemplate_ == null ? com.google.cloud.kms.v1.CryptoKeyVersionTemplate.getDefaultInstance() : versionTemplate_; + } else { + return versionTemplateBuilder_.getMessage(); + } + } + /** + *
+     * A template describing settings for new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] instances.
+     * The properties of new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] instances created by either
+     * [CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion] or
+     * auto-rotation are controlled by this template.
+     * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersionTemplate version_template = 11; + */ + public Builder setVersionTemplate(com.google.cloud.kms.v1.CryptoKeyVersionTemplate value) { + if (versionTemplateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + versionTemplate_ = value; + onChanged(); + } else { + versionTemplateBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * A template describing settings for new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] instances.
+     * The properties of new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] instances created by either
+     * [CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion] or
+     * auto-rotation are controlled by this template.
+     * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersionTemplate version_template = 11; + */ + public Builder setVersionTemplate( + com.google.cloud.kms.v1.CryptoKeyVersionTemplate.Builder builderForValue) { + if (versionTemplateBuilder_ == null) { + versionTemplate_ = builderForValue.build(); + onChanged(); + } else { + versionTemplateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * A template describing settings for new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] instances.
+     * The properties of new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] instances created by either
+     * [CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion] or
+     * auto-rotation are controlled by this template.
+     * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersionTemplate version_template = 11; + */ + public Builder mergeVersionTemplate(com.google.cloud.kms.v1.CryptoKeyVersionTemplate value) { + if (versionTemplateBuilder_ == null) { + if (versionTemplate_ != null) { + versionTemplate_ = + com.google.cloud.kms.v1.CryptoKeyVersionTemplate.newBuilder(versionTemplate_).mergeFrom(value).buildPartial(); + } else { + versionTemplate_ = value; + } + onChanged(); + } else { + versionTemplateBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * A template describing settings for new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] instances.
+     * The properties of new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] instances created by either
+     * [CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion] or
+     * auto-rotation are controlled by this template.
+     * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersionTemplate version_template = 11; + */ + public Builder clearVersionTemplate() { + if (versionTemplateBuilder_ == null) { + versionTemplate_ = null; + onChanged(); + } else { + versionTemplate_ = null; + versionTemplateBuilder_ = null; + } + + return this; + } + /** + *
+     * A template describing settings for new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] instances.
+     * The properties of new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] instances created by either
+     * [CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion] or
+     * auto-rotation are controlled by this template.
+     * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersionTemplate version_template = 11; + */ + public com.google.cloud.kms.v1.CryptoKeyVersionTemplate.Builder getVersionTemplateBuilder() { + + onChanged(); + return getVersionTemplateFieldBuilder().getBuilder(); + } + /** + *
+     * A template describing settings for new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] instances.
+     * The properties of new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] instances created by either
+     * [CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion] or
+     * auto-rotation are controlled by this template.
+     * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersionTemplate version_template = 11; + */ + public com.google.cloud.kms.v1.CryptoKeyVersionTemplateOrBuilder getVersionTemplateOrBuilder() { + if (versionTemplateBuilder_ != null) { + return versionTemplateBuilder_.getMessageOrBuilder(); + } else { + return versionTemplate_ == null ? + com.google.cloud.kms.v1.CryptoKeyVersionTemplate.getDefaultInstance() : versionTemplate_; + } + } + /** + *
+     * A template describing settings for new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] instances.
+     * The properties of new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] instances created by either
+     * [CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion] or
+     * auto-rotation are controlled by this template.
+     * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersionTemplate version_template = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.kms.v1.CryptoKeyVersionTemplate, com.google.cloud.kms.v1.CryptoKeyVersionTemplate.Builder, com.google.cloud.kms.v1.CryptoKeyVersionTemplateOrBuilder> + getVersionTemplateFieldBuilder() { + if (versionTemplateBuilder_ == null) { + versionTemplateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.kms.v1.CryptoKeyVersionTemplate, com.google.cloud.kms.v1.CryptoKeyVersionTemplate.Builder, com.google.cloud.kms.v1.CryptoKeyVersionTemplateOrBuilder>( + getVersionTemplate(), + getParentForChildren(), + isClean()); + versionTemplate_ = null; + } + return versionTemplateBuilder_; + } + private com.google.protobuf.MapField< java.lang.String, java.lang.String> labels_; private com.google.protobuf.MapField diff --git a/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyOrBuilder.java b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyOrBuilder.java index 7af24d0cdfee..354e84e5179d 100644 --- a/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyOrBuilder.java @@ -34,6 +34,9 @@ public interface CryptoKeyOrBuilder extends * in [EncryptRequest.name][google.cloud.kms.v1.EncryptRequest.name]. * The [CryptoKey][google.cloud.kms.v1.CryptoKey]'s primary version can be updated via * [UpdateCryptoKeyPrimaryVersion][google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyPrimaryVersion]. + * All keys with [purpose][google.cloud.kms.v1.CryptoKey.purpose] + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT] have a + * primary. For other keys, this field will be omitted. * * * .google.cloud.kms.v1.CryptoKeyVersion primary = 2; @@ -46,6 +49,9 @@ public interface CryptoKeyOrBuilder extends * in [EncryptRequest.name][google.cloud.kms.v1.EncryptRequest.name]. * The [CryptoKey][google.cloud.kms.v1.CryptoKey]'s primary version can be updated via * [UpdateCryptoKeyPrimaryVersion][google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyPrimaryVersion]. + * All keys with [purpose][google.cloud.kms.v1.CryptoKey.purpose] + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT] have a + * primary. For other keys, this field will be omitted. * * * .google.cloud.kms.v1.CryptoKeyVersion primary = 2; @@ -58,6 +64,9 @@ public interface CryptoKeyOrBuilder extends * in [EncryptRequest.name][google.cloud.kms.v1.EncryptRequest.name]. * The [CryptoKey][google.cloud.kms.v1.CryptoKey]'s primary version can be updated via * [UpdateCryptoKeyPrimaryVersion][google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyPrimaryVersion]. + * All keys with [purpose][google.cloud.kms.v1.CryptoKey.purpose] + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT] have a + * primary. For other keys, this field will be omitted. * * * .google.cloud.kms.v1.CryptoKeyVersion primary = 2; @@ -66,8 +75,7 @@ public interface CryptoKeyOrBuilder extends /** *
-   * The immutable purpose of this [CryptoKey][google.cloud.kms.v1.CryptoKey]. Currently, the only acceptable
-   * purpose is [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
+   * The immutable purpose of this [CryptoKey][google.cloud.kms.v1.CryptoKey].
    * 
* * .google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose purpose = 3; @@ -75,8 +83,7 @@ public interface CryptoKeyOrBuilder extends int getPurposeValue(); /** *
-   * The immutable purpose of this [CryptoKey][google.cloud.kms.v1.CryptoKey]. Currently, the only acceptable
-   * purpose is [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
+   * The immutable purpose of this [CryptoKey][google.cloud.kms.v1.CryptoKey].
    * 
* * .google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose purpose = 3; @@ -117,6 +124,9 @@ public interface CryptoKeyOrBuilder extends * [CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion] and * [UpdateCryptoKeyPrimaryVersion][google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyPrimaryVersion] * do not affect [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time]. + * Keys with [purpose][google.cloud.kms.v1.CryptoKey.purpose] + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT] support + * automatic rotation. For other keys, this field must be omitted. * * * .google.protobuf.Timestamp next_rotation_time = 7; @@ -131,6 +141,9 @@ public interface CryptoKeyOrBuilder extends * [CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion] and * [UpdateCryptoKeyPrimaryVersion][google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyPrimaryVersion] * do not affect [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time]. + * Keys with [purpose][google.cloud.kms.v1.CryptoKey.purpose] + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT] support + * automatic rotation. For other keys, this field must be omitted. * * * .google.protobuf.Timestamp next_rotation_time = 7; @@ -145,6 +158,9 @@ public interface CryptoKeyOrBuilder extends * [CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion] and * [UpdateCryptoKeyPrimaryVersion][google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyPrimaryVersion] * do not affect [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time]. + * Keys with [purpose][google.cloud.kms.v1.CryptoKey.purpose] + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT] support + * automatic rotation. For other keys, this field must be omitted. * * * .google.protobuf.Timestamp next_rotation_time = 7; @@ -156,6 +172,9 @@ public interface CryptoKeyOrBuilder extends * [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time] will be advanced by this period when the service * automatically rotates a key. Must be at least one day. * If [rotation_period][google.cloud.kms.v1.CryptoKey.rotation_period] is set, [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time] must also be set. + * Keys with [purpose][google.cloud.kms.v1.CryptoKey.purpose] + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT] support + * automatic rotation. For other keys, this field must be omitted. * * * .google.protobuf.Duration rotation_period = 8; @@ -166,6 +185,9 @@ public interface CryptoKeyOrBuilder extends * [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time] will be advanced by this period when the service * automatically rotates a key. Must be at least one day. * If [rotation_period][google.cloud.kms.v1.CryptoKey.rotation_period] is set, [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time] must also be set. + * Keys with [purpose][google.cloud.kms.v1.CryptoKey.purpose] + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT] support + * automatic rotation. For other keys, this field must be omitted. * * * .google.protobuf.Duration rotation_period = 8; @@ -176,12 +198,49 @@ public interface CryptoKeyOrBuilder extends * [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time] will be advanced by this period when the service * automatically rotates a key. Must be at least one day. * If [rotation_period][google.cloud.kms.v1.CryptoKey.rotation_period] is set, [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time] must also be set. + * Keys with [purpose][google.cloud.kms.v1.CryptoKey.purpose] + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT] support + * automatic rotation. For other keys, this field must be omitted. * * * .google.protobuf.Duration rotation_period = 8; */ com.google.protobuf.DurationOrBuilder getRotationPeriodOrBuilder(); + /** + *
+   * A template describing settings for new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] instances.
+   * The properties of new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] instances created by either
+   * [CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion] or
+   * auto-rotation are controlled by this template.
+   * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersionTemplate version_template = 11; + */ + boolean hasVersionTemplate(); + /** + *
+   * A template describing settings for new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] instances.
+   * The properties of new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] instances created by either
+   * [CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion] or
+   * auto-rotation are controlled by this template.
+   * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersionTemplate version_template = 11; + */ + com.google.cloud.kms.v1.CryptoKeyVersionTemplate getVersionTemplate(); + /** + *
+   * A template describing settings for new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] instances.
+   * The properties of new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] instances created by either
+   * [CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion] or
+   * auto-rotation are controlled by this template.
+   * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersionTemplate version_template = 11; + */ + com.google.cloud.kms.v1.CryptoKeyVersionTemplateOrBuilder getVersionTemplateOrBuilder(); + /** *
    * Labels with user-defined metadata. For more information, see
diff --git a/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersion.java b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersion.java
index 8dd63fd67926..6a3263f99db0 100644
--- a/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersion.java
+++ b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersion.java
@@ -7,13 +7,12 @@
  * 
  * A [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] represents an individual cryptographic key, and the
  * associated key material.
- * It can be used for cryptographic operations either directly, or via its
- * parent [CryptoKey][google.cloud.kms.v1.CryptoKey], in which case the server will choose the appropriate
- * version for the operation.
+ * An [ENABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.ENABLED] version can be
+ * used for cryptographic operations.
  * For security reasons, the raw cryptographic key material represented by a
  * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] can never be viewed or exported. It can only be used to
- * encrypt or decrypt data when an authorized user or application invokes Cloud
- * KMS.
+ * encrypt, decrypt, or sign data when an authorized user or application invokes
+ * Cloud KMS.
  * 
* * Protobuf type {@code google.cloud.kms.v1.CryptoKeyVersion} @@ -30,6 +29,8 @@ private CryptoKeyVersion(com.google.protobuf.GeneratedMessageV3.Builder build private CryptoKeyVersion() { name_ = ""; state_ = 0; + protectionLevel_ = 0; + algorithm_ = 0; } @java.lang.Override @@ -107,6 +108,44 @@ private CryptoKeyVersion( break; } + case 56: { + int rawValue = input.readEnum(); + + protectionLevel_ = rawValue; + break; + } + case 66: { + com.google.cloud.kms.v1.KeyOperationAttestation.Builder subBuilder = null; + if (attestation_ != null) { + subBuilder = attestation_.toBuilder(); + } + attestation_ = input.readMessage(com.google.cloud.kms.v1.KeyOperationAttestation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(attestation_); + attestation_ = subBuilder.buildPartial(); + } + + break; + } + case 80: { + int rawValue = input.readEnum(); + + algorithm_ = rawValue; + break; + } + case 90: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (generateTime_ != null) { + subBuilder = generateTime_.toBuilder(); + } + generateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(generateTime_); + generateTime_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -139,6 +178,333 @@ private CryptoKeyVersion( com.google.cloud.kms.v1.CryptoKeyVersion.class, com.google.cloud.kms.v1.CryptoKeyVersion.Builder.class); } + /** + *
+   * The algorithm of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion], indicating what
+   * parameters must be used for each cryptographic operation.
+   * The
+   * [GOOGLE_SYMMETRIC_ENCRYPTION][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.GOOGLE_SYMMETRIC_ENCRYPTION]
+   * algorithm is usable with [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose]
+   * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
+   * Algorithms beginning with "RSA_SIGN_" are usable with [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose]
+   * [ASYMMETRIC_SIGN][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ASYMMETRIC_SIGN].
+   * The fields in the name after "RSA_SIGN_" correspond to the following
+   * parameters: padding algorithm, modulus bit length, and digest algorithm.
+   * For PSS, the salt length used is equal to the length of digest
+   * algorithm. For example,
+   * [RSA_SIGN_PSS_2048_SHA256][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.RSA_SIGN_PSS_2048_SHA256]
+   * will use PSS with a salt length of 256 bits or 32 bytes.
+   * Algorithms beginning with "RSA_DECRYPT_" are usable with
+   * [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose]
+   * [ASYMMETRIC_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ASYMMETRIC_DECRYPT].
+   * The fields in the name after "RSA_DECRYPT_" correspond to the following
+   * parameters: padding algorithm, modulus bit length, and digest algorithm.
+   * Algorithms beginning with "EC_SIGN_" are usable with [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose]
+   * [ASYMMETRIC_SIGN][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ASYMMETRIC_SIGN].
+   * The fields in the name after "EC_SIGN_" correspond to the following
+   * parameters: elliptic curve, digest algorithm.
+   * 
+ * + * Protobuf enum {@code google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm} + */ + public enum CryptoKeyVersionAlgorithm + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Not specified.
+     * 
+ * + * CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED = 0; + */ + CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED(0), + /** + *
+     * Creates symmetric encryption keys.
+     * 
+ * + * GOOGLE_SYMMETRIC_ENCRYPTION = 1; + */ + GOOGLE_SYMMETRIC_ENCRYPTION(1), + /** + *
+     * RSASSA-PSS 2048 bit key with a SHA256 digest.
+     * 
+ * + * RSA_SIGN_PSS_2048_SHA256 = 2; + */ + RSA_SIGN_PSS_2048_SHA256(2), + /** + *
+     * RSASSA-PSS 3072 bit key with a SHA256 digest.
+     * 
+ * + * RSA_SIGN_PSS_3072_SHA256 = 3; + */ + RSA_SIGN_PSS_3072_SHA256(3), + /** + *
+     * RSASSA-PSS 4096 bit key with a SHA256 digest.
+     * 
+ * + * RSA_SIGN_PSS_4096_SHA256 = 4; + */ + RSA_SIGN_PSS_4096_SHA256(4), + /** + *
+     * RSASSA-PKCS1-v1_5 with a 2048 bit key and a SHA256 digest.
+     * 
+ * + * RSA_SIGN_PKCS1_2048_SHA256 = 5; + */ + RSA_SIGN_PKCS1_2048_SHA256(5), + /** + *
+     * RSASSA-PKCS1-v1_5 with a 3072 bit key and a SHA256 digest.
+     * 
+ * + * RSA_SIGN_PKCS1_3072_SHA256 = 6; + */ + RSA_SIGN_PKCS1_3072_SHA256(6), + /** + *
+     * RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA256 digest.
+     * 
+ * + * RSA_SIGN_PKCS1_4096_SHA256 = 7; + */ + RSA_SIGN_PKCS1_4096_SHA256(7), + /** + *
+     * RSAES-OAEP 2048 bit key with a SHA256 digest.
+     * 
+ * + * RSA_DECRYPT_OAEP_2048_SHA256 = 8; + */ + RSA_DECRYPT_OAEP_2048_SHA256(8), + /** + *
+     * RSAES-OAEP 3072 bit key with a SHA256 digest.
+     * 
+ * + * RSA_DECRYPT_OAEP_3072_SHA256 = 9; + */ + RSA_DECRYPT_OAEP_3072_SHA256(9), + /** + *
+     * RSAES-OAEP 4096 bit key with a SHA256 digest.
+     * 
+ * + * RSA_DECRYPT_OAEP_4096_SHA256 = 10; + */ + RSA_DECRYPT_OAEP_4096_SHA256(10), + /** + *
+     * ECDSA on the NIST P-256 curve with a SHA256 digest.
+     * 
+ * + * EC_SIGN_P256_SHA256 = 12; + */ + EC_SIGN_P256_SHA256(12), + /** + *
+     * ECDSA on the NIST P-384 curve with a SHA384 digest.
+     * 
+ * + * EC_SIGN_P384_SHA384 = 13; + */ + EC_SIGN_P384_SHA384(13), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Not specified.
+     * 
+ * + * CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED = 0; + */ + public static final int CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED_VALUE = 0; + /** + *
+     * Creates symmetric encryption keys.
+     * 
+ * + * GOOGLE_SYMMETRIC_ENCRYPTION = 1; + */ + public static final int GOOGLE_SYMMETRIC_ENCRYPTION_VALUE = 1; + /** + *
+     * RSASSA-PSS 2048 bit key with a SHA256 digest.
+     * 
+ * + * RSA_SIGN_PSS_2048_SHA256 = 2; + */ + public static final int RSA_SIGN_PSS_2048_SHA256_VALUE = 2; + /** + *
+     * RSASSA-PSS 3072 bit key with a SHA256 digest.
+     * 
+ * + * RSA_SIGN_PSS_3072_SHA256 = 3; + */ + public static final int RSA_SIGN_PSS_3072_SHA256_VALUE = 3; + /** + *
+     * RSASSA-PSS 4096 bit key with a SHA256 digest.
+     * 
+ * + * RSA_SIGN_PSS_4096_SHA256 = 4; + */ + public static final int RSA_SIGN_PSS_4096_SHA256_VALUE = 4; + /** + *
+     * RSASSA-PKCS1-v1_5 with a 2048 bit key and a SHA256 digest.
+     * 
+ * + * RSA_SIGN_PKCS1_2048_SHA256 = 5; + */ + public static final int RSA_SIGN_PKCS1_2048_SHA256_VALUE = 5; + /** + *
+     * RSASSA-PKCS1-v1_5 with a 3072 bit key and a SHA256 digest.
+     * 
+ * + * RSA_SIGN_PKCS1_3072_SHA256 = 6; + */ + public static final int RSA_SIGN_PKCS1_3072_SHA256_VALUE = 6; + /** + *
+     * RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA256 digest.
+     * 
+ * + * RSA_SIGN_PKCS1_4096_SHA256 = 7; + */ + public static final int RSA_SIGN_PKCS1_4096_SHA256_VALUE = 7; + /** + *
+     * RSAES-OAEP 2048 bit key with a SHA256 digest.
+     * 
+ * + * RSA_DECRYPT_OAEP_2048_SHA256 = 8; + */ + public static final int RSA_DECRYPT_OAEP_2048_SHA256_VALUE = 8; + /** + *
+     * RSAES-OAEP 3072 bit key with a SHA256 digest.
+     * 
+ * + * RSA_DECRYPT_OAEP_3072_SHA256 = 9; + */ + public static final int RSA_DECRYPT_OAEP_3072_SHA256_VALUE = 9; + /** + *
+     * RSAES-OAEP 4096 bit key with a SHA256 digest.
+     * 
+ * + * RSA_DECRYPT_OAEP_4096_SHA256 = 10; + */ + public static final int RSA_DECRYPT_OAEP_4096_SHA256_VALUE = 10; + /** + *
+     * ECDSA on the NIST P-256 curve with a SHA256 digest.
+     * 
+ * + * EC_SIGN_P256_SHA256 = 12; + */ + public static final int EC_SIGN_P256_SHA256_VALUE = 12; + /** + *
+     * ECDSA on the NIST P-384 curve with a SHA384 digest.
+     * 
+ * + * EC_SIGN_P384_SHA384 = 13; + */ + public static final int EC_SIGN_P384_SHA384_VALUE = 13; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static CryptoKeyVersionAlgorithm valueOf(int value) { + return forNumber(value); + } + + public static CryptoKeyVersionAlgorithm forNumber(int value) { + switch (value) { + case 0: return CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED; + case 1: return GOOGLE_SYMMETRIC_ENCRYPTION; + case 2: return RSA_SIGN_PSS_2048_SHA256; + case 3: return RSA_SIGN_PSS_3072_SHA256; + case 4: return RSA_SIGN_PSS_4096_SHA256; + case 5: return RSA_SIGN_PKCS1_2048_SHA256; + case 6: return RSA_SIGN_PKCS1_3072_SHA256; + case 7: return RSA_SIGN_PKCS1_4096_SHA256; + case 8: return RSA_DECRYPT_OAEP_2048_SHA256; + case 9: return RSA_DECRYPT_OAEP_3072_SHA256; + case 10: return RSA_DECRYPT_OAEP_4096_SHA256; + case 12: return EC_SIGN_P256_SHA256; + case 13: return EC_SIGN_P384_SHA384; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + CryptoKeyVersionAlgorithm> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CryptoKeyVersionAlgorithm findValueByNumber(int number) { + return CryptoKeyVersionAlgorithm.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.kms.v1.CryptoKeyVersion.getDescriptor().getEnumTypes().get(0); + } + + private static final CryptoKeyVersionAlgorithm[] VALUES = values(); + + public static CryptoKeyVersionAlgorithm valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private CryptoKeyVersionAlgorithm(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm) + } + /** *
    * The state of a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion], indicating if it can be used.
@@ -158,8 +524,17 @@ public enum CryptoKeyVersionState
     CRYPTO_KEY_VERSION_STATE_UNSPECIFIED(0),
     /**
      * 
-     * This version may be used in [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt] and
-     * [Decrypt][google.cloud.kms.v1.KeyManagementService.Decrypt] requests.
+     * This version is still being generated. It may not be used, enabled,
+     * disabled, or destroyed yet. Cloud KMS will automatically mark this
+     * version [ENABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.ENABLED] as soon as the version is ready.
+     * 
+ * + * PENDING_GENERATION = 5; + */ + PENDING_GENERATION(5), + /** + *
+     * This version may be used for cryptographic operations.
      * 
* * ENABLED = 1; @@ -207,8 +582,17 @@ public enum CryptoKeyVersionState public static final int CRYPTO_KEY_VERSION_STATE_UNSPECIFIED_VALUE = 0; /** *
-     * This version may be used in [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt] and
-     * [Decrypt][google.cloud.kms.v1.KeyManagementService.Decrypt] requests.
+     * This version is still being generated. It may not be used, enabled,
+     * disabled, or destroyed yet. Cloud KMS will automatically mark this
+     * version [ENABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.ENABLED] as soon as the version is ready.
+     * 
+ * + * PENDING_GENERATION = 5; + */ + public static final int PENDING_GENERATION_VALUE = 5; + /** + *
+     * This version may be used for cryptographic operations.
      * 
* * ENABLED = 1; @@ -264,6 +648,7 @@ public static CryptoKeyVersionState valueOf(int value) { public static CryptoKeyVersionState forNumber(int value) { switch (value) { case 0: return CRYPTO_KEY_VERSION_STATE_UNSPECIFIED; + case 5: return PENDING_GENERATION; case 1: return ENABLED; case 2: return DISABLED; case 3: return DESTROYED; @@ -294,7 +679,7 @@ public CryptoKeyVersionState findValueByNumber(int number) { } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.kms.v1.CryptoKeyVersion.getDescriptor().getEnumTypes().get(0); + return com.google.cloud.kms.v1.CryptoKeyVersion.getDescriptor().getEnumTypes().get(1); } private static final CryptoKeyVersionState[] VALUES = values(); @@ -320,6 +705,131 @@ private CryptoKeyVersionState(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState) } + /** + *
+   * A view for [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]s. Controls the level of detail returned
+   * for [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] in
+   * [KeyManagementService.ListCryptoKeyVersions][google.cloud.kms.v1.KeyManagementService.ListCryptoKeyVersions] and
+   * [KeyManagementService.ListCryptoKeys][google.cloud.kms.v1.KeyManagementService.ListCryptoKeys].
+   * 
+ * + * Protobuf enum {@code google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView} + */ + public enum CryptoKeyVersionView + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Default view for each [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. Does not include
+     * the [attestation][google.cloud.kms.v1.CryptoKeyVersion.attestation] field.
+     * 
+ * + * CRYPTO_KEY_VERSION_VIEW_UNSPECIFIED = 0; + */ + CRYPTO_KEY_VERSION_VIEW_UNSPECIFIED(0), + /** + *
+     * Provides all fields in each [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion], including the
+     * [attestation][google.cloud.kms.v1.CryptoKeyVersion.attestation].
+     * 
+ * + * FULL = 1; + */ + FULL(1), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Default view for each [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. Does not include
+     * the [attestation][google.cloud.kms.v1.CryptoKeyVersion.attestation] field.
+     * 
+ * + * CRYPTO_KEY_VERSION_VIEW_UNSPECIFIED = 0; + */ + public static final int CRYPTO_KEY_VERSION_VIEW_UNSPECIFIED_VALUE = 0; + /** + *
+     * Provides all fields in each [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion], including the
+     * [attestation][google.cloud.kms.v1.CryptoKeyVersion.attestation].
+     * 
+ * + * FULL = 1; + */ + public static final int FULL_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static CryptoKeyVersionView valueOf(int value) { + return forNumber(value); + } + + public static CryptoKeyVersionView forNumber(int value) { + switch (value) { + case 0: return CRYPTO_KEY_VERSION_VIEW_UNSPECIFIED; + case 1: return FULL; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + CryptoKeyVersionView> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CryptoKeyVersionView findValueByNumber(int number) { + return CryptoKeyVersionView.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.kms.v1.CryptoKeyVersion.getDescriptor().getEnumTypes().get(2); + } + + private static final CryptoKeyVersionView[] VALUES = values(); + + public static CryptoKeyVersionView valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private CryptoKeyVersionView(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView) + } + public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** @@ -364,29 +874,125 @@ public java.lang.String getName() { } } - public static final int STATE_FIELD_NUMBER = 3; - private int state_; + public static final int STATE_FIELD_NUMBER = 3; + private int state_; + /** + *
+   * The current state of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
+   * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState state = 3; + */ + public int getStateValue() { + return state_; + } + /** + *
+   * The current state of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
+   * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState state = 3; + */ + public com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState getState() { + @SuppressWarnings("deprecation") + com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState result = com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.valueOf(state_); + return result == null ? com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.UNRECOGNIZED : result; + } + + public static final int PROTECTION_LEVEL_FIELD_NUMBER = 7; + private int protectionLevel_; + /** + *
+   * Output only. The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] describing how crypto operations are
+   * performed with this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
+   * 
+ * + * .google.cloud.kms.v1.ProtectionLevel protection_level = 7; + */ + public int getProtectionLevelValue() { + return protectionLevel_; + } + /** + *
+   * Output only. The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] describing how crypto operations are
+   * performed with this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
+   * 
+ * + * .google.cloud.kms.v1.ProtectionLevel protection_level = 7; + */ + public com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel() { + @SuppressWarnings("deprecation") + com.google.cloud.kms.v1.ProtectionLevel result = com.google.cloud.kms.v1.ProtectionLevel.valueOf(protectionLevel_); + return result == null ? com.google.cloud.kms.v1.ProtectionLevel.UNRECOGNIZED : result; + } + + public static final int ALGORITHM_FIELD_NUMBER = 10; + private int algorithm_; + /** + *
+   * Output only. The [CryptoKeyVersionAlgorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm] that this
+   * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] supports.
+   * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 10; + */ + public int getAlgorithmValue() { + return algorithm_; + } + /** + *
+   * Output only. The [CryptoKeyVersionAlgorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm] that this
+   * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] supports.
+   * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 10; + */ + public com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm getAlgorithm() { + @SuppressWarnings("deprecation") + com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm result = com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.valueOf(algorithm_); + return result == null ? com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.UNRECOGNIZED : result; + } + + public static final int ATTESTATION_FIELD_NUMBER = 8; + private com.google.cloud.kms.v1.KeyOperationAttestation attestation_; /** *
-   * The current state of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
+   * Output only. Statement that was generated and signed by the HSM at key
+   * creation time. Use this statement to verify attributes of the key as stored
+   * on the HSM, independently of Google. Only provided for key versions with
+   * [protection_level][google.cloud.kms.v1.CryptoKeyVersion.protection_level] [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
    * 
* - * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState state = 3; + * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8; */ - public int getStateValue() { - return state_; + public boolean hasAttestation() { + return attestation_ != null; } /** *
-   * The current state of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
+   * Output only. Statement that was generated and signed by the HSM at key
+   * creation time. Use this statement to verify attributes of the key as stored
+   * on the HSM, independently of Google. Only provided for key versions with
+   * [protection_level][google.cloud.kms.v1.CryptoKeyVersion.protection_level] [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
    * 
* - * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState state = 3; + * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8; */ - public com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState getState() { - @SuppressWarnings("deprecation") - com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState result = com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.valueOf(state_); - return result == null ? com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.UNRECOGNIZED : result; + public com.google.cloud.kms.v1.KeyOperationAttestation getAttestation() { + return attestation_ == null ? com.google.cloud.kms.v1.KeyOperationAttestation.getDefaultInstance() : attestation_; + } + /** + *
+   * Output only. Statement that was generated and signed by the HSM at key
+   * creation time. Use this statement to verify attributes of the key as stored
+   * on the HSM, independently of Google. Only provided for key versions with
+   * [protection_level][google.cloud.kms.v1.CryptoKeyVersion.protection_level] [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
+   * 
+ * + * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8; + */ + public com.google.cloud.kms.v1.KeyOperationAttestationOrBuilder getAttestationOrBuilder() { + return getAttestation(); } public static final int CREATE_TIME_FIELD_NUMBER = 4; @@ -422,6 +1028,42 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return getCreateTime(); } + public static final int GENERATE_TIME_FIELD_NUMBER = 11; + private com.google.protobuf.Timestamp generateTime_; + /** + *
+   * Output only. The time this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was
+   * generated.
+   * 
+ * + * .google.protobuf.Timestamp generate_time = 11; + */ + public boolean hasGenerateTime() { + return generateTime_ != null; + } + /** + *
+   * Output only. The time this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was
+   * generated.
+   * 
+ * + * .google.protobuf.Timestamp generate_time = 11; + */ + public com.google.protobuf.Timestamp getGenerateTime() { + return generateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : generateTime_; + } + /** + *
+   * Output only. The time this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was
+   * generated.
+   * 
+ * + * .google.protobuf.Timestamp generate_time = 11; + */ + public com.google.protobuf.TimestampOrBuilder getGenerateTimeOrBuilder() { + return getGenerateTime(); + } + public static final int DESTROY_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp destroyTime_; /** @@ -529,6 +1171,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (destroyEventTime_ != null) { output.writeMessage(6, getDestroyEventTime()); } + if (protectionLevel_ != com.google.cloud.kms.v1.ProtectionLevel.PROTECTION_LEVEL_UNSPECIFIED.getNumber()) { + output.writeEnum(7, protectionLevel_); + } + if (attestation_ != null) { + output.writeMessage(8, getAttestation()); + } + if (algorithm_ != com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED.getNumber()) { + output.writeEnum(10, algorithm_); + } + if (generateTime_ != null) { + output.writeMessage(11, getGenerateTime()); + } unknownFields.writeTo(output); } @@ -557,6 +1211,22 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getDestroyEventTime()); } + if (protectionLevel_ != com.google.cloud.kms.v1.ProtectionLevel.PROTECTION_LEVEL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(7, protectionLevel_); + } + if (attestation_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getAttestation()); + } + if (algorithm_ != com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(10, algorithm_); + } + if (generateTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getGenerateTime()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -576,11 +1246,23 @@ public boolean equals(final java.lang.Object obj) { result = result && getName() .equals(other.getName()); result = result && state_ == other.state_; + result = result && protectionLevel_ == other.protectionLevel_; + result = result && algorithm_ == other.algorithm_; + result = result && (hasAttestation() == other.hasAttestation()); + if (hasAttestation()) { + result = result && getAttestation() + .equals(other.getAttestation()); + } result = result && (hasCreateTime() == other.hasCreateTime()); if (hasCreateTime()) { result = result && getCreateTime() .equals(other.getCreateTime()); } + result = result && (hasGenerateTime() == other.hasGenerateTime()); + if (hasGenerateTime()) { + result = result && getGenerateTime() + .equals(other.getGenerateTime()); + } result = result && (hasDestroyTime() == other.hasDestroyTime()); if (hasDestroyTime()) { result = result && getDestroyTime() @@ -606,10 +1288,22 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; + hash = (37 * hash) + PROTECTION_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + protectionLevel_; + hash = (37 * hash) + ALGORITHM_FIELD_NUMBER; + hash = (53 * hash) + algorithm_; + if (hasAttestation()) { + hash = (37 * hash) + ATTESTATION_FIELD_NUMBER; + hash = (53 * hash) + getAttestation().hashCode(); + } if (hasCreateTime()) { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); } + if (hasGenerateTime()) { + hash = (37 * hash) + GENERATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getGenerateTime().hashCode(); + } if (hasDestroyTime()) { hash = (37 * hash) + DESTROY_TIME_FIELD_NUMBER; hash = (53 * hash) + getDestroyTime().hashCode(); @@ -717,13 +1411,12 @@ protected Builder newBuilderForType( *
    * A [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] represents an individual cryptographic key, and the
    * associated key material.
-   * It can be used for cryptographic operations either directly, or via its
-   * parent [CryptoKey][google.cloud.kms.v1.CryptoKey], in which case the server will choose the appropriate
-   * version for the operation.
+   * An [ENABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.ENABLED] version can be
+   * used for cryptographic operations.
    * For security reasons, the raw cryptographic key material represented by a
    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] can never be viewed or exported. It can only be used to
-   * encrypt or decrypt data when an authorized user or application invokes Cloud
-   * KMS.
+   * encrypt, decrypt, or sign data when an authorized user or application invokes
+   * Cloud KMS.
    * 
* * Protobuf type {@code google.cloud.kms.v1.CryptoKeyVersion} @@ -767,12 +1460,28 @@ public Builder clear() { state_ = 0; + protectionLevel_ = 0; + + algorithm_ = 0; + + if (attestationBuilder_ == null) { + attestation_ = null; + } else { + attestation_ = null; + attestationBuilder_ = null; + } if (createTimeBuilder_ == null) { createTime_ = null; } else { createTime_ = null; createTimeBuilder_ = null; } + if (generateTimeBuilder_ == null) { + generateTime_ = null; + } else { + generateTime_ = null; + generateTimeBuilder_ = null; + } if (destroyTimeBuilder_ == null) { destroyTime_ = null; } else { @@ -813,11 +1522,23 @@ public com.google.cloud.kms.v1.CryptoKeyVersion buildPartial() { com.google.cloud.kms.v1.CryptoKeyVersion result = new com.google.cloud.kms.v1.CryptoKeyVersion(this); result.name_ = name_; result.state_ = state_; + result.protectionLevel_ = protectionLevel_; + result.algorithm_ = algorithm_; + if (attestationBuilder_ == null) { + result.attestation_ = attestation_; + } else { + result.attestation_ = attestationBuilder_.build(); + } if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { result.createTime_ = createTimeBuilder_.build(); } + if (generateTimeBuilder_ == null) { + result.generateTime_ = generateTime_; + } else { + result.generateTime_ = generateTimeBuilder_.build(); + } if (destroyTimeBuilder_ == null) { result.destroyTime_ = destroyTime_; } else { @@ -883,9 +1604,21 @@ public Builder mergeFrom(com.google.cloud.kms.v1.CryptoKeyVersion other) { if (other.state_ != 0) { setStateValue(other.getStateValue()); } + if (other.protectionLevel_ != 0) { + setProtectionLevelValue(other.getProtectionLevelValue()); + } + if (other.algorithm_ != 0) { + setAlgorithmValue(other.getAlgorithmValue()); + } + if (other.hasAttestation()) { + mergeAttestation(other.getAttestation()); + } if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } + if (other.hasGenerateTime()) { + mergeGenerateTime(other.getGenerateTime()); + } if (other.hasDestroyTime()) { mergeDestroyTime(other.getDestroyTime()); } @@ -920,164 +1653,484 @@ public Builder mergeFrom( } return this; } - - private java.lang.Object name_ = ""; + + private java.lang.Object name_ = ""; + /** + *
+     * Output only. The resource name for this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in the format
+     * `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. The resource name for this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in the format
+     * `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. The resource name for this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in the format
+     * `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.
+     * 
+ * + * string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. The resource name for this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in the format
+     * `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * Output only. The resource name for this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in the format
+     * `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private int state_ = 0; + /** + *
+     * The current state of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
+     * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState state = 3; + */ + public int getStateValue() { + return state_; + } + /** + *
+     * The current state of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
+     * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState state = 3; + */ + public Builder setStateValue(int value) { + state_ = value; + onChanged(); + return this; + } + /** + *
+     * The current state of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
+     * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState state = 3; + */ + public com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState getState() { + @SuppressWarnings("deprecation") + com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState result = com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.valueOf(state_); + return result == null ? com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.UNRECOGNIZED : result; + } + /** + *
+     * The current state of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
+     * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState state = 3; + */ + public Builder setState(com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The current state of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
+     * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState state = 3; + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private int protectionLevel_ = 0; + /** + *
+     * Output only. The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] describing how crypto operations are
+     * performed with this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
+     * 
+ * + * .google.cloud.kms.v1.ProtectionLevel protection_level = 7; + */ + public int getProtectionLevelValue() { + return protectionLevel_; + } + /** + *
+     * Output only. The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] describing how crypto operations are
+     * performed with this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
+     * 
+ * + * .google.cloud.kms.v1.ProtectionLevel protection_level = 7; + */ + public Builder setProtectionLevelValue(int value) { + protectionLevel_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] describing how crypto operations are
+     * performed with this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
+     * 
+ * + * .google.cloud.kms.v1.ProtectionLevel protection_level = 7; + */ + public com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel() { + @SuppressWarnings("deprecation") + com.google.cloud.kms.v1.ProtectionLevel result = com.google.cloud.kms.v1.ProtectionLevel.valueOf(protectionLevel_); + return result == null ? com.google.cloud.kms.v1.ProtectionLevel.UNRECOGNIZED : result; + } + /** + *
+     * Output only. The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] describing how crypto operations are
+     * performed with this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
+     * 
+ * + * .google.cloud.kms.v1.ProtectionLevel protection_level = 7; + */ + public Builder setProtectionLevel(com.google.cloud.kms.v1.ProtectionLevel value) { + if (value == null) { + throw new NullPointerException(); + } + + protectionLevel_ = value.getNumber(); + onChanged(); + return this; + } /** *
-     * Output only. The resource name for this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in the format
-     * `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.
+     * Output only. The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] describing how crypto operations are
+     * performed with this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
      * 
* - * string name = 1; + * .google.cloud.kms.v1.ProtectionLevel protection_level = 7; */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } + public Builder clearProtectionLevel() { + + protectionLevel_ = 0; + onChanged(); + return this; } + + private int algorithm_ = 0; /** *
-     * Output only. The resource name for this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in the format
-     * `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.
+     * Output only. The [CryptoKeyVersionAlgorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm] that this
+     * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] supports.
      * 
* - * string name = 1; + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 10; */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public int getAlgorithmValue() { + return algorithm_; } /** *
-     * Output only. The resource name for this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in the format
-     * `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.
+     * Output only. The [CryptoKeyVersionAlgorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm] that this
+     * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] supports.
      * 
* - * string name = 1; + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 10; */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; + public Builder setAlgorithmValue(int value) { + algorithm_ = value; onChanged(); return this; } /** *
-     * Output only. The resource name for this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in the format
-     * `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.
+     * Output only. The [CryptoKeyVersionAlgorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm] that this
+     * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] supports.
      * 
* - * string name = 1; + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 10; */ - public Builder clearName() { + public com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm getAlgorithm() { + @SuppressWarnings("deprecation") + com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm result = com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.valueOf(algorithm_); + return result == null ? com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.UNRECOGNIZED : result; + } + /** + *
+     * Output only. The [CryptoKeyVersionAlgorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm] that this
+     * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] supports.
+     * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 10; + */ + public Builder setAlgorithm(com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm value) { + if (value == null) { + throw new NullPointerException(); + } - name_ = getDefaultInstance().getName(); + algorithm_ = value.getNumber(); onChanged(); return this; } /** *
-     * Output only. The resource name for this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in the format
-     * `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.
+     * Output only. The [CryptoKeyVersionAlgorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm] that this
+     * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] supports.
      * 
* - * string name = 1; + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 10; */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + public Builder clearAlgorithm() { - name_ = value; + algorithm_ = 0; onChanged(); return this; } - private int state_ = 0; + private com.google.cloud.kms.v1.KeyOperationAttestation attestation_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.kms.v1.KeyOperationAttestation, com.google.cloud.kms.v1.KeyOperationAttestation.Builder, com.google.cloud.kms.v1.KeyOperationAttestationOrBuilder> attestationBuilder_; /** *
-     * The current state of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
+     * Output only. Statement that was generated and signed by the HSM at key
+     * creation time. Use this statement to verify attributes of the key as stored
+     * on the HSM, independently of Google. Only provided for key versions with
+     * [protection_level][google.cloud.kms.v1.CryptoKeyVersion.protection_level] [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
      * 
* - * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState state = 3; + * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8; */ - public int getStateValue() { - return state_; + public boolean hasAttestation() { + return attestationBuilder_ != null || attestation_ != null; } /** *
-     * The current state of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
+     * Output only. Statement that was generated and signed by the HSM at key
+     * creation time. Use this statement to verify attributes of the key as stored
+     * on the HSM, independently of Google. Only provided for key versions with
+     * [protection_level][google.cloud.kms.v1.CryptoKeyVersion.protection_level] [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
      * 
* - * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState state = 3; + * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8; */ - public Builder setStateValue(int value) { - state_ = value; - onChanged(); + public com.google.cloud.kms.v1.KeyOperationAttestation getAttestation() { + if (attestationBuilder_ == null) { + return attestation_ == null ? com.google.cloud.kms.v1.KeyOperationAttestation.getDefaultInstance() : attestation_; + } else { + return attestationBuilder_.getMessage(); + } + } + /** + *
+     * Output only. Statement that was generated and signed by the HSM at key
+     * creation time. Use this statement to verify attributes of the key as stored
+     * on the HSM, independently of Google. Only provided for key versions with
+     * [protection_level][google.cloud.kms.v1.CryptoKeyVersion.protection_level] [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
+     * 
+ * + * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8; + */ + public Builder setAttestation(com.google.cloud.kms.v1.KeyOperationAttestation value) { + if (attestationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + attestation_ = value; + onChanged(); + } else { + attestationBuilder_.setMessage(value); + } + return this; } /** *
-     * The current state of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
+     * Output only. Statement that was generated and signed by the HSM at key
+     * creation time. Use this statement to verify attributes of the key as stored
+     * on the HSM, independently of Google. Only provided for key versions with
+     * [protection_level][google.cloud.kms.v1.CryptoKeyVersion.protection_level] [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
      * 
* - * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState state = 3; + * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8; */ - public com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState getState() { - @SuppressWarnings("deprecation") - com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState result = com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.valueOf(state_); - return result == null ? com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.UNRECOGNIZED : result; + public Builder setAttestation( + com.google.cloud.kms.v1.KeyOperationAttestation.Builder builderForValue) { + if (attestationBuilder_ == null) { + attestation_ = builderForValue.build(); + onChanged(); + } else { + attestationBuilder_.setMessage(builderForValue.build()); + } + + return this; } /** *
-     * The current state of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
+     * Output only. Statement that was generated and signed by the HSM at key
+     * creation time. Use this statement to verify attributes of the key as stored
+     * on the HSM, independently of Google. Only provided for key versions with
+     * [protection_level][google.cloud.kms.v1.CryptoKeyVersion.protection_level] [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
      * 
* - * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState state = 3; + * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8; */ - public Builder setState(com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState value) { - if (value == null) { - throw new NullPointerException(); + public Builder mergeAttestation(com.google.cloud.kms.v1.KeyOperationAttestation value) { + if (attestationBuilder_ == null) { + if (attestation_ != null) { + attestation_ = + com.google.cloud.kms.v1.KeyOperationAttestation.newBuilder(attestation_).mergeFrom(value).buildPartial(); + } else { + attestation_ = value; + } + onChanged(); + } else { + attestationBuilder_.mergeFrom(value); } - - state_ = value.getNumber(); - onChanged(); + return this; } /** *
-     * The current state of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
+     * Output only. Statement that was generated and signed by the HSM at key
+     * creation time. Use this statement to verify attributes of the key as stored
+     * on the HSM, independently of Google. Only provided for key versions with
+     * [protection_level][google.cloud.kms.v1.CryptoKeyVersion.protection_level] [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
      * 
* - * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState state = 3; + * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8; */ - public Builder clearState() { + public Builder clearAttestation() { + if (attestationBuilder_ == null) { + attestation_ = null; + onChanged(); + } else { + attestation_ = null; + attestationBuilder_ = null; + } + + return this; + } + /** + *
+     * Output only. Statement that was generated and signed by the HSM at key
+     * creation time. Use this statement to verify attributes of the key as stored
+     * on the HSM, independently of Google. Only provided for key versions with
+     * [protection_level][google.cloud.kms.v1.CryptoKeyVersion.protection_level] [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
+     * 
+ * + * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8; + */ + public com.google.cloud.kms.v1.KeyOperationAttestation.Builder getAttestationBuilder() { - state_ = 0; onChanged(); - return this; + return getAttestationFieldBuilder().getBuilder(); + } + /** + *
+     * Output only. Statement that was generated and signed by the HSM at key
+     * creation time. Use this statement to verify attributes of the key as stored
+     * on the HSM, independently of Google. Only provided for key versions with
+     * [protection_level][google.cloud.kms.v1.CryptoKeyVersion.protection_level] [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
+     * 
+ * + * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8; + */ + public com.google.cloud.kms.v1.KeyOperationAttestationOrBuilder getAttestationOrBuilder() { + if (attestationBuilder_ != null) { + return attestationBuilder_.getMessageOrBuilder(); + } else { + return attestation_ == null ? + com.google.cloud.kms.v1.KeyOperationAttestation.getDefaultInstance() : attestation_; + } + } + /** + *
+     * Output only. Statement that was generated and signed by the HSM at key
+     * creation time. Use this statement to verify attributes of the key as stored
+     * on the HSM, independently of Google. Only provided for key versions with
+     * [protection_level][google.cloud.kms.v1.CryptoKeyVersion.protection_level] [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
+     * 
+ * + * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.kms.v1.KeyOperationAttestation, com.google.cloud.kms.v1.KeyOperationAttestation.Builder, com.google.cloud.kms.v1.KeyOperationAttestationOrBuilder> + getAttestationFieldBuilder() { + if (attestationBuilder_ == null) { + attestationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.kms.v1.KeyOperationAttestation, com.google.cloud.kms.v1.KeyOperationAttestation.Builder, com.google.cloud.kms.v1.KeyOperationAttestationOrBuilder>( + getAttestation(), + getParentForChildren(), + isClean()); + attestation_ = null; + } + return attestationBuilder_; } private com.google.protobuf.Timestamp createTime_ = null; @@ -1233,6 +2286,168 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return createTimeBuilder_; } + private com.google.protobuf.Timestamp generateTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> generateTimeBuilder_; + /** + *
+     * Output only. The time this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was
+     * generated.
+     * 
+ * + * .google.protobuf.Timestamp generate_time = 11; + */ + public boolean hasGenerateTime() { + return generateTimeBuilder_ != null || generateTime_ != null; + } + /** + *
+     * Output only. The time this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was
+     * generated.
+     * 
+ * + * .google.protobuf.Timestamp generate_time = 11; + */ + public com.google.protobuf.Timestamp getGenerateTime() { + if (generateTimeBuilder_ == null) { + return generateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : generateTime_; + } else { + return generateTimeBuilder_.getMessage(); + } + } + /** + *
+     * Output only. The time this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was
+     * generated.
+     * 
+ * + * .google.protobuf.Timestamp generate_time = 11; + */ + public Builder setGenerateTime(com.google.protobuf.Timestamp value) { + if (generateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + generateTime_ = value; + onChanged(); + } else { + generateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Output only. The time this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was
+     * generated.
+     * 
+ * + * .google.protobuf.Timestamp generate_time = 11; + */ + public Builder setGenerateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (generateTimeBuilder_ == null) { + generateTime_ = builderForValue.build(); + onChanged(); + } else { + generateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Output only. The time this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was
+     * generated.
+     * 
+ * + * .google.protobuf.Timestamp generate_time = 11; + */ + public Builder mergeGenerateTime(com.google.protobuf.Timestamp value) { + if (generateTimeBuilder_ == null) { + if (generateTime_ != null) { + generateTime_ = + com.google.protobuf.Timestamp.newBuilder(generateTime_).mergeFrom(value).buildPartial(); + } else { + generateTime_ = value; + } + onChanged(); + } else { + generateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Output only. The time this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was
+     * generated.
+     * 
+ * + * .google.protobuf.Timestamp generate_time = 11; + */ + public Builder clearGenerateTime() { + if (generateTimeBuilder_ == null) { + generateTime_ = null; + onChanged(); + } else { + generateTime_ = null; + generateTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * Output only. The time this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was
+     * generated.
+     * 
+ * + * .google.protobuf.Timestamp generate_time = 11; + */ + public com.google.protobuf.Timestamp.Builder getGenerateTimeBuilder() { + + onChanged(); + return getGenerateTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Output only. The time this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was
+     * generated.
+     * 
+ * + * .google.protobuf.Timestamp generate_time = 11; + */ + public com.google.protobuf.TimestampOrBuilder getGenerateTimeOrBuilder() { + if (generateTimeBuilder_ != null) { + return generateTimeBuilder_.getMessageOrBuilder(); + } else { + return generateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : generateTime_; + } + } + /** + *
+     * Output only. The time this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was
+     * generated.
+     * 
+ * + * .google.protobuf.Timestamp generate_time = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getGenerateTimeFieldBuilder() { + if (generateTimeBuilder_ == null) { + generateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getGenerateTime(), + getParentForChildren(), + isClean()); + generateTime_ = null; + } + return generateTimeBuilder_; + } + private com.google.protobuf.Timestamp destroyTime_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> destroyTimeBuilder_; diff --git a/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersionOrBuilder.java b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersionOrBuilder.java index 15d97f920607..02269a2ed683 100644 --- a/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersionOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersionOrBuilder.java @@ -44,6 +44,78 @@ public interface CryptoKeyVersionOrBuilder extends */ com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState getState(); + /** + *
+   * Output only. The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] describing how crypto operations are
+   * performed with this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
+   * 
+ * + * .google.cloud.kms.v1.ProtectionLevel protection_level = 7; + */ + int getProtectionLevelValue(); + /** + *
+   * Output only. The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] describing how crypto operations are
+   * performed with this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
+   * 
+ * + * .google.cloud.kms.v1.ProtectionLevel protection_level = 7; + */ + com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel(); + + /** + *
+   * Output only. The [CryptoKeyVersionAlgorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm] that this
+   * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] supports.
+   * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 10; + */ + int getAlgorithmValue(); + /** + *
+   * Output only. The [CryptoKeyVersionAlgorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm] that this
+   * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] supports.
+   * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 10; + */ + com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm getAlgorithm(); + + /** + *
+   * Output only. Statement that was generated and signed by the HSM at key
+   * creation time. Use this statement to verify attributes of the key as stored
+   * on the HSM, independently of Google. Only provided for key versions with
+   * [protection_level][google.cloud.kms.v1.CryptoKeyVersion.protection_level] [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
+   * 
+ * + * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8; + */ + boolean hasAttestation(); + /** + *
+   * Output only. Statement that was generated and signed by the HSM at key
+   * creation time. Use this statement to verify attributes of the key as stored
+   * on the HSM, independently of Google. Only provided for key versions with
+   * [protection_level][google.cloud.kms.v1.CryptoKeyVersion.protection_level] [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
+   * 
+ * + * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8; + */ + com.google.cloud.kms.v1.KeyOperationAttestation getAttestation(); + /** + *
+   * Output only. Statement that was generated and signed by the HSM at key
+   * creation time. Use this statement to verify attributes of the key as stored
+   * on the HSM, independently of Google. Only provided for key versions with
+   * [protection_level][google.cloud.kms.v1.CryptoKeyVersion.protection_level] [HSM][google.cloud.kms.v1.ProtectionLevel.HSM].
+   * 
+ * + * .google.cloud.kms.v1.KeyOperationAttestation attestation = 8; + */ + com.google.cloud.kms.v1.KeyOperationAttestationOrBuilder getAttestationOrBuilder(); + /** *
    * Output only. The time at which this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] was created.
@@ -69,6 +141,34 @@ public interface CryptoKeyVersionOrBuilder extends
    */
   com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder();
 
+  /**
+   * 
+   * Output only. The time this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was
+   * generated.
+   * 
+ * + * .google.protobuf.Timestamp generate_time = 11; + */ + boolean hasGenerateTime(); + /** + *
+   * Output only. The time this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was
+   * generated.
+   * 
+ * + * .google.protobuf.Timestamp generate_time = 11; + */ + com.google.protobuf.Timestamp getGenerateTime(); + /** + *
+   * Output only. The time this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was
+   * generated.
+   * 
+ * + * .google.protobuf.Timestamp generate_time = 11; + */ + com.google.protobuf.TimestampOrBuilder getGenerateTimeOrBuilder(); + /** *
    * Output only. The time this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material is scheduled
diff --git a/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersionTemplate.java b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersionTemplate.java
new file mode 100644
index 000000000000..338753895967
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersionTemplate.java
@@ -0,0 +1,689 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/kms/v1/resources.proto
+
+package com.google.cloud.kms.v1;
+
+/**
+ * 
+ * A [CryptoKeyVersionTemplate][google.cloud.kms.v1.CryptoKeyVersionTemplate] specifies the properties to use when creating
+ * a new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion], either manually with
+ * [CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion] or
+ * automatically as a result of auto-rotation.
+ * 
+ * + * Protobuf type {@code google.cloud.kms.v1.CryptoKeyVersionTemplate} + */ +public final class CryptoKeyVersionTemplate extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.CryptoKeyVersionTemplate) + CryptoKeyVersionTemplateOrBuilder { +private static final long serialVersionUID = 0L; + // Use CryptoKeyVersionTemplate.newBuilder() to construct. + private CryptoKeyVersionTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CryptoKeyVersionTemplate() { + protectionLevel_ = 0; + algorithm_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CryptoKeyVersionTemplate( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + protectionLevel_ = rawValue; + break; + } + case 24: { + int rawValue = input.readEnum(); + + algorithm_ = rawValue; + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_CryptoKeyVersionTemplate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_CryptoKeyVersionTemplate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.kms.v1.CryptoKeyVersionTemplate.class, com.google.cloud.kms.v1.CryptoKeyVersionTemplate.Builder.class); + } + + public static final int PROTECTION_LEVEL_FIELD_NUMBER = 1; + private int protectionLevel_; + /** + *
+   * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] to use when creating a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] based on
+   * this template. Immutable. Defaults to [SOFTWARE][google.cloud.kms.v1.ProtectionLevel.SOFTWARE].
+   * 
+ * + * .google.cloud.kms.v1.ProtectionLevel protection_level = 1; + */ + public int getProtectionLevelValue() { + return protectionLevel_; + } + /** + *
+   * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] to use when creating a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] based on
+   * this template. Immutable. Defaults to [SOFTWARE][google.cloud.kms.v1.ProtectionLevel.SOFTWARE].
+   * 
+ * + * .google.cloud.kms.v1.ProtectionLevel protection_level = 1; + */ + public com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel() { + @SuppressWarnings("deprecation") + com.google.cloud.kms.v1.ProtectionLevel result = com.google.cloud.kms.v1.ProtectionLevel.valueOf(protectionLevel_); + return result == null ? com.google.cloud.kms.v1.ProtectionLevel.UNRECOGNIZED : result; + } + + public static final int ALGORITHM_FIELD_NUMBER = 3; + private int algorithm_; + /** + *
+   * Required. [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm] to use
+   * when creating a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] based on this template.
+   * For backwards compatibility, GOOGLE_SYMMETRIC_ENCRYPTION is implied if both
+   * this field is omitted and [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] is
+   * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
+   * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 3; + */ + public int getAlgorithmValue() { + return algorithm_; + } + /** + *
+   * Required. [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm] to use
+   * when creating a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] based on this template.
+   * For backwards compatibility, GOOGLE_SYMMETRIC_ENCRYPTION is implied if both
+   * this field is omitted and [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] is
+   * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
+   * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 3; + */ + public com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm getAlgorithm() { + @SuppressWarnings("deprecation") + com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm result = com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.valueOf(algorithm_); + return result == null ? com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (protectionLevel_ != com.google.cloud.kms.v1.ProtectionLevel.PROTECTION_LEVEL_UNSPECIFIED.getNumber()) { + output.writeEnum(1, protectionLevel_); + } + if (algorithm_ != com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED.getNumber()) { + output.writeEnum(3, algorithm_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (protectionLevel_ != com.google.cloud.kms.v1.ProtectionLevel.PROTECTION_LEVEL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, protectionLevel_); + } + if (algorithm_ != com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, algorithm_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.kms.v1.CryptoKeyVersionTemplate)) { + return super.equals(obj); + } + com.google.cloud.kms.v1.CryptoKeyVersionTemplate other = (com.google.cloud.kms.v1.CryptoKeyVersionTemplate) obj; + + boolean result = true; + result = result && protectionLevel_ == other.protectionLevel_; + result = result && algorithm_ == other.algorithm_; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROTECTION_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + protectionLevel_; + hash = (37 * hash) + ALGORITHM_FIELD_NUMBER; + hash = (53 * hash) + algorithm_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.kms.v1.CryptoKeyVersionTemplate parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.kms.v1.CryptoKeyVersionTemplate parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.kms.v1.CryptoKeyVersionTemplate parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.kms.v1.CryptoKeyVersionTemplate parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.kms.v1.CryptoKeyVersionTemplate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.kms.v1.CryptoKeyVersionTemplate parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.kms.v1.CryptoKeyVersionTemplate parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.kms.v1.CryptoKeyVersionTemplate parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.kms.v1.CryptoKeyVersionTemplate parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.kms.v1.CryptoKeyVersionTemplate parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.kms.v1.CryptoKeyVersionTemplate parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.kms.v1.CryptoKeyVersionTemplate parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.kms.v1.CryptoKeyVersionTemplate prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * A [CryptoKeyVersionTemplate][google.cloud.kms.v1.CryptoKeyVersionTemplate] specifies the properties to use when creating
+   * a new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion], either manually with
+   * [CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion] or
+   * automatically as a result of auto-rotation.
+   * 
+ * + * Protobuf type {@code google.cloud.kms.v1.CryptoKeyVersionTemplate} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.kms.v1.CryptoKeyVersionTemplate) + com.google.cloud.kms.v1.CryptoKeyVersionTemplateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_CryptoKeyVersionTemplate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_CryptoKeyVersionTemplate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.kms.v1.CryptoKeyVersionTemplate.class, com.google.cloud.kms.v1.CryptoKeyVersionTemplate.Builder.class); + } + + // Construct using com.google.cloud.kms.v1.CryptoKeyVersionTemplate.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + protectionLevel_ = 0; + + algorithm_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_CryptoKeyVersionTemplate_descriptor; + } + + @java.lang.Override + public com.google.cloud.kms.v1.CryptoKeyVersionTemplate getDefaultInstanceForType() { + return com.google.cloud.kms.v1.CryptoKeyVersionTemplate.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.kms.v1.CryptoKeyVersionTemplate build() { + com.google.cloud.kms.v1.CryptoKeyVersionTemplate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.kms.v1.CryptoKeyVersionTemplate buildPartial() { + com.google.cloud.kms.v1.CryptoKeyVersionTemplate result = new com.google.cloud.kms.v1.CryptoKeyVersionTemplate(this); + result.protectionLevel_ = protectionLevel_; + result.algorithm_ = algorithm_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.kms.v1.CryptoKeyVersionTemplate) { + return mergeFrom((com.google.cloud.kms.v1.CryptoKeyVersionTemplate)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.kms.v1.CryptoKeyVersionTemplate other) { + if (other == com.google.cloud.kms.v1.CryptoKeyVersionTemplate.getDefaultInstance()) return this; + if (other.protectionLevel_ != 0) { + setProtectionLevelValue(other.getProtectionLevelValue()); + } + if (other.algorithm_ != 0) { + setAlgorithmValue(other.getAlgorithmValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.kms.v1.CryptoKeyVersionTemplate parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.kms.v1.CryptoKeyVersionTemplate) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int protectionLevel_ = 0; + /** + *
+     * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] to use when creating a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] based on
+     * this template. Immutable. Defaults to [SOFTWARE][google.cloud.kms.v1.ProtectionLevel.SOFTWARE].
+     * 
+ * + * .google.cloud.kms.v1.ProtectionLevel protection_level = 1; + */ + public int getProtectionLevelValue() { + return protectionLevel_; + } + /** + *
+     * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] to use when creating a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] based on
+     * this template. Immutable. Defaults to [SOFTWARE][google.cloud.kms.v1.ProtectionLevel.SOFTWARE].
+     * 
+ * + * .google.cloud.kms.v1.ProtectionLevel protection_level = 1; + */ + public Builder setProtectionLevelValue(int value) { + protectionLevel_ = value; + onChanged(); + return this; + } + /** + *
+     * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] to use when creating a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] based on
+     * this template. Immutable. Defaults to [SOFTWARE][google.cloud.kms.v1.ProtectionLevel.SOFTWARE].
+     * 
+ * + * .google.cloud.kms.v1.ProtectionLevel protection_level = 1; + */ + public com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel() { + @SuppressWarnings("deprecation") + com.google.cloud.kms.v1.ProtectionLevel result = com.google.cloud.kms.v1.ProtectionLevel.valueOf(protectionLevel_); + return result == null ? com.google.cloud.kms.v1.ProtectionLevel.UNRECOGNIZED : result; + } + /** + *
+     * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] to use when creating a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] based on
+     * this template. Immutable. Defaults to [SOFTWARE][google.cloud.kms.v1.ProtectionLevel.SOFTWARE].
+     * 
+ * + * .google.cloud.kms.v1.ProtectionLevel protection_level = 1; + */ + public Builder setProtectionLevel(com.google.cloud.kms.v1.ProtectionLevel value) { + if (value == null) { + throw new NullPointerException(); + } + + protectionLevel_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] to use when creating a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] based on
+     * this template. Immutable. Defaults to [SOFTWARE][google.cloud.kms.v1.ProtectionLevel.SOFTWARE].
+     * 
+ * + * .google.cloud.kms.v1.ProtectionLevel protection_level = 1; + */ + public Builder clearProtectionLevel() { + + protectionLevel_ = 0; + onChanged(); + return this; + } + + private int algorithm_ = 0; + /** + *
+     * Required. [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm] to use
+     * when creating a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] based on this template.
+     * For backwards compatibility, GOOGLE_SYMMETRIC_ENCRYPTION is implied if both
+     * this field is omitted and [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] is
+     * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
+     * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 3; + */ + public int getAlgorithmValue() { + return algorithm_; + } + /** + *
+     * Required. [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm] to use
+     * when creating a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] based on this template.
+     * For backwards compatibility, GOOGLE_SYMMETRIC_ENCRYPTION is implied if both
+     * this field is omitted and [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] is
+     * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
+     * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 3; + */ + public Builder setAlgorithmValue(int value) { + algorithm_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm] to use
+     * when creating a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] based on this template.
+     * For backwards compatibility, GOOGLE_SYMMETRIC_ENCRYPTION is implied if both
+     * this field is omitted and [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] is
+     * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
+     * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 3; + */ + public com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm getAlgorithm() { + @SuppressWarnings("deprecation") + com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm result = com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.valueOf(algorithm_); + return result == null ? com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.UNRECOGNIZED : result; + } + /** + *
+     * Required. [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm] to use
+     * when creating a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] based on this template.
+     * For backwards compatibility, GOOGLE_SYMMETRIC_ENCRYPTION is implied if both
+     * this field is omitted and [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] is
+     * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
+     * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 3; + */ + public Builder setAlgorithm(com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm value) { + if (value == null) { + throw new NullPointerException(); + } + + algorithm_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Required. [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm] to use
+     * when creating a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] based on this template.
+     * For backwards compatibility, GOOGLE_SYMMETRIC_ENCRYPTION is implied if both
+     * this field is omitted and [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] is
+     * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
+     * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 3; + */ + public Builder clearAlgorithm() { + + algorithm_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.CryptoKeyVersionTemplate) + } + + // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.CryptoKeyVersionTemplate) + private static final com.google.cloud.kms.v1.CryptoKeyVersionTemplate DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.kms.v1.CryptoKeyVersionTemplate(); + } + + public static com.google.cloud.kms.v1.CryptoKeyVersionTemplate getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CryptoKeyVersionTemplate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CryptoKeyVersionTemplate(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.kms.v1.CryptoKeyVersionTemplate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersionTemplateOrBuilder.java b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersionTemplateOrBuilder.java new file mode 100644 index 000000000000..a1a6ff1d4e16 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersionTemplateOrBuilder.java @@ -0,0 +1,53 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/kms/v1/resources.proto + +package com.google.cloud.kms.v1; + +public interface CryptoKeyVersionTemplateOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.CryptoKeyVersionTemplate) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] to use when creating a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] based on
+   * this template. Immutable. Defaults to [SOFTWARE][google.cloud.kms.v1.ProtectionLevel.SOFTWARE].
+   * 
+ * + * .google.cloud.kms.v1.ProtectionLevel protection_level = 1; + */ + int getProtectionLevelValue(); + /** + *
+   * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] to use when creating a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] based on
+   * this template. Immutable. Defaults to [SOFTWARE][google.cloud.kms.v1.ProtectionLevel.SOFTWARE].
+   * 
+ * + * .google.cloud.kms.v1.ProtectionLevel protection_level = 1; + */ + com.google.cloud.kms.v1.ProtectionLevel getProtectionLevel(); + + /** + *
+   * Required. [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm] to use
+   * when creating a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] based on this template.
+   * For backwards compatibility, GOOGLE_SYMMETRIC_ENCRYPTION is implied if both
+   * this field is omitted and [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] is
+   * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
+   * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 3; + */ + int getAlgorithmValue(); + /** + *
+   * Required. [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm] to use
+   * when creating a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] based on this template.
+   * For backwards compatibility, GOOGLE_SYMMETRIC_ENCRYPTION is implied if both
+   * this field is omitted and [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] is
+   * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
+   * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 3; + */ + com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm getAlgorithm(); +} diff --git a/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/Digest.java b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/Digest.java new file mode 100644 index 000000000000..c4c97b9c45de --- /dev/null +++ b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/Digest.java @@ -0,0 +1,763 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/kms/v1/service.proto + +package com.google.cloud.kms.v1; + +/** + *
+ * A [Digest][google.cloud.kms.v1.Digest] holds a cryptographic message digest.
+ * 
+ * + * Protobuf type {@code google.cloud.kms.v1.Digest} + */ +public final class Digest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.Digest) + DigestOrBuilder { +private static final long serialVersionUID = 0L; + // Use Digest.newBuilder() to construct. + private Digest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Digest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Digest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + digestCase_ = 1; + digest_ = input.readBytes(); + break; + } + case 18: { + digestCase_ = 2; + digest_ = input.readBytes(); + break; + } + case 26: { + digestCase_ = 3; + digest_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_Digest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_Digest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.kms.v1.Digest.class, com.google.cloud.kms.v1.Digest.Builder.class); + } + + private int digestCase_ = 0; + private java.lang.Object digest_; + public enum DigestCase + implements com.google.protobuf.Internal.EnumLite { + SHA256(1), + SHA384(2), + SHA512(3), + DIGEST_NOT_SET(0); + private final int value; + private DigestCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DigestCase valueOf(int value) { + return forNumber(value); + } + + public static DigestCase forNumber(int value) { + switch (value) { + case 1: return SHA256; + case 2: return SHA384; + case 3: return SHA512; + case 0: return DIGEST_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public DigestCase + getDigestCase() { + return DigestCase.forNumber( + digestCase_); + } + + public static final int SHA256_FIELD_NUMBER = 1; + /** + *
+   * A message digest produced with the SHA-256 algorithm.
+   * 
+ * + * bytes sha256 = 1; + */ + public com.google.protobuf.ByteString getSha256() { + if (digestCase_ == 1) { + return (com.google.protobuf.ByteString) digest_; + } + return com.google.protobuf.ByteString.EMPTY; + } + + public static final int SHA384_FIELD_NUMBER = 2; + /** + *
+   * A message digest produced with the SHA-384 algorithm.
+   * 
+ * + * bytes sha384 = 2; + */ + public com.google.protobuf.ByteString getSha384() { + if (digestCase_ == 2) { + return (com.google.protobuf.ByteString) digest_; + } + return com.google.protobuf.ByteString.EMPTY; + } + + public static final int SHA512_FIELD_NUMBER = 3; + /** + *
+   * A message digest produced with the SHA-512 algorithm.
+   * 
+ * + * bytes sha512 = 3; + */ + public com.google.protobuf.ByteString getSha512() { + if (digestCase_ == 3) { + return (com.google.protobuf.ByteString) digest_; + } + return com.google.protobuf.ByteString.EMPTY; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (digestCase_ == 1) { + output.writeBytes( + 1, (com.google.protobuf.ByteString) digest_); + } + if (digestCase_ == 2) { + output.writeBytes( + 2, (com.google.protobuf.ByteString) digest_); + } + if (digestCase_ == 3) { + output.writeBytes( + 3, (com.google.protobuf.ByteString) digest_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (digestCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize( + 1, (com.google.protobuf.ByteString) digest_); + } + if (digestCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize( + 2, (com.google.protobuf.ByteString) digest_); + } + if (digestCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize( + 3, (com.google.protobuf.ByteString) digest_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.kms.v1.Digest)) { + return super.equals(obj); + } + com.google.cloud.kms.v1.Digest other = (com.google.cloud.kms.v1.Digest) obj; + + boolean result = true; + result = result && getDigestCase().equals( + other.getDigestCase()); + if (!result) return false; + switch (digestCase_) { + case 1: + result = result && getSha256() + .equals(other.getSha256()); + break; + case 2: + result = result && getSha384() + .equals(other.getSha384()); + break; + case 3: + result = result && getSha512() + .equals(other.getSha512()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (digestCase_) { + case 1: + hash = (37 * hash) + SHA256_FIELD_NUMBER; + hash = (53 * hash) + getSha256().hashCode(); + break; + case 2: + hash = (37 * hash) + SHA384_FIELD_NUMBER; + hash = (53 * hash) + getSha384().hashCode(); + break; + case 3: + hash = (37 * hash) + SHA512_FIELD_NUMBER; + hash = (53 * hash) + getSha512().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.kms.v1.Digest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.kms.v1.Digest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.kms.v1.Digest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.kms.v1.Digest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.kms.v1.Digest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.kms.v1.Digest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.kms.v1.Digest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.kms.v1.Digest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.kms.v1.Digest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.kms.v1.Digest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.kms.v1.Digest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.kms.v1.Digest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.kms.v1.Digest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * A [Digest][google.cloud.kms.v1.Digest] holds a cryptographic message digest.
+   * 
+ * + * Protobuf type {@code google.cloud.kms.v1.Digest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.kms.v1.Digest) + com.google.cloud.kms.v1.DigestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_Digest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_Digest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.kms.v1.Digest.class, com.google.cloud.kms.v1.Digest.Builder.class); + } + + // Construct using com.google.cloud.kms.v1.Digest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + digestCase_ = 0; + digest_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_Digest_descriptor; + } + + @java.lang.Override + public com.google.cloud.kms.v1.Digest getDefaultInstanceForType() { + return com.google.cloud.kms.v1.Digest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.kms.v1.Digest build() { + com.google.cloud.kms.v1.Digest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.kms.v1.Digest buildPartial() { + com.google.cloud.kms.v1.Digest result = new com.google.cloud.kms.v1.Digest(this); + if (digestCase_ == 1) { + result.digest_ = digest_; + } + if (digestCase_ == 2) { + result.digest_ = digest_; + } + if (digestCase_ == 3) { + result.digest_ = digest_; + } + result.digestCase_ = digestCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.kms.v1.Digest) { + return mergeFrom((com.google.cloud.kms.v1.Digest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.kms.v1.Digest other) { + if (other == com.google.cloud.kms.v1.Digest.getDefaultInstance()) return this; + switch (other.getDigestCase()) { + case SHA256: { + setSha256(other.getSha256()); + break; + } + case SHA384: { + setSha384(other.getSha384()); + break; + } + case SHA512: { + setSha512(other.getSha512()); + break; + } + case DIGEST_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.kms.v1.Digest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.kms.v1.Digest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int digestCase_ = 0; + private java.lang.Object digest_; + public DigestCase + getDigestCase() { + return DigestCase.forNumber( + digestCase_); + } + + public Builder clearDigest() { + digestCase_ = 0; + digest_ = null; + onChanged(); + return this; + } + + + /** + *
+     * A message digest produced with the SHA-256 algorithm.
+     * 
+ * + * bytes sha256 = 1; + */ + public com.google.protobuf.ByteString getSha256() { + if (digestCase_ == 1) { + return (com.google.protobuf.ByteString) digest_; + } + return com.google.protobuf.ByteString.EMPTY; + } + /** + *
+     * A message digest produced with the SHA-256 algorithm.
+     * 
+ * + * bytes sha256 = 1; + */ + public Builder setSha256(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + digestCase_ = 1; + digest_ = value; + onChanged(); + return this; + } + /** + *
+     * A message digest produced with the SHA-256 algorithm.
+     * 
+ * + * bytes sha256 = 1; + */ + public Builder clearSha256() { + if (digestCase_ == 1) { + digestCase_ = 0; + digest_ = null; + onChanged(); + } + return this; + } + + /** + *
+     * A message digest produced with the SHA-384 algorithm.
+     * 
+ * + * bytes sha384 = 2; + */ + public com.google.protobuf.ByteString getSha384() { + if (digestCase_ == 2) { + return (com.google.protobuf.ByteString) digest_; + } + return com.google.protobuf.ByteString.EMPTY; + } + /** + *
+     * A message digest produced with the SHA-384 algorithm.
+     * 
+ * + * bytes sha384 = 2; + */ + public Builder setSha384(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + digestCase_ = 2; + digest_ = value; + onChanged(); + return this; + } + /** + *
+     * A message digest produced with the SHA-384 algorithm.
+     * 
+ * + * bytes sha384 = 2; + */ + public Builder clearSha384() { + if (digestCase_ == 2) { + digestCase_ = 0; + digest_ = null; + onChanged(); + } + return this; + } + + /** + *
+     * A message digest produced with the SHA-512 algorithm.
+     * 
+ * + * bytes sha512 = 3; + */ + public com.google.protobuf.ByteString getSha512() { + if (digestCase_ == 3) { + return (com.google.protobuf.ByteString) digest_; + } + return com.google.protobuf.ByteString.EMPTY; + } + /** + *
+     * A message digest produced with the SHA-512 algorithm.
+     * 
+ * + * bytes sha512 = 3; + */ + public Builder setSha512(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + digestCase_ = 3; + digest_ = value; + onChanged(); + return this; + } + /** + *
+     * A message digest produced with the SHA-512 algorithm.
+     * 
+ * + * bytes sha512 = 3; + */ + public Builder clearSha512() { + if (digestCase_ == 3) { + digestCase_ = 0; + digest_ = null; + onChanged(); + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.Digest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.Digest) + private static final com.google.cloud.kms.v1.Digest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.kms.v1.Digest(); + } + + public static com.google.cloud.kms.v1.Digest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Digest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Digest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.kms.v1.Digest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DigestOrBuilder.java b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DigestOrBuilder.java new file mode 100644 index 000000000000..15fc745262ee --- /dev/null +++ b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/DigestOrBuilder.java @@ -0,0 +1,38 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/kms/v1/service.proto + +package com.google.cloud.kms.v1; + +public interface DigestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.Digest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * A message digest produced with the SHA-256 algorithm.
+   * 
+ * + * bytes sha256 = 1; + */ + com.google.protobuf.ByteString getSha256(); + + /** + *
+   * A message digest produced with the SHA-384 algorithm.
+   * 
+ * + * bytes sha384 = 2; + */ + com.google.protobuf.ByteString getSha384(); + + /** + *
+   * A message digest produced with the SHA-512 algorithm.
+   * 
+ * + * bytes sha512 = 3; + */ + com.google.protobuf.ByteString getSha512(); + + public com.google.cloud.kms.v1.Digest.DigestCase getDigestCase(); +} diff --git a/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EncryptRequest.java b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EncryptRequest.java index b6a8a6c4b51a..9975ed19c1c5 100644 --- a/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EncryptRequest.java +++ b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EncryptRequest.java @@ -150,6 +150,12 @@ public java.lang.String getName() { /** *
    * Required. The data to encrypt. Must be no larger than 64KiB.
+   * The maximum size depends on the key version's
+   * [protection_level][google.cloud.kms.v1.CryptoKeyVersionTemplate.protection_level]. For
+   * [SOFTWARE][google.cloud.kms.v1.ProtectionLevel.SOFTWARE] keys, the plaintext must be no larger
+   * than 64KiB. For [HSM][google.cloud.kms.v1.ProtectionLevel.HSM] keys, the combined length of the
+   * plaintext and additional_authenticated_data fields must be no larger than
+   * 8KiB.
    * 
* * bytes plaintext = 2; @@ -163,8 +169,13 @@ public com.google.protobuf.ByteString getPlaintext() { /** *
    * Optional data that, if specified, must also be provided during decryption
-   * through [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data].  Must be no
-   * larger than 64KiB.
+   * through [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data].
+   * The maximum size depends on the key version's
+   * [protection_level][google.cloud.kms.v1.CryptoKeyVersionTemplate.protection_level]. For
+   * [SOFTWARE][google.cloud.kms.v1.ProtectionLevel.SOFTWARE] keys, the AAD must be no larger than
+   * 64KiB. For [HSM][google.cloud.kms.v1.ProtectionLevel.HSM] keys, the combined length of the
+   * plaintext and additional_authenticated_data fields must be no larger than
+   * 8KiB.
    * 
* * bytes additional_authenticated_data = 3; @@ -622,6 +633,12 @@ public Builder setNameBytes( /** *
      * Required. The data to encrypt. Must be no larger than 64KiB.
+     * The maximum size depends on the key version's
+     * [protection_level][google.cloud.kms.v1.CryptoKeyVersionTemplate.protection_level]. For
+     * [SOFTWARE][google.cloud.kms.v1.ProtectionLevel.SOFTWARE] keys, the plaintext must be no larger
+     * than 64KiB. For [HSM][google.cloud.kms.v1.ProtectionLevel.HSM] keys, the combined length of the
+     * plaintext and additional_authenticated_data fields must be no larger than
+     * 8KiB.
      * 
* * bytes plaintext = 2; @@ -632,6 +649,12 @@ public com.google.protobuf.ByteString getPlaintext() { /** *
      * Required. The data to encrypt. Must be no larger than 64KiB.
+     * The maximum size depends on the key version's
+     * [protection_level][google.cloud.kms.v1.CryptoKeyVersionTemplate.protection_level]. For
+     * [SOFTWARE][google.cloud.kms.v1.ProtectionLevel.SOFTWARE] keys, the plaintext must be no larger
+     * than 64KiB. For [HSM][google.cloud.kms.v1.ProtectionLevel.HSM] keys, the combined length of the
+     * plaintext and additional_authenticated_data fields must be no larger than
+     * 8KiB.
      * 
* * bytes plaintext = 2; @@ -648,6 +671,12 @@ public Builder setPlaintext(com.google.protobuf.ByteString value) { /** *
      * Required. The data to encrypt. Must be no larger than 64KiB.
+     * The maximum size depends on the key version's
+     * [protection_level][google.cloud.kms.v1.CryptoKeyVersionTemplate.protection_level]. For
+     * [SOFTWARE][google.cloud.kms.v1.ProtectionLevel.SOFTWARE] keys, the plaintext must be no larger
+     * than 64KiB. For [HSM][google.cloud.kms.v1.ProtectionLevel.HSM] keys, the combined length of the
+     * plaintext and additional_authenticated_data fields must be no larger than
+     * 8KiB.
      * 
* * bytes plaintext = 2; @@ -663,8 +692,13 @@ public Builder clearPlaintext() { /** *
      * Optional data that, if specified, must also be provided during decryption
-     * through [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data].  Must be no
-     * larger than 64KiB.
+     * through [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data].
+     * The maximum size depends on the key version's
+     * [protection_level][google.cloud.kms.v1.CryptoKeyVersionTemplate.protection_level]. For
+     * [SOFTWARE][google.cloud.kms.v1.ProtectionLevel.SOFTWARE] keys, the AAD must be no larger than
+     * 64KiB. For [HSM][google.cloud.kms.v1.ProtectionLevel.HSM] keys, the combined length of the
+     * plaintext and additional_authenticated_data fields must be no larger than
+     * 8KiB.
      * 
* * bytes additional_authenticated_data = 3; @@ -675,8 +709,13 @@ public com.google.protobuf.ByteString getAdditionalAuthenticatedData() { /** *
      * Optional data that, if specified, must also be provided during decryption
-     * through [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data].  Must be no
-     * larger than 64KiB.
+     * through [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data].
+     * The maximum size depends on the key version's
+     * [protection_level][google.cloud.kms.v1.CryptoKeyVersionTemplate.protection_level]. For
+     * [SOFTWARE][google.cloud.kms.v1.ProtectionLevel.SOFTWARE] keys, the AAD must be no larger than
+     * 64KiB. For [HSM][google.cloud.kms.v1.ProtectionLevel.HSM] keys, the combined length of the
+     * plaintext and additional_authenticated_data fields must be no larger than
+     * 8KiB.
      * 
* * bytes additional_authenticated_data = 3; @@ -693,8 +732,13 @@ public Builder setAdditionalAuthenticatedData(com.google.protobuf.ByteString val /** *
      * Optional data that, if specified, must also be provided during decryption
-     * through [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data].  Must be no
-     * larger than 64KiB.
+     * through [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data].
+     * The maximum size depends on the key version's
+     * [protection_level][google.cloud.kms.v1.CryptoKeyVersionTemplate.protection_level]. For
+     * [SOFTWARE][google.cloud.kms.v1.ProtectionLevel.SOFTWARE] keys, the AAD must be no larger than
+     * 64KiB. For [HSM][google.cloud.kms.v1.ProtectionLevel.HSM] keys, the combined length of the
+     * plaintext and additional_authenticated_data fields must be no larger than
+     * 8KiB.
      * 
* * bytes additional_authenticated_data = 3; diff --git a/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EncryptRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EncryptRequestOrBuilder.java index 22e3c758b5c2..aed92c3e7487 100644 --- a/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EncryptRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EncryptRequestOrBuilder.java @@ -34,6 +34,12 @@ public interface EncryptRequestOrBuilder extends /** *
    * Required. The data to encrypt. Must be no larger than 64KiB.
+   * The maximum size depends on the key version's
+   * [protection_level][google.cloud.kms.v1.CryptoKeyVersionTemplate.protection_level]. For
+   * [SOFTWARE][google.cloud.kms.v1.ProtectionLevel.SOFTWARE] keys, the plaintext must be no larger
+   * than 64KiB. For [HSM][google.cloud.kms.v1.ProtectionLevel.HSM] keys, the combined length of the
+   * plaintext and additional_authenticated_data fields must be no larger than
+   * 8KiB.
    * 
* * bytes plaintext = 2; @@ -43,8 +49,13 @@ public interface EncryptRequestOrBuilder extends /** *
    * Optional data that, if specified, must also be provided during decryption
-   * through [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data].  Must be no
-   * larger than 64KiB.
+   * through [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data].
+   * The maximum size depends on the key version's
+   * [protection_level][google.cloud.kms.v1.CryptoKeyVersionTemplate.protection_level]. For
+   * [SOFTWARE][google.cloud.kms.v1.ProtectionLevel.SOFTWARE] keys, the AAD must be no larger than
+   * 64KiB. For [HSM][google.cloud.kms.v1.ProtectionLevel.HSM] keys, the combined length of the
+   * plaintext and additional_authenticated_data fields must be no larger than
+   * 8KiB.
    * 
* * bytes additional_authenticated_data = 3; diff --git a/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetPublicKeyRequest.java b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetPublicKeyRequest.java new file mode 100644 index 000000000000..27a6d1838877 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetPublicKeyRequest.java @@ -0,0 +1,584 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/kms/v1/service.proto + +package com.google.cloud.kms.v1; + +/** + *
+ * Request message for [KeyManagementService.GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey].
+ * 
+ * + * Protobuf type {@code google.cloud.kms.v1.GetPublicKeyRequest} + */ +public final class GetPublicKeyRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.GetPublicKeyRequest) + GetPublicKeyRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetPublicKeyRequest.newBuilder() to construct. + private GetPublicKeyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetPublicKeyRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetPublicKeyRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_GetPublicKeyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_GetPublicKeyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.kms.v1.GetPublicKeyRequest.class, com.google.cloud.kms.v1.GetPublicKeyRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key to
+   * get.
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key to
+   * get.
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.kms.v1.GetPublicKeyRequest)) { + return super.equals(obj); + } + com.google.cloud.kms.v1.GetPublicKeyRequest other = (com.google.cloud.kms.v1.GetPublicKeyRequest) obj; + + boolean result = true; + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.kms.v1.GetPublicKeyRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.kms.v1.GetPublicKeyRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.kms.v1.GetPublicKeyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.kms.v1.GetPublicKeyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.kms.v1.GetPublicKeyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.kms.v1.GetPublicKeyRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.kms.v1.GetPublicKeyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.kms.v1.GetPublicKeyRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.kms.v1.GetPublicKeyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.kms.v1.GetPublicKeyRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.kms.v1.GetPublicKeyRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.kms.v1.GetPublicKeyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.kms.v1.GetPublicKeyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request message for [KeyManagementService.GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey].
+   * 
+ * + * Protobuf type {@code google.cloud.kms.v1.GetPublicKeyRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.kms.v1.GetPublicKeyRequest) + com.google.cloud.kms.v1.GetPublicKeyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_GetPublicKeyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_GetPublicKeyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.kms.v1.GetPublicKeyRequest.class, com.google.cloud.kms.v1.GetPublicKeyRequest.Builder.class); + } + + // Construct using com.google.cloud.kms.v1.GetPublicKeyRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_GetPublicKeyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.kms.v1.GetPublicKeyRequest getDefaultInstanceForType() { + return com.google.cloud.kms.v1.GetPublicKeyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.kms.v1.GetPublicKeyRequest build() { + com.google.cloud.kms.v1.GetPublicKeyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.kms.v1.GetPublicKeyRequest buildPartial() { + com.google.cloud.kms.v1.GetPublicKeyRequest result = new com.google.cloud.kms.v1.GetPublicKeyRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.kms.v1.GetPublicKeyRequest) { + return mergeFrom((com.google.cloud.kms.v1.GetPublicKeyRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.kms.v1.GetPublicKeyRequest other) { + if (other == com.google.cloud.kms.v1.GetPublicKeyRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.kms.v1.GetPublicKeyRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.kms.v1.GetPublicKeyRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key to
+     * get.
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key to
+     * get.
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key to
+     * get.
+     * 
+ * + * string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key to
+     * get.
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key to
+     * get.
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.GetPublicKeyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.GetPublicKeyRequest) + private static final com.google.cloud.kms.v1.GetPublicKeyRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.kms.v1.GetPublicKeyRequest(); + } + + public static com.google.cloud.kms.v1.GetPublicKeyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetPublicKeyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetPublicKeyRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.kms.v1.GetPublicKeyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetPublicKeyRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetPublicKeyRequestOrBuilder.java new file mode 100644 index 000000000000..9f9e10784a8d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/GetPublicKeyRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/kms/v1/service.proto + +package com.google.cloud.kms.v1; + +public interface GetPublicKeyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.GetPublicKeyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key to
+   * get.
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + *
+   * The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key to
+   * get.
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyOperationAttestation.java b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyOperationAttestation.java new file mode 100644 index 000000000000..3c04c08a79bb --- /dev/null +++ b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyOperationAttestation.java @@ -0,0 +1,728 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/kms/v1/resources.proto + +package com.google.cloud.kms.v1; + +/** + *
+ * Contains an HSM-generated attestation about a key operation.
+ * 
+ * + * Protobuf type {@code google.cloud.kms.v1.KeyOperationAttestation} + */ +public final class KeyOperationAttestation extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.KeyOperationAttestation) + KeyOperationAttestationOrBuilder { +private static final long serialVersionUID = 0L; + // Use KeyOperationAttestation.newBuilder() to construct. + private KeyOperationAttestation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private KeyOperationAttestation() { + format_ = 0; + content_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private KeyOperationAttestation( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 32: { + int rawValue = input.readEnum(); + + format_ = rawValue; + break; + } + case 42: { + + content_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_KeyOperationAttestation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_KeyOperationAttestation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.kms.v1.KeyOperationAttestation.class, com.google.cloud.kms.v1.KeyOperationAttestation.Builder.class); + } + + /** + *
+   * Attestion formats provided by the HSM.
+   * 
+ * + * Protobuf enum {@code google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat} + */ + public enum AttestationFormat + implements com.google.protobuf.ProtocolMessageEnum { + /** + * ATTESTATION_FORMAT_UNSPECIFIED = 0; + */ + ATTESTATION_FORMAT_UNSPECIFIED(0), + /** + *
+     * Cavium HSM attestation compressed with gzip. Note that this format is
+     * defined by Cavium and subject to change at any time.
+     * 
+ * + * CAVIUM_V1_COMPRESSED = 3; + */ + CAVIUM_V1_COMPRESSED(3), + UNRECOGNIZED(-1), + ; + + /** + * ATTESTATION_FORMAT_UNSPECIFIED = 0; + */ + public static final int ATTESTATION_FORMAT_UNSPECIFIED_VALUE = 0; + /** + *
+     * Cavium HSM attestation compressed with gzip. Note that this format is
+     * defined by Cavium and subject to change at any time.
+     * 
+ * + * CAVIUM_V1_COMPRESSED = 3; + */ + public static final int CAVIUM_V1_COMPRESSED_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static AttestationFormat valueOf(int value) { + return forNumber(value); + } + + public static AttestationFormat forNumber(int value) { + switch (value) { + case 0: return ATTESTATION_FORMAT_UNSPECIFIED; + case 3: return CAVIUM_V1_COMPRESSED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + AttestationFormat> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AttestationFormat findValueByNumber(int number) { + return AttestationFormat.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.kms.v1.KeyOperationAttestation.getDescriptor().getEnumTypes().get(0); + } + + private static final AttestationFormat[] VALUES = values(); + + public static AttestationFormat valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private AttestationFormat(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat) + } + + public static final int FORMAT_FIELD_NUMBER = 4; + private int format_; + /** + *
+   * Output only. The format of the attestation data.
+   * 
+ * + * .google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat format = 4; + */ + public int getFormatValue() { + return format_; + } + /** + *
+   * Output only. The format of the attestation data.
+   * 
+ * + * .google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat format = 4; + */ + public com.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat getFormat() { + @SuppressWarnings("deprecation") + com.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat result = com.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat.valueOf(format_); + return result == null ? com.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat.UNRECOGNIZED : result; + } + + public static final int CONTENT_FIELD_NUMBER = 5; + private com.google.protobuf.ByteString content_; + /** + *
+   * Output only. The attestation data provided by the HSM when the key
+   * operation was performed.
+   * 
+ * + * bytes content = 5; + */ + public com.google.protobuf.ByteString getContent() { + return content_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (format_ != com.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat.ATTESTATION_FORMAT_UNSPECIFIED.getNumber()) { + output.writeEnum(4, format_); + } + if (!content_.isEmpty()) { + output.writeBytes(5, content_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (format_ != com.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat.ATTESTATION_FORMAT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, format_); + } + if (!content_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(5, content_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.kms.v1.KeyOperationAttestation)) { + return super.equals(obj); + } + com.google.cloud.kms.v1.KeyOperationAttestation other = (com.google.cloud.kms.v1.KeyOperationAttestation) obj; + + boolean result = true; + result = result && format_ == other.format_; + result = result && getContent() + .equals(other.getContent()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FORMAT_FIELD_NUMBER; + hash = (53 * hash) + format_; + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.kms.v1.KeyOperationAttestation parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.kms.v1.KeyOperationAttestation parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.kms.v1.KeyOperationAttestation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.kms.v1.KeyOperationAttestation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.kms.v1.KeyOperationAttestation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.kms.v1.KeyOperationAttestation parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.kms.v1.KeyOperationAttestation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.kms.v1.KeyOperationAttestation parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.kms.v1.KeyOperationAttestation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.kms.v1.KeyOperationAttestation parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.kms.v1.KeyOperationAttestation parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.kms.v1.KeyOperationAttestation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.kms.v1.KeyOperationAttestation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Contains an HSM-generated attestation about a key operation.
+   * 
+ * + * Protobuf type {@code google.cloud.kms.v1.KeyOperationAttestation} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.kms.v1.KeyOperationAttestation) + com.google.cloud.kms.v1.KeyOperationAttestationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_KeyOperationAttestation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_KeyOperationAttestation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.kms.v1.KeyOperationAttestation.class, com.google.cloud.kms.v1.KeyOperationAttestation.Builder.class); + } + + // Construct using com.google.cloud.kms.v1.KeyOperationAttestation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + format_ = 0; + + content_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_KeyOperationAttestation_descriptor; + } + + @java.lang.Override + public com.google.cloud.kms.v1.KeyOperationAttestation getDefaultInstanceForType() { + return com.google.cloud.kms.v1.KeyOperationAttestation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.kms.v1.KeyOperationAttestation build() { + com.google.cloud.kms.v1.KeyOperationAttestation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.kms.v1.KeyOperationAttestation buildPartial() { + com.google.cloud.kms.v1.KeyOperationAttestation result = new com.google.cloud.kms.v1.KeyOperationAttestation(this); + result.format_ = format_; + result.content_ = content_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.kms.v1.KeyOperationAttestation) { + return mergeFrom((com.google.cloud.kms.v1.KeyOperationAttestation)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.kms.v1.KeyOperationAttestation other) { + if (other == com.google.cloud.kms.v1.KeyOperationAttestation.getDefaultInstance()) return this; + if (other.format_ != 0) { + setFormatValue(other.getFormatValue()); + } + if (other.getContent() != com.google.protobuf.ByteString.EMPTY) { + setContent(other.getContent()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.kms.v1.KeyOperationAttestation parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.kms.v1.KeyOperationAttestation) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int format_ = 0; + /** + *
+     * Output only. The format of the attestation data.
+     * 
+ * + * .google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat format = 4; + */ + public int getFormatValue() { + return format_; + } + /** + *
+     * Output only. The format of the attestation data.
+     * 
+ * + * .google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat format = 4; + */ + public Builder setFormatValue(int value) { + format_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. The format of the attestation data.
+     * 
+ * + * .google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat format = 4; + */ + public com.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat getFormat() { + @SuppressWarnings("deprecation") + com.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat result = com.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat.valueOf(format_); + return result == null ? com.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat.UNRECOGNIZED : result; + } + /** + *
+     * Output only. The format of the attestation data.
+     * 
+ * + * .google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat format = 4; + */ + public Builder setFormat(com.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat value) { + if (value == null) { + throw new NullPointerException(); + } + + format_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Output only. The format of the attestation data.
+     * 
+ * + * .google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat format = 4; + */ + public Builder clearFormat() { + + format_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString content_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+     * Output only. The attestation data provided by the HSM when the key
+     * operation was performed.
+     * 
+ * + * bytes content = 5; + */ + public com.google.protobuf.ByteString getContent() { + return content_; + } + /** + *
+     * Output only. The attestation data provided by the HSM when the key
+     * operation was performed.
+     * 
+ * + * bytes content = 5; + */ + public Builder setContent(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + content_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. The attestation data provided by the HSM when the key
+     * operation was performed.
+     * 
+ * + * bytes content = 5; + */ + public Builder clearContent() { + + content_ = getDefaultInstance().getContent(); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.KeyOperationAttestation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.KeyOperationAttestation) + private static final com.google.cloud.kms.v1.KeyOperationAttestation DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.kms.v1.KeyOperationAttestation(); + } + + public static com.google.cloud.kms.v1.KeyOperationAttestation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KeyOperationAttestation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KeyOperationAttestation(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.kms.v1.KeyOperationAttestation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyOperationAttestationOrBuilder.java b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyOperationAttestationOrBuilder.java new file mode 100644 index 000000000000..e24814438b26 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyOperationAttestationOrBuilder.java @@ -0,0 +1,36 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/kms/v1/resources.proto + +package com.google.cloud.kms.v1; + +public interface KeyOperationAttestationOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.KeyOperationAttestation) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Output only. The format of the attestation data.
+   * 
+ * + * .google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat format = 4; + */ + int getFormatValue(); + /** + *
+   * Output only. The format of the attestation data.
+   * 
+ * + * .google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat format = 4; + */ + com.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat getFormat(); + + /** + *
+   * Output only. The attestation data provided by the HSM when the key
+   * operation was performed.
+   * 
+ * + * bytes content = 5; + */ + com.google.protobuf.ByteString getContent(); +} diff --git a/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KmsProto.java b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KmsProto.java index eebfe668bc7f..aa4c2cd54af4 100644 --- a/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KmsProto.java +++ b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KmsProto.java @@ -59,6 +59,11 @@ public static void registerAllExtensions( static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_kms_v1_GetCryptoKeyVersionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_GetPublicKeyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_GetPublicKeyRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_kms_v1_CreateKeyRingRequest_descriptor; static final @@ -94,6 +99,16 @@ public static void registerAllExtensions( static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_kms_v1_DecryptRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_AsymmetricSignRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_AsymmetricSignRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_AsymmetricDecryptRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_AsymmetricDecryptRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_kms_v1_DecryptResponse_descriptor; static final @@ -104,6 +119,16 @@ public static void registerAllExtensions( static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_kms_v1_EncryptResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_AsymmetricSignResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_AsymmetricSignResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_AsymmetricDecryptResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_AsymmetricDecryptResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_kms_v1_UpdateCryptoKeyPrimaryVersionRequest_descriptor; static final @@ -119,6 +144,16 @@ public static void registerAllExtensions( static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_kms_v1_RestoreCryptoKeyVersionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_Digest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_Digest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_LocationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_LocationMetadata_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -135,130 +170,160 @@ public static void registerAllExtensions( "oogle/protobuf/struct.proto\032\036google/prot" + "obuf/wrappers.proto\"L\n\023ListKeyRingsReque" + "st\022\016\n\006parent\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n" + - "\npage_token\030\003 \001(\t\"N\n\025ListCryptoKeysReque" + - "st\022\016\n\006parent\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n" + - "\npage_token\030\003 \001(\t\"U\n\034ListCryptoKeyVersio" + - "nsRequest\022\016\n\006parent\030\001 \001(\t\022\021\n\tpage_size\030\002" + - " \001(\005\022\022\n\npage_token\030\003 \001(\t\"t\n\024ListKeyRings" + - "Response\022/\n\tkey_rings\030\001 \003(\0132\034.google.clo" + - "ud.kms.v1.KeyRing\022\027\n\017next_page_token\030\002 \001" + - "(\t\022\022\n\ntotal_size\030\003 \001(\005\"z\n\026ListCryptoKeys" + - "Response\0223\n\013crypto_keys\030\001 \003(\0132\036.google.c" + - "loud.kms.v1.CryptoKey\022\027\n\017next_page_token" + - "\030\002 \001(\t\022\022\n\ntotal_size\030\003 \001(\005\"\220\001\n\035ListCrypt" + - "oKeyVersionsResponse\022B\n\023crypto_key_versi" + - "ons\030\001 \003(\0132%.google.cloud.kms.v1.CryptoKe" + - "yVersion\022\027\n\017next_page_token\030\002 \001(\t\022\022\n\ntot" + - "al_size\030\003 \001(\005\"!\n\021GetKeyRingRequest\022\014\n\004na" + - "me\030\001 \001(\t\"#\n\023GetCryptoKeyRequest\022\014\n\004name\030" + - "\001 \001(\t\"*\n\032GetCryptoKeyVersionRequest\022\014\n\004n" + - "ame\030\001 \001(\t\"k\n\024CreateKeyRingRequest\022\016\n\006par" + - "ent\030\001 \001(\t\022\023\n\013key_ring_id\030\002 \001(\t\022.\n\010key_ri" + - "ng\030\003 \001(\0132\034.google.cloud.kms.v1.KeyRing\"s" + - "\n\026CreateCryptoKeyRequest\022\016\n\006parent\030\001 \001(\t" + - "\022\025\n\rcrypto_key_id\030\002 \001(\t\0222\n\ncrypto_key\030\003 " + - "\001(\0132\036.google.cloud.kms.v1.CryptoKey\"r\n\035C" + - "reateCryptoKeyVersionRequest\022\016\n\006parent\030\001" + - " \001(\t\022A\n\022crypto_key_version\030\002 \001(\0132%.googl" + - "e.cloud.kms.v1.CryptoKeyVersion\"}\n\026Updat" + - "eCryptoKeyRequest\0222\n\ncrypto_key\030\001 \001(\0132\036." + - "google.cloud.kms.v1.CryptoKey\022/\n\013update_" + - "mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"\223" + - "\001\n\035UpdateCryptoKeyVersionRequest\022A\n\022cryp" + - "to_key_version\030\001 \001(\0132%.google.cloud.kms." + - "v1.CryptoKeyVersion\022/\n\013update_mask\030\002 \001(\013" + - "2\032.google.protobuf.FieldMask\"X\n\016EncryptR" + - "equest\022\014\n\004name\030\001 \001(\t\022\021\n\tplaintext\030\002 \001(\014\022" + - "%\n\035additional_authenticated_data\030\003 \001(\014\"Y" + - "\n\016DecryptRequest\022\014\n\004name\030\001 \001(\t\022\022\n\ncipher" + - "text\030\002 \001(\014\022%\n\035additional_authenticated_d" + - "ata\030\003 \001(\014\"$\n\017DecryptResponse\022\021\n\tplaintex" + - "t\030\001 \001(\014\"3\n\017EncryptResponse\022\014\n\004name\030\001 \001(\t" + - "\022\022\n\nciphertext\030\002 \001(\014\"S\n$UpdateCryptoKeyP" + - "rimaryVersionRequest\022\014\n\004name\030\001 \001(\t\022\035\n\025cr" + - "ypto_key_version_id\030\002 \001(\t\".\n\036DestroyCryp" + - "toKeyVersionRequest\022\014\n\004name\030\001 \001(\t\".\n\036Res" + - "toreCryptoKeyVersionRequest\022\014\n\004name\030\001 \001(" + - "\t2\333\027\n\024KeyManagementService\022\231\001\n\014ListKeyRi" + - "ngs\022(.google.cloud.kms.v1.ListKeyRingsRe" + - "quest\032).google.cloud.kms.v1.ListKeyRings" + - "Response\"4\202\323\344\223\002.\022,/v1/{parent=projects/*" + - "/locations/*}/keyRings\022\254\001\n\016ListCryptoKey" + - "s\022*.google.cloud.kms.v1.ListCryptoKeysRe" + - "quest\032+.google.cloud.kms.v1.ListCryptoKe" + - "ysResponse\"A\202\323\344\223\002;\0229/v1/{parent=projects" + - "/*/locations/*/keyRings/*}/cryptoKeys\022\325\001" + - "\n\025ListCryptoKeyVersions\0221.google.cloud.k" + - "ms.v1.ListCryptoKeyVersionsRequest\0322.goo" + - "gle.cloud.kms.v1.ListCryptoKeyVersionsRe" + - "sponse\"U\202\323\344\223\002O\022M/v1/{parent=projects/*/l" + - "ocations/*/keyRings/*/cryptoKeys/*}/cryp" + - "toKeyVersions\022\210\001\n\nGetKeyRing\022&.google.cl" + - "oud.kms.v1.GetKeyRingRequest\032\034.google.cl" + - "oud.kms.v1.KeyRing\"4\202\323\344\223\002.\022,/v1/{name=pr" + - "ojects/*/locations/*/keyRings/*}\022\233\001\n\014Get" + - "CryptoKey\022(.google.cloud.kms.v1.GetCrypt" + - "oKeyRequest\032\036.google.cloud.kms.v1.Crypto" + - "Key\"A\202\323\344\223\002;\0229/v1/{name=projects/*/locati" + - "ons/*/keyRings/*/cryptoKeys/*}\022\304\001\n\023GetCr" + - "yptoKeyVersion\022/.google.cloud.kms.v1.Get" + - "CryptoKeyVersionRequest\032%.google.cloud.k" + - "ms.v1.CryptoKeyVersion\"U\202\323\344\223\002O\022M/v1/{nam" + - "e=projects/*/locations/*/keyRings/*/cryp" + - "toKeys/*/cryptoKeyVersions/*}\022\230\001\n\rCreate" + - "KeyRing\022).google.cloud.kms.v1.CreateKeyR" + - "ingRequest\032\034.google.cloud.kms.v1.KeyRing" + - "\">\202\323\344\223\0028\",/v1/{parent=projects/*/locatio" + - "ns/*}/keyRings:\010key_ring\022\255\001\n\017CreateCrypt" + - "oKey\022+.google.cloud.kms.v1.CreateCryptoK" + - "eyRequest\032\036.google.cloud.kms.v1.CryptoKe" + - "y\"M\202\323\344\223\002G\"9/v1/{parent=projects/*/locati" + - "ons/*/keyRings/*}/cryptoKeys:\ncrypto_key" + - "\022\336\001\n\026CreateCryptoKeyVersion\0222.google.clo" + - "ud.kms.v1.CreateCryptoKeyVersionRequest\032" + - "%.google.cloud.kms.v1.CryptoKeyVersion\"i" + - "\202\323\344\223\002c\"M/v1/{parent=projects/*/locations" + - "/*/keyRings/*/cryptoKeys/*}/cryptoKeyVer" + - "sions:\022crypto_key_version\022\270\001\n\017UpdateCryp" + - "toKey\022+.google.cloud.kms.v1.UpdateCrypto" + - "KeyRequest\032\036.google.cloud.kms.v1.CryptoK" + - "ey\"X\202\323\344\223\002R2D/v1/{crypto_key.name=project" + - "s/*/locations/*/keyRings/*/cryptoKeys/*}" + - ":\ncrypto_key\022\361\001\n\026UpdateCryptoKeyVersion\022" + - "2.google.cloud.kms.v1.UpdateCryptoKeyVer" + - "sionRequest\032%.google.cloud.kms.v1.Crypto" + - "KeyVersion\"|\202\323\344\223\002v2`/v1/{crypto_key_vers" + - "ion.name=projects/*/locations/*/keyRings" + - "/*/cryptoKeys/*/cryptoKeyVersions/*}:\022cr" + - "ypto_key_version\022\243\001\n\007Encrypt\022#.google.cl" + - "oud.kms.v1.EncryptRequest\032$.google.cloud" + - ".kms.v1.EncryptResponse\"M\202\323\344\223\002G\"B/v1/{na" + - "me=projects/*/locations/*/keyRings/*/cry" + - "ptoKeys/**}:encrypt:\001*\022\242\001\n\007Decrypt\022#.goo" + - "gle.cloud.kms.v1.DecryptRequest\032$.google" + - ".cloud.kms.v1.DecryptResponse\"L\202\323\344\223\002F\"A/" + - "v1/{name=projects/*/locations/*/keyRings" + - "/*/cryptoKeys/*}:decrypt:\001*\022\325\001\n\035UpdateCr" + - "yptoKeyPrimaryVersion\0229.google.cloud.kms" + - ".v1.UpdateCryptoKeyPrimaryVersionRequest" + - "\032\036.google.cloud.kms.v1.CryptoKey\"Y\202\323\344\223\002S" + - "\"N/v1/{name=projects/*/locations/*/keyRi" + - "ngs/*/cryptoKeys/*}:updatePrimaryVersion" + - ":\001*\022\327\001\n\027DestroyCryptoKeyVersion\0223.google" + - ".cloud.kms.v1.DestroyCryptoKeyVersionReq" + - "uest\032%.google.cloud.kms.v1.CryptoKeyVers" + - "ion\"`\202\323\344\223\002Z\"U/v1/{name=projects/*/locati" + - "ons/*/keyRings/*/cryptoKeys/*/cryptoKeyV" + - "ersions/*}:destroy:\001*\022\327\001\n\027RestoreCryptoK" + - "eyVersion\0223.google.cloud.kms.v1.RestoreC" + - "ryptoKeyVersionRequest\032%.google.cloud.km" + - "s.v1.CryptoKeyVersion\"`\202\323\344\223\002Z\"U/v1/{name" + - "=projects/*/locations/*/keyRings/*/crypt" + - "oKeys/*/cryptoKeyVersions/*}:restore:\001*B" + - "\214\001\n\027com.google.cloud.kms.v1B\010KmsProtoP\001Z" + - "6google.golang.org/genproto/googleapis/c" + - "loud/kms/v1;kms\370\001\001\252\002\023Google.Cloud.Kms.V1" + - "\312\002\023Google\\Cloud\\Kms\\V1b\006proto3" + "\npage_token\030\003 \001(\t\"\240\001\n\025ListCryptoKeysRequ" + + "est\022\016\n\006parent\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022" + + "\n\npage_token\030\003 \001(\t\022P\n\014version_view\030\004 \001(\016" + + "2:.google.cloud.kms.v1.CryptoKeyVersion." + + "CryptoKeyVersionView\"\237\001\n\034ListCryptoKeyVe" + + "rsionsRequest\022\016\n\006parent\030\001 \001(\t\022\021\n\tpage_si" + + "ze\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022H\n\004view\030\004 \001" + + "(\0162:.google.cloud.kms.v1.CryptoKeyVersio" + + "n.CryptoKeyVersionView\"t\n\024ListKeyRingsRe" + + "sponse\022/\n\tkey_rings\030\001 \003(\0132\034.google.cloud" + + ".kms.v1.KeyRing\022\027\n\017next_page_token\030\002 \001(\t" + + "\022\022\n\ntotal_size\030\003 \001(\005\"z\n\026ListCryptoKeysRe" + + "sponse\0223\n\013crypto_keys\030\001 \003(\0132\036.google.clo" + + "ud.kms.v1.CryptoKey\022\027\n\017next_page_token\030\002" + + " \001(\t\022\022\n\ntotal_size\030\003 \001(\005\"\220\001\n\035ListCryptoK" + + "eyVersionsResponse\022B\n\023crypto_key_version" + + "s\030\001 \003(\0132%.google.cloud.kms.v1.CryptoKeyV" + + "ersion\022\027\n\017next_page_token\030\002 \001(\t\022\022\n\ntotal" + + "_size\030\003 \001(\005\"!\n\021GetKeyRingRequest\022\014\n\004name" + + "\030\001 \001(\t\"#\n\023GetCryptoKeyRequest\022\014\n\004name\030\001 " + + "\001(\t\"*\n\032GetCryptoKeyVersionRequest\022\014\n\004nam" + + "e\030\001 \001(\t\"#\n\023GetPublicKeyRequest\022\014\n\004name\030\001" + + " \001(\t\"k\n\024CreateKeyRingRequest\022\016\n\006parent\030\001" + + " \001(\t\022\023\n\013key_ring_id\030\002 \001(\t\022.\n\010key_ring\030\003 " + + "\001(\0132\034.google.cloud.kms.v1.KeyRing\"s\n\026Cre" + + "ateCryptoKeyRequest\022\016\n\006parent\030\001 \001(\t\022\025\n\rc" + + "rypto_key_id\030\002 \001(\t\0222\n\ncrypto_key\030\003 \001(\0132\036" + + ".google.cloud.kms.v1.CryptoKey\"r\n\035Create" + + "CryptoKeyVersionRequest\022\016\n\006parent\030\001 \001(\t\022" + + "A\n\022crypto_key_version\030\002 \001(\0132%.google.clo" + + "ud.kms.v1.CryptoKeyVersion\"}\n\026UpdateCryp" + + "toKeyRequest\0222\n\ncrypto_key\030\001 \001(\0132\036.googl" + + "e.cloud.kms.v1.CryptoKey\022/\n\013update_mask\030" + + "\002 \001(\0132\032.google.protobuf.FieldMask\"\223\001\n\035Up" + + "dateCryptoKeyVersionRequest\022A\n\022crypto_ke" + + "y_version\030\001 \001(\0132%.google.cloud.kms.v1.Cr" + + "yptoKeyVersion\022/\n\013update_mask\030\002 \001(\0132\032.go" + + "ogle.protobuf.FieldMask\"X\n\016EncryptReques" + + "t\022\014\n\004name\030\001 \001(\t\022\021\n\tplaintext\030\002 \001(\014\022%\n\035ad" + + "ditional_authenticated_data\030\003 \001(\014\"Y\n\016Dec" + + "ryptRequest\022\014\n\004name\030\001 \001(\t\022\022\n\nciphertext\030" + + "\002 \001(\014\022%\n\035additional_authenticated_data\030\003" + + " \001(\014\"R\n\025AsymmetricSignRequest\022\014\n\004name\030\001 " + + "\001(\t\022+\n\006digest\030\003 \001(\0132\033.google.cloud.kms.v" + + "1.Digest\"<\n\030AsymmetricDecryptRequest\022\014\n\004" + + "name\030\001 \001(\t\022\022\n\nciphertext\030\003 \001(\014\"$\n\017Decryp" + + "tResponse\022\021\n\tplaintext\030\001 \001(\014\"3\n\017EncryptR" + + "esponse\022\014\n\004name\030\001 \001(\t\022\022\n\nciphertext\030\002 \001(" + + "\014\"+\n\026AsymmetricSignResponse\022\021\n\tsignature" + + "\030\001 \001(\014\".\n\031AsymmetricDecryptResponse\022\021\n\tp" + + "laintext\030\001 \001(\014\"S\n$UpdateCryptoKeyPrimary" + + "VersionRequest\022\014\n\004name\030\001 \001(\t\022\035\n\025crypto_k" + + "ey_version_id\030\002 \001(\t\".\n\036DestroyCryptoKeyV" + + "ersionRequest\022\014\n\004name\030\001 \001(\t\".\n\036RestoreCr" + + "yptoKeyVersionRequest\022\014\n\004name\030\001 \001(\t\"H\n\006D" + + "igest\022\020\n\006sha256\030\001 \001(\014H\000\022\020\n\006sha384\030\002 \001(\014H" + + "\000\022\020\n\006sha512\030\003 \001(\014H\000B\010\n\006digest\")\n\020Locatio" + + "nMetadata\022\025\n\rhsm_available\030\001 \001(\0102\315\034\n\024Key" + + "ManagementService\022\231\001\n\014ListKeyRings\022(.goo" + + "gle.cloud.kms.v1.ListKeyRingsRequest\032).g" + + "oogle.cloud.kms.v1.ListKeyRingsResponse\"" + + "4\202\323\344\223\002.\022,/v1/{parent=projects/*/location" + + "s/*}/keyRings\022\254\001\n\016ListCryptoKeys\022*.googl" + + "e.cloud.kms.v1.ListCryptoKeysRequest\032+.g" + + "oogle.cloud.kms.v1.ListCryptoKeysRespons" + + "e\"A\202\323\344\223\002;\0229/v1/{parent=projects/*/locati" + + "ons/*/keyRings/*}/cryptoKeys\022\325\001\n\025ListCry" + + "ptoKeyVersions\0221.google.cloud.kms.v1.Lis" + + "tCryptoKeyVersionsRequest\0322.google.cloud" + + ".kms.v1.ListCryptoKeyVersionsResponse\"U\202" + + "\323\344\223\002O\022M/v1/{parent=projects/*/locations/" + + "*/keyRings/*/cryptoKeys/*}/cryptoKeyVers" + + "ions\022\210\001\n\nGetKeyRing\022&.google.cloud.kms.v" + + "1.GetKeyRingRequest\032\034.google.cloud.kms.v" + + "1.KeyRing\"4\202\323\344\223\002.\022,/v1/{name=projects/*/" + + "locations/*/keyRings/*}\022\233\001\n\014GetCryptoKey" + + "\022(.google.cloud.kms.v1.GetCryptoKeyReque" + + "st\032\036.google.cloud.kms.v1.CryptoKey\"A\202\323\344\223" + + "\002;\0229/v1/{name=projects/*/locations/*/key" + + "Rings/*/cryptoKeys/*}\022\304\001\n\023GetCryptoKeyVe" + + "rsion\022/.google.cloud.kms.v1.GetCryptoKey" + + "VersionRequest\032%.google.cloud.kms.v1.Cry" + + "ptoKeyVersion\"U\202\323\344\223\002O\022M/v1/{name=project" + + "s/*/locations/*/keyRings/*/cryptoKeys/*/" + + "cryptoKeyVersions/*}\022\271\001\n\014GetPublicKey\022(." + + "google.cloud.kms.v1.GetPublicKeyRequest\032" + + "\036.google.cloud.kms.v1.PublicKey\"_\202\323\344\223\002Y\022" + + "W/v1/{name=projects/*/locations/*/keyRin" + + "gs/*/cryptoKeys/*/cryptoKeyVersions/*}/p" + + "ublicKey\022\230\001\n\rCreateKeyRing\022).google.clou" + + "d.kms.v1.CreateKeyRingRequest\032\034.google.c" + + "loud.kms.v1.KeyRing\">\202\323\344\223\0028\",/v1/{parent" + + "=projects/*/locations/*}/keyRings:\010key_r" + + "ing\022\255\001\n\017CreateCryptoKey\022+.google.cloud.k" + + "ms.v1.CreateCryptoKeyRequest\032\036.google.cl" + + "oud.kms.v1.CryptoKey\"M\202\323\344\223\002G\"9/v1/{paren" + + "t=projects/*/locations/*/keyRings/*}/cry" + + "ptoKeys:\ncrypto_key\022\336\001\n\026CreateCryptoKeyV" + + "ersion\0222.google.cloud.kms.v1.CreateCrypt" + + "oKeyVersionRequest\032%.google.cloud.kms.v1" + + ".CryptoKeyVersion\"i\202\323\344\223\002c\"M/v1/{parent=p" + + "rojects/*/locations/*/keyRings/*/cryptoK" + + "eys/*}/cryptoKeyVersions:\022crypto_key_ver" + + "sion\022\270\001\n\017UpdateCryptoKey\022+.google.cloud." + + "kms.v1.UpdateCryptoKeyRequest\032\036.google.c" + + "loud.kms.v1.CryptoKey\"X\202\323\344\223\002R2D/v1/{cryp" + + "to_key.name=projects/*/locations/*/keyRi" + + "ngs/*/cryptoKeys/*}:\ncrypto_key\022\361\001\n\026Upda" + + "teCryptoKeyVersion\0222.google.cloud.kms.v1" + + ".UpdateCryptoKeyVersionRequest\032%.google." + + "cloud.kms.v1.CryptoKeyVersion\"|\202\323\344\223\002v2`/" + + "v1/{crypto_key_version.name=projects/*/l" + + "ocations/*/keyRings/*/cryptoKeys/*/crypt" + + "oKeyVersions/*}:\022crypto_key_version\022\243\001\n\007" + + "Encrypt\022#.google.cloud.kms.v1.EncryptReq" + + "uest\032$.google.cloud.kms.v1.EncryptRespon" + + "se\"M\202\323\344\223\002G\"B/v1/{name=projects/*/locatio" + + "ns/*/keyRings/*/cryptoKeys/**}:encrypt:\001" + + "*\022\242\001\n\007Decrypt\022#.google.cloud.kms.v1.Decr" + + "yptRequest\032$.google.cloud.kms.v1.Decrypt" + + "Response\"L\202\323\344\223\002F\"A/v1/{name=projects/*/l" + + "ocations/*/keyRings/*/cryptoKeys/*}:decr" + + "ypt:\001*\022\322\001\n\016AsymmetricSign\022*.google.cloud" + + ".kms.v1.AsymmetricSignRequest\032+.google.c" + + "loud.kms.v1.AsymmetricSignResponse\"g\202\323\344\223" + + "\002a\"\\/v1/{name=projects/*/locations/*/key" + + "Rings/*/cryptoKeys/*/cryptoKeyVersions/*" + + "}:asymmetricSign:\001*\022\336\001\n\021AsymmetricDecryp" + + "t\022-.google.cloud.kms.v1.AsymmetricDecryp" + + "tRequest\032..google.cloud.kms.v1.Asymmetri" + + "cDecryptResponse\"j\202\323\344\223\002d\"_/v1/{name=proj" + + "ects/*/locations/*/keyRings/*/cryptoKeys" + + "/*/cryptoKeyVersions/*}:asymmetricDecryp" + + "t:\001*\022\325\001\n\035UpdateCryptoKeyPrimaryVersion\0229" + + ".google.cloud.kms.v1.UpdateCryptoKeyPrim" + + "aryVersionRequest\032\036.google.cloud.kms.v1." + + "CryptoKey\"Y\202\323\344\223\002S\"N/v1/{name=projects/*/" + + "locations/*/keyRings/*/cryptoKeys/*}:upd" + + "atePrimaryVersion:\001*\022\327\001\n\027DestroyCryptoKe" + + "yVersion\0223.google.cloud.kms.v1.DestroyCr" + + "yptoKeyVersionRequest\032%.google.cloud.kms" + + ".v1.CryptoKeyVersion\"`\202\323\344\223\002Z\"U/v1/{name=" + + "projects/*/locations/*/keyRings/*/crypto" + + "Keys/*/cryptoKeyVersions/*}:destroy:\001*\022\327" + + "\001\n\027RestoreCryptoKeyVersion\0223.google.clou" + + "d.kms.v1.RestoreCryptoKeyVersionRequest\032" + + "%.google.cloud.kms.v1.CryptoKeyVersion\"`" + + "\202\323\344\223\002Z\"U/v1/{name=projects/*/locations/*" + + "/keyRings/*/cryptoKeys/*/cryptoKeyVersio" + + "ns/*}:restore:\001*B\214\001\n\027com.google.cloud.km" + + "s.v1B\010KmsProtoP\001Z6google.golang.org/genp" + + "roto/googleapis/cloud/kms/v1;kms\370\001\001\252\002\023Go" + + "ogle.Cloud.Kms.V1\312\002\023Google\\Cloud\\Kms\\V1b" + + "\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -288,13 +353,13 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_cloud_kms_v1_ListCryptoKeysRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_kms_v1_ListCryptoKeysRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + new java.lang.String[] { "Parent", "PageSize", "PageToken", "VersionView", }); internal_static_google_cloud_kms_v1_ListCryptoKeyVersionsRequest_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_google_cloud_kms_v1_ListCryptoKeyVersionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_kms_v1_ListCryptoKeyVersionsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + new java.lang.String[] { "Parent", "PageSize", "PageToken", "View", }); internal_static_google_cloud_kms_v1_ListKeyRingsResponse_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_google_cloud_kms_v1_ListKeyRingsResponse_fieldAccessorTable = new @@ -331,78 +396,120 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_kms_v1_GetCryptoKeyVersionRequest_descriptor, new java.lang.String[] { "Name", }); - internal_static_google_cloud_kms_v1_CreateKeyRingRequest_descriptor = + internal_static_google_cloud_kms_v1_GetPublicKeyRequest_descriptor = getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_kms_v1_GetPublicKeyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_GetPublicKeyRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_kms_v1_CreateKeyRingRequest_descriptor = + getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_kms_v1_CreateKeyRingRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_kms_v1_CreateKeyRingRequest_descriptor, new java.lang.String[] { "Parent", "KeyRingId", "KeyRing", }); internal_static_google_cloud_kms_v1_CreateCryptoKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_kms_v1_CreateCryptoKeyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_kms_v1_CreateCryptoKeyRequest_descriptor, new java.lang.String[] { "Parent", "CryptoKeyId", "CryptoKey", }); internal_static_google_cloud_kms_v1_CreateCryptoKeyVersionRequest_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_kms_v1_CreateCryptoKeyVersionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_kms_v1_CreateCryptoKeyVersionRequest_descriptor, new java.lang.String[] { "Parent", "CryptoKeyVersion", }); internal_static_google_cloud_kms_v1_UpdateCryptoKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_kms_v1_UpdateCryptoKeyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_kms_v1_UpdateCryptoKeyRequest_descriptor, new java.lang.String[] { "CryptoKey", "UpdateMask", }); internal_static_google_cloud_kms_v1_UpdateCryptoKeyVersionRequest_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_kms_v1_UpdateCryptoKeyVersionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_kms_v1_UpdateCryptoKeyVersionRequest_descriptor, new java.lang.String[] { "CryptoKeyVersion", "UpdateMask", }); internal_static_google_cloud_kms_v1_EncryptRequest_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_kms_v1_EncryptRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_kms_v1_EncryptRequest_descriptor, new java.lang.String[] { "Name", "Plaintext", "AdditionalAuthenticatedData", }); internal_static_google_cloud_kms_v1_DecryptRequest_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_kms_v1_DecryptRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_kms_v1_DecryptRequest_descriptor, new java.lang.String[] { "Name", "Ciphertext", "AdditionalAuthenticatedData", }); + internal_static_google_cloud_kms_v1_AsymmetricSignRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_kms_v1_AsymmetricSignRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_AsymmetricSignRequest_descriptor, + new java.lang.String[] { "Name", "Digest", }); + internal_static_google_cloud_kms_v1_AsymmetricDecryptRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_kms_v1_AsymmetricDecryptRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_AsymmetricDecryptRequest_descriptor, + new java.lang.String[] { "Name", "Ciphertext", }); internal_static_google_cloud_kms_v1_DecryptResponse_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_kms_v1_DecryptResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_kms_v1_DecryptResponse_descriptor, new java.lang.String[] { "Plaintext", }); internal_static_google_cloud_kms_v1_EncryptResponse_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_kms_v1_EncryptResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_kms_v1_EncryptResponse_descriptor, new java.lang.String[] { "Name", "Ciphertext", }); + internal_static_google_cloud_kms_v1_AsymmetricSignResponse_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_kms_v1_AsymmetricSignResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_AsymmetricSignResponse_descriptor, + new java.lang.String[] { "Signature", }); + internal_static_google_cloud_kms_v1_AsymmetricDecryptResponse_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_kms_v1_AsymmetricDecryptResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_AsymmetricDecryptResponse_descriptor, + new java.lang.String[] { "Plaintext", }); internal_static_google_cloud_kms_v1_UpdateCryptoKeyPrimaryVersionRequest_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_kms_v1_UpdateCryptoKeyPrimaryVersionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_kms_v1_UpdateCryptoKeyPrimaryVersionRequest_descriptor, new java.lang.String[] { "Name", "CryptoKeyVersionId", }); internal_static_google_cloud_kms_v1_DestroyCryptoKeyVersionRequest_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_kms_v1_DestroyCryptoKeyVersionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_kms_v1_DestroyCryptoKeyVersionRequest_descriptor, new java.lang.String[] { "Name", }); internal_static_google_cloud_kms_v1_RestoreCryptoKeyVersionRequest_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_kms_v1_RestoreCryptoKeyVersionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_kms_v1_RestoreCryptoKeyVersionRequest_descriptor, new java.lang.String[] { "Name", }); + internal_static_google_cloud_kms_v1_Digest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_kms_v1_Digest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_Digest_descriptor, + new java.lang.String[] { "Sha256", "Sha384", "Sha512", "Digest", }); + internal_static_google_cloud_kms_v1_LocationMetadata_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_kms_v1_LocationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_LocationMetadata_descriptor, + new java.lang.String[] { "HsmAvailable", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.AnnotationsProto.http); diff --git a/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KmsResourcesProto.java b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KmsResourcesProto.java index 63cac2096708..e925a50ad431 100644 --- a/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KmsResourcesProto.java +++ b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KmsResourcesProto.java @@ -29,11 +29,26 @@ public static void registerAllExtensions( static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_kms_v1_CryptoKey_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_CryptoKeyVersionTemplate_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_CryptoKeyVersionTemplate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_KeyOperationAttestation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_KeyOperationAttestation_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_kms_v1_CryptoKeyVersion_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_kms_v1_CryptoKeyVersion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_PublicKey_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_PublicKey_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -48,7 +63,7 @@ public static void registerAllExtensions( "ns.proto\032\036google/protobuf/duration.proto" + "\032\037google/protobuf/timestamp.proto\"H\n\007Key" + "Ring\022\014\n\004name\030\001 \001(\t\022/\n\013create_time\030\002 \001(\0132" + - "\032.google.protobuf.Timestamp\"\377\003\n\tCryptoKe" + + "\032.google.protobuf.Timestamp\"\365\004\n\tCryptoKe" + "y\022\014\n\004name\030\001 \001(\t\0226\n\007primary\030\002 \001(\0132%.googl" + "e.cloud.kms.v1.CryptoKeyVersion\022@\n\007purpo" + "se\030\003 \001(\0162/.google.cloud.kms.v1.CryptoKey" + @@ -56,26 +71,64 @@ public static void registerAllExtensions( ".google.protobuf.Timestamp\0226\n\022next_rotat" + "ion_time\030\007 \001(\0132\032.google.protobuf.Timesta" + "mp\0224\n\017rotation_period\030\010 \001(\0132\031.google.pro" + - "tobuf.DurationH\000\022:\n\006labels\030\n \003(\0132*.googl" + - "e.cloud.kms.v1.CryptoKey.LabelsEntry\032-\n\013" + - "LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" + - "\0028\001\"K\n\020CryptoKeyPurpose\022\"\n\036CRYPTO_KEY_PU" + - "RPOSE_UNSPECIFIED\020\000\022\023\n\017ENCRYPT_DECRYPT\020\001" + - "B\023\n\021rotation_schedule\"\214\003\n\020CryptoKeyVersi" + - "on\022\014\n\004name\030\001 \001(\t\022J\n\005state\030\003 \001(\0162;.google" + - ".cloud.kms.v1.CryptoKeyVersion.CryptoKey" + - "VersionState\022/\n\013create_time\030\004 \001(\0132\032.goog" + - "le.protobuf.Timestamp\0220\n\014destroy_time\030\005 " + - "\001(\0132\032.google.protobuf.Timestamp\0226\n\022destr" + - "oy_event_time\030\006 \001(\0132\032.google.protobuf.Ti" + - "mestamp\"\202\001\n\025CryptoKeyVersionState\022(\n$CRY" + - "PTO_KEY_VERSION_STATE_UNSPECIFIED\020\000\022\013\n\007E" + + "tobuf.DurationH\000\022G\n\020version_template\030\013 \001" + + "(\0132-.google.cloud.kms.v1.CryptoKeyVersio" + + "nTemplate\022:\n\006labels\030\n \003(\0132*.google.cloud" + + ".kms.v1.CryptoKey.LabelsEntry\032-\n\013LabelsE" + + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"x\n\020" + + "CryptoKeyPurpose\022\"\n\036CRYPTO_KEY_PURPOSE_U" + + "NSPECIFIED\020\000\022\023\n\017ENCRYPT_DECRYPT\020\001\022\023\n\017ASY" + + "MMETRIC_SIGN\020\005\022\026\n\022ASYMMETRIC_DECRYPT\020\006B\023" + + "\n\021rotation_schedule\"\256\001\n\030CryptoKeyVersion" + + "Template\022>\n\020protection_level\030\001 \001(\0162$.goo" + + "gle.cloud.kms.v1.ProtectionLevel\022R\n\talgo" + + "rithm\030\003 \001(\0162?.google.cloud.kms.v1.Crypto" + + "KeyVersion.CryptoKeyVersionAlgorithm\"\315\001\n" + + "\027KeyOperationAttestation\022N\n\006format\030\004 \001(\016" + + "2>.google.cloud.kms.v1.KeyOperationAttes" + + "tation.AttestationFormat\022\017\n\007content\030\005 \001(" + + "\014\"Q\n\021AttestationFormat\022\"\n\036ATTESTATION_FO" + + "RMAT_UNSPECIFIED\020\000\022\030\n\024CAVIUM_V1_COMPRESS" + + "ED\020\003\"\270\t\n\020CryptoKeyVersion\022\014\n\004name\030\001 \001(\t\022" + + "J\n\005state\030\003 \001(\0162;.google.cloud.kms.v1.Cry" + + "ptoKeyVersion.CryptoKeyVersionState\022>\n\020p" + + "rotection_level\030\007 \001(\0162$.google.cloud.kms" + + ".v1.ProtectionLevel\022R\n\talgorithm\030\n \001(\0162?" + + ".google.cloud.kms.v1.CryptoKeyVersion.Cr" + + "yptoKeyVersionAlgorithm\022A\n\013attestation\030\010" + + " \001(\0132,.google.cloud.kms.v1.KeyOperationA" + + "ttestation\022/\n\013create_time\030\004 \001(\0132\032.google" + + ".protobuf.Timestamp\0221\n\rgenerate_time\030\013 \001" + + "(\0132\032.google.protobuf.Timestamp\0220\n\014destro" + + "y_time\030\005 \001(\0132\032.google.protobuf.Timestamp" + + "\0226\n\022destroy_event_time\030\006 \001(\0132\032.google.pr" + + "otobuf.Timestamp\"\274\003\n\031CryptoKeyVersionAlg" + + "orithm\022,\n(CRYPTO_KEY_VERSION_ALGORITHM_U" + + "NSPECIFIED\020\000\022\037\n\033GOOGLE_SYMMETRIC_ENCRYPT" + + "ION\020\001\022\034\n\030RSA_SIGN_PSS_2048_SHA256\020\002\022\034\n\030R" + + "SA_SIGN_PSS_3072_SHA256\020\003\022\034\n\030RSA_SIGN_PS" + + "S_4096_SHA256\020\004\022\036\n\032RSA_SIGN_PKCS1_2048_S" + + "HA256\020\005\022\036\n\032RSA_SIGN_PKCS1_3072_SHA256\020\006\022" + + "\036\n\032RSA_SIGN_PKCS1_4096_SHA256\020\007\022 \n\034RSA_D" + + "ECRYPT_OAEP_2048_SHA256\020\010\022 \n\034RSA_DECRYPT" + + "_OAEP_3072_SHA256\020\t\022 \n\034RSA_DECRYPT_OAEP_" + + "4096_SHA256\020\n\022\027\n\023EC_SIGN_P256_SHA256\020\014\022\027" + + "\n\023EC_SIGN_P384_SHA384\020\r\"\232\001\n\025CryptoKeyVer" + + "sionState\022(\n$CRYPTO_KEY_VERSION_STATE_UN" + + "SPECIFIED\020\000\022\026\n\022PENDING_GENERATION\020\005\022\013\n\007E" + "NABLED\020\001\022\014\n\010DISABLED\020\002\022\r\n\tDESTROYED\020\003\022\025\n" + - "\021DESTROY_SCHEDULED\020\004B\225\001\n\027com.google.clou" + - "d.kms.v1B\021KmsResourcesProtoP\001Z6google.go" + - "lang.org/genproto/googleapis/cloud/kms/v" + - "1;kms\370\001\001\252\002\023Google.Cloud.Kms.V1\312\002\023Google\\" + - "Cloud\\Kms\\V1b\006proto3" + "\021DESTROY_SCHEDULED\020\004\"I\n\024CryptoKeyVersion" + + "View\022\'\n#CRYPTO_KEY_VERSION_VIEW_UNSPECIF" + + "IED\020\000\022\010\n\004FULL\020\001\"l\n\tPublicKey\022\013\n\003pem\030\001 \001(" + + "\t\022R\n\talgorithm\030\002 \001(\0162?.google.cloud.kms." + + "v1.CryptoKeyVersion.CryptoKeyVersionAlgo" + + "rithm*J\n\017ProtectionLevel\022 \n\034PROTECTION_L" + + "EVEL_UNSPECIFIED\020\000\022\014\n\010SOFTWARE\020\001\022\007\n\003HSM\020" + + "\002B\225\001\n\027com.google.cloud.kms.v1B\021KmsResour" + + "cesProtoP\001Z6google.golang.org/genproto/g" + + "oogleapis/cloud/kms/v1;kms\370\001\001\252\002\023Google.C" + + "loud.Kms.V1\312\002\023Google\\Cloud\\Kms\\V1b\006proto" + + "3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -103,19 +156,37 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_cloud_kms_v1_CryptoKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_kms_v1_CryptoKey_descriptor, - new java.lang.String[] { "Name", "Primary", "Purpose", "CreateTime", "NextRotationTime", "RotationPeriod", "Labels", "RotationSchedule", }); + new java.lang.String[] { "Name", "Primary", "Purpose", "CreateTime", "NextRotationTime", "RotationPeriod", "VersionTemplate", "Labels", "RotationSchedule", }); internal_static_google_cloud_kms_v1_CryptoKey_LabelsEntry_descriptor = internal_static_google_cloud_kms_v1_CryptoKey_descriptor.getNestedTypes().get(0); internal_static_google_cloud_kms_v1_CryptoKey_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_kms_v1_CryptoKey_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_kms_v1_CryptoKeyVersion_descriptor = + internal_static_google_cloud_kms_v1_CryptoKeyVersionTemplate_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_kms_v1_CryptoKeyVersionTemplate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_CryptoKeyVersionTemplate_descriptor, + new java.lang.String[] { "ProtectionLevel", "Algorithm", }); + internal_static_google_cloud_kms_v1_KeyOperationAttestation_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_kms_v1_KeyOperationAttestation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_KeyOperationAttestation_descriptor, + new java.lang.String[] { "Format", "Content", }); + internal_static_google_cloud_kms_v1_CryptoKeyVersion_descriptor = + getDescriptor().getMessageTypes().get(4); internal_static_google_cloud_kms_v1_CryptoKeyVersion_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_kms_v1_CryptoKeyVersion_descriptor, - new java.lang.String[] { "Name", "State", "CreateTime", "DestroyTime", "DestroyEventTime", }); + new java.lang.String[] { "Name", "State", "ProtectionLevel", "Algorithm", "Attestation", "CreateTime", "GenerateTime", "DestroyTime", "DestroyEventTime", }); + internal_static_google_cloud_kms_v1_PublicKey_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_kms_v1_PublicKey_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_PublicKey_descriptor, + new java.lang.String[] { "Pem", "Algorithm", }); com.google.api.AnnotationsProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); diff --git a/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeyVersionsRequest.java b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeyVersionsRequest.java index b6545ef308a6..85f10e47839f 100644 --- a/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeyVersionsRequest.java +++ b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeyVersionsRequest.java @@ -23,6 +23,7 @@ private ListCryptoKeyVersionsRequest() { parent_ = ""; pageSize_ = 0; pageToken_ = ""; + view_ = 0; } @java.lang.Override @@ -66,6 +67,12 @@ private ListCryptoKeyVersionsRequest( pageToken_ = s; break; } + case 32: { + int rawValue = input.readEnum(); + + view_ = rawValue; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -203,6 +210,31 @@ public java.lang.String getPageToken() { } } + public static final int VIEW_FIELD_NUMBER = 4; + private int view_; + /** + *
+   * The fields to include in the response.
+   * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView view = 4; + */ + public int getViewValue() { + return view_; + } + /** + *
+   * The fields to include in the response.
+   * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView view = 4; + */ + public com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView getView() { + @SuppressWarnings("deprecation") + com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView result = com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView.valueOf(view_); + return result == null ? com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView.UNRECOGNIZED : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -226,6 +258,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getPageTokenBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } + if (view_ != com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView.CRYPTO_KEY_VERSION_VIEW_UNSPECIFIED.getNumber()) { + output.writeEnum(4, view_); + } unknownFields.writeTo(output); } @@ -245,6 +280,10 @@ public int getSerializedSize() { if (!getPageTokenBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } + if (view_ != com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView.CRYPTO_KEY_VERSION_VIEW_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, view_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -267,6 +306,7 @@ public boolean equals(final java.lang.Object obj) { == other.getPageSize()); result = result && getPageToken() .equals(other.getPageToken()); + result = result && view_ == other.view_; result = result && unknownFields.equals(other.unknownFields); return result; } @@ -284,6 +324,8 @@ public int hashCode() { hash = (53 * hash) + getPageSize(); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + VIEW_FIELD_NUMBER; + hash = (53 * hash) + view_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -427,6 +469,8 @@ public Builder clear() { pageToken_ = ""; + view_ = 0; + return this; } @@ -456,6 +500,7 @@ public com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest buildPartial() { result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; + result.view_ = view_; onBuilt(); return result; } @@ -515,6 +560,9 @@ public Builder mergeFrom(com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest ot pageToken_ = other.pageToken_; onChanged(); } + if (other.view_ != 0) { + setViewValue(other.getViewValue()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -781,6 +829,71 @@ public Builder setPageTokenBytes( onChanged(); return this; } + + private int view_ = 0; + /** + *
+     * The fields to include in the response.
+     * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView view = 4; + */ + public int getViewValue() { + return view_; + } + /** + *
+     * The fields to include in the response.
+     * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView view = 4; + */ + public Builder setViewValue(int value) { + view_ = value; + onChanged(); + return this; + } + /** + *
+     * The fields to include in the response.
+     * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView view = 4; + */ + public com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView getView() { + @SuppressWarnings("deprecation") + com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView result = com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView.valueOf(view_); + return result == null ? com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView.UNRECOGNIZED : result; + } + /** + *
+     * The fields to include in the response.
+     * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView view = 4; + */ + public Builder setView(com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView value) { + if (value == null) { + throw new NullPointerException(); + } + + view_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The fields to include in the response.
+     * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView view = 4; + */ + public Builder clearView() { + + view_ = 0; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeyVersionsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeyVersionsRequestOrBuilder.java index cfe7fa7952f5..e31286f8b246 100644 --- a/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeyVersionsRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeyVersionsRequestOrBuilder.java @@ -59,4 +59,21 @@ public interface ListCryptoKeyVersionsRequestOrBuilder extends */ com.google.protobuf.ByteString getPageTokenBytes(); + + /** + *
+   * The fields to include in the response.
+   * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView view = 4; + */ + int getViewValue(); + /** + *
+   * The fields to include in the response.
+   * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView view = 4; + */ + com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView getView(); } diff --git a/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeysRequest.java b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeysRequest.java index 1424dffd0719..83093a2e4893 100644 --- a/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeysRequest.java +++ b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeysRequest.java @@ -23,6 +23,7 @@ private ListCryptoKeysRequest() { parent_ = ""; pageSize_ = 0; pageToken_ = ""; + versionView_ = 0; } @java.lang.Override @@ -66,6 +67,12 @@ private ListCryptoKeysRequest( pageToken_ = s; break; } + case 32: { + int rawValue = input.readEnum(); + + versionView_ = rawValue; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -202,6 +209,31 @@ public java.lang.String getPageToken() { } } + public static final int VERSION_VIEW_FIELD_NUMBER = 4; + private int versionView_; + /** + *
+   * The fields of the primary version to include in the response.
+   * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView version_view = 4; + */ + public int getVersionViewValue() { + return versionView_; + } + /** + *
+   * The fields of the primary version to include in the response.
+   * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView version_view = 4; + */ + public com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView getVersionView() { + @SuppressWarnings("deprecation") + com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView result = com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView.valueOf(versionView_); + return result == null ? com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView.UNRECOGNIZED : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -225,6 +257,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getPageTokenBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } + if (versionView_ != com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView.CRYPTO_KEY_VERSION_VIEW_UNSPECIFIED.getNumber()) { + output.writeEnum(4, versionView_); + } unknownFields.writeTo(output); } @@ -244,6 +279,10 @@ public int getSerializedSize() { if (!getPageTokenBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } + if (versionView_ != com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView.CRYPTO_KEY_VERSION_VIEW_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, versionView_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -266,6 +305,7 @@ public boolean equals(final java.lang.Object obj) { == other.getPageSize()); result = result && getPageToken() .equals(other.getPageToken()); + result = result && versionView_ == other.versionView_; result = result && unknownFields.equals(other.unknownFields); return result; } @@ -283,6 +323,8 @@ public int hashCode() { hash = (53 * hash) + getPageSize(); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + VERSION_VIEW_FIELD_NUMBER; + hash = (53 * hash) + versionView_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -426,6 +468,8 @@ public Builder clear() { pageToken_ = ""; + versionView_ = 0; + return this; } @@ -455,6 +499,7 @@ public com.google.cloud.kms.v1.ListCryptoKeysRequest buildPartial() { result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; + result.versionView_ = versionView_; onBuilt(); return result; } @@ -514,6 +559,9 @@ public Builder mergeFrom(com.google.cloud.kms.v1.ListCryptoKeysRequest other) { pageToken_ = other.pageToken_; onChanged(); } + if (other.versionView_ != 0) { + setVersionViewValue(other.getVersionViewValue()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -777,6 +825,71 @@ public Builder setPageTokenBytes( onChanged(); return this; } + + private int versionView_ = 0; + /** + *
+     * The fields of the primary version to include in the response.
+     * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView version_view = 4; + */ + public int getVersionViewValue() { + return versionView_; + } + /** + *
+     * The fields of the primary version to include in the response.
+     * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView version_view = 4; + */ + public Builder setVersionViewValue(int value) { + versionView_ = value; + onChanged(); + return this; + } + /** + *
+     * The fields of the primary version to include in the response.
+     * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView version_view = 4; + */ + public com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView getVersionView() { + @SuppressWarnings("deprecation") + com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView result = com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView.valueOf(versionView_); + return result == null ? com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView.UNRECOGNIZED : result; + } + /** + *
+     * The fields of the primary version to include in the response.
+     * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView version_view = 4; + */ + public Builder setVersionView(com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView value) { + if (value == null) { + throw new NullPointerException(); + } + + versionView_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The fields of the primary version to include in the response.
+     * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView version_view = 4; + */ + public Builder clearVersionView() { + + versionView_ = 0; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeysRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeysRequestOrBuilder.java index 7825247f1017..3ca97d03e914 100644 --- a/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeysRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ListCryptoKeysRequestOrBuilder.java @@ -58,4 +58,21 @@ public interface ListCryptoKeysRequestOrBuilder extends */ com.google.protobuf.ByteString getPageTokenBytes(); + + /** + *
+   * The fields of the primary version to include in the response.
+   * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView version_view = 4; + */ + int getVersionViewValue(); + /** + *
+   * The fields of the primary version to include in the response.
+   * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView version_view = 4; + */ + com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView getVersionView(); } diff --git a/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/LocationMetadata.java b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/LocationMetadata.java new file mode 100644 index 000000000000..aaba89f81fb1 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/LocationMetadata.java @@ -0,0 +1,505 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/kms/v1/service.proto + +package com.google.cloud.kms.v1; + +/** + *
+ * Cloud KMS metadata for the given [google.cloud.location.Location][google.cloud.location.Location].
+ * 
+ * + * Protobuf type {@code google.cloud.kms.v1.LocationMetadata} + */ +public final class LocationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.LocationMetadata) + LocationMetadataOrBuilder { +private static final long serialVersionUID = 0L; + // Use LocationMetadata.newBuilder() to construct. + private LocationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LocationMetadata() { + hsmAvailable_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LocationMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + hsmAvailable_ = input.readBool(); + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_LocationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_LocationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.kms.v1.LocationMetadata.class, com.google.cloud.kms.v1.LocationMetadata.Builder.class); + } + + public static final int HSM_AVAILABLE_FIELD_NUMBER = 1; + private boolean hsmAvailable_; + /** + *
+   * Indicates whether [CryptoKeys][google.cloud.kms.v1.CryptoKey] with
+   * [protection_level][google.cloud.kms.v1.CryptoKeyVersionTemplate.protection_level]
+   * [HSM][google.cloud.kms.v1.ProtectionLevel.HSM] can be created in this location.
+   * 
+ * + * bool hsm_available = 1; + */ + public boolean getHsmAvailable() { + return hsmAvailable_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (hsmAvailable_ != false) { + output.writeBool(1, hsmAvailable_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (hsmAvailable_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, hsmAvailable_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.kms.v1.LocationMetadata)) { + return super.equals(obj); + } + com.google.cloud.kms.v1.LocationMetadata other = (com.google.cloud.kms.v1.LocationMetadata) obj; + + boolean result = true; + result = result && (getHsmAvailable() + == other.getHsmAvailable()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + HSM_AVAILABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getHsmAvailable()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.kms.v1.LocationMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.kms.v1.LocationMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.kms.v1.LocationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.kms.v1.LocationMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.kms.v1.LocationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.kms.v1.LocationMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.kms.v1.LocationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.kms.v1.LocationMetadata parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.kms.v1.LocationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.kms.v1.LocationMetadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.kms.v1.LocationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.kms.v1.LocationMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.kms.v1.LocationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Cloud KMS metadata for the given [google.cloud.location.Location][google.cloud.location.Location].
+   * 
+ * + * Protobuf type {@code google.cloud.kms.v1.LocationMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.kms.v1.LocationMetadata) + com.google.cloud.kms.v1.LocationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_LocationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_LocationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.kms.v1.LocationMetadata.class, com.google.cloud.kms.v1.LocationMetadata.Builder.class); + } + + // Construct using com.google.cloud.kms.v1.LocationMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + hsmAvailable_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.kms.v1.KmsProto.internal_static_google_cloud_kms_v1_LocationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.kms.v1.LocationMetadata getDefaultInstanceForType() { + return com.google.cloud.kms.v1.LocationMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.kms.v1.LocationMetadata build() { + com.google.cloud.kms.v1.LocationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.kms.v1.LocationMetadata buildPartial() { + com.google.cloud.kms.v1.LocationMetadata result = new com.google.cloud.kms.v1.LocationMetadata(this); + result.hsmAvailable_ = hsmAvailable_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.kms.v1.LocationMetadata) { + return mergeFrom((com.google.cloud.kms.v1.LocationMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.kms.v1.LocationMetadata other) { + if (other == com.google.cloud.kms.v1.LocationMetadata.getDefaultInstance()) return this; + if (other.getHsmAvailable() != false) { + setHsmAvailable(other.getHsmAvailable()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.kms.v1.LocationMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.kms.v1.LocationMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean hsmAvailable_ ; + /** + *
+     * Indicates whether [CryptoKeys][google.cloud.kms.v1.CryptoKey] with
+     * [protection_level][google.cloud.kms.v1.CryptoKeyVersionTemplate.protection_level]
+     * [HSM][google.cloud.kms.v1.ProtectionLevel.HSM] can be created in this location.
+     * 
+ * + * bool hsm_available = 1; + */ + public boolean getHsmAvailable() { + return hsmAvailable_; + } + /** + *
+     * Indicates whether [CryptoKeys][google.cloud.kms.v1.CryptoKey] with
+     * [protection_level][google.cloud.kms.v1.CryptoKeyVersionTemplate.protection_level]
+     * [HSM][google.cloud.kms.v1.ProtectionLevel.HSM] can be created in this location.
+     * 
+ * + * bool hsm_available = 1; + */ + public Builder setHsmAvailable(boolean value) { + + hsmAvailable_ = value; + onChanged(); + return this; + } + /** + *
+     * Indicates whether [CryptoKeys][google.cloud.kms.v1.CryptoKey] with
+     * [protection_level][google.cloud.kms.v1.CryptoKeyVersionTemplate.protection_level]
+     * [HSM][google.cloud.kms.v1.ProtectionLevel.HSM] can be created in this location.
+     * 
+ * + * bool hsm_available = 1; + */ + public Builder clearHsmAvailable() { + + hsmAvailable_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.LocationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.LocationMetadata) + private static final com.google.cloud.kms.v1.LocationMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.kms.v1.LocationMetadata(); + } + + public static com.google.cloud.kms.v1.LocationMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LocationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LocationMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.kms.v1.LocationMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/LocationMetadataOrBuilder.java b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/LocationMetadataOrBuilder.java new file mode 100644 index 000000000000..d78a8df0b759 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/LocationMetadataOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/kms/v1/service.proto + +package com.google.cloud.kms.v1; + +public interface LocationMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.LocationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Indicates whether [CryptoKeys][google.cloud.kms.v1.CryptoKey] with
+   * [protection_level][google.cloud.kms.v1.CryptoKeyVersionTemplate.protection_level]
+   * [HSM][google.cloud.kms.v1.ProtectionLevel.HSM] can be created in this location.
+   * 
+ * + * bool hsm_available = 1; + */ + boolean getHsmAvailable(); +} diff --git a/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ProtectionLevel.java b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ProtectionLevel.java new file mode 100644 index 000000000000..f731415291e2 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ProtectionLevel.java @@ -0,0 +1,140 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/kms/v1/resources.proto + +package com.google.cloud.kms.v1; + +/** + *
+ * [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] specifies how cryptographic operations are performed.
+ * 
+ * + * Protobuf enum {@code google.cloud.kms.v1.ProtectionLevel} + */ +public enum ProtectionLevel + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+   * Not specified.
+   * 
+ * + * PROTECTION_LEVEL_UNSPECIFIED = 0; + */ + PROTECTION_LEVEL_UNSPECIFIED(0), + /** + *
+   * Crypto operations are performed in software.
+   * 
+ * + * SOFTWARE = 1; + */ + SOFTWARE(1), + /** + *
+   * Crypto operations are performed in a Hardware Security Module.
+   * 
+ * + * HSM = 2; + */ + HSM(2), + UNRECOGNIZED(-1), + ; + + /** + *
+   * Not specified.
+   * 
+ * + * PROTECTION_LEVEL_UNSPECIFIED = 0; + */ + public static final int PROTECTION_LEVEL_UNSPECIFIED_VALUE = 0; + /** + *
+   * Crypto operations are performed in software.
+   * 
+ * + * SOFTWARE = 1; + */ + public static final int SOFTWARE_VALUE = 1; + /** + *
+   * Crypto operations are performed in a Hardware Security Module.
+   * 
+ * + * HSM = 2; + */ + public static final int HSM_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ProtectionLevel valueOf(int value) { + return forNumber(value); + } + + public static ProtectionLevel forNumber(int value) { + switch (value) { + case 0: return PROTECTION_LEVEL_UNSPECIFIED; + case 1: return SOFTWARE; + case 2: return HSM; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ProtectionLevel> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ProtectionLevel findValueByNumber(int number) { + return ProtectionLevel.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.kms.v1.KmsResourcesProto.getDescriptor().getEnumTypes().get(0); + } + + private static final ProtectionLevel[] VALUES = values(); + + public static ProtectionLevel valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ProtectionLevel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.kms.v1.ProtectionLevel) +} + diff --git a/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/PublicKey.java b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/PublicKey.java new file mode 100644 index 000000000000..f7d239c35688 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/PublicKey.java @@ -0,0 +1,727 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/kms/v1/resources.proto + +package com.google.cloud.kms.v1; + +/** + *
+ * The public key for a given [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. Obtained via
+ * [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey].
+ * 
+ * + * Protobuf type {@code google.cloud.kms.v1.PublicKey} + */ +public final class PublicKey extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.PublicKey) + PublicKeyOrBuilder { +private static final long serialVersionUID = 0L; + // Use PublicKey.newBuilder() to construct. + private PublicKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PublicKey() { + pem_ = ""; + algorithm_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PublicKey( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + pem_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); + + algorithm_ = rawValue; + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_PublicKey_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_PublicKey_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.kms.v1.PublicKey.class, com.google.cloud.kms.v1.PublicKey.Builder.class); + } + + public static final int PEM_FIELD_NUMBER = 1; + private volatile java.lang.Object pem_; + /** + *
+   * The public key, encoded in PEM format. For more information, see the
+   * [RFC 7468](https://tools.ietf.org/html/rfc7468) sections for
+   * [General Considerations](https://tools.ietf.org/html/rfc7468#section-2) and
+   * [Textual Encoding of Subject Public Key Info]
+   * (https://tools.ietf.org/html/rfc7468#section-13).
+   * 
+ * + * string pem = 1; + */ + public java.lang.String getPem() { + java.lang.Object ref = pem_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pem_ = s; + return s; + } + } + /** + *
+   * The public key, encoded in PEM format. For more information, see the
+   * [RFC 7468](https://tools.ietf.org/html/rfc7468) sections for
+   * [General Considerations](https://tools.ietf.org/html/rfc7468#section-2) and
+   * [Textual Encoding of Subject Public Key Info]
+   * (https://tools.ietf.org/html/rfc7468#section-13).
+   * 
+ * + * string pem = 1; + */ + public com.google.protobuf.ByteString + getPemBytes() { + java.lang.Object ref = pem_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pem_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALGORITHM_FIELD_NUMBER = 2; + private int algorithm_; + /** + *
+   * The [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm] associated
+   * with this key.
+   * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 2; + */ + public int getAlgorithmValue() { + return algorithm_; + } + /** + *
+   * The [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm] associated
+   * with this key.
+   * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 2; + */ + public com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm getAlgorithm() { + @SuppressWarnings("deprecation") + com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm result = com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.valueOf(algorithm_); + return result == null ? com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getPemBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pem_); + } + if (algorithm_ != com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED.getNumber()) { + output.writeEnum(2, algorithm_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getPemBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, pem_); + } + if (algorithm_ != com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, algorithm_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.kms.v1.PublicKey)) { + return super.equals(obj); + } + com.google.cloud.kms.v1.PublicKey other = (com.google.cloud.kms.v1.PublicKey) obj; + + boolean result = true; + result = result && getPem() + .equals(other.getPem()); + result = result && algorithm_ == other.algorithm_; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PEM_FIELD_NUMBER; + hash = (53 * hash) + getPem().hashCode(); + hash = (37 * hash) + ALGORITHM_FIELD_NUMBER; + hash = (53 * hash) + algorithm_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.kms.v1.PublicKey parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.kms.v1.PublicKey parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.kms.v1.PublicKey parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.kms.v1.PublicKey parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.kms.v1.PublicKey parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.kms.v1.PublicKey parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.kms.v1.PublicKey parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.kms.v1.PublicKey parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.kms.v1.PublicKey parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.kms.v1.PublicKey parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.kms.v1.PublicKey parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.kms.v1.PublicKey parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.kms.v1.PublicKey prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * The public key for a given [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. Obtained via
+   * [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey].
+   * 
+ * + * Protobuf type {@code google.cloud.kms.v1.PublicKey} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.kms.v1.PublicKey) + com.google.cloud.kms.v1.PublicKeyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_PublicKey_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_PublicKey_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.kms.v1.PublicKey.class, com.google.cloud.kms.v1.PublicKey.Builder.class); + } + + // Construct using com.google.cloud.kms.v1.PublicKey.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + pem_ = ""; + + algorithm_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.kms.v1.KmsResourcesProto.internal_static_google_cloud_kms_v1_PublicKey_descriptor; + } + + @java.lang.Override + public com.google.cloud.kms.v1.PublicKey getDefaultInstanceForType() { + return com.google.cloud.kms.v1.PublicKey.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.kms.v1.PublicKey build() { + com.google.cloud.kms.v1.PublicKey result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.kms.v1.PublicKey buildPartial() { + com.google.cloud.kms.v1.PublicKey result = new com.google.cloud.kms.v1.PublicKey(this); + result.pem_ = pem_; + result.algorithm_ = algorithm_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.kms.v1.PublicKey) { + return mergeFrom((com.google.cloud.kms.v1.PublicKey)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.kms.v1.PublicKey other) { + if (other == com.google.cloud.kms.v1.PublicKey.getDefaultInstance()) return this; + if (!other.getPem().isEmpty()) { + pem_ = other.pem_; + onChanged(); + } + if (other.algorithm_ != 0) { + setAlgorithmValue(other.getAlgorithmValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.kms.v1.PublicKey parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.kms.v1.PublicKey) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object pem_ = ""; + /** + *
+     * The public key, encoded in PEM format. For more information, see the
+     * [RFC 7468](https://tools.ietf.org/html/rfc7468) sections for
+     * [General Considerations](https://tools.ietf.org/html/rfc7468#section-2) and
+     * [Textual Encoding of Subject Public Key Info]
+     * (https://tools.ietf.org/html/rfc7468#section-13).
+     * 
+ * + * string pem = 1; + */ + public java.lang.String getPem() { + java.lang.Object ref = pem_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pem_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The public key, encoded in PEM format. For more information, see the
+     * [RFC 7468](https://tools.ietf.org/html/rfc7468) sections for
+     * [General Considerations](https://tools.ietf.org/html/rfc7468#section-2) and
+     * [Textual Encoding of Subject Public Key Info]
+     * (https://tools.ietf.org/html/rfc7468#section-13).
+     * 
+ * + * string pem = 1; + */ + public com.google.protobuf.ByteString + getPemBytes() { + java.lang.Object ref = pem_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pem_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The public key, encoded in PEM format. For more information, see the
+     * [RFC 7468](https://tools.ietf.org/html/rfc7468) sections for
+     * [General Considerations](https://tools.ietf.org/html/rfc7468#section-2) and
+     * [Textual Encoding of Subject Public Key Info]
+     * (https://tools.ietf.org/html/rfc7468#section-13).
+     * 
+ * + * string pem = 1; + */ + public Builder setPem( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pem_ = value; + onChanged(); + return this; + } + /** + *
+     * The public key, encoded in PEM format. For more information, see the
+     * [RFC 7468](https://tools.ietf.org/html/rfc7468) sections for
+     * [General Considerations](https://tools.ietf.org/html/rfc7468#section-2) and
+     * [Textual Encoding of Subject Public Key Info]
+     * (https://tools.ietf.org/html/rfc7468#section-13).
+     * 
+ * + * string pem = 1; + */ + public Builder clearPem() { + + pem_ = getDefaultInstance().getPem(); + onChanged(); + return this; + } + /** + *
+     * The public key, encoded in PEM format. For more information, see the
+     * [RFC 7468](https://tools.ietf.org/html/rfc7468) sections for
+     * [General Considerations](https://tools.ietf.org/html/rfc7468#section-2) and
+     * [Textual Encoding of Subject Public Key Info]
+     * (https://tools.ietf.org/html/rfc7468#section-13).
+     * 
+ * + * string pem = 1; + */ + public Builder setPemBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pem_ = value; + onChanged(); + return this; + } + + private int algorithm_ = 0; + /** + *
+     * The [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm] associated
+     * with this key.
+     * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 2; + */ + public int getAlgorithmValue() { + return algorithm_; + } + /** + *
+     * The [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm] associated
+     * with this key.
+     * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 2; + */ + public Builder setAlgorithmValue(int value) { + algorithm_ = value; + onChanged(); + return this; + } + /** + *
+     * The [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm] associated
+     * with this key.
+     * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 2; + */ + public com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm getAlgorithm() { + @SuppressWarnings("deprecation") + com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm result = com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.valueOf(algorithm_); + return result == null ? com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.UNRECOGNIZED : result; + } + /** + *
+     * The [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm] associated
+     * with this key.
+     * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 2; + */ + public Builder setAlgorithm(com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm value) { + if (value == null) { + throw new NullPointerException(); + } + + algorithm_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm] associated
+     * with this key.
+     * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 2; + */ + public Builder clearAlgorithm() { + + algorithm_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.PublicKey) + } + + // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.PublicKey) + private static final com.google.cloud.kms.v1.PublicKey DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.kms.v1.PublicKey(); + } + + public static com.google.cloud.kms.v1.PublicKey getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PublicKey parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PublicKey(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.kms.v1.PublicKey getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/PublicKeyOrBuilder.java b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/PublicKeyOrBuilder.java new file mode 100644 index 000000000000..4a4fd44b4fd5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/PublicKeyOrBuilder.java @@ -0,0 +1,54 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/kms/v1/resources.proto + +package com.google.cloud.kms.v1; + +public interface PublicKeyOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.PublicKey) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The public key, encoded in PEM format. For more information, see the
+   * [RFC 7468](https://tools.ietf.org/html/rfc7468) sections for
+   * [General Considerations](https://tools.ietf.org/html/rfc7468#section-2) and
+   * [Textual Encoding of Subject Public Key Info]
+   * (https://tools.ietf.org/html/rfc7468#section-13).
+   * 
+ * + * string pem = 1; + */ + java.lang.String getPem(); + /** + *
+   * The public key, encoded in PEM format. For more information, see the
+   * [RFC 7468](https://tools.ietf.org/html/rfc7468) sections for
+   * [General Considerations](https://tools.ietf.org/html/rfc7468#section-2) and
+   * [Textual Encoding of Subject Public Key Info]
+   * (https://tools.ietf.org/html/rfc7468#section-13).
+   * 
+ * + * string pem = 1; + */ + com.google.protobuf.ByteString + getPemBytes(); + + /** + *
+   * The [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm] associated
+   * with this key.
+   * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 2; + */ + int getAlgorithmValue(); + /** + *
+   * The [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm] associated
+   * with this key.
+   * 
+ * + * .google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 2; + */ + com.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm getAlgorithm(); +} diff --git a/google-api-grpc/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/resources.proto b/google-api-grpc/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/resources.proto index 212842650941..0bd39ef2678c 100644 --- a/google-api-grpc/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/resources.proto +++ b/google-api-grpc/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/resources.proto @@ -1,4 +1,4 @@ -// Copyright 2017 Google Inc. +// Copyright 2018 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// syntax = "proto3"; @@ -45,9 +46,9 @@ message KeyRing { // A [CryptoKey][google.cloud.kms.v1.CryptoKey] is made up of one or more [versions][google.cloud.kms.v1.CryptoKeyVersion], which // represent the actual key material used in cryptographic operations. message CryptoKey { - // [CryptoKeyPurpose][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose] describes the capabilities of a [CryptoKey][google.cloud.kms.v1.CryptoKey]. Two - // keys with the same purpose may use different underlying algorithms, but - // must support the same set of operations. + // [CryptoKeyPurpose][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose] describes the cryptographic capabilities of a + // [CryptoKey][google.cloud.kms.v1.CryptoKey]. A given key can only be used for the operations allowed by + // its purpose. enum CryptoKeyPurpose { // Not specified. CRYPTO_KEY_PURPOSE_UNSPECIFIED = 0; @@ -56,6 +57,16 @@ message CryptoKey { // [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt] and // [Decrypt][google.cloud.kms.v1.KeyManagementService.Decrypt]. ENCRYPT_DECRYPT = 1; + + // [CryptoKeys][google.cloud.kms.v1.CryptoKey] with this purpose may be used with + // [AsymmetricSign][google.cloud.kms.v1.KeyManagementService.AsymmetricSign] and + // [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey]. + ASYMMETRIC_SIGN = 5; + + // [CryptoKeys][google.cloud.kms.v1.CryptoKey] with this purpose may be used with + // [AsymmetricDecrypt][google.cloud.kms.v1.KeyManagementService.AsymmetricDecrypt] and + // [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey]. + ASYMMETRIC_DECRYPT = 6; } // Output only. The resource name for this [CryptoKey][google.cloud.kms.v1.CryptoKey] in the format @@ -68,10 +79,13 @@ message CryptoKey { // // The [CryptoKey][google.cloud.kms.v1.CryptoKey]'s primary version can be updated via // [UpdateCryptoKeyPrimaryVersion][google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyPrimaryVersion]. + // + // All keys with [purpose][google.cloud.kms.v1.CryptoKey.purpose] + // [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT] have a + // primary. For other keys, this field will be omitted. CryptoKeyVersion primary = 2; - // The immutable purpose of this [CryptoKey][google.cloud.kms.v1.CryptoKey]. Currently, the only acceptable - // purpose is [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT]. + // The immutable purpose of this [CryptoKey][google.cloud.kms.v1.CryptoKey]. CryptoKeyPurpose purpose = 3; // Output only. The time at which this [CryptoKey][google.cloud.kms.v1.CryptoKey] was created. @@ -86,6 +100,10 @@ message CryptoKey { // [CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion] and // [UpdateCryptoKeyPrimaryVersion][google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyPrimaryVersion] // do not affect [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time]. + // + // Keys with [purpose][google.cloud.kms.v1.CryptoKey.purpose] + // [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT] support + // automatic rotation. For other keys, this field must be omitted. google.protobuf.Timestamp next_rotation_time = 7; // Controls the rate of automatic rotation. @@ -94,33 +112,155 @@ message CryptoKey { // automatically rotates a key. Must be at least one day. // // If [rotation_period][google.cloud.kms.v1.CryptoKey.rotation_period] is set, [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time] must also be set. + // + // Keys with [purpose][google.cloud.kms.v1.CryptoKey.purpose] + // [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT] support + // automatic rotation. For other keys, this field must be omitted. google.protobuf.Duration rotation_period = 8; } + // A template describing settings for new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] instances. + // The properties of new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] instances created by either + // [CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion] or + // auto-rotation are controlled by this template. + CryptoKeyVersionTemplate version_template = 11; + // Labels with user-defined metadata. For more information, see // [Labeling Keys](/kms/docs/labeling-keys). map labels = 10; } +// A [CryptoKeyVersionTemplate][google.cloud.kms.v1.CryptoKeyVersionTemplate] specifies the properties to use when creating +// a new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion], either manually with +// [CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion] or +// automatically as a result of auto-rotation. +message CryptoKeyVersionTemplate { + // [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] to use when creating a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] based on + // this template. Immutable. Defaults to [SOFTWARE][google.cloud.kms.v1.ProtectionLevel.SOFTWARE]. + ProtectionLevel protection_level = 1; + + // Required. [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm] to use + // when creating a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] based on this template. + // + // For backwards compatibility, GOOGLE_SYMMETRIC_ENCRYPTION is implied if both + // this field is omitted and [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] is + // [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT]. + CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 3; +} + +// Contains an HSM-generated attestation about a key operation. +message KeyOperationAttestation { + // Attestion formats provided by the HSM. + enum AttestationFormat { + ATTESTATION_FORMAT_UNSPECIFIED = 0; + + // Cavium HSM attestation compressed with gzip. Note that this format is + // defined by Cavium and subject to change at any time. + CAVIUM_V1_COMPRESSED = 3; + } + + // Output only. The format of the attestation data. + AttestationFormat format = 4; + + // Output only. The attestation data provided by the HSM when the key + // operation was performed. + bytes content = 5; +} + // A [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] represents an individual cryptographic key, and the // associated key material. // -// It can be used for cryptographic operations either directly, or via its -// parent [CryptoKey][google.cloud.kms.v1.CryptoKey], in which case the server will choose the appropriate -// version for the operation. +// An [ENABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.ENABLED] version can be +// used for cryptographic operations. // // For security reasons, the raw cryptographic key material represented by a // [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] can never be viewed or exported. It can only be used to -// encrypt or decrypt data when an authorized user or application invokes Cloud -// KMS. +// encrypt, decrypt, or sign data when an authorized user or application invokes +// Cloud KMS. message CryptoKeyVersion { + // The algorithm of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion], indicating what + // parameters must be used for each cryptographic operation. + // + // The + // [GOOGLE_SYMMETRIC_ENCRYPTION][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.GOOGLE_SYMMETRIC_ENCRYPTION] + // algorithm is usable with [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] + // [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT]. + // + // Algorithms beginning with "RSA_SIGN_" are usable with [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] + // [ASYMMETRIC_SIGN][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ASYMMETRIC_SIGN]. + // + // The fields in the name after "RSA_SIGN_" correspond to the following + // parameters: padding algorithm, modulus bit length, and digest algorithm. + // + // For PSS, the salt length used is equal to the length of digest + // algorithm. For example, + // [RSA_SIGN_PSS_2048_SHA256][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm.RSA_SIGN_PSS_2048_SHA256] + // will use PSS with a salt length of 256 bits or 32 bytes. + // + // Algorithms beginning with "RSA_DECRYPT_" are usable with + // [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] + // [ASYMMETRIC_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ASYMMETRIC_DECRYPT]. + // + // The fields in the name after "RSA_DECRYPT_" correspond to the following + // parameters: padding algorithm, modulus bit length, and digest algorithm. + // + // Algorithms beginning with "EC_SIGN_" are usable with [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] + // [ASYMMETRIC_SIGN][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ASYMMETRIC_SIGN]. + // + // The fields in the name after "EC_SIGN_" correspond to the following + // parameters: elliptic curve, digest algorithm. + enum CryptoKeyVersionAlgorithm { + // Not specified. + CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED = 0; + + // Creates symmetric encryption keys. + GOOGLE_SYMMETRIC_ENCRYPTION = 1; + + // RSASSA-PSS 2048 bit key with a SHA256 digest. + RSA_SIGN_PSS_2048_SHA256 = 2; + + // RSASSA-PSS 3072 bit key with a SHA256 digest. + RSA_SIGN_PSS_3072_SHA256 = 3; + + // RSASSA-PSS 4096 bit key with a SHA256 digest. + RSA_SIGN_PSS_4096_SHA256 = 4; + + // RSASSA-PKCS1-v1_5 with a 2048 bit key and a SHA256 digest. + RSA_SIGN_PKCS1_2048_SHA256 = 5; + + // RSASSA-PKCS1-v1_5 with a 3072 bit key and a SHA256 digest. + RSA_SIGN_PKCS1_3072_SHA256 = 6; + + // RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA256 digest. + RSA_SIGN_PKCS1_4096_SHA256 = 7; + + // RSAES-OAEP 2048 bit key with a SHA256 digest. + RSA_DECRYPT_OAEP_2048_SHA256 = 8; + + // RSAES-OAEP 3072 bit key with a SHA256 digest. + RSA_DECRYPT_OAEP_3072_SHA256 = 9; + + // RSAES-OAEP 4096 bit key with a SHA256 digest. + RSA_DECRYPT_OAEP_4096_SHA256 = 10; + + // ECDSA on the NIST P-256 curve with a SHA256 digest. + EC_SIGN_P256_SHA256 = 12; + + // ECDSA on the NIST P-384 curve with a SHA384 digest. + EC_SIGN_P384_SHA384 = 13; + } + // The state of a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion], indicating if it can be used. enum CryptoKeyVersionState { // Not specified. CRYPTO_KEY_VERSION_STATE_UNSPECIFIED = 0; - // This version may be used in [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt] and - // [Decrypt][google.cloud.kms.v1.KeyManagementService.Decrypt] requests. + // This version is still being generated. It may not be used, enabled, + // disabled, or destroyed yet. Cloud KMS will automatically mark this + // version [ENABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.ENABLED] as soon as the version is ready. + PENDING_GENERATION = 5; + + // This version may be used for cryptographic operations. ENABLED = 1; // This version may not be used, but the key material is still available, @@ -138,6 +278,20 @@ message CryptoKeyVersion { DESTROY_SCHEDULED = 4; } + // A view for [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]s. Controls the level of detail returned + // for [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] in + // [KeyManagementService.ListCryptoKeyVersions][google.cloud.kms.v1.KeyManagementService.ListCryptoKeyVersions] and + // [KeyManagementService.ListCryptoKeys][google.cloud.kms.v1.KeyManagementService.ListCryptoKeys]. + enum CryptoKeyVersionView { + // Default view for each [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. Does not include + // the [attestation][google.cloud.kms.v1.CryptoKeyVersion.attestation] field. + CRYPTO_KEY_VERSION_VIEW_UNSPECIFIED = 0; + + // Provides all fields in each [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion], including the + // [attestation][google.cloud.kms.v1.CryptoKeyVersion.attestation]. + FULL = 1; + } + // Output only. The resource name for this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in the format // `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`. string name = 1; @@ -145,9 +299,27 @@ message CryptoKeyVersion { // The current state of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. CryptoKeyVersionState state = 3; + // Output only. The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] describing how crypto operations are + // performed with this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. + ProtectionLevel protection_level = 7; + + // Output only. The [CryptoKeyVersionAlgorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm] that this + // [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] supports. + CryptoKeyVersionAlgorithm algorithm = 10; + + // Output only. Statement that was generated and signed by the HSM at key + // creation time. Use this statement to verify attributes of the key as stored + // on the HSM, independently of Google. Only provided for key versions with + // [protection_level][google.cloud.kms.v1.CryptoKeyVersion.protection_level] [HSM][google.cloud.kms.v1.ProtectionLevel.HSM]. + KeyOperationAttestation attestation = 8; + // Output only. The time at which this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] was created. google.protobuf.Timestamp create_time = 4; + // Output only. The time this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material was + // generated. + google.protobuf.Timestamp generate_time = 11; + // Output only. The time this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s key material is scheduled // for destruction. Only present if [state][google.cloud.kms.v1.CryptoKeyVersion.state] is // [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED]. @@ -158,3 +330,30 @@ message CryptoKeyVersion { // [DESTROYED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROYED]. google.protobuf.Timestamp destroy_event_time = 6; } + +// The public key for a given [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. Obtained via +// [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey]. +message PublicKey { + // The public key, encoded in PEM format. For more information, see the + // [RFC 7468](https://tools.ietf.org/html/rfc7468) sections for + // [General Considerations](https://tools.ietf.org/html/rfc7468#section-2) and + // [Textual Encoding of Subject Public Key Info] + // (https://tools.ietf.org/html/rfc7468#section-13). + string pem = 1; + + // The [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm] associated + // with this key. + CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 2; +} + +// [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] specifies how cryptographic operations are performed. +enum ProtectionLevel { + // Not specified. + PROTECTION_LEVEL_UNSPECIFIED = 0; + + // Crypto operations are performed in software. + SOFTWARE = 1; + + // Crypto operations are performed in a Hardware Security Module. + HSM = 2; +} diff --git a/google-api-grpc/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/service.proto b/google-api-grpc/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/service.proto index 682c95fc8508..22026578c0f3 100644 --- a/google-api-grpc/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/service.proto +++ b/google-api-grpc/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/service.proto @@ -1,4 +1,4 @@ -// Copyright 2017 Google Inc. +// Copyright 2018 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// syntax = "proto3"; @@ -39,48 +40,81 @@ option php_namespace = "Google\\Cloud\\Kms\\V1"; // * [KeyRing][google.cloud.kms.v1.KeyRing] // * [CryptoKey][google.cloud.kms.v1.CryptoKey] // * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] +// +// If you are using manual gRPC libraries, see +// [Using gRPC with Cloud KMS](https://cloud.google.com/kms/docs/grpc). service KeyManagementService { // Lists [KeyRings][google.cloud.kms.v1.KeyRing]. rpc ListKeyRings(ListKeyRingsRequest) returns (ListKeyRingsResponse) { - option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*}/keyRings" }; + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/keyRings" + }; } // Lists [CryptoKeys][google.cloud.kms.v1.CryptoKey]. rpc ListCryptoKeys(ListCryptoKeysRequest) returns (ListCryptoKeysResponse) { - option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*/keyRings/*}/cryptoKeys" }; + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/keyRings/*}/cryptoKeys" + }; } // Lists [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion]. rpc ListCryptoKeyVersions(ListCryptoKeyVersionsRequest) returns (ListCryptoKeyVersionsResponse) { - option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*/keyRings/*/cryptoKeys/*}/cryptoKeyVersions" }; + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/keyRings/*/cryptoKeys/*}/cryptoKeyVersions" + }; } // Returns metadata for a given [KeyRing][google.cloud.kms.v1.KeyRing]. rpc GetKeyRing(GetKeyRingRequest) returns (KeyRing) { - option (google.api.http) = { get: "/v1/{name=projects/*/locations/*/keyRings/*}" }; + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/keyRings/*}" + }; } // Returns metadata for a given [CryptoKey][google.cloud.kms.v1.CryptoKey], as well as its // [primary][google.cloud.kms.v1.CryptoKey.primary] [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. rpc GetCryptoKey(GetCryptoKeyRequest) returns (CryptoKey) { - option (google.api.http) = { get: "/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*}" }; + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*}" + }; } // Returns metadata for a given [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. rpc GetCryptoKeyVersion(GetCryptoKeyVersionRequest) returns (CryptoKeyVersion) { - option (google.api.http) = { get: "/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}" }; + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}" + }; + } + + // Returns the public key for the given [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. The + // [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] must be + // [ASYMMETRIC_SIGN][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ASYMMETRIC_SIGN] or + // [ASYMMETRIC_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ASYMMETRIC_DECRYPT]. + rpc GetPublicKey(GetPublicKeyRequest) returns (PublicKey) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}/publicKey" + }; } // Create a new [KeyRing][google.cloud.kms.v1.KeyRing] in a given Project and Location. rpc CreateKeyRing(CreateKeyRingRequest) returns (KeyRing) { - option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*}/keyRings" body: "key_ring" }; + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/keyRings" + body: "key_ring" + }; } // Create a new [CryptoKey][google.cloud.kms.v1.CryptoKey] within a [KeyRing][google.cloud.kms.v1.KeyRing]. // - // [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] is required. + // [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] and + // [CryptoKey.version_template.algorithm][google.cloud.kms.v1.CryptoKeyVersionTemplate.algorithm] + // are required. rpc CreateCryptoKey(CreateCryptoKeyRequest) returns (CryptoKey) { - option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*/keyRings/*}/cryptoKeys" body: "crypto_key" }; + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/keyRings/*}/cryptoKeys" + body: "crypto_key" + }; } // Create a new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in a [CryptoKey][google.cloud.kms.v1.CryptoKey]. @@ -89,12 +123,18 @@ service KeyManagementService { // [state][google.cloud.kms.v1.CryptoKeyVersion.state] will be set to // [ENABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.ENABLED]. rpc CreateCryptoKeyVersion(CreateCryptoKeyVersionRequest) returns (CryptoKeyVersion) { - option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*/keyRings/*/cryptoKeys/*}/cryptoKeyVersions" body: "crypto_key_version" }; + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/keyRings/*/cryptoKeys/*}/cryptoKeyVersions" + body: "crypto_key_version" + }; } // Update a [CryptoKey][google.cloud.kms.v1.CryptoKey]. rpc UpdateCryptoKey(UpdateCryptoKeyRequest) returns (CryptoKey) { - option (google.api.http) = { patch: "/v1/{crypto_key.name=projects/*/locations/*/keyRings/*/cryptoKeys/*}" body: "crypto_key" }; + option (google.api.http) = { + patch: "/v1/{crypto_key.name=projects/*/locations/*/keyRings/*/cryptoKeys/*}" + body: "crypto_key" + }; } // Update a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s metadata. @@ -105,22 +145,59 @@ service KeyManagementService { // method. See [DestroyCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.DestroyCryptoKeyVersion] and [RestoreCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.RestoreCryptoKeyVersion] to // move between other states. rpc UpdateCryptoKeyVersion(UpdateCryptoKeyVersionRequest) returns (CryptoKeyVersion) { - option (google.api.http) = { patch: "/v1/{crypto_key_version.name=projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}" body: "crypto_key_version" }; + option (google.api.http) = { + patch: "/v1/{crypto_key_version.name=projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}" + body: "crypto_key_version" + }; } // Encrypts data, so that it can only be recovered by a call to [Decrypt][google.cloud.kms.v1.KeyManagementService.Decrypt]. + // The [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] must be + // [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT]. rpc Encrypt(EncryptRequest) returns (EncryptResponse) { - option (google.api.http) = { post: "/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/**}:encrypt" body: "*" }; + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/**}:encrypt" + body: "*" + }; } - // Decrypts data that was protected by [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]. + // Decrypts data that was protected by [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]. The [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] + // must be [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT]. rpc Decrypt(DecryptRequest) returns (DecryptResponse) { - option (google.api.http) = { post: "/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*}:decrypt" body: "*" }; + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*}:decrypt" + body: "*" + }; + } + + // Signs data using a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] + // ASYMMETRIC_SIGN, producing a signature that can be verified with the public + // key retrieved from [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey]. + rpc AsymmetricSign(AsymmetricSignRequest) returns (AsymmetricSignResponse) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}:asymmetricSign" + body: "*" + }; + } + + // Decrypts data that was encrypted with a public key retrieved from + // [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey] corresponding to a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with + // [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] ASYMMETRIC_DECRYPT. + rpc AsymmetricDecrypt(AsymmetricDecryptRequest) returns (AsymmetricDecryptResponse) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}:asymmetricDecrypt" + body: "*" + }; } - // Update the version of a [CryptoKey][google.cloud.kms.v1.CryptoKey] that will be used in [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt] + // Update the version of a [CryptoKey][google.cloud.kms.v1.CryptoKey] that will be used in [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]. + // + // Returns an error if called on an asymmetric key. rpc UpdateCryptoKeyPrimaryVersion(UpdateCryptoKeyPrimaryVersionRequest) returns (CryptoKey) { - option (google.api.http) = { post: "/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*}:updatePrimaryVersion" body: "*" }; + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*}:updatePrimaryVersion" + body: "*" + }; } // Schedule a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] for destruction. @@ -136,18 +213,24 @@ service KeyManagementService { // Before the [destroy_time][google.cloud.kms.v1.CryptoKeyVersion.destroy_time] is reached, // [RestoreCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.RestoreCryptoKeyVersion] may be called to reverse the process. rpc DestroyCryptoKeyVersion(DestroyCryptoKeyVersionRequest) returns (CryptoKeyVersion) { - option (google.api.http) = { post: "/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}:destroy" body: "*" }; + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}:destroy" + body: "*" + }; } // Restore a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in the - // [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED], + // [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED] // state. // // Upon restoration of the CryptoKeyVersion, [state][google.cloud.kms.v1.CryptoKeyVersion.state] // will be set to [DISABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DISABLED], // and [destroy_time][google.cloud.kms.v1.CryptoKeyVersion.destroy_time] will be cleared. rpc RestoreCryptoKeyVersion(RestoreCryptoKeyVersionRequest) returns (CryptoKeyVersion) { - option (google.api.http) = { post: "/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}:restore" body: "*" }; + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}:restore" + body: "*" + }; } } @@ -183,6 +266,9 @@ message ListCryptoKeysRequest { // Optional pagination token, returned earlier via // [ListCryptoKeysResponse.next_page_token][google.cloud.kms.v1.ListCryptoKeysResponse.next_page_token]. string page_token = 3; + + // The fields of the primary version to include in the response. + CryptoKeyVersion.CryptoKeyVersionView version_view = 4; } // Request message for [KeyManagementService.ListCryptoKeyVersions][google.cloud.kms.v1.KeyManagementService.ListCryptoKeyVersions]. @@ -201,6 +287,9 @@ message ListCryptoKeyVersionsRequest { // Optional pagination token, returned earlier via // [ListCryptoKeyVersionsResponse.next_page_token][google.cloud.kms.v1.ListCryptoKeyVersionsResponse.next_page_token]. string page_token = 3; + + // The fields to include in the response. + CryptoKeyVersion.CryptoKeyVersionView view = 4; } // Response message for [KeyManagementService.ListKeyRings][google.cloud.kms.v1.KeyManagementService.ListKeyRings]. @@ -262,6 +351,13 @@ message GetCryptoKeyVersionRequest { string name = 1; } +// Request message for [KeyManagementService.GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey]. +message GetPublicKeyRequest { + // The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key to + // get. + string name = 1; +} + // Request message for [KeyManagementService.CreateKeyRing][google.cloud.kms.v1.KeyManagementService.CreateKeyRing]. message CreateKeyRingRequest { // Required. The resource name of the location associated with the @@ -328,11 +424,24 @@ message EncryptRequest { string name = 1; // Required. The data to encrypt. Must be no larger than 64KiB. + // + // The maximum size depends on the key version's + // [protection_level][google.cloud.kms.v1.CryptoKeyVersionTemplate.protection_level]. For + // [SOFTWARE][google.cloud.kms.v1.ProtectionLevel.SOFTWARE] keys, the plaintext must be no larger + // than 64KiB. For [HSM][google.cloud.kms.v1.ProtectionLevel.HSM] keys, the combined length of the + // plaintext and additional_authenticated_data fields must be no larger than + // 8KiB. bytes plaintext = 2; // Optional data that, if specified, must also be provided during decryption - // through [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data]. Must be no - // larger than 64KiB. + // through [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data]. + // + // The maximum size depends on the key version's + // [protection_level][google.cloud.kms.v1.CryptoKeyVersionTemplate.protection_level]. For + // [SOFTWARE][google.cloud.kms.v1.ProtectionLevel.SOFTWARE] keys, the AAD must be no larger than + // 64KiB. For [HSM][google.cloud.kms.v1.ProtectionLevel.HSM] keys, the combined length of the + // plaintext and additional_authenticated_data fields must be no larger than + // 8KiB. bytes additional_authenticated_data = 3; } @@ -351,6 +460,28 @@ message DecryptRequest { bytes additional_authenticated_data = 3; } +// Request message for [KeyManagementService.AsymmetricSign][google.cloud.kms.v1.KeyManagementService.AsymmetricSign]. +message AsymmetricSignRequest { + // Required. The resource name of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for signing. + string name = 1; + + // Required. The digest of the data to sign. The digest must be produced with + // the same digest algorithm as specified by the key version's + // [algorithm][google.cloud.kms.v1.CryptoKeyVersion.algorithm]. + Digest digest = 3; +} + +// Request message for [KeyManagementService.AsymmetricDecrypt][google.cloud.kms.v1.KeyManagementService.AsymmetricDecrypt]. +message AsymmetricDecryptRequest { + // Required. The resource name of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for + // decryption. + string name = 1; + + // Required. The data encrypted with the named [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s public + // key using OAEP. + bytes ciphertext = 3; +} + // Response message for [KeyManagementService.Decrypt][google.cloud.kms.v1.KeyManagementService.Decrypt]. message DecryptResponse { // The decrypted data originally supplied in [EncryptRequest.plaintext][google.cloud.kms.v1.EncryptRequest.plaintext]. @@ -366,6 +497,18 @@ message EncryptResponse { bytes ciphertext = 2; } +// Response message for [KeyManagementService.AsymmetricSign][google.cloud.kms.v1.KeyManagementService.AsymmetricSign]. +message AsymmetricSignResponse { + // The created signature. + bytes signature = 1; +} + +// Response message for [KeyManagementService.AsymmetricDecrypt][google.cloud.kms.v1.KeyManagementService.AsymmetricDecrypt]. +message AsymmetricDecryptResponse { + // The decrypted data originally encrypted with the matching public key. + bytes plaintext = 1; +} + // Request message for [KeyManagementService.UpdateCryptoKeyPrimaryVersion][google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyPrimaryVersion]. message UpdateCryptoKeyPrimaryVersionRequest { // The resource name of the [CryptoKey][google.cloud.kms.v1.CryptoKey] to update. @@ -386,3 +529,26 @@ message RestoreCryptoKeyVersionRequest { // The resource name of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to restore. string name = 1; } + +// A [Digest][google.cloud.kms.v1.Digest] holds a cryptographic message digest. +message Digest { + // Required. The message digest. + oneof digest { + // A message digest produced with the SHA-256 algorithm. + bytes sha256 = 1; + + // A message digest produced with the SHA-384 algorithm. + bytes sha384 = 2; + + // A message digest produced with the SHA-512 algorithm. + bytes sha512 = 3; + } +} + +// Cloud KMS metadata for the given [google.cloud.location.Location][google.cloud.location.Location]. +message LocationMetadata { + // Indicates whether [CryptoKeys][google.cloud.kms.v1.CryptoKey] with + // [protection_level][google.cloud.kms.v1.CryptoKeyVersionTemplate.protection_level] + // [HSM][google.cloud.kms.v1.ProtectionLevel.HSM] can be created in this location. + bool hsm_available = 1; +} diff --git a/google-cloud-clients/google-cloud-bigtable-admin/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableInstanceAdminClient.java b/google-cloud-clients/google-cloud-bigtable-admin/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableInstanceAdminClient.java index b0b9caefbc2a..5cc716c7d21d 100644 --- a/google-cloud-clients/google-cloud-bigtable-admin/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableInstanceAdminClient.java +++ b/google-cloud-clients/google-cloud-bigtable-admin/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableInstanceAdminClient.java @@ -235,7 +235,7 @@ public final OperationsClient getOperationsClient() { * @param clusters The clusters to be created within the instance, mapped by desired cluster ID, * e.g., just `mycluster` rather than * `projects/myproject/instances/myinstance/clusters/mycluster`. Fields marked `OutputOnly` - * must be left blank. Currently exactly one cluster must be specified. + * must be left blank. Currently, at most two clusters can be specified. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi( @@ -277,7 +277,7 @@ public final OperationFuture createInstanceAsy * @param clusters The clusters to be created within the instance, mapped by desired cluster ID, * e.g., just `mycluster` rather than * `projects/myproject/instances/myinstance/clusters/mycluster`. Fields marked `OutputOnly` - * must be left blank. Currently exactly one cluster must be specified. + * must be left blank. Currently, at most two clusters can be specified. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi( @@ -1520,7 +1520,9 @@ public final UnaryCallable getAppProfileCallab *
* * @param parent The unique name of the instance for which a list of app profiles is requested. - * Values are of the form `projects/<project>/instances/<instance>`. + * Values are of the form `projects/<project>/instances/<instance>`. Use + * `<instance> = '-'` to list AppProfiles for all Instances in a project, e.g., + * `projects/myproject/instances/-`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListAppProfilesPagedResponse listAppProfiles(InstanceName parent) { @@ -1547,7 +1549,9 @@ public final ListAppProfilesPagedResponse listAppProfiles(InstanceName parent) { *
* * @param parent The unique name of the instance for which a list of app profiles is requested. - * Values are of the form `projects/<project>/instances/<instance>`. + * Values are of the form `projects/<project>/instances/<instance>`. Use + * `<instance> = '-'` to list AppProfiles for all Instances in a project, e.g., + * `projects/myproject/instances/-`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListAppProfilesPagedResponse listAppProfiles(String parent) { diff --git a/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/BigtableStubSettings.java b/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/BigtableStubSettings.java index 5a2a03039fb3..9289801b5444 100644 --- a/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/BigtableStubSettings.java +++ b/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/BigtableStubSettings.java @@ -309,26 +309,11 @@ private static Builder createDefault() { private static Builder initDefaults(Builder builder) { - builder - .readRowsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("streaming")); - - builder - .sampleRowKeysSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); - builder .mutateRowSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); - builder - .mutateRowsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); - builder .checkAndMutateRowSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) diff --git a/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1beta1/stub/FirestoreStubSettings.java b/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1beta1/stub/FirestoreStubSettings.java index 36eac47a77c8..fb324fff3426 100644 --- a/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1beta1/stub/FirestoreStubSettings.java +++ b/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1beta1/stub/FirestoreStubSettings.java @@ -543,11 +543,6 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); - builder - .batchGetDocumentsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("streaming")); - builder .beginTransactionSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) @@ -563,11 +558,6 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); - builder - .runQuerySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); - builder .listCollectionIdsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) diff --git a/google-cloud-clients/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceClient.java b/google-cloud-clients/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceClient.java index fc65fe176564..40b59707ae22 100644 --- a/google-cloud-clients/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceClient.java +++ b/google-cloud-clients/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceClient.java @@ -49,6 +49,9 @@ *

* [KeyRing][google.cloud.kms.v1.KeyRing] * [CryptoKey][google.cloud.kms.v1.CryptoKey] * * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] * + *

If you are using manual gRPC libraries, see [Using gRPC with Cloud + * KMS](https://cloud.google.com/kms/docs/grpc). + * *

This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: * @@ -978,7 +981,9 @@ public final UnaryCallable createKeyRingCallable( * Create a new [CryptoKey][google.cloud.kms.v1.CryptoKey] within a * [KeyRing][google.cloud.kms.v1.KeyRing]. * - *

[CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] is required. + *

[CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] and + * [CryptoKey.version_template.algorithm][google.cloud.kms.v1.CryptoKeyVersionTemplate.algorithm] + * are required. * *

Sample code: * @@ -1028,7 +1033,9 @@ public final CryptoKey createCryptoKey( * Create a new [CryptoKey][google.cloud.kms.v1.CryptoKey] within a * [KeyRing][google.cloud.kms.v1.KeyRing]. * - *

[CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] is required. + *

[CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] and + * [CryptoKey.version_template.algorithm][google.cloud.kms.v1.CryptoKeyVersionTemplate.algorithm] + * are required. * *

Sample code: * @@ -1077,7 +1084,9 @@ public final CryptoKey createCryptoKey(String parent, String cryptoKeyId, Crypto * Create a new [CryptoKey][google.cloud.kms.v1.CryptoKey] within a * [KeyRing][google.cloud.kms.v1.KeyRing]. * - *

[CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] is required. + *

[CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] and + * [CryptoKey.version_template.algorithm][google.cloud.kms.v1.CryptoKeyVersionTemplate.algorithm] + * are required. * *

Sample code: * @@ -1120,7 +1129,9 @@ public final CryptoKey createCryptoKey(CreateCryptoKeyRequest request) { * Create a new [CryptoKey][google.cloud.kms.v1.CryptoKey] within a * [KeyRing][google.cloud.kms.v1.KeyRing]. * - *

[CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] is required. + *

[CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] and + * [CryptoKey.version_template.algorithm][google.cloud.kms.v1.CryptoKeyVersionTemplate.algorithm] + * are required. * *

Sample code: * @@ -1475,7 +1486,9 @@ public final CryptoKeyVersion updateCryptoKeyVersion(UpdateCryptoKeyVersionReque // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Encrypts data, so that it can only be recovered by a call to - * [Decrypt][google.cloud.kms.v1.KeyManagementService.Decrypt]. + * [Decrypt][google.cloud.kms.v1.KeyManagementService.Decrypt]. The + * [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] must be + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT]. * *

Sample code: * @@ -1492,6 +1505,12 @@ public final CryptoKeyVersion updateCryptoKeyVersion(UpdateCryptoKeyVersionReque *

If a [CryptoKey][google.cloud.kms.v1.CryptoKey] is specified, the server will use its * [primary version][google.cloud.kms.v1.CryptoKey.primary]. * @param plaintext Required. The data to encrypt. Must be no larger than 64KiB. + *

The maximum size depends on the key version's + * [protection_level][google.cloud.kms.v1.CryptoKeyVersionTemplate.protection_level]. For + * [SOFTWARE][google.cloud.kms.v1.ProtectionLevel.SOFTWARE] keys, the plaintext must be no + * larger than 64KiB. For [HSM][google.cloud.kms.v1.ProtectionLevel.HSM] keys, the combined + * length of the plaintext and additional_authenticated_data fields must be no larger than + * 8KiB. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final EncryptResponse encrypt(CryptoKeyPathName name, ByteString plaintext) { @@ -1507,7 +1526,9 @@ public final EncryptResponse encrypt(CryptoKeyPathName name, ByteString plaintex // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Encrypts data, so that it can only be recovered by a call to - * [Decrypt][google.cloud.kms.v1.KeyManagementService.Decrypt]. + * [Decrypt][google.cloud.kms.v1.KeyManagementService.Decrypt]. The + * [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] must be + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT]. * *

Sample code: * @@ -1524,6 +1545,12 @@ public final EncryptResponse encrypt(CryptoKeyPathName name, ByteString plaintex *

If a [CryptoKey][google.cloud.kms.v1.CryptoKey] is specified, the server will use its * [primary version][google.cloud.kms.v1.CryptoKey.primary]. * @param plaintext Required. The data to encrypt. Must be no larger than 64KiB. + *

The maximum size depends on the key version's + * [protection_level][google.cloud.kms.v1.CryptoKeyVersionTemplate.protection_level]. For + * [SOFTWARE][google.cloud.kms.v1.ProtectionLevel.SOFTWARE] keys, the plaintext must be no + * larger than 64KiB. For [HSM][google.cloud.kms.v1.ProtectionLevel.HSM] keys, the combined + * length of the plaintext and additional_authenticated_data fields must be no larger than + * 8KiB. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final EncryptResponse encrypt(String name, ByteString plaintext) { @@ -1536,7 +1563,9 @@ public final EncryptResponse encrypt(String name, ByteString plaintext) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Encrypts data, so that it can only be recovered by a call to - * [Decrypt][google.cloud.kms.v1.KeyManagementService.Decrypt]. + * [Decrypt][google.cloud.kms.v1.KeyManagementService.Decrypt]. The + * [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] must be + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT]. * *

Sample code: * @@ -1562,7 +1591,9 @@ public final EncryptResponse encrypt(EncryptRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Encrypts data, so that it can only be recovered by a call to - * [Decrypt][google.cloud.kms.v1.KeyManagementService.Decrypt]. + * [Decrypt][google.cloud.kms.v1.KeyManagementService.Decrypt]. The + * [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] must be + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT]. * *

Sample code: * @@ -1587,7 +1618,9 @@ public final UnaryCallable encryptCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Decrypts data that was protected by - * [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]. + * [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]. The + * [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] must be + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT]. * *

Sample code: * @@ -1618,7 +1651,9 @@ public final DecryptResponse decrypt(CryptoKeyName name, ByteString ciphertext) // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Decrypts data that was protected by - * [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]. + * [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]. The + * [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] must be + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT]. * *

Sample code: * @@ -1646,7 +1681,9 @@ public final DecryptResponse decrypt(String name, ByteString ciphertext) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Decrypts data that was protected by - * [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]. + * [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]. The + * [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] must be + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT]. * *

Sample code: * @@ -1672,7 +1709,9 @@ public final DecryptResponse decrypt(DecryptRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Decrypts data that was protected by - * [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]. + * [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]. The + * [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] must be + * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT]. * *

Sample code: * @@ -1697,7 +1736,9 @@ public final UnaryCallable decryptCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Update the version of a [CryptoKey][google.cloud.kms.v1.CryptoKey] that will be used in - * [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt] + * [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]. + * + *

Returns an error if called on an asymmetric key. * *

Sample code: * @@ -1728,7 +1769,9 @@ public final CryptoKey updateCryptoKeyPrimaryVersion( // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Update the version of a [CryptoKey][google.cloud.kms.v1.CryptoKey] that will be used in - * [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt] + * [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]. + * + *

Returns an error if called on an asymmetric key. * *

Sample code: * @@ -1758,7 +1801,9 @@ public final CryptoKey updateCryptoKeyPrimaryVersion(String name, String cryptoK // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Update the version of a [CryptoKey][google.cloud.kms.v1.CryptoKey] that will be used in - * [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt] + * [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]. + * + *

Returns an error if called on an asymmetric key. * *

Sample code: * @@ -1785,7 +1830,9 @@ public final CryptoKey updateCryptoKeyPrimaryVersion( // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Update the version of a [CryptoKey][google.cloud.kms.v1.CryptoKey] that will be used in - * [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt] + * [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]. + * + *

Returns an error if called on an asymmetric key. * *

Sample code: * @@ -1959,7 +2006,7 @@ private final CryptoKeyVersion destroyCryptoKeyVersion(DestroyCryptoKeyVersionRe // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Restore a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in the - * [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED], + * [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED] * state. * *

Upon restoration of the CryptoKeyVersion, @@ -1992,7 +2039,7 @@ public final CryptoKeyVersion restoreCryptoKeyVersion(CryptoKeyVersionName name) // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Restore a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in the - * [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED], + * [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED] * state. * *

Upon restoration of the CryptoKeyVersion, @@ -2023,7 +2070,7 @@ public final CryptoKeyVersion restoreCryptoKeyVersion(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Restore a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in the - * [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED], + * [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED] * state. * *

Upon restoration of the CryptoKeyVersion, @@ -2053,7 +2100,7 @@ private final CryptoKeyVersion restoreCryptoKeyVersion(RestoreCryptoKeyVersionRe // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Restore a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in the - * [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED], + * [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED] * state. * *

Upon restoration of the CryptoKeyVersion, @@ -2080,6 +2127,351 @@ private final CryptoKeyVersion restoreCryptoKeyVersion(RestoreCryptoKeyVersionRe return stub.restoreCryptoKeyVersionCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns the public key for the given [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. + * The [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] must be + * [ASYMMETRIC_SIGN][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ASYMMETRIC_SIGN] or + * [ASYMMETRIC_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ASYMMETRIC_DECRYPT]. + * + *

Sample code: + * + *


+   * try (KeyManagementServiceClient keyManagementServiceClient = KeyManagementServiceClient.create()) {
+   *   CryptoKeyVersionName name = CryptoKeyVersionName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]", "[CRYPTO_KEY_VERSION]");
+   *   PublicKey response = keyManagementServiceClient.getPublicKey(name);
+   * }
+   * 
+ * + * @param name The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the + * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key to get. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PublicKey getPublicKey(CryptoKeyVersionName name) { + + GetPublicKeyRequest request = + GetPublicKeyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getPublicKey(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns the public key for the given [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. + * The [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] must be + * [ASYMMETRIC_SIGN][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ASYMMETRIC_SIGN] or + * [ASYMMETRIC_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ASYMMETRIC_DECRYPT]. + * + *

Sample code: + * + *


+   * try (KeyManagementServiceClient keyManagementServiceClient = KeyManagementServiceClient.create()) {
+   *   CryptoKeyVersionName name = CryptoKeyVersionName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]", "[CRYPTO_KEY_VERSION]");
+   *   PublicKey response = keyManagementServiceClient.getPublicKey(name.toString());
+   * }
+   * 
+ * + * @param name The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the + * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key to get. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PublicKey getPublicKey(String name) { + + GetPublicKeyRequest request = GetPublicKeyRequest.newBuilder().setName(name).build(); + return getPublicKey(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns the public key for the given [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. + * The [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] must be + * [ASYMMETRIC_SIGN][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ASYMMETRIC_SIGN] or + * [ASYMMETRIC_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ASYMMETRIC_DECRYPT]. + * + *

Sample code: + * + *


+   * try (KeyManagementServiceClient keyManagementServiceClient = KeyManagementServiceClient.create()) {
+   *   CryptoKeyVersionName name = CryptoKeyVersionName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]", "[CRYPTO_KEY_VERSION]");
+   *   GetPublicKeyRequest request = GetPublicKeyRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   PublicKey response = keyManagementServiceClient.getPublicKey(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PublicKey getPublicKey(GetPublicKeyRequest request) { + return getPublicKeyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns the public key for the given [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. + * The [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] must be + * [ASYMMETRIC_SIGN][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ASYMMETRIC_SIGN] or + * [ASYMMETRIC_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ASYMMETRIC_DECRYPT]. + * + *

Sample code: + * + *


+   * try (KeyManagementServiceClient keyManagementServiceClient = KeyManagementServiceClient.create()) {
+   *   CryptoKeyVersionName name = CryptoKeyVersionName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]", "[CRYPTO_KEY_VERSION]");
+   *   GetPublicKeyRequest request = GetPublicKeyRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<PublicKey> future = keyManagementServiceClient.getPublicKeyCallable().futureCall(request);
+   *   // Do something
+   *   PublicKey response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable getPublicKeyCallable() { + return stub.getPublicKeyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Decrypts data that was encrypted with a public key retrieved from + * [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey] corresponding to a + * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with + * [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] ASYMMETRIC_DECRYPT. + * + *

Sample code: + * + *


+   * try (KeyManagementServiceClient keyManagementServiceClient = KeyManagementServiceClient.create()) {
+   *   CryptoKeyVersionName name = CryptoKeyVersionName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]", "[CRYPTO_KEY_VERSION]");
+   *   ByteString ciphertext = ByteString.copyFromUtf8("");
+   *   AsymmetricDecryptResponse response = keyManagementServiceClient.asymmetricDecrypt(name, ciphertext);
+   * }
+   * 
+ * + * @param name Required. The resource name of the + * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for decryption. + * @param ciphertext Required. The data encrypted with the named + * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s public key using OAEP. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AsymmetricDecryptResponse asymmetricDecrypt( + CryptoKeyVersionName name, ByteString ciphertext) { + + AsymmetricDecryptRequest request = + AsymmetricDecryptRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setCiphertext(ciphertext) + .build(); + return asymmetricDecrypt(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Decrypts data that was encrypted with a public key retrieved from + * [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey] corresponding to a + * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with + * [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] ASYMMETRIC_DECRYPT. + * + *

Sample code: + * + *


+   * try (KeyManagementServiceClient keyManagementServiceClient = KeyManagementServiceClient.create()) {
+   *   CryptoKeyVersionName name = CryptoKeyVersionName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]", "[CRYPTO_KEY_VERSION]");
+   *   ByteString ciphertext = ByteString.copyFromUtf8("");
+   *   AsymmetricDecryptResponse response = keyManagementServiceClient.asymmetricDecrypt(name.toString(), ciphertext);
+   * }
+   * 
+ * + * @param name Required. The resource name of the + * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for decryption. + * @param ciphertext Required. The data encrypted with the named + * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s public key using OAEP. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AsymmetricDecryptResponse asymmetricDecrypt(String name, ByteString ciphertext) { + + AsymmetricDecryptRequest request = + AsymmetricDecryptRequest.newBuilder().setName(name).setCiphertext(ciphertext).build(); + return asymmetricDecrypt(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Decrypts data that was encrypted with a public key retrieved from + * [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey] corresponding to a + * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with + * [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] ASYMMETRIC_DECRYPT. + * + *

Sample code: + * + *


+   * try (KeyManagementServiceClient keyManagementServiceClient = KeyManagementServiceClient.create()) {
+   *   CryptoKeyVersionName name = CryptoKeyVersionName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]", "[CRYPTO_KEY_VERSION]");
+   *   ByteString ciphertext = ByteString.copyFromUtf8("");
+   *   AsymmetricDecryptRequest request = AsymmetricDecryptRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .setCiphertext(ciphertext)
+   *     .build();
+   *   AsymmetricDecryptResponse response = keyManagementServiceClient.asymmetricDecrypt(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AsymmetricDecryptResponse asymmetricDecrypt(AsymmetricDecryptRequest request) { + return asymmetricDecryptCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Decrypts data that was encrypted with a public key retrieved from + * [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey] corresponding to a + * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with + * [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] ASYMMETRIC_DECRYPT. + * + *

Sample code: + * + *


+   * try (KeyManagementServiceClient keyManagementServiceClient = KeyManagementServiceClient.create()) {
+   *   CryptoKeyVersionName name = CryptoKeyVersionName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]", "[CRYPTO_KEY_VERSION]");
+   *   ByteString ciphertext = ByteString.copyFromUtf8("");
+   *   AsymmetricDecryptRequest request = AsymmetricDecryptRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .setCiphertext(ciphertext)
+   *     .build();
+   *   ApiFuture<AsymmetricDecryptResponse> future = keyManagementServiceClient.asymmetricDecryptCallable().futureCall(request);
+   *   // Do something
+   *   AsymmetricDecryptResponse response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable + asymmetricDecryptCallable() { + return stub.asymmetricDecryptCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Signs data using a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with + * [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] ASYMMETRIC_SIGN, producing a + * signature that can be verified with the public key retrieved from + * [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey]. + * + *

Sample code: + * + *


+   * try (KeyManagementServiceClient keyManagementServiceClient = KeyManagementServiceClient.create()) {
+   *   CryptoKeyVersionName name = CryptoKeyVersionName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]", "[CRYPTO_KEY_VERSION]");
+   *   Digest digest = Digest.newBuilder().build();
+   *   AsymmetricSignResponse response = keyManagementServiceClient.asymmetricSign(name, digest);
+   * }
+   * 
+ * + * @param name Required. The resource name of the + * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for signing. + * @param digest Required. The digest of the data to sign. The digest must be produced with the + * same digest algorithm as specified by the key version's + * [algorithm][google.cloud.kms.v1.CryptoKeyVersion.algorithm]. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AsymmetricSignResponse asymmetricSign(CryptoKeyVersionName name, Digest digest) { + + AsymmetricSignRequest request = + AsymmetricSignRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setDigest(digest) + .build(); + return asymmetricSign(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Signs data using a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with + * [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] ASYMMETRIC_SIGN, producing a + * signature that can be verified with the public key retrieved from + * [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey]. + * + *

Sample code: + * + *


+   * try (KeyManagementServiceClient keyManagementServiceClient = KeyManagementServiceClient.create()) {
+   *   CryptoKeyVersionName name = CryptoKeyVersionName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]", "[CRYPTO_KEY_VERSION]");
+   *   Digest digest = Digest.newBuilder().build();
+   *   AsymmetricSignResponse response = keyManagementServiceClient.asymmetricSign(name.toString(), digest);
+   * }
+   * 
+ * + * @param name Required. The resource name of the + * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for signing. + * @param digest Required. The digest of the data to sign. The digest must be produced with the + * same digest algorithm as specified by the key version's + * [algorithm][google.cloud.kms.v1.CryptoKeyVersion.algorithm]. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AsymmetricSignResponse asymmetricSign(String name, Digest digest) { + + AsymmetricSignRequest request = + AsymmetricSignRequest.newBuilder().setName(name).setDigest(digest).build(); + return asymmetricSign(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Signs data using a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with + * [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] ASYMMETRIC_SIGN, producing a + * signature that can be verified with the public key retrieved from + * [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey]. + * + *

Sample code: + * + *


+   * try (KeyManagementServiceClient keyManagementServiceClient = KeyManagementServiceClient.create()) {
+   *   CryptoKeyVersionName name = CryptoKeyVersionName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]", "[CRYPTO_KEY_VERSION]");
+   *   Digest digest = Digest.newBuilder().build();
+   *   AsymmetricSignRequest request = AsymmetricSignRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .setDigest(digest)
+   *     .build();
+   *   AsymmetricSignResponse response = keyManagementServiceClient.asymmetricSign(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AsymmetricSignResponse asymmetricSign(AsymmetricSignRequest request) { + return asymmetricSignCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Signs data using a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with + * [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] ASYMMETRIC_SIGN, producing a + * signature that can be verified with the public key retrieved from + * [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey]. + * + *

Sample code: + * + *


+   * try (KeyManagementServiceClient keyManagementServiceClient = KeyManagementServiceClient.create()) {
+   *   CryptoKeyVersionName name = CryptoKeyVersionName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]", "[CRYPTO_KEY_VERSION]");
+   *   Digest digest = Digest.newBuilder().build();
+   *   AsymmetricSignRequest request = AsymmetricSignRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .setDigest(digest)
+   *     .build();
+   *   ApiFuture<AsymmetricSignResponse> future = keyManagementServiceClient.asymmetricSignCallable().futureCall(request);
+   *   // Do something
+   *   AsymmetricSignResponse response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable + asymmetricSignCallable() { + return stub.asymmetricSignCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Sets the access control policy on the specified resource. Replaces any existing policy. diff --git a/google-cloud-clients/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceSettings.java b/google-cloud-clients/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceSettings.java index f0352aabd4c0..dc804fdfc392 100644 --- a/google-cloud-clients/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceSettings.java +++ b/google-cloud-clients/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceSettings.java @@ -162,6 +162,22 @@ public UnaryCallSettings decryptSettings() { return ((KeyManagementServiceStubSettings) getStubSettings()).restoreCryptoKeyVersionSettings(); } + /** Returns the object with the settings used for calls to getPublicKey. */ + public UnaryCallSettings getPublicKeySettings() { + return ((KeyManagementServiceStubSettings) getStubSettings()).getPublicKeySettings(); + } + + /** Returns the object with the settings used for calls to asymmetricDecrypt. */ + public UnaryCallSettings + asymmetricDecryptSettings() { + return ((KeyManagementServiceStubSettings) getStubSettings()).asymmetricDecryptSettings(); + } + + /** Returns the object with the settings used for calls to asymmetricSign. */ + public UnaryCallSettings asymmetricSignSettings() { + return ((KeyManagementServiceStubSettings) getStubSettings()).asymmetricSignSettings(); + } + /** Returns the object with the settings used for calls to setIamPolicy. */ public UnaryCallSettings setIamPolicySettings() { return ((KeyManagementServiceStubSettings) getStubSettings()).setIamPolicySettings(); @@ -369,6 +385,23 @@ public UnaryCallSettings.Builder decryptSetting return getStubSettingsBuilder().restoreCryptoKeyVersionSettings(); } + /** Returns the builder for the settings used for calls to getPublicKey. */ + public UnaryCallSettings.Builder getPublicKeySettings() { + return getStubSettingsBuilder().getPublicKeySettings(); + } + + /** Returns the builder for the settings used for calls to asymmetricDecrypt. */ + public UnaryCallSettings.Builder + asymmetricDecryptSettings() { + return getStubSettingsBuilder().asymmetricDecryptSettings(); + } + + /** Returns the builder for the settings used for calls to asymmetricSign. */ + public UnaryCallSettings.Builder + asymmetricSignSettings() { + return getStubSettingsBuilder().asymmetricSignSettings(); + } + /** Returns the builder for the settings used for calls to setIamPolicy. */ public UnaryCallSettings.Builder setIamPolicySettings() { return getStubSettingsBuilder().setIamPolicySettings(); diff --git a/google-cloud-clients/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/package-info.java b/google-cloud-clients/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/package-info.java index 54b961c22d45..ed754e8915c0 100644 --- a/google-cloud-clients/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/package-info.java +++ b/google-cloud-clients/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/package-info.java @@ -15,7 +15,7 @@ */ /** - * A client to Google Cloud Key Management Service (KMS) API. + * A client to Cloud Key Management Service (KMS) API. * *

The interfaces provided are listed below, along with usage samples. * @@ -29,6 +29,9 @@ *

* [KeyRing][google.cloud.kms.v1.KeyRing] * [CryptoKey][google.cloud.kms.v1.CryptoKey] * * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] * + *

If you are using manual gRPC libraries, see [Using gRPC with Cloud + * KMS](https://cloud.google.com/kms/docs/grpc). + * *

Sample for KeyManagementServiceClient: * *

diff --git a/google-cloud-clients/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/GrpcKeyManagementServiceCallableFactory.java b/google-cloud-clients/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/GrpcKeyManagementServiceCallableFactory.java
index 7d0141c2a063..5a3d96704731 100644
--- a/google-cloud-clients/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/GrpcKeyManagementServiceCallableFactory.java
+++ b/google-cloud-clients/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/GrpcKeyManagementServiceCallableFactory.java
@@ -37,7 +37,7 @@
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
 /**
- * gRPC callable factory implementation for Google Cloud Key Management Service (KMS) API.
+ * gRPC callable factory implementation for Cloud Key Management Service (KMS) API.
  *
  * 

This class is for advanced usage. */ diff --git a/google-cloud-clients/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/GrpcKeyManagementServiceStub.java b/google-cloud-clients/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/GrpcKeyManagementServiceStub.java index 42ea2ace8ff0..39dc03da5b31 100644 --- a/google-cloud-clients/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/GrpcKeyManagementServiceStub.java +++ b/google-cloud-clients/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/GrpcKeyManagementServiceStub.java @@ -27,6 +27,10 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.kms.v1.AsymmetricDecryptRequest; +import com.google.cloud.kms.v1.AsymmetricDecryptResponse; +import com.google.cloud.kms.v1.AsymmetricSignRequest; +import com.google.cloud.kms.v1.AsymmetricSignResponse; import com.google.cloud.kms.v1.CreateCryptoKeyRequest; import com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest; import com.google.cloud.kms.v1.CreateKeyRingRequest; @@ -40,6 +44,7 @@ import com.google.cloud.kms.v1.GetCryptoKeyRequest; import com.google.cloud.kms.v1.GetCryptoKeyVersionRequest; import com.google.cloud.kms.v1.GetKeyRingRequest; +import com.google.cloud.kms.v1.GetPublicKeyRequest; import com.google.cloud.kms.v1.KeyRing; import com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest; import com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse; @@ -47,6 +52,7 @@ import com.google.cloud.kms.v1.ListCryptoKeysResponse; import com.google.cloud.kms.v1.ListKeyRingsRequest; import com.google.cloud.kms.v1.ListKeyRingsResponse; +import com.google.cloud.kms.v1.PublicKey; import com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest; import com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest; import com.google.cloud.kms.v1.UpdateCryptoKeyRequest; @@ -66,7 +72,7 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS /** - * gRPC stub implementation for Google Cloud Key Management Service (KMS) API. + * gRPC stub implementation for Cloud Key Management Service (KMS) API. * *

This class is for advanced usage and reflects the underlying API directly. */ @@ -214,6 +220,34 @@ public class GrpcKeyManagementServiceStub extends KeyManagementServiceStub { ProtoUtils.marshaller(RestoreCryptoKeyVersionRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(CryptoKeyVersion.getDefaultInstance())) .build(); + private static final MethodDescriptor + getPublicKeyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.kms.v1.KeyManagementService/GetPublicKey") + .setRequestMarshaller(ProtoUtils.marshaller(GetPublicKeyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(PublicKey.getDefaultInstance())) + .build(); + private static final MethodDescriptor + asymmetricDecryptMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.kms.v1.KeyManagementService/AsymmetricDecrypt") + .setRequestMarshaller( + ProtoUtils.marshaller(AsymmetricDecryptRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(AsymmetricDecryptResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor + asymmetricSignMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.kms.v1.KeyManagementService/AsymmetricSign") + .setRequestMarshaller( + ProtoUtils.marshaller(AsymmetricSignRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(AsymmetricSignResponse.getDefaultInstance())) + .build(); private static final MethodDescriptor setIamPolicyMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -270,6 +304,10 @@ public class GrpcKeyManagementServiceStub extends KeyManagementServiceStub { destroyCryptoKeyVersionCallable; private final UnaryCallable restoreCryptoKeyVersionCallable; + private final UnaryCallable getPublicKeyCallable; + private final UnaryCallable + asymmetricDecryptCallable; + private final UnaryCallable asymmetricSignCallable; private final UnaryCallable setIamPolicyCallable; private final UnaryCallable getIamPolicyCallable; private final UnaryCallable @@ -536,6 +574,47 @@ public Map extract(RestoreCryptoKeyVersionRequest request) { } }) .build(); + GrpcCallSettings getPublicKeyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getPublicKeyMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(GetPublicKeyRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + asymmetricDecryptTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(asymmetricDecryptMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(AsymmetricDecryptRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + asymmetricSignTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(asymmetricSignMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(AsymmetricSignRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) + .build(); GrpcCallSettings setIamPolicyTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(setIamPolicyMethodDescriptor) @@ -650,6 +729,17 @@ public Map extract(TestIamPermissionsRequest request) { restoreCryptoKeyVersionTransportSettings, settings.restoreCryptoKeyVersionSettings(), clientContext); + this.getPublicKeyCallable = + callableFactory.createUnaryCallable( + getPublicKeyTransportSettings, settings.getPublicKeySettings(), clientContext); + this.asymmetricDecryptCallable = + callableFactory.createUnaryCallable( + asymmetricDecryptTransportSettings, + settings.asymmetricDecryptSettings(), + clientContext); + this.asymmetricSignCallable = + callableFactory.createUnaryCallable( + asymmetricSignTransportSettings, settings.asymmetricSignSettings(), clientContext); this.setIamPolicyCallable = callableFactory.createUnaryCallable( setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); @@ -749,6 +839,19 @@ public UnaryCallable decryptCallable() { return restoreCryptoKeyVersionCallable; } + public UnaryCallable getPublicKeyCallable() { + return getPublicKeyCallable; + } + + public UnaryCallable + asymmetricDecryptCallable() { + return asymmetricDecryptCallable; + } + + public UnaryCallable asymmetricSignCallable() { + return asymmetricSignCallable; + } + public UnaryCallable setIamPolicyCallable() { return setIamPolicyCallable; } diff --git a/google-cloud-clients/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/KeyManagementServiceStub.java b/google-cloud-clients/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/KeyManagementServiceStub.java index 4ceeb1a57abb..1bb034fd9401 100644 --- a/google-cloud-clients/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/KeyManagementServiceStub.java +++ b/google-cloud-clients/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/KeyManagementServiceStub.java @@ -22,6 +22,10 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.kms.v1.AsymmetricDecryptRequest; +import com.google.cloud.kms.v1.AsymmetricDecryptResponse; +import com.google.cloud.kms.v1.AsymmetricSignRequest; +import com.google.cloud.kms.v1.AsymmetricSignResponse; import com.google.cloud.kms.v1.CreateCryptoKeyRequest; import com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest; import com.google.cloud.kms.v1.CreateKeyRingRequest; @@ -35,6 +39,7 @@ import com.google.cloud.kms.v1.GetCryptoKeyRequest; import com.google.cloud.kms.v1.GetCryptoKeyVersionRequest; import com.google.cloud.kms.v1.GetKeyRingRequest; +import com.google.cloud.kms.v1.GetPublicKeyRequest; import com.google.cloud.kms.v1.KeyRing; import com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest; import com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse; @@ -42,6 +47,7 @@ import com.google.cloud.kms.v1.ListCryptoKeysResponse; import com.google.cloud.kms.v1.ListKeyRingsRequest; import com.google.cloud.kms.v1.ListKeyRingsResponse; +import com.google.cloud.kms.v1.PublicKey; import com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest; import com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest; import com.google.cloud.kms.v1.UpdateCryptoKeyRequest; @@ -55,7 +61,7 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS /** - * Base stub class for Google Cloud Key Management Service (KMS) API. + * Base stub class for Cloud Key Management Service (KMS) API. * *

This class is for advanced usage and reflects the underlying API directly. */ @@ -149,6 +155,19 @@ public UnaryCallable decryptCallable() { throw new UnsupportedOperationException("Not implemented: restoreCryptoKeyVersionCallable()"); } + public UnaryCallable getPublicKeyCallable() { + throw new UnsupportedOperationException("Not implemented: getPublicKeyCallable()"); + } + + public UnaryCallable + asymmetricDecryptCallable() { + throw new UnsupportedOperationException("Not implemented: asymmetricDecryptCallable()"); + } + + public UnaryCallable asymmetricSignCallable() { + throw new UnsupportedOperationException("Not implemented: asymmetricSignCallable()"); + } + public UnaryCallable setIamPolicyCallable() { throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); } diff --git a/google-cloud-clients/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java b/google-cloud-clients/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java index 53817ce8b7fb..6167c54a1311 100644 --- a/google-cloud-clients/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java +++ b/google-cloud-clients/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java @@ -41,6 +41,10 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.kms.v1.AsymmetricDecryptRequest; +import com.google.cloud.kms.v1.AsymmetricDecryptResponse; +import com.google.cloud.kms.v1.AsymmetricSignRequest; +import com.google.cloud.kms.v1.AsymmetricSignResponse; import com.google.cloud.kms.v1.CreateCryptoKeyRequest; import com.google.cloud.kms.v1.CreateCryptoKeyVersionRequest; import com.google.cloud.kms.v1.CreateKeyRingRequest; @@ -54,6 +58,7 @@ import com.google.cloud.kms.v1.GetCryptoKeyRequest; import com.google.cloud.kms.v1.GetCryptoKeyVersionRequest; import com.google.cloud.kms.v1.GetKeyRingRequest; +import com.google.cloud.kms.v1.GetPublicKeyRequest; import com.google.cloud.kms.v1.KeyRing; import com.google.cloud.kms.v1.ListCryptoKeyVersionsRequest; import com.google.cloud.kms.v1.ListCryptoKeyVersionsResponse; @@ -61,6 +66,7 @@ import com.google.cloud.kms.v1.ListCryptoKeysResponse; import com.google.cloud.kms.v1.ListKeyRingsRequest; import com.google.cloud.kms.v1.ListKeyRingsResponse; +import com.google.cloud.kms.v1.PublicKey; import com.google.cloud.kms.v1.RestoreCryptoKeyVersionRequest; import com.google.cloud.kms.v1.UpdateCryptoKeyPrimaryVersionRequest; import com.google.cloud.kms.v1.UpdateCryptoKeyRequest; @@ -142,6 +148,11 @@ public class KeyManagementServiceStubSettings destroyCryptoKeyVersionSettings; private final UnaryCallSettings restoreCryptoKeyVersionSettings; + private final UnaryCallSettings getPublicKeySettings; + private final UnaryCallSettings + asymmetricDecryptSettings; + private final UnaryCallSettings + asymmetricSignSettings; private final UnaryCallSettings setIamPolicySettings; private final UnaryCallSettings getIamPolicySettings; private final UnaryCallSettings @@ -239,6 +250,22 @@ public UnaryCallSettings decryptSettings() { return restoreCryptoKeyVersionSettings; } + /** Returns the object with the settings used for calls to getPublicKey. */ + public UnaryCallSettings getPublicKeySettings() { + return getPublicKeySettings; + } + + /** Returns the object with the settings used for calls to asymmetricDecrypt. */ + public UnaryCallSettings + asymmetricDecryptSettings() { + return asymmetricDecryptSettings; + } + + /** Returns the object with the settings used for calls to asymmetricSign. */ + public UnaryCallSettings asymmetricSignSettings() { + return asymmetricSignSettings; + } + /** Returns the object with the settings used for calls to setIamPolicy. */ public UnaryCallSettings setIamPolicySettings() { return setIamPolicySettings; @@ -340,6 +367,9 @@ protected KeyManagementServiceStubSettings(Builder settingsBuilder) throws IOExc settingsBuilder.updateCryptoKeyPrimaryVersionSettings().build(); destroyCryptoKeyVersionSettings = settingsBuilder.destroyCryptoKeyVersionSettings().build(); restoreCryptoKeyVersionSettings = settingsBuilder.restoreCryptoKeyVersionSettings().build(); + getPublicKeySettings = settingsBuilder.getPublicKeySettings().build(); + asymmetricDecryptSettings = settingsBuilder.asymmetricDecryptSettings().build(); + asymmetricSignSettings = settingsBuilder.asymmetricSignSettings().build(); setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); @@ -545,6 +575,11 @@ public static class Builder destroyCryptoKeyVersionSettings; private final UnaryCallSettings.Builder restoreCryptoKeyVersionSettings; + private final UnaryCallSettings.Builder getPublicKeySettings; + private final UnaryCallSettings.Builder + asymmetricDecryptSettings; + private final UnaryCallSettings.Builder + asymmetricSignSettings; private final UnaryCallSettings.Builder setIamPolicySettings; private final UnaryCallSettings.Builder getIamPolicySettings; private final UnaryCallSettings.Builder @@ -624,6 +659,12 @@ protected Builder(ClientContext clientContext) { restoreCryptoKeyVersionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getPublicKeySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + asymmetricDecryptSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + asymmetricSignSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -648,6 +689,9 @@ protected Builder(ClientContext clientContext) { updateCryptoKeyPrimaryVersionSettings, destroyCryptoKeyVersionSettings, restoreCryptoKeyVersionSettings, + getPublicKeySettings, + asymmetricDecryptSettings, + asymmetricSignSettings, setIamPolicySettings, getIamPolicySettings, testIamPermissionsSettings); @@ -746,6 +790,21 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + builder + .getPublicKeySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .asymmetricDecryptSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .asymmetricSignSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + builder .setIamPolicySettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) @@ -784,6 +843,9 @@ protected Builder(KeyManagementServiceStubSettings settings) { settings.updateCryptoKeyPrimaryVersionSettings.toBuilder(); destroyCryptoKeyVersionSettings = settings.destroyCryptoKeyVersionSettings.toBuilder(); restoreCryptoKeyVersionSettings = settings.restoreCryptoKeyVersionSettings.toBuilder(); + getPublicKeySettings = settings.getPublicKeySettings.toBuilder(); + asymmetricDecryptSettings = settings.asymmetricDecryptSettings.toBuilder(); + asymmetricSignSettings = settings.asymmetricSignSettings.toBuilder(); setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); @@ -806,6 +868,9 @@ protected Builder(KeyManagementServiceStubSettings settings) { updateCryptoKeyPrimaryVersionSettings, destroyCryptoKeyVersionSettings, restoreCryptoKeyVersionSettings, + getPublicKeySettings, + asymmetricDecryptSettings, + asymmetricSignSettings, setIamPolicySettings, getIamPolicySettings, testIamPermissionsSettings); @@ -920,6 +985,23 @@ public UnaryCallSettings.Builder decryptSetting return restoreCryptoKeyVersionSettings; } + /** Returns the builder for the settings used for calls to getPublicKey. */ + public UnaryCallSettings.Builder getPublicKeySettings() { + return getPublicKeySettings; + } + + /** Returns the builder for the settings used for calls to asymmetricDecrypt. */ + public UnaryCallSettings.Builder + asymmetricDecryptSettings() { + return asymmetricDecryptSettings; + } + + /** Returns the builder for the settings used for calls to asymmetricSign. */ + public UnaryCallSettings.Builder + asymmetricSignSettings() { + return asymmetricSignSettings; + } + /** Returns the builder for the settings used for calls to setIamPolicy. */ public UnaryCallSettings.Builder setIamPolicySettings() { return setIamPolicySettings; diff --git a/google-cloud-clients/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/KeyManagementServiceClientTest.java b/google-cloud-clients/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/KeyManagementServiceClientTest.java index 52161cd8a8a5..462c2ac52c5c 100644 --- a/google-cloud-clients/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/KeyManagementServiceClientTest.java +++ b/google-cloud-clients/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/KeyManagementServiceClientTest.java @@ -844,6 +844,143 @@ public void restoreCryptoKeyVersionExceptionTest() throws Exception { } } + @Test + @SuppressWarnings("all") + public void getPublicKeyTest() { + String pem = "pem110872"; + PublicKey expectedResponse = PublicKey.newBuilder().setPem(pem).build(); + mockKeyManagementService.addResponse(expectedResponse); + + CryptoKeyVersionName name = + CryptoKeyVersionName.of( + "[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]", "[CRYPTO_KEY_VERSION]"); + + PublicKey actualResponse = client.getPublicKey(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockKeyManagementService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetPublicKeyRequest actualRequest = (GetPublicKeyRequest) actualRequests.get(0); + + Assert.assertEquals(name, CryptoKeyVersionName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void getPublicKeyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockKeyManagementService.addException(exception); + + try { + CryptoKeyVersionName name = + CryptoKeyVersionName.of( + "[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]", "[CRYPTO_KEY_VERSION]"); + + client.getPublicKey(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void asymmetricDecryptTest() { + ByteString plaintext = ByteString.copyFromUtf8("-9"); + AsymmetricDecryptResponse expectedResponse = + AsymmetricDecryptResponse.newBuilder().setPlaintext(plaintext).build(); + mockKeyManagementService.addResponse(expectedResponse); + + CryptoKeyVersionName name = + CryptoKeyVersionName.of( + "[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]", "[CRYPTO_KEY_VERSION]"); + ByteString ciphertext = ByteString.copyFromUtf8("-72"); + + AsymmetricDecryptResponse actualResponse = client.asymmetricDecrypt(name, ciphertext); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockKeyManagementService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + AsymmetricDecryptRequest actualRequest = (AsymmetricDecryptRequest) actualRequests.get(0); + + Assert.assertEquals(name, CryptoKeyVersionName.parse(actualRequest.getName())); + Assert.assertEquals(ciphertext, actualRequest.getCiphertext()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void asymmetricDecryptExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockKeyManagementService.addException(exception); + + try { + CryptoKeyVersionName name = + CryptoKeyVersionName.of( + "[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]", "[CRYPTO_KEY_VERSION]"); + ByteString ciphertext = ByteString.copyFromUtf8("-72"); + + client.asymmetricDecrypt(name, ciphertext); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void asymmetricSignTest() { + ByteString signature = ByteString.copyFromUtf8("106"); + AsymmetricSignResponse expectedResponse = + AsymmetricSignResponse.newBuilder().setSignature(signature).build(); + mockKeyManagementService.addResponse(expectedResponse); + + CryptoKeyVersionName name = + CryptoKeyVersionName.of( + "[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]", "[CRYPTO_KEY_VERSION]"); + Digest digest = Digest.newBuilder().build(); + + AsymmetricSignResponse actualResponse = client.asymmetricSign(name, digest); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockKeyManagementService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + AsymmetricSignRequest actualRequest = (AsymmetricSignRequest) actualRequests.get(0); + + Assert.assertEquals(name, CryptoKeyVersionName.parse(actualRequest.getName())); + Assert.assertEquals(digest, actualRequest.getDigest()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void asymmetricSignExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockKeyManagementService.addException(exception); + + try { + CryptoKeyVersionName name = + CryptoKeyVersionName.of( + "[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]", "[CRYPTO_KEY_VERSION]"); + Digest digest = Digest.newBuilder().build(); + + client.asymmetricSign(name, digest); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + @Test @SuppressWarnings("all") public void setIamPolicyTest() { diff --git a/google-cloud-clients/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/MockKeyManagementServiceImpl.java b/google-cloud-clients/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/MockKeyManagementServiceImpl.java index 7b9943b577d5..e9c17ef37616 100644 --- a/google-cloud-clients/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/MockKeyManagementServiceImpl.java +++ b/google-cloud-clients/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/MockKeyManagementServiceImpl.java @@ -146,6 +146,21 @@ public void getCryptoKeyVersion( } } + @Override + public void getPublicKey( + GetPublicKeyRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof PublicKey) { + requests.add(request); + responseObserver.onNext((PublicKey) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + @Override public void createKeyRing( CreateKeyRingRequest request, StreamObserver responseObserver) { @@ -249,6 +264,37 @@ public void decrypt(DecryptRequest request, StreamObserver resp } } + @Override + public void asymmetricSign( + AsymmetricSignRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof AsymmetricSignResponse) { + requests.add(request); + responseObserver.onNext((AsymmetricSignResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void asymmetricDecrypt( + AsymmetricDecryptRequest request, + StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof AsymmetricDecryptResponse) { + requests.add(request); + responseObserver.onNext((AsymmetricDecryptResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + @Override public void updateCryptoKeyPrimaryVersion( UpdateCryptoKeyPrimaryVersionRequest request, StreamObserver responseObserver) { diff --git a/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/SpannerStubSettings.java b/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/SpannerStubSettings.java index 6cf3c210e11f..901b5971a468 100644 --- a/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/SpannerStubSettings.java +++ b/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/SpannerStubSettings.java @@ -480,21 +480,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); - builder - .executeStreamingSqlSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); - builder .readSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); - builder - .streamingReadSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); - builder .beginTransactionSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) From bbede7385d48ba08f487bdd29ec10668ace96396 Mon Sep 17 00:00:00 2001 From: Garrett Jones Date: Thu, 13 Sep 2018 09:47:56 -0700 Subject: [PATCH 08/21] Release 1.44.0/0.62.0 (#3677) --- README.md | 8 +- .../grpc-google-cloud-asset-v1beta1/pom.xml | 4 +- .../grpc-google-cloud-automl-v1beta1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-bigtable-v2/pom.xml | 4 +- .../grpc-google-cloud-container-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-dataproc-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-dialogflow-v2/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-dlp-v2/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-iot-v1/pom.xml | 4 +- .../grpc-google-cloud-kms-v1/pom.xml | 4 +- .../grpc-google-cloud-language-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-logging-v2/pom.xml | 4 +- .../grpc-google-cloud-monitoring-v3/pom.xml | 4 +- .../grpc-google-cloud-os-login-v1/pom.xml | 4 +- .../grpc-google-cloud-pubsub-v1/pom.xml | 4 +- .../grpc-google-cloud-redis-v1/pom.xml | 4 +- .../grpc-google-cloud-redis-v1beta1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-spanner-v1/pom.xml | 4 +- .../grpc-google-cloud-speech-v1/pom.xml | 4 +- .../grpc-google-cloud-speech-v1beta1/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-tasks-v2beta2/pom.xml | 4 +- .../grpc-google-cloud-tasks-v2beta3/pom.xml | 4 +- .../grpc-google-cloud-texttospeech-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-trace-v1/pom.xml | 4 +- .../grpc-google-cloud-trace-v2/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-vision-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- google-api-grpc/pom.xml | 188 +++++----- .../proto-google-cloud-asset-v1beta1/pom.xml | 4 +- .../proto-google-cloud-automl-v1beta1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-bigtable-v2/pom.xml | 4 +- .../proto-google-cloud-container-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-dataproc-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-datastore-v1/pom.xml | 4 +- .../proto-google-cloud-dialogflow-v2/pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-dlp-v2/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-iot-v1/pom.xml | 4 +- .../proto-google-cloud-kms-v1/pom.xml | 4 +- .../proto-google-cloud-language-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-logging-v2/pom.xml | 4 +- .../proto-google-cloud-monitoring-v3/pom.xml | 4 +- .../proto-google-cloud-os-login-v1/pom.xml | 4 +- .../proto-google-cloud-pubsub-v1/pom.xml | 4 +- .../proto-google-cloud-redis-v1/pom.xml | 4 +- .../proto-google-cloud-redis-v1beta1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-spanner-v1/pom.xml | 4 +- .../proto-google-cloud-speech-v1/pom.xml | 4 +- .../proto-google-cloud-speech-v1beta1/pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-tasks-v2beta2/pom.xml | 4 +- .../proto-google-cloud-tasks-v2beta3/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-trace-v1/pom.xml | 4 +- .../proto-google-cloud-trace-v2/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-vision-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- google-cloud-bom/README.md | 2 +- google-cloud-bom/pom.xml | 338 +++++++++--------- .../google-cloud-asset/README.md | 6 +- .../google-cloud-asset/pom.xml | 4 +- .../google-cloud-automl/README.md | 6 +- .../google-cloud-automl/pom.xml | 4 +- .../google-cloud-bigquery/README.md | 6 +- .../google-cloud-bigquery/pom.xml | 4 +- .../README.md | 6 +- .../google-cloud-bigquerydatatransfer/pom.xml | 4 +- .../google-cloud-bigtable-admin/README.md | 6 +- .../google-cloud-bigtable-admin/pom.xml | 4 +- .../google-cloud-bigtable/README.md | 6 +- .../google-cloud-bigtable/pom.xml | 4 +- .../google-cloud-compute/README.md | 6 +- .../google-cloud-compute/pom.xml | 4 +- .../google-cloud-container/README.md | 6 +- .../google-cloud-container/pom.xml | 4 +- .../google-cloud-containeranalysis/README.md | 6 +- .../google-cloud-containeranalysis/pom.xml | 4 +- .../google-cloud-contrib/README.md | 6 +- .../google-cloud-logging-logback/README.md | 6 +- .../google-cloud-logging-logback/pom.xml | 4 +- .../google-cloud-nio-examples/README.md | 4 +- .../google-cloud-nio-examples/pom.xml | 4 +- .../google-cloud-nio/README.md | 6 +- .../google-cloud-nio/pom.xml | 4 +- .../google-cloud-contrib/pom.xml | 4 +- .../google-cloud-core-grpc/pom.xml | 4 +- .../google-cloud-core-http/pom.xml | 4 +- .../google-cloud-core/README.md | 6 +- .../google-cloud-core/pom.xml | 4 +- .../google-cloud-dataproc/README.md | 6 +- .../google-cloud-dataproc/pom.xml | 4 +- .../google-cloud-datastore/README.md | 6 +- .../google-cloud-datastore/pom.xml | 4 +- .../google-cloud-dialogflow/README.md | 6 +- .../google-cloud-dialogflow/pom.xml | 4 +- .../google-cloud-dlp/README.md | 6 +- google-cloud-clients/google-cloud-dlp/pom.xml | 4 +- .../google-cloud-dns/README.md | 6 +- google-cloud-clients/google-cloud-dns/pom.xml | 4 +- .../google-cloud-errorreporting/README.md | 6 +- .../google-cloud-errorreporting/pom.xml | 4 +- .../google-cloud-firestore/README.md | 6 +- .../google-cloud-firestore/pom.xml | 4 +- .../google-cloud-iot/README.md | 6 +- google-cloud-clients/google-cloud-iot/pom.xml | 4 +- .../google-cloud-kms/README.md | 6 +- google-cloud-clients/google-cloud-kms/pom.xml | 4 +- .../google-cloud-language/README.md | 6 +- .../google-cloud-language/pom.xml | 4 +- .../google-cloud-logging/README.md | 6 +- .../google-cloud-logging/pom.xml | 4 +- .../google-cloud-monitoring/README.md | 6 +- .../google-cloud-monitoring/pom.xml | 4 +- .../google-cloud-notification/README.md | 6 +- .../google-cloud-notification/pom.xml | 4 +- .../google-cloud-os-login/README.md | 6 +- .../google-cloud-os-login/pom.xml | 4 +- .../google-cloud-pubsub/README.md | 6 +- .../google-cloud-pubsub/pom.xml | 4 +- .../google-cloud-redis/README.md | 6 +- .../google-cloud-redis/pom.xml | 4 +- .../google-cloud-resourcemanager/README.md | 6 +- .../google-cloud-resourcemanager/pom.xml | 4 +- .../google-cloud-spanner/README.md | 6 +- .../google-cloud-spanner/pom.xml | 4 +- .../google-cloud-speech/README.md | 6 +- .../google-cloud-speech/pom.xml | 4 +- .../google-cloud-storage/README.md | 6 +- .../google-cloud-storage/pom.xml | 4 +- .../google-cloud-tasks/README.md | 6 +- .../google-cloud-tasks/pom.xml | 4 +- .../google-cloud-texttospeech/README.md | 6 +- .../google-cloud-texttospeech/pom.xml | 4 +- .../google-cloud-trace/README.md | 6 +- .../google-cloud-trace/pom.xml | 4 +- .../google-cloud-translate/README.md | 6 +- .../google-cloud-translate/pom.xml | 4 +- .../google-cloud-video-intelligence/README.md | 6 +- .../google-cloud-video-intelligence/pom.xml | 4 +- .../google-cloud-vision/README.md | 6 +- .../google-cloud-vision/pom.xml | 4 +- .../google-cloud-websecurityscanner/README.md | 6 +- .../google-cloud-websecurityscanner/pom.xml | 4 +- google-cloud-clients/pom.xml | 4 +- google-cloud-examples/README.md | 6 +- google-cloud-examples/pom.xml | 4 +- .../google-cloud-appengineflexcompat/pom.xml | 4 +- .../google-cloud-appengineflexcustom/pom.xml | 4 +- .../google-cloud-appengineflexjava/pom.xml | 4 +- .../google-cloud-appenginejava8/pom.xml | 4 +- .../google-cloud-managedtest/pom.xml | 4 +- google-cloud-testing/pom.xml | 4 +- .../google-cloud-compat-checker/pom.xml | 4 +- google-cloud-util/pom.xml | 2 +- versions.txt | 298 +++++++-------- 193 files changed, 833 insertions(+), 833 deletions(-) diff --git a/README.md b/README.md index d949fef958fd..7bafe97fdd10 100644 --- a/README.md +++ b/README.md @@ -65,16 +65,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-storage - 1.43.0 + 1.44.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-storage:1.43.0' +compile 'com.google.cloud:google-cloud-storage:1.44.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-storage" % "1.43.0" +libraryDependencies += "com.google.cloud" % "google-cloud-storage" % "1.44.0" ``` [//]: # ({x-version-update-end}) @@ -294,7 +294,7 @@ The easiest way to solve version conflicts is to use google-cloud's BOM. In Mave com.google.cloud google-cloud-bom - 0.61.0-alpha + 0.62.0-alpha pom import diff --git a/google-api-grpc/grpc-google-cloud-asset-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-asset-v1beta1/pom.xml index 9f1a7a951a47..166479d68ede 100644 --- a/google-api-grpc/grpc-google-cloud-asset-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-asset-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-asset-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 grpc-google-cloud-asset-v1beta1 GRPC library for grpc-google-cloud-asset-v1beta1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/grpc-google-cloud-automl-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-automl-v1beta1/pom.xml index b73e8fcde3c9..8fc43de3ca45 100644 --- a/google-api-grpc/grpc-google-cloud-automl-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-automl-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-automl-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 grpc-google-cloud-automl-v1beta1 GRPC library for grpc-google-cloud-automl-v1beta1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml b/google-api-grpc/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml index 2a613ce4e546..040019e10870 100644 --- a/google-api-grpc/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-bigquerydatatransfer-v1 - 0.26.1-SNAPSHOT + 0.27.0 grpc-google-cloud-bigquerydatatransfer-v1 GRPC library for grpc-google-cloud-bigquerydatatransfer-v1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/grpc-google-cloud-bigtable-admin-v2/pom.xml b/google-api-grpc/grpc-google-cloud-bigtable-admin-v2/pom.xml index 0c993457bf2e..d38acf147450 100644 --- a/google-api-grpc/grpc-google-cloud-bigtable-admin-v2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-bigtable-admin-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-bigtable-admin-v2 - 0.26.1-SNAPSHOT + 0.27.0 grpc-google-cloud-bigtable-admin-v2 GRPC library for grpc-google-cloud-bigtable-admin-v2 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/grpc-google-cloud-bigtable-v2/pom.xml b/google-api-grpc/grpc-google-cloud-bigtable-v2/pom.xml index 09d0cb75675b..8c0ae036c9c7 100644 --- a/google-api-grpc/grpc-google-cloud-bigtable-v2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-bigtable-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-bigtable-v2 - 0.26.1-SNAPSHOT + 0.27.0 grpc-google-cloud-bigtable-v2 GRPC library for grpc-google-cloud-bigtable-v2 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/grpc-google-cloud-container-v1/pom.xml b/google-api-grpc/grpc-google-cloud-container-v1/pom.xml index 4b32a9bb0a5d..6d885333ea4c 100644 --- a/google-api-grpc/grpc-google-cloud-container-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-container-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-container-v1 - 0.26.1-SNAPSHOT + 0.27.0 grpc-google-cloud-container-v1 GRPC library for grpc-google-cloud-container-v1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/grpc-google-cloud-containeranalysis-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-containeranalysis-v1beta1/pom.xml index adc02040744f..1fb5a4ca8d65 100644 --- a/google-api-grpc/grpc-google-cloud-containeranalysis-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-containeranalysis-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-containeranalysis-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 grpc-google-cloud-containeranalysis-v1beta1 GRPC library for grpc-google-cloud-containeranalysis-v1beta1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/grpc-google-cloud-dataproc-v1/pom.xml b/google-api-grpc/grpc-google-cloud-dataproc-v1/pom.xml index 3be173c80fa2..c1b8821cae3d 100644 --- a/google-api-grpc/grpc-google-cloud-dataproc-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-dataproc-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-dataproc-v1 - 0.26.1-SNAPSHOT + 0.27.0 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/grpc-google-cloud-dataproc-v1beta2/pom.xml b/google-api-grpc/grpc-google-cloud-dataproc-v1beta2/pom.xml index 8a8e3298855e..6791b080ca48 100644 --- a/google-api-grpc/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-dataproc-v1beta2 - 0.26.1-SNAPSHOT + 0.27.0 grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/grpc-google-cloud-dialogflow-v2/pom.xml b/google-api-grpc/grpc-google-cloud-dialogflow-v2/pom.xml index bc94a9e112b6..8d8e4b3e6525 100644 --- a/google-api-grpc/grpc-google-cloud-dialogflow-v2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-dialogflow-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-dialogflow-v2 - 0.26.1-SNAPSHOT + 0.27.0 grpc-google-cloud-dialogflow-v2 GRPC library for grpc-google-cloud-dialogflow-v2 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/pom.xml b/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/pom.xml index ebd07308a5f3..34bf71561b8e 100644 --- a/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-dialogflow-v2beta1 - 0.26.1-SNAPSHOT + 0.27.0 grpc-google-cloud-dialogflow-v2beta1 GRPC library for grpc-google-cloud-dialogflow-v2beta1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/grpc-google-cloud-dlp-v2/pom.xml b/google-api-grpc/grpc-google-cloud-dlp-v2/pom.xml index 6efa216a178b..3eba858f6237 100644 --- a/google-api-grpc/grpc-google-cloud-dlp-v2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-dlp-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-dlp-v2 - 0.26.1-SNAPSHOT + 0.27.0 grpc-google-cloud-dlp-v2 GRPC library for grpc-google-cloud-dlp-v2 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/grpc-google-cloud-error-reporting-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-error-reporting-v1beta1/pom.xml index b6325e8a876b..c74e74b6cbb8 100644 --- a/google-api-grpc/grpc-google-cloud-error-reporting-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-error-reporting-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-error-reporting-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 grpc-google-cloud-error-reporting-v1beta1 GRPC library for grpc-google-cloud-error-reporting-v1beta1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/grpc-google-cloud-firestore-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-firestore-v1beta1/pom.xml index 27f1fdb3ca99..61b896c587f0 100644 --- a/google-api-grpc/grpc-google-cloud-firestore-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-firestore-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-firestore-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 grpc-google-cloud-firestore-v1beta1 GRPC library for grpc-google-cloud-firestore-v1beta1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/grpc-google-cloud-iot-v1/pom.xml b/google-api-grpc/grpc-google-cloud-iot-v1/pom.xml index 0f81d1d409ad..f40816437ff6 100644 --- a/google-api-grpc/grpc-google-cloud-iot-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-iot-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-iot-v1 - 0.26.1-SNAPSHOT + 0.27.0 grpc-google-cloud-iot-v1 GRPC library for grpc-google-cloud-iot-v1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/grpc-google-cloud-kms-v1/pom.xml b/google-api-grpc/grpc-google-cloud-kms-v1/pom.xml index e32a5a1ccccb..75d1c8c4bb40 100644 --- a/google-api-grpc/grpc-google-cloud-kms-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-kms-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-kms-v1 - 0.26.1-SNAPSHOT + 0.27.0 grpc-google-cloud-kms-v1 GRPC library for grpc-google-cloud-kms-v1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/grpc-google-cloud-language-v1/pom.xml b/google-api-grpc/grpc-google-cloud-language-v1/pom.xml index 01f0177bdb43..cc22c64d5464 100644 --- a/google-api-grpc/grpc-google-cloud-language-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-language-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-language-v1 - 1.25.1-SNAPSHOT + 1.26.0 grpc-google-cloud-language-v1 GRPC library for grpc-google-cloud-language-v1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/grpc-google-cloud-language-v1beta2/pom.xml b/google-api-grpc/grpc-google-cloud-language-v1beta2/pom.xml index 0a9059c080dd..2559b4ce4877 100644 --- a/google-api-grpc/grpc-google-cloud-language-v1beta2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-language-v1beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-language-v1beta2 - 0.26.1-SNAPSHOT + 0.27.0 grpc-google-cloud-language-v1beta2 GRPC library for grpc-google-cloud-language-v1beta2 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/grpc-google-cloud-logging-v2/pom.xml b/google-api-grpc/grpc-google-cloud-logging-v2/pom.xml index 7512daafb5e6..746a722d90de 100644 --- a/google-api-grpc/grpc-google-cloud-logging-v2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-logging-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-logging-v2 - 0.26.1-SNAPSHOT + 0.27.0 grpc-google-cloud-logging-v2 GRPC library for grpc-google-cloud-logging-v2 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/grpc-google-cloud-monitoring-v3/pom.xml b/google-api-grpc/grpc-google-cloud-monitoring-v3/pom.xml index 0b11de5082e2..90a5f8855292 100644 --- a/google-api-grpc/grpc-google-cloud-monitoring-v3/pom.xml +++ b/google-api-grpc/grpc-google-cloud-monitoring-v3/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-monitoring-v3 - 1.25.1-SNAPSHOT + 1.26.0 grpc-google-cloud-monitoring-v3 GRPC library for grpc-google-cloud-monitoring-v3 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/grpc-google-cloud-os-login-v1/pom.xml b/google-api-grpc/grpc-google-cloud-os-login-v1/pom.xml index 2bd403fece1e..94c8edaf45cf 100644 --- a/google-api-grpc/grpc-google-cloud-os-login-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-os-login-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-os-login-v1 - 0.26.1-SNAPSHOT + 0.27.0 grpc-google-cloud-os-login-v1 GRPC library for grpc-google-cloud-os-login-v1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/grpc-google-cloud-pubsub-v1/pom.xml b/google-api-grpc/grpc-google-cloud-pubsub-v1/pom.xml index 59af58dd245d..b37d959529d7 100644 --- a/google-api-grpc/grpc-google-cloud-pubsub-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.25.1-SNAPSHOT + 1.26.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/grpc-google-cloud-redis-v1/pom.xml b/google-api-grpc/grpc-google-cloud-redis-v1/pom.xml index c4887b7cdf39..efa7eb5dca5c 100644 --- a/google-api-grpc/grpc-google-cloud-redis-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-redis-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-redis-v1 - 0.26.1-SNAPSHOT + 0.27.0 grpc-google-cloud-redis-v1 GRPC library for grpc-google-cloud-redis-v1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/grpc-google-cloud-redis-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-redis-v1beta1/pom.xml index 9d4aba70c007..47e4e3387246 100644 --- a/google-api-grpc/grpc-google-cloud-redis-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-redis-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-redis-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 grpc-google-cloud-redis-v1beta1 GRPC library for grpc-google-cloud-redis-v1beta1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/grpc-google-cloud-spanner-admin-database-v1/pom.xml b/google-api-grpc/grpc-google-cloud-spanner-admin-database-v1/pom.xml index 5b2125dda736..64155290eed4 100644 --- a/google-api-grpc/grpc-google-cloud-spanner-admin-database-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-spanner-admin-database-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-spanner-admin-database-v1 - 0.26.1-SNAPSHOT + 0.27.0 grpc-google-cloud-spanner-admin-database-v1 GRPC library for grpc-google-cloud-spanner-admin-database-v1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/grpc-google-cloud-spanner-admin-instance-v1/pom.xml b/google-api-grpc/grpc-google-cloud-spanner-admin-instance-v1/pom.xml index 6606cfd48bc5..dffeb42a1063 100644 --- a/google-api-grpc/grpc-google-cloud-spanner-admin-instance-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-spanner-admin-instance-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-spanner-admin-instance-v1 - 0.26.1-SNAPSHOT + 0.27.0 grpc-google-cloud-spanner-admin-instance-v1 GRPC library for grpc-google-cloud-spanner-admin-instance-v1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/grpc-google-cloud-spanner-v1/pom.xml b/google-api-grpc/grpc-google-cloud-spanner-v1/pom.xml index dc28a3e28810..6fea41df4ab9 100644 --- a/google-api-grpc/grpc-google-cloud-spanner-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-spanner-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-spanner-v1 - 0.26.1-SNAPSHOT + 0.27.0 grpc-google-cloud-spanner-v1 GRPC library for grpc-google-cloud-spanner-v1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/grpc-google-cloud-speech-v1/pom.xml b/google-api-grpc/grpc-google-cloud-speech-v1/pom.xml index ef074a38a0ab..76b09ebd3df0 100644 --- a/google-api-grpc/grpc-google-cloud-speech-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-speech-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-speech-v1 - 0.26.1-SNAPSHOT + 0.27.0 grpc-google-cloud-speech-v1 GRPC library for grpc-google-cloud-speech-v1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/grpc-google-cloud-speech-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-speech-v1beta1/pom.xml index 9e5d3288ffc0..2c3401999430 100644 --- a/google-api-grpc/grpc-google-cloud-speech-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-speech-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-speech-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 grpc-google-cloud-speech-v1beta1 GRPC library for grpc-google-cloud-speech-v1beta1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/grpc-google-cloud-speech-v1p1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-speech-v1p1beta1/pom.xml index c29a876f1057..4ad8455d9cf1 100644 --- a/google-api-grpc/grpc-google-cloud-speech-v1p1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-speech-v1p1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-speech-v1p1beta1 - 0.26.1-SNAPSHOT + 0.27.0 grpc-google-cloud-speech-v1p1beta1 GRPC library for grpc-google-cloud-speech-v1p1beta1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/grpc-google-cloud-tasks-v2beta2/pom.xml b/google-api-grpc/grpc-google-cloud-tasks-v2beta2/pom.xml index 6fd0dae03245..241ebedcdf1b 100644 --- a/google-api-grpc/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-tasks-v2beta2 - 0.26.1-SNAPSHOT + 0.27.0 grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/grpc-google-cloud-tasks-v2beta3/pom.xml b/google-api-grpc/grpc-google-cloud-tasks-v2beta3/pom.xml index c7ee12f35956..6840864fadc8 100644 --- a/google-api-grpc/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/google-api-grpc/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-tasks-v2beta3 - 0.26.1-SNAPSHOT + 0.27.0 grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/grpc-google-cloud-texttospeech-v1/pom.xml b/google-api-grpc/grpc-google-cloud-texttospeech-v1/pom.xml index 18f1d109098a..d024a73520e8 100644 --- a/google-api-grpc/grpc-google-cloud-texttospeech-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-texttospeech-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-texttospeech-v1 - 0.26.1-SNAPSHOT + 0.27.0 grpc-google-cloud-texttospeech-v1 GRPC library for grpc-google-cloud-texttospeech-v1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/grpc-google-cloud-texttospeech-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-texttospeech-v1beta1/pom.xml index 79e3d6b62448..16a8f57e305d 100644 --- a/google-api-grpc/grpc-google-cloud-texttospeech-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-texttospeech-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-texttospeech-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 grpc-google-cloud-texttospeech-v1beta1 GRPC library for grpc-google-cloud-texttospeech-v1beta1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/grpc-google-cloud-trace-v1/pom.xml b/google-api-grpc/grpc-google-cloud-trace-v1/pom.xml index 1847a0fb88b2..c7c78f6dd916 100644 --- a/google-api-grpc/grpc-google-cloud-trace-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-trace-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-trace-v1 - 0.26.1-SNAPSHOT + 0.27.0 grpc-google-cloud-trace-v1 GRPC library for grpc-google-cloud-trace-v1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/grpc-google-cloud-trace-v2/pom.xml b/google-api-grpc/grpc-google-cloud-trace-v2/pom.xml index a2dde28ead90..97b3057e63b3 100644 --- a/google-api-grpc/grpc-google-cloud-trace-v2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-trace-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-trace-v2 - 0.26.1-SNAPSHOT + 0.27.0 grpc-google-cloud-trace-v2 GRPC library for grpc-google-cloud-trace-v2 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/grpc-google-cloud-video-intelligence-v1/pom.xml b/google-api-grpc/grpc-google-cloud-video-intelligence-v1/pom.xml index 293cdafdd60f..93b6893bffd8 100644 --- a/google-api-grpc/grpc-google-cloud-video-intelligence-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-video-intelligence-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-video-intelligence-v1 - 0.26.1-SNAPSHOT + 0.27.0 grpc-google-cloud-video-intelligence-v1 GRPC library for grpc-google-cloud-video-intelligence-v1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta1/pom.xml index b60a3f849c8c..a8d14433ad39 100644 --- a/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-video-intelligence-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 grpc-google-cloud-video-intelligence-v1beta1 GRPC library for grpc-google-cloud-video-intelligence-v1beta1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta2/pom.xml b/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta2/pom.xml index 599e8bd81c74..50875642bbac 100644 --- a/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-video-intelligence-v1beta2 - 0.26.1-SNAPSHOT + 0.27.0 grpc-google-cloud-video-intelligence-v1beta2 GRPC library for grpc-google-cloud-video-intelligence-v1beta2 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/grpc-google-cloud-video-intelligence-v1p1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-video-intelligence-v1p1beta1/pom.xml index 73aa09517712..c2b3c0c99f7e 100644 --- a/google-api-grpc/grpc-google-cloud-video-intelligence-v1p1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-video-intelligence-v1p1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-video-intelligence-v1p1beta1 - 0.26.1-SNAPSHOT + 0.27.0 grpc-google-cloud-video-intelligence-v1p1beta1 GRPC library for grpc-google-cloud-video-intelligence-v1p1beta1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/grpc-google-cloud-video-intelligence-v1p2beta1/pom.xml b/google-api-grpc/grpc-google-cloud-video-intelligence-v1p2beta1/pom.xml index 6ab2e5463e1d..67164f8b6863 100644 --- a/google-api-grpc/grpc-google-cloud-video-intelligence-v1p2beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-video-intelligence-v1p2beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-video-intelligence-v1p2beta1 - 0.26.1-SNAPSHOT + 0.27.0 grpc-google-cloud-video-intelligence-v1p2beta1 GRPC library for grpc-google-cloud-video-intelligence-v1p2beta1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/grpc-google-cloud-vision-v1/pom.xml b/google-api-grpc/grpc-google-cloud-vision-v1/pom.xml index 6aa9306bf7b1..55bde8a97f39 100644 --- a/google-api-grpc/grpc-google-cloud-vision-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-vision-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-vision-v1 - 1.25.1-SNAPSHOT + 1.26.0 grpc-google-cloud-vision-v1 GRPC library for grpc-google-cloud-vision-v1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/grpc-google-cloud-vision-v1p1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-vision-v1p1beta1/pom.xml index 6d719f6fc7e2..5721a49d41b3 100644 --- a/google-api-grpc/grpc-google-cloud-vision-v1p1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-vision-v1p1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-vision-v1p1beta1 - 0.26.1-SNAPSHOT + 0.27.0 grpc-google-cloud-vision-v1p1beta1 GRPC library for grpc-google-cloud-vision-v1p1beta1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/grpc-google-cloud-vision-v1p2beta1/pom.xml b/google-api-grpc/grpc-google-cloud-vision-v1p2beta1/pom.xml index c5f3080fa08e..1fc3e573d9fe 100644 --- a/google-api-grpc/grpc-google-cloud-vision-v1p2beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-vision-v1p2beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-vision-v1p2beta1 - 1.25.1-SNAPSHOT + 1.26.0 grpc-google-cloud-vision-v1p2beta1 GRPC library for grpc-google-cloud-vision-v1p2beta1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/grpc-google-cloud-vision-v1p3beta1/pom.xml b/google-api-grpc/grpc-google-cloud-vision-v1p3beta1/pom.xml index 73e344a54370..cda245d92857 100644 --- a/google-api-grpc/grpc-google-cloud-vision-v1p3beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-vision-v1p3beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-vision-v1p3beta1 - 0.26.1-SNAPSHOT + 0.27.0 grpc-google-cloud-vision-v1p3beta1 GRPC library for grpc-google-cloud-vision-v1p3beta1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml b/google-api-grpc/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml index 5f65115e17a3..23e2ceeabe35 100644 --- a/google-api-grpc/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml +++ b/google-api-grpc/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-websecurityscanner-v1alpha - 0.26.1-SNAPSHOT + 0.27.0 grpc-google-cloud-websecurityscanner-v1alpha GRPC library for grpc-google-cloud-websecurityscanner-v1alpha com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/pom.xml b/google-api-grpc/pom.xml index 6ecbe1d820ec..6c0d33b46808 100644 --- a/google-api-grpc/pom.xml +++ b/google-api-grpc/pom.xml @@ -4,7 +4,7 @@ com.google.api.grpc google-api-grpc pom - 0.26.1-SNAPSHOT + 0.27.0 Google Cloud API gRPC https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-api-grpc @@ -134,467 +134,467 @@ com.google.api.grpc proto-google-cloud-asset-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-asset-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-automl-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-automl-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-bigtable-v2 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-bigtable-v2 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-bigtable-admin-v2 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-bigtable-admin-v2 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-bigquerydatatransfer-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-bigquerydatatransfer-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-container-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-container-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-containeranalysis-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-containeranalysis-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-datastore-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-dlp-v2 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-dlp-v2 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-dialogflow-v2beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-dialogflow-v2beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-dialogflow-v2 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-dialogflow-v2 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-error-reporting-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-error-reporting-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-firestore-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-firestore-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-kms-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-kms-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-language-v1 - 1.25.1-SNAPSHOT + 1.26.0 com.google.api.grpc grpc-google-cloud-language-v1 - 1.25.1-SNAPSHOT + 1.26.0 com.google.api.grpc proto-google-cloud-language-v1beta2 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-language-v1beta2 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-logging-v2 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-logging-v2 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-monitoring-v3 - 1.25.1-SNAPSHOT + 1.26.0 com.google.api.grpc grpc-google-cloud-monitoring-v3 - 1.25.1-SNAPSHOT + 1.26.0 com.google.api.grpc proto-google-cloud-os-login-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-os-login-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.25.1-SNAPSHOT + 1.26.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.25.1-SNAPSHOT + 1.26.0 com.google.api.grpc proto-google-cloud-spanner-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-spanner-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-spanner-admin-database-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-spanner-admin-database-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-spanner-admin-instance-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-spanner-admin-instance-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-speech-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-speech-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-speech-v1p1beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-speech-v1p1beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-speech-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-speech-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-texttospeech-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-texttospeech-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-texttospeech-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-texttospeech-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-trace-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-trace-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-trace-v2 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-trace-v2 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-vision-v1 - 1.25.1-SNAPSHOT + 1.26.0 com.google.api.grpc grpc-google-cloud-vision-v1 - 1.25.1-SNAPSHOT + 1.26.0 com.google.api.grpc proto-google-cloud-vision-v1p1beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-vision-v1p1beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-vision-v1p2beta1 - 1.25.1-SNAPSHOT + 1.26.0 com.google.api.grpc grpc-google-cloud-vision-v1p2beta1 - 1.25.1-SNAPSHOT + 1.26.0 com.google.api.grpc proto-google-cloud-vision-v1p3beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-vision-v1p3beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1beta2 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1beta2 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1p1beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p1beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1p2beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p2beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-iot-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-iot-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-redis-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-redis-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-redis-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-redis-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1alpha - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1alpha - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/proto-google-cloud-asset-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-asset-v1beta1/pom.xml index a465d7c5b867..2506c686a2a7 100644 --- a/google-api-grpc/proto-google-cloud-asset-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-asset-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-asset-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 proto-google-cloud-asset-v1beta1 PROTO library for proto-google-cloud-asset-v1beta1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-automl-v1beta1/pom.xml index fd8e90aaee16..9b54730a9c70 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-automl-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 proto-google-cloud-automl-v1beta1 PROTO library for proto-google-cloud-automl-v1beta1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/pom.xml b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/pom.xml index 3828a232dd4f..704b7e14283a 100644 --- a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-bigquerydatatransfer-v1 - 0.26.1-SNAPSHOT + 0.27.0 proto-google-cloud-bigquerydatatransfer-v1 PROTO library for proto-google-cloud-bigquerydatatransfer-v1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/pom.xml b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/pom.xml index bc3987464d2d..4f2aa6c3dae1 100644 --- a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/pom.xml +++ b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-bigtable-admin-v2 - 0.26.1-SNAPSHOT + 0.27.0 proto-google-cloud-bigtable-admin-v2 PROTO library for proto-google-cloud-bigtable-admin-v2 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/proto-google-cloud-bigtable-v2/pom.xml b/google-api-grpc/proto-google-cloud-bigtable-v2/pom.xml index 4e6b34d6d42f..67547732a891 100644 --- a/google-api-grpc/proto-google-cloud-bigtable-v2/pom.xml +++ b/google-api-grpc/proto-google-cloud-bigtable-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-bigtable-v2 - 0.26.1-SNAPSHOT + 0.27.0 proto-google-cloud-bigtable-v2 PROTO library for proto-google-cloud-bigtable-v2 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/proto-google-cloud-container-v1/pom.xml b/google-api-grpc/proto-google-cloud-container-v1/pom.xml index 783bf32dd80f..6e9ac9c43c8b 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-container-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-container-v1 - 0.26.1-SNAPSHOT + 0.27.0 proto-google-cloud-container-v1 PROTO library for proto-google-cloud-container-v1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/proto-google-cloud-containeranalysis-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-containeranalysis-v1beta1/pom.xml index 507a18a22c6e..8f15a2751c02 100644 --- a/google-api-grpc/proto-google-cloud-containeranalysis-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-containeranalysis-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-containeranalysis-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 proto-google-cloud-containeranalysis-v1beta1 PROTO library for proto-google-cloud-containeranalysis-v1beta1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1/pom.xml b/google-api-grpc/proto-google-cloud-dataproc-v1/pom.xml index d3f3833303e8..774e3e998d9c 100644 --- a/google-api-grpc/proto-google-cloud-dataproc-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-dataproc-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-dataproc-v1 - 0.26.1-SNAPSHOT + 0.27.0 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/pom.xml b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/pom.xml index e11313d010bd..f1c13edc0873 100644 --- a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-dataproc-v1beta2 - 0.26.1-SNAPSHOT + 0.27.0 proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/proto-google-cloud-datastore-v1/pom.xml b/google-api-grpc/proto-google-cloud-datastore-v1/pom.xml index e1599abb59cd..43c9da03afb0 100644 --- a/google-api-grpc/proto-google-cloud-datastore-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-datastore-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-datastore-v1 - 0.26.1-SNAPSHOT + 0.27.0 proto-google-cloud-datastore-v1 PROTO library for proto-google-cloud-datastore-v1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/pom.xml b/google-api-grpc/proto-google-cloud-dialogflow-v2/pom.xml index 5867131ecef4..8f8ecd502dac 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2/pom.xml +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-dialogflow-v2 - 0.26.1-SNAPSHOT + 0.27.0 proto-google-cloud-dialogflow-v2 PROTO library for proto-google-cloud-dialogflow-v2 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/pom.xml b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/pom.xml index d22366a221d9..07495af883ca 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-dialogflow-v2beta1 - 0.26.1-SNAPSHOT + 0.27.0 proto-google-cloud-dialogflow-v2beta1 PROTO library for proto-google-cloud-dialogflow-v2beta1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/proto-google-cloud-dlp-v2/pom.xml b/google-api-grpc/proto-google-cloud-dlp-v2/pom.xml index 610d70c8e138..81d2d9d14f3c 100644 --- a/google-api-grpc/proto-google-cloud-dlp-v2/pom.xml +++ b/google-api-grpc/proto-google-cloud-dlp-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-dlp-v2 - 0.26.1-SNAPSHOT + 0.27.0 proto-google-cloud-dlp-v2 PROTO library for proto-google-cloud-dlp-v2 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/proto-google-cloud-error-reporting-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-error-reporting-v1beta1/pom.xml index 8458537303ea..2b118e0985dd 100644 --- a/google-api-grpc/proto-google-cloud-error-reporting-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-error-reporting-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-error-reporting-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 proto-google-cloud-error-reporting-v1beta1 PROTO library for proto-google-cloud-error-reporting-v1beta1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-firestore-v1beta1/pom.xml index b795efc24451..25a692b54ee6 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-firestore-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 proto-google-cloud-firestore-v1beta1 PROTO library for proto-google-cloud-firestore-v1beta1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/proto-google-cloud-iot-v1/pom.xml b/google-api-grpc/proto-google-cloud-iot-v1/pom.xml index ad6cc50a81ba..0ed81e3dbcf4 100644 --- a/google-api-grpc/proto-google-cloud-iot-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-iot-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-iot-v1 - 0.26.1-SNAPSHOT + 0.27.0 proto-google-cloud-iot-v1 PROTO library for proto-google-cloud-iot-v1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/proto-google-cloud-kms-v1/pom.xml b/google-api-grpc/proto-google-cloud-kms-v1/pom.xml index 554a073b5bd8..7df655cea87a 100644 --- a/google-api-grpc/proto-google-cloud-kms-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-kms-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-kms-v1 - 0.26.1-SNAPSHOT + 0.27.0 proto-google-cloud-kms-v1 PROTO library for proto-google-cloud-kms-v1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/proto-google-cloud-language-v1/pom.xml b/google-api-grpc/proto-google-cloud-language-v1/pom.xml index e105bf015080..d4bf0b75e151 100644 --- a/google-api-grpc/proto-google-cloud-language-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-language-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-language-v1 - 1.25.1-SNAPSHOT + 1.26.0 proto-google-cloud-language-v1 PROTO library for proto-google-cloud-language-v1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/proto-google-cloud-language-v1beta2/pom.xml b/google-api-grpc/proto-google-cloud-language-v1beta2/pom.xml index 672137b11555..fe071e458f63 100644 --- a/google-api-grpc/proto-google-cloud-language-v1beta2/pom.xml +++ b/google-api-grpc/proto-google-cloud-language-v1beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-language-v1beta2 - 0.26.1-SNAPSHOT + 0.27.0 proto-google-cloud-language-v1beta2 PROTO library for proto-google-cloud-language-v1beta2 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/proto-google-cloud-logging-v2/pom.xml b/google-api-grpc/proto-google-cloud-logging-v2/pom.xml index a83f930a6f73..90065a2de568 100644 --- a/google-api-grpc/proto-google-cloud-logging-v2/pom.xml +++ b/google-api-grpc/proto-google-cloud-logging-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-logging-v2 - 0.26.1-SNAPSHOT + 0.27.0 proto-google-cloud-logging-v2 PROTO library for proto-google-cloud-logging-v2 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/pom.xml b/google-api-grpc/proto-google-cloud-monitoring-v3/pom.xml index b868c4b4f4ce..ac6df2871123 100644 --- a/google-api-grpc/proto-google-cloud-monitoring-v3/pom.xml +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-monitoring-v3 - 1.25.1-SNAPSHOT + 1.26.0 proto-google-cloud-monitoring-v3 PROTO library for proto-google-cloud-monitoring-v3 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/proto-google-cloud-os-login-v1/pom.xml b/google-api-grpc/proto-google-cloud-os-login-v1/pom.xml index 099bf6124aaa..2437f601cb55 100644 --- a/google-api-grpc/proto-google-cloud-os-login-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-os-login-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-os-login-v1 - 0.26.1-SNAPSHOT + 0.27.0 proto-google-cloud-os-login-v1 PROTO library for proto-google-cloud-os-login-v1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/proto-google-cloud-pubsub-v1/pom.xml b/google-api-grpc/proto-google-cloud-pubsub-v1/pom.xml index 740c317382d1..dc59348b5201 100644 --- a/google-api-grpc/proto-google-cloud-pubsub-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.25.1-SNAPSHOT + 1.26.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/proto-google-cloud-redis-v1/pom.xml b/google-api-grpc/proto-google-cloud-redis-v1/pom.xml index 01ec8d4eb648..1dbc03709f97 100644 --- a/google-api-grpc/proto-google-cloud-redis-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-redis-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-redis-v1 - 0.26.1-SNAPSHOT + 0.27.0 proto-google-cloud-redis-v1 PROTO library for proto-google-cloud-redis-v1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/proto-google-cloud-redis-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-redis-v1beta1/pom.xml index 71a4d269f21b..61e00f88bcf5 100644 --- a/google-api-grpc/proto-google-cloud-redis-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-redis-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-redis-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 proto-google-cloud-redis-v1beta1 PROTO library for proto-google-cloud-redis-v1beta1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/proto-google-cloud-spanner-admin-database-v1/pom.xml b/google-api-grpc/proto-google-cloud-spanner-admin-database-v1/pom.xml index 8163a1b98e7b..01783871bd66 100644 --- a/google-api-grpc/proto-google-cloud-spanner-admin-database-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-spanner-admin-database-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-spanner-admin-database-v1 - 0.26.1-SNAPSHOT + 0.27.0 proto-google-cloud-spanner-admin-database-v1 PROTO library for proto-google-cloud-spanner-admin-database-v1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/proto-google-cloud-spanner-admin-instance-v1/pom.xml b/google-api-grpc/proto-google-cloud-spanner-admin-instance-v1/pom.xml index ce44f27bfca6..1960df0613d2 100644 --- a/google-api-grpc/proto-google-cloud-spanner-admin-instance-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-spanner-admin-instance-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-spanner-admin-instance-v1 - 0.26.1-SNAPSHOT + 0.27.0 proto-google-cloud-spanner-admin-instance-v1 PROTO library for proto-google-cloud-spanner-admin-instance-v1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/proto-google-cloud-spanner-v1/pom.xml b/google-api-grpc/proto-google-cloud-spanner-v1/pom.xml index ed38b5a4e4c6..54326b617f2a 100644 --- a/google-api-grpc/proto-google-cloud-spanner-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-spanner-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-spanner-v1 - 0.26.1-SNAPSHOT + 0.27.0 proto-google-cloud-spanner-v1 PROTO library for proto-google-cloud-spanner-v1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/proto-google-cloud-speech-v1/pom.xml b/google-api-grpc/proto-google-cloud-speech-v1/pom.xml index 8633b6050119..1dd3300a0adc 100644 --- a/google-api-grpc/proto-google-cloud-speech-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-speech-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-speech-v1 - 0.26.1-SNAPSHOT + 0.27.0 proto-google-cloud-speech-v1 PROTO library for proto-google-cloud-speech-v1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/proto-google-cloud-speech-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-speech-v1beta1/pom.xml index e1356a279cbd..60a37a88d861 100644 --- a/google-api-grpc/proto-google-cloud-speech-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-speech-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-speech-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 proto-google-cloud-speech-v1beta1 PROTO library for proto-google-cloud-speech-v1beta1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/proto-google-cloud-speech-v1p1beta1/pom.xml b/google-api-grpc/proto-google-cloud-speech-v1p1beta1/pom.xml index 235121198781..3ff737b4eda5 100644 --- a/google-api-grpc/proto-google-cloud-speech-v1p1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-speech-v1p1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-speech-v1p1beta1 - 0.26.1-SNAPSHOT + 0.27.0 proto-google-cloud-speech-v1p1beta1 PROTO library for proto-google-cloud-speech-v1p1beta1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/proto-google-cloud-tasks-v2beta2/pom.xml b/google-api-grpc/proto-google-cloud-tasks-v2beta2/pom.xml index 76525f9e436d..1332f4deeb18 100644 --- a/google-api-grpc/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/google-api-grpc/proto-google-cloud-tasks-v2beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-tasks-v2beta2 - 0.26.1-SNAPSHOT + 0.27.0 proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/proto-google-cloud-tasks-v2beta3/pom.xml b/google-api-grpc/proto-google-cloud-tasks-v2beta3/pom.xml index 37147cf61897..053dac87fd63 100644 --- a/google-api-grpc/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/google-api-grpc/proto-google-cloud-tasks-v2beta3/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-tasks-v2beta3 - 0.26.1-SNAPSHOT + 0.27.0 proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/proto-google-cloud-texttospeech-v1/pom.xml b/google-api-grpc/proto-google-cloud-texttospeech-v1/pom.xml index f15954a504e8..f43abc33f91a 100644 --- a/google-api-grpc/proto-google-cloud-texttospeech-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-texttospeech-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-texttospeech-v1 - 0.26.1-SNAPSHOT + 0.27.0 proto-google-cloud-texttospeech-v1 PROTO library for proto-google-cloud-texttospeech-v1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/pom.xml index 4e5f9f12d519..22e1c956753c 100644 --- a/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-texttospeech-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 proto-google-cloud-texttospeech-v1beta1 PROTO library for proto-google-cloud-texttospeech-v1beta1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/proto-google-cloud-trace-v1/pom.xml b/google-api-grpc/proto-google-cloud-trace-v1/pom.xml index 6d9d142df04b..033bf9d3a83c 100644 --- a/google-api-grpc/proto-google-cloud-trace-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-trace-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-trace-v1 - 0.26.1-SNAPSHOT + 0.27.0 proto-google-cloud-trace-v1 PROTO library for proto-google-cloud-trace-v1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/proto-google-cloud-trace-v2/pom.xml b/google-api-grpc/proto-google-cloud-trace-v2/pom.xml index 247515739e3d..cab58d3540b7 100644 --- a/google-api-grpc/proto-google-cloud-trace-v2/pom.xml +++ b/google-api-grpc/proto-google-cloud-trace-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-trace-v2 - 0.26.1-SNAPSHOT + 0.27.0 proto-google-cloud-trace-v2 PROTO library for proto-google-cloud-trace-v2 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1/pom.xml b/google-api-grpc/proto-google-cloud-video-intelligence-v1/pom.xml index 21d0c20c17bc..219379bbe95a 100644 --- a/google-api-grpc/proto-google-cloud-video-intelligence-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-video-intelligence-v1 - 0.26.1-SNAPSHOT + 0.27.0 proto-google-cloud-video-intelligence-v1 PROTO library for proto-google-cloud-video-intelligence-v1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-video-intelligence-v1beta1/pom.xml index b316c2dd77d1..951aadd27618 100644 --- a/google-api-grpc/proto-google-cloud-video-intelligence-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-video-intelligence-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 proto-google-cloud-video-intelligence-v1beta1 PROTO library for proto-google-cloud-video-intelligence-v1beta1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1beta2/pom.xml b/google-api-grpc/proto-google-cloud-video-intelligence-v1beta2/pom.xml index 706a8dc44baf..b5787d590492 100644 --- a/google-api-grpc/proto-google-cloud-video-intelligence-v1beta2/pom.xml +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-video-intelligence-v1beta2 - 0.26.1-SNAPSHOT + 0.27.0 proto-google-cloud-video-intelligence-v1beta2 PROTO library for proto-google-cloud-video-intelligence-v1beta2 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p1beta1/pom.xml b/google-api-grpc/proto-google-cloud-video-intelligence-v1p1beta1/pom.xml index c0bfc958dd6d..9e733c776f3d 100644 --- a/google-api-grpc/proto-google-cloud-video-intelligence-v1p1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-video-intelligence-v1p1beta1 - 0.26.1-SNAPSHOT + 0.27.0 proto-google-cloud-video-intelligence-v1p1beta1 PROTO library for proto-google-cloud-video-intelligence-v1p1beta1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml index 6a4e705d62b0..a772d9bcb1c1 100644 --- a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-video-intelligence-v1p2beta1 - 0.26.1-SNAPSHOT + 0.27.0 proto-google-cloud-video-intelligence-v1p2beta1 PROTO library for proto-google-cloud-video-intelligence-v1p2beta1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/proto-google-cloud-vision-v1/pom.xml b/google-api-grpc/proto-google-cloud-vision-v1/pom.xml index 4e07c076b59f..aa5ccfc69a99 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-vision-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-vision-v1 - 1.25.1-SNAPSHOT + 1.26.0 proto-google-cloud-vision-v1 PROTO library for proto-google-cloud-vision-v1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/proto-google-cloud-vision-v1p1beta1/pom.xml b/google-api-grpc/proto-google-cloud-vision-v1p1beta1/pom.xml index 2655eee9361b..fa1900fafb8f 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1p1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-vision-v1p1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-vision-v1p1beta1 - 0.26.1-SNAPSHOT + 0.27.0 proto-google-cloud-vision-v1p1beta1 PROTO library for proto-google-cloud-vision-v1p1beta1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/proto-google-cloud-vision-v1p2beta1/pom.xml b/google-api-grpc/proto-google-cloud-vision-v1p2beta1/pom.xml index e451ef924cc5..5d561ecae761 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1p2beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-vision-v1p2beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-vision-v1p2beta1 - 1.25.1-SNAPSHOT + 1.26.0 proto-google-cloud-vision-v1p2beta1 PROTO library for proto-google-cloud-vision-v1p2beta1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/proto-google-cloud-vision-v1p3beta1/pom.xml b/google-api-grpc/proto-google-cloud-vision-v1p3beta1/pom.xml index 3112b0ed9068..2bc9619cf9da 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1p3beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-vision-v1p3beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-vision-v1p3beta1 - 0.26.1-SNAPSHOT + 0.27.0 proto-google-cloud-vision-v1p3beta1 PROTO library for proto-google-cloud-vision-v1p3beta1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-api-grpc/proto-google-cloud-websecurityscanner-v1alpha/pom.xml b/google-api-grpc/proto-google-cloud-websecurityscanner-v1alpha/pom.xml index f1548795d2f2..157698f3406e 100644 --- a/google-api-grpc/proto-google-cloud-websecurityscanner-v1alpha/pom.xml +++ b/google-api-grpc/proto-google-cloud-websecurityscanner-v1alpha/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-websecurityscanner-v1alpha - 0.26.1-SNAPSHOT + 0.27.0 proto-google-cloud-websecurityscanner-v1alpha PROTO library for proto-google-cloud-websecurityscanner-v1alpha com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-cloud-bom/README.md b/google-cloud-bom/README.md index ee8d3f624af7..05269070bc93 100644 --- a/google-cloud-bom/README.md +++ b/google-cloud-bom/README.md @@ -13,7 +13,7 @@ To use it in Maven, add the following to your POM: com.google.cloud google-cloud-bom - 0.61.0-alpha + 0.62.0-alpha pom import diff --git a/google-cloud-bom/pom.xml b/google-cloud-bom/pom.xml index e5cb4f0e6123..90f2d2f08c06 100644 --- a/google-cloud-bom/pom.xml +++ b/google-cloud-bom/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bom pom - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha Google Cloud Java BOM https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-bom @@ -223,879 +223,879 @@ com.google.cloud google-cloud-asset - 0.61.1-beta-SNAPSHOT + 0.62.0-beta com.google.api.grpc proto-google-cloud-asset-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-asset-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.cloud google-cloud-automl - 0.61.1-beta-SNAPSHOT + 0.62.0-beta com.google.api.grpc proto-google-cloud-automl-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-automl-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.cloud google-cloud-bigtable - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha com.google.cloud google-cloud-bigtable - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha test-jar com.google.api.grpc proto-google-cloud-bigtable-v2 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-bigtable-v2 - 0.26.1-SNAPSHOT + 0.27.0 com.google.cloud google-cloud-bigtable-admin - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha com.google.cloud google-cloud-bigtable-admin - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha test-jar com.google.api.grpc proto-google-cloud-bigtable-admin-v2 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-bigtable-admin-v2 - 0.26.1-SNAPSHOT + 0.27.0 com.google.cloud google-cloud-bigquery - 1.43.1-SNAPSHOT + 1.44.0 com.google.cloud google-cloud-bigquery - 1.43.1-SNAPSHOT + 1.44.0 test-jar com.google.cloud google-cloud-bigquerydatatransfer - 0.61.1-beta-SNAPSHOT + 0.62.0-beta com.google.cloud google-cloud-bigquerydatatransfer - 0.61.1-beta-SNAPSHOT + 0.62.0-beta test-jar com.google.api.grpc proto-google-cloud-bigquerydatatransfer-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-bigquerydatatransfer-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.cloud google-cloud-compute - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha com.google.cloud google-cloud-compute - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha test-jar com.google.cloud google-cloud-container - 0.61.1-beta-SNAPSHOT + 0.62.0-beta com.google.cloud google-cloud-container - 0.61.1-beta-SNAPSHOT + 0.62.0-beta test-jar com.google.api.grpc proto-google-cloud-container-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-container-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.cloud google-cloud-containeranalysis - 0.61.1-beta-SNAPSHOT + 0.62.0-beta com.google.cloud google-cloud-containeranalysis - 0.61.1-beta-SNAPSHOT + 0.62.0-beta test-jar com.google.api.grpc proto-google-cloud-containeranalysis-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-containeranalysis-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.cloud google-cloud-contrib - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha com.google.cloud google-cloud-contrib - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha test-jar com.google.cloud google-cloud-nio - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha com.google.cloud google-cloud-nio - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha test-jar com.google.cloud google-cloud-core - 1.43.1-SNAPSHOT + 1.44.0 com.google.cloud google-cloud-core - 1.43.1-SNAPSHOT + 1.44.0 test-jar com.google.cloud google-cloud-core-grpc - 1.43.1-SNAPSHOT + 1.44.0 com.google.cloud google-cloud-core-grpc - 1.43.1-SNAPSHOT + 1.44.0 test-jar com.google.cloud google-cloud-core-http - 1.43.1-SNAPSHOT + 1.44.0 com.google.cloud google-cloud-core-http - 1.43.1-SNAPSHOT + 1.44.0 test-jar com.google.cloud google-cloud-dataproc - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha com.google.cloud google-cloud-dataproc - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha test-jar com.google.api.grpc proto-google-cloud-dataproc-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.26.1-SNAPSHOT + 0.27.0 com.google.cloud google-cloud-datastore - 1.43.1-SNAPSHOT + 1.44.0 com.google.cloud google-cloud-datastore - 1.43.1-SNAPSHOT + 1.44.0 test-jar com.google.api.grpc proto-google-cloud-datastore-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.cloud google-cloud-dlp - 0.61.1-beta-SNAPSHOT + 0.62.0-beta com.google.cloud google-cloud-dlp - 0.61.1-beta-SNAPSHOT + 0.62.0-beta test-jar com.google.api.grpc proto-google-cloud-dlp-v2 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-dlp-v2 - 0.26.1-SNAPSHOT + 0.27.0 com.google.cloud google-cloud-dialogflow - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha com.google.cloud google-cloud-dialogflow - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha test-jar com.google.api.grpc proto-google-cloud-dialogflow-v2beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-dialogflow-v2beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-dialogflow-v2 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-dialogflow-v2 - 0.26.1-SNAPSHOT + 0.27.0 com.google.cloud google-cloud-dns - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha com.google.cloud google-cloud-dns - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha test-jar com.google.cloud google-cloud-errorreporting - 0.61.1-beta-SNAPSHOT + 0.62.0-beta com.google.cloud google-cloud-errorreporting - 0.61.1-beta-SNAPSHOT + 0.62.0-beta test-jar com.google.api.grpc proto-google-cloud-error-reporting-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-error-reporting-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.cloud google-cloud-firestore - 0.61.1-beta-SNAPSHOT + 0.62.0-beta com.google.cloud google-cloud-firestore - 0.61.1-beta-SNAPSHOT + 0.62.0-beta test-jar com.google.api.grpc proto-google-cloud-firestore-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-firestore-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.cloud google-cloud-kms - 0.61.1-beta-SNAPSHOT + 0.62.0-beta com.google.cloud google-cloud-kms - 0.61.1-beta-SNAPSHOT + 0.62.0-beta test-jar com.google.api.grpc proto-google-cloud-kms-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-kms-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.cloud google-cloud-language - 1.43.1-SNAPSHOT + 1.44.0 com.google.cloud google-cloud-language - 1.43.1-SNAPSHOT + 1.44.0 test-jar com.google.api.grpc proto-google-cloud-language-v1 - 1.25.1-SNAPSHOT + 1.26.0 com.google.api.grpc grpc-google-cloud-language-v1 - 1.25.1-SNAPSHOT + 1.26.0 com.google.api.grpc proto-google-cloud-language-v1beta2 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-language-v1beta2 - 0.26.1-SNAPSHOT + 0.27.0 com.google.cloud google-cloud-logging - 1.43.1-SNAPSHOT + 1.44.0 com.google.cloud google-cloud-logging - 1.43.1-SNAPSHOT + 1.44.0 test-jar com.google.api.grpc proto-google-cloud-logging-v2 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-logging-v2 - 0.26.1-SNAPSHOT + 0.27.0 com.google.cloud google-cloud-logging-logback - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha com.google.cloud google-cloud-monitoring - 1.43.1-SNAPSHOT + 1.44.0 com.google.cloud google-cloud-monitoring - 1.43.1-SNAPSHOT + 1.44.0 test-jar com.google.api.grpc proto-google-cloud-monitoring-v3 - 1.25.1-SNAPSHOT + 1.26.0 com.google.api.grpc grpc-google-cloud-monitoring-v3 - 1.25.1-SNAPSHOT + 1.26.0 com.google.cloud google-cloud-os-login - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha com.google.cloud google-cloud-os-login - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha test-jar com.google.api.grpc proto-google-cloud-os-login-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-os-login-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.cloud google-cloud-pubsub - 1.43.1-SNAPSHOT + 1.44.0 com.google.cloud google-cloud-pubsub - 1.43.1-SNAPSHOT + 1.44.0 test-jar com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.25.1-SNAPSHOT + 1.26.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.25.1-SNAPSHOT + 1.26.0 com.google.cloud google-cloud-redis - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha com.google.cloud google-cloud-redis - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha test-jar com.google.api.grpc proto-google-cloud-redis-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-redis-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-redis-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-redis-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.cloud google-cloud-resourcemanager - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha com.google.cloud google-cloud-resourcemanager - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha test-jar com.google.cloud google-cloud-spanner - 0.61.1-beta-SNAPSHOT + 0.62.0-beta com.google.cloud google-cloud-spanner - 0.61.1-beta-SNAPSHOT + 0.62.0-beta test-jar com.google.api.grpc proto-google-cloud-spanner-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-spanner-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-spanner-admin-database-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-spanner-admin-database-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-spanner-admin-instance-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-spanner-admin-instance-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.cloud google-cloud-speech - 0.61.1-beta-SNAPSHOT + 0.62.0-beta com.google.cloud google-cloud-speech - 0.61.1-beta-SNAPSHOT + 0.62.0-beta test-jar com.google.api.grpc proto-google-cloud-speech-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-speech-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-speech-v1p1beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-speech-v1p1beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-speech-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-speech-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.cloud google-cloud-storage - 1.43.1-SNAPSHOT + 1.44.0 com.google.cloud google-cloud-storage - 1.43.1-SNAPSHOT + 1.44.0 test-jar com.google.cloud google-cloud-tasks - 0.61.1-beta-SNAPSHOT + 0.62.0-beta com.google.cloud google-cloud-tasks - 0.61.1-beta-SNAPSHOT + 0.62.0-beta test-jar com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.26.1-SNAPSHOT + 0.27.0 com.google.cloud google-cloud-texttospeech - 0.61.1-beta-SNAPSHOT + 0.62.0-beta com.google.cloud google-cloud-texttospeech - 0.61.1-beta-SNAPSHOT + 0.62.0-beta test-jar com.google.api.grpc proto-google-cloud-texttospeech-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-texttospeech-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-texttospeech-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-texttospeech-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.cloud google-cloud-trace - 0.61.1-beta-SNAPSHOT + 0.62.0-beta com.google.cloud google-cloud-trace - 0.61.1-beta-SNAPSHOT + 0.62.0-beta test-jar com.google.api.grpc proto-google-cloud-trace-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-trace-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-trace-v2 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-trace-v2 - 0.26.1-SNAPSHOT + 0.27.0 com.google.cloud google-cloud-translate - 1.43.1-SNAPSHOT + 1.44.0 com.google.cloud google-cloud-translate - 1.43.1-SNAPSHOT + 1.44.0 test-jar com.google.cloud google-cloud-vision - 1.43.1-SNAPSHOT + 1.44.0 com.google.cloud google-cloud-vision - 1.43.1-SNAPSHOT + 1.44.0 test-jar com.google.api.grpc proto-google-cloud-vision-v1 - 1.25.1-SNAPSHOT + 1.26.0 com.google.api.grpc grpc-google-cloud-vision-v1 - 1.25.1-SNAPSHOT + 1.26.0 com.google.api.grpc proto-google-cloud-vision-v1p1beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-vision-v1p1beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-vision-v1p2beta1 - 1.25.1-SNAPSHOT + 1.26.0 com.google.api.grpc grpc-google-cloud-vision-v1p2beta1 - 1.25.1-SNAPSHOT + 1.26.0 com.google.api.grpc proto-google-cloud-vision-v1p3beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-vision-v1p3beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.cloud google-cloud-video-intelligence - 0.61.1-beta-SNAPSHOT + 0.62.0-beta com.google.cloud google-cloud-video-intelligence - 0.61.1-beta-SNAPSHOT + 0.62.0-beta test-jar com.google.api.grpc proto-google-cloud-video-intelligence-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1beta2 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1beta2 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1p1beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p1beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1p2beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p2beta1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-iot-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-iot-v1 - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1alpha - 0.26.1-SNAPSHOT + 0.27.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1alpha - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/google-cloud-clients/google-cloud-asset/README.md b/google-cloud-clients/google-cloud-asset/README.md index c2adb61b907f..f1888b573570 100644 --- a/google-cloud-clients/google-cloud-asset/README.md +++ b/google-cloud-clients/google-cloud-asset/README.md @@ -24,16 +24,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-asset - 0.61.0-beta + 0.62.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-asset:0.61.0-beta' +compile 'com.google.cloud:google-cloud-asset:0.62.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-asset" % "0.61.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-asset" % "0.62.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-asset/pom.xml b/google-cloud-clients/google-cloud-asset/pom.xml index 4f9edab4e5a8..c6db8d2fcb49 100644 --- a/google-cloud-clients/google-cloud-asset/pom.xml +++ b/google-cloud-clients/google-cloud-asset/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-asset - 0.61.1-beta-SNAPSHOT + 0.62.0-beta jar Google Cloud Asset https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-asset @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha google-cloud-asset diff --git a/google-cloud-clients/google-cloud-automl/README.md b/google-cloud-clients/google-cloud-automl/README.md index 2837d94a46f5..f6f676cc149c 100644 --- a/google-cloud-clients/google-cloud-automl/README.md +++ b/google-cloud-clients/google-cloud-automl/README.md @@ -24,16 +24,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-automl - 0.61.0-beta + 0.62.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-automl:0.61.0-beta' +compile 'com.google.cloud:google-cloud-automl:0.62.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-automl" % "0.61.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-automl" % "0.62.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-automl/pom.xml b/google-cloud-clients/google-cloud-automl/pom.xml index 1da4f419de1f..7c70b241047c 100644 --- a/google-cloud-clients/google-cloud-automl/pom.xml +++ b/google-cloud-clients/google-cloud-automl/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-automl - 0.61.1-beta-SNAPSHOT + 0.62.0-beta jar Google Cloud Auto ML https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-automl @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha google-cloud-automl diff --git a/google-cloud-clients/google-cloud-bigquery/README.md b/google-cloud-clients/google-cloud-bigquery/README.md index 3fab4a7d6557..cecd2d56d8a5 100644 --- a/google-cloud-clients/google-cloud-bigquery/README.md +++ b/google-cloud-clients/google-cloud-bigquery/README.md @@ -20,16 +20,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-bigquery - 1.43.0 + 1.44.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-bigquery:1.43.0' +compile 'com.google.cloud:google-cloud-bigquery:1.44.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "1.43.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "1.44.0" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-bigquery/pom.xml b/google-cloud-clients/google-cloud-bigquery/pom.xml index 2c547fb6b7fa..93fa9d09008c 100644 --- a/google-cloud-clients/google-cloud-bigquery/pom.xml +++ b/google-cloud-clients/google-cloud-bigquery/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-bigquery - 1.43.1-SNAPSHOT + 1.44.0 jar Google Cloud BigQuery https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-bigquery @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha google-cloud-bigquery diff --git a/google-cloud-clients/google-cloud-bigquerydatatransfer/README.md b/google-cloud-clients/google-cloud-bigquerydatatransfer/README.md index 64ffbed0b1ad..de766565ea4d 100644 --- a/google-cloud-clients/google-cloud-bigquerydatatransfer/README.md +++ b/google-cloud-clients/google-cloud-bigquerydatatransfer/README.md @@ -25,16 +25,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-bigquerydatatransfer - 0.61.0-beta + 0.62.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-bigquerydatatransfer:0.61.0-beta' +compile 'com.google.cloud:google-cloud-bigquerydatatransfer:0.62.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatatransfer" % "0.61.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatatransfer" % "0.62.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-bigquerydatatransfer/pom.xml b/google-cloud-clients/google-cloud-bigquerydatatransfer/pom.xml index 2ecce92e4e70..eeebdbf88a52 100644 --- a/google-cloud-clients/google-cloud-bigquerydatatransfer/pom.xml +++ b/google-cloud-clients/google-cloud-bigquerydatatransfer/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-bigquerydatatransfer - 0.61.1-beta-SNAPSHOT + 0.62.0-beta jar Google Cloud Bigquery Data Transfer https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-bigquerydatatransfer @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha google-cloud-bigquerydatatransfer diff --git a/google-cloud-clients/google-cloud-bigtable-admin/README.md b/google-cloud-clients/google-cloud-bigtable-admin/README.md index f9537d2a66a0..a50ea0cb17a4 100644 --- a/google-cloud-clients/google-cloud-bigtable-admin/README.md +++ b/google-cloud-clients/google-cloud-bigtable-admin/README.md @@ -23,16 +23,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-bigtable-admin - 0.61.0-alpha + 0.62.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-bigtable-admin:0.61.0-alpha' +compile 'com.google.cloud:google-cloud-bigtable-admin:0.62.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigtable-admin" % "0.61.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-bigtable-admin" % "0.62.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-bigtable-admin/pom.xml b/google-cloud-clients/google-cloud-bigtable-admin/pom.xml index 0b6ec646b1c5..64cd35aed292 100644 --- a/google-cloud-clients/google-cloud-bigtable-admin/pom.xml +++ b/google-cloud-clients/google-cloud-bigtable-admin/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-bigtable-admin - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha jar Google Cloud Bigtable Admin https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-bigtable @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha google-cloud-bigtable-admin diff --git a/google-cloud-clients/google-cloud-bigtable/README.md b/google-cloud-clients/google-cloud-bigtable/README.md index b9f388c4c525..707ed80f3923 100644 --- a/google-cloud-clients/google-cloud-bigtable/README.md +++ b/google-cloud-clients/google-cloud-bigtable/README.md @@ -23,16 +23,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-bigtable - 0.61.0-alpha + 0.62.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-bigtable:0.61.0-alpha' +compile 'com.google.cloud:google-cloud-bigtable:0.62.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigtable" % "0.61.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-bigtable" % "0.62.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-bigtable/pom.xml b/google-cloud-clients/google-cloud-bigtable/pom.xml index 2000a4ecf7ce..bd814991fa52 100644 --- a/google-cloud-clients/google-cloud-bigtable/pom.xml +++ b/google-cloud-clients/google-cloud-bigtable/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-bigtable - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha jar Google Cloud Bigtable https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-bigtable @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha google-cloud-bigtable diff --git a/google-cloud-clients/google-cloud-compute/README.md b/google-cloud-clients/google-cloud-compute/README.md index 7babcece042a..513ef943c0ef 100644 --- a/google-cloud-clients/google-cloud-compute/README.md +++ b/google-cloud-clients/google-cloud-compute/README.md @@ -24,16 +24,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-compute - 0.61.0-alpha + 0.62.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-compute:0.61.0-alpha' +compile 'com.google.cloud:google-cloud-compute:0.62.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-compute" % "0.61.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-compute" % "0.62.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-compute/pom.xml b/google-cloud-clients/google-cloud-compute/pom.xml index b7bbeb282127..0b5b6870c2f9 100644 --- a/google-cloud-clients/google-cloud-compute/pom.xml +++ b/google-cloud-clients/google-cloud-compute/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-compute - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha jar Google Cloud Compute https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-compute @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha google-cloud-compute diff --git a/google-cloud-clients/google-cloud-container/README.md b/google-cloud-clients/google-cloud-container/README.md index 0ebf95122007..3ebf6723d285 100644 --- a/google-cloud-clients/google-cloud-container/README.md +++ b/google-cloud-clients/google-cloud-container/README.md @@ -24,16 +24,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-container - 0.61.0-beta + 0.62.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-container:0.61.0-beta' +compile 'com.google.cloud:google-cloud-container:0.62.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-container" % "0.61.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-container" % "0.62.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-container/pom.xml b/google-cloud-clients/google-cloud-container/pom.xml index 1e444cc5c677..6784a650d218 100644 --- a/google-cloud-clients/google-cloud-container/pom.xml +++ b/google-cloud-clients/google-cloud-container/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-container - 0.61.1-beta-SNAPSHOT + 0.62.0-beta jar Google Cloud Container https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-container @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha google-cloud-container diff --git a/google-cloud-clients/google-cloud-containeranalysis/README.md b/google-cloud-clients/google-cloud-containeranalysis/README.md index a1efdb573096..c5499232f261 100644 --- a/google-cloud-clients/google-cloud-containeranalysis/README.md +++ b/google-cloud-clients/google-cloud-containeranalysis/README.md @@ -21,16 +21,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-containeranalysis - 0.61.0-beta + 0.62.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-containeranalysis:0.61.0-beta' +compile 'com.google.cloud:google-cloud-containeranalysis:0.62.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-containeranalysis" % "0.61.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-containeranalysis" % "0.62.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-containeranalysis/pom.xml b/google-cloud-clients/google-cloud-containeranalysis/pom.xml index 28cfa66e55c5..b50e6738c035 100644 --- a/google-cloud-clients/google-cloud-containeranalysis/pom.xml +++ b/google-cloud-clients/google-cloud-containeranalysis/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-containeranalysis - 0.61.1-beta-SNAPSHOT + 0.62.0-beta jar Google Cloud Container Analysis https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-containeranalysis @@ -15,7 +15,7 @@ com.google.cloud google-cloud-clients - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha google-cloud-containeranalysis diff --git a/google-cloud-clients/google-cloud-contrib/README.md b/google-cloud-clients/google-cloud-contrib/README.md index 481d5581577a..fc6038e4f18f 100644 --- a/google-cloud-clients/google-cloud-contrib/README.md +++ b/google-cloud-clients/google-cloud-contrib/README.md @@ -26,16 +26,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-contrib - 0.61.0-alpha + 0.62.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-contrib:0.61.0-alpha' +compile 'com.google.cloud:google-cloud-contrib:0.62.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-contrib" % "0.61.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-contrib" % "0.62.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/README.md b/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/README.md index 7c7dcebb3359..3f4ca2a80f80 100644 --- a/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/README.md +++ b/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/README.md @@ -21,16 +21,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-logging-logback - 0.61.0-alpha + 0.62.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-logging-logback:0.61.0-alpha' +compile 'com.google.cloud:google-cloud-logging-logback:0.62.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-logging-logback" % "0.61.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-logging-logback" % "0.62.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/pom.xml b/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/pom.xml index c1cdfacc42b7..516849d89be6 100644 --- a/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/pom.xml +++ b/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/pom.xml @@ -5,7 +5,7 @@ 4.0.0 google-cloud-logging-logback - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha jar Google Cloud Logging Logback Appender https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback @@ -20,7 +20,7 @@ com.google.cloud google-cloud-contrib - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha diff --git a/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/README.md b/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/README.md index 5624a4da61b0..23873117c577 100644 --- a/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/README.md +++ b/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/README.md @@ -23,12 +23,12 @@ To run this example: [//]: # ({x-version-update-start:google-cloud-nio:current}) ``` - java -cp google-cloud-clients/google-cloud-contrib/google-cloud-nio/target/google-cloud-nio-0.61.1-alpha-SNAPSHOT.jar:google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/target/google-cloud-nio-examples-0.61.1-alpha-SNAPSHOT.jar com.google.cloud.nio.examples.ListFilesystems + java -cp google-cloud-clients/google-cloud-contrib/google-cloud-nio/target/google-cloud-nio-0.62.0-alpha.jar:google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/target/google-cloud-nio-examples-0.62.0-alpha.jar com.google.cloud.nio.examples.ListFilesystems ``` Notice that it lists Google Cloud Storage, which it wouldn't if you ran it without the NIO jar: ``` - java -cp google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/target/google-cloud-nio-examples-0.61.1-alpha-SNAPSHOT.jar com.google.cloud.nio.examples.ListFilesystems + java -cp google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/target/google-cloud-nio-examples-0.62.0-alpha.jar com.google.cloud.nio.examples.ListFilesystems ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/pom.xml b/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/pom.xml index fe82ac21dbd6..07b9f5f34fee 100644 --- a/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/pom.xml +++ b/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-nio-examples - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha jar Google Cloud NIO Examples https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples @@ -12,7 +12,7 @@ com.google.cloud google-cloud-contrib - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha google-cloud-nio-examples diff --git a/google-cloud-clients/google-cloud-contrib/google-cloud-nio/README.md b/google-cloud-clients/google-cloud-contrib/google-cloud-nio/README.md index 56d2aadac5f3..97736c2aae03 100644 --- a/google-cloud-clients/google-cloud-contrib/google-cloud-nio/README.md +++ b/google-cloud-clients/google-cloud-contrib/google-cloud-nio/README.md @@ -28,16 +28,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-nio - 0.61.0-alpha + 0.62.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-nio:0.61.0-alpha' +compile 'com.google.cloud:google-cloud-nio:0.62.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-nio" % "0.61.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-nio" % "0.62.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-contrib/google-cloud-nio/pom.xml b/google-cloud-clients/google-cloud-contrib/google-cloud-nio/pom.xml index 4f353647b07e..56b3a93f2a8b 100644 --- a/google-cloud-clients/google-cloud-contrib/google-cloud-nio/pom.xml +++ b/google-cloud-clients/google-cloud-contrib/google-cloud-nio/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-nio - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha jar Google Cloud NIO https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-contrib/google-cloud-nio @@ -12,7 +12,7 @@ com.google.cloud google-cloud-contrib - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha google-cloud-nio diff --git a/google-cloud-clients/google-cloud-contrib/pom.xml b/google-cloud-clients/google-cloud-contrib/pom.xml index 4470da03dc58..da8c31b0e52f 100644 --- a/google-cloud-clients/google-cloud-contrib/pom.xml +++ b/google-cloud-clients/google-cloud-contrib/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-contrib - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha pom Google Cloud Contributions https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-contrib @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha google-cloud-contrib diff --git a/google-cloud-clients/google-cloud-core-grpc/pom.xml b/google-cloud-clients/google-cloud-core-grpc/pom.xml index ce253199ddd7..94de3c333a1f 100644 --- a/google-cloud-clients/google-cloud-core-grpc/pom.xml +++ b/google-cloud-clients/google-cloud-core-grpc/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-core-grpc - 1.43.1-SNAPSHOT + 1.44.0 jar Google Cloud Core gRPC https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-core-grpc @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha google-cloud-core-grpc diff --git a/google-cloud-clients/google-cloud-core-http/pom.xml b/google-cloud-clients/google-cloud-core-http/pom.xml index 51a6fc5bd713..25840fb0fb31 100644 --- a/google-cloud-clients/google-cloud-core-http/pom.xml +++ b/google-cloud-clients/google-cloud-core-http/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-core-http - 1.43.1-SNAPSHOT + 1.44.0 jar Google Cloud Core HTTP https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-core-http @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha google-cloud-core-http diff --git a/google-cloud-clients/google-cloud-core/README.md b/google-cloud-clients/google-cloud-core/README.md index f61ec4a2131a..74cc343290b0 100644 --- a/google-cloud-clients/google-cloud-core/README.md +++ b/google-cloud-clients/google-cloud-core/README.md @@ -21,16 +21,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-core - 1.43.0 + 1.44.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-core:1.43.0' +compile 'com.google.cloud:google-cloud-core:1.44.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-core" % "1.43.0" +libraryDependencies += "com.google.cloud" % "google-cloud-core" % "1.44.0" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-core/pom.xml b/google-cloud-clients/google-cloud-core/pom.xml index a9f6d5fca582..6a299c081758 100644 --- a/google-cloud-clients/google-cloud-core/pom.xml +++ b/google-cloud-clients/google-cloud-core/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-core - 1.43.1-SNAPSHOT + 1.44.0 jar Google Cloud Core https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-core @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha google-cloud-core diff --git a/google-cloud-clients/google-cloud-dataproc/README.md b/google-cloud-clients/google-cloud-dataproc/README.md index 6b84785ac459..24216918f691 100644 --- a/google-cloud-clients/google-cloud-dataproc/README.md +++ b/google-cloud-clients/google-cloud-dataproc/README.md @@ -24,16 +24,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-dataproc - 0.61.0-alpha + 0.62.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-dataproc:0.61.0-alpha' +compile 'com.google.cloud:google-cloud-dataproc:0.62.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "0.61.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "0.62.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-dataproc/pom.xml b/google-cloud-clients/google-cloud-dataproc/pom.xml index 4747bdd3d2d5..9c36e24bc559 100644 --- a/google-cloud-clients/google-cloud-dataproc/pom.xml +++ b/google-cloud-clients/google-cloud-dataproc/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-dataproc - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha jar Google Cloud Dataproc https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-dataproc @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha google-cloud-dataproc diff --git a/google-cloud-clients/google-cloud-datastore/README.md b/google-cloud-clients/google-cloud-datastore/README.md index 9ef7c5978cb5..70b2eae50312 100644 --- a/google-cloud-clients/google-cloud-datastore/README.md +++ b/google-cloud-clients/google-cloud-datastore/README.md @@ -21,16 +21,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-datastore - 1.43.0 + 1.44.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-datastore:1.43.0' +compile 'com.google.cloud:google-cloud-datastore:1.44.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datastore" % "1.43.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datastore" % "1.44.0" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-datastore/pom.xml b/google-cloud-clients/google-cloud-datastore/pom.xml index be92fdda4a60..b8f0a7c3e8db 100644 --- a/google-cloud-clients/google-cloud-datastore/pom.xml +++ b/google-cloud-clients/google-cloud-datastore/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-datastore - 1.43.1-SNAPSHOT + 1.44.0 jar Google Cloud Datastore https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-datastore @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha google-cloud-datastore diff --git a/google-cloud-clients/google-cloud-dialogflow/README.md b/google-cloud-clients/google-cloud-dialogflow/README.md index 3565eb4cf406..d3166fc286cc 100644 --- a/google-cloud-clients/google-cloud-dialogflow/README.md +++ b/google-cloud-clients/google-cloud-dialogflow/README.md @@ -25,16 +25,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-dialogflow - 0.61.0-alpha + 0.62.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-dialogflow:0.61.0-alpha' +compile 'com.google.cloud:google-cloud-dialogflow:0.62.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow" % "0.61.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow" % "0.62.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-dialogflow/pom.xml b/google-cloud-clients/google-cloud-dialogflow/pom.xml index ad2305d9c733..978638bd9bf6 100644 --- a/google-cloud-clients/google-cloud-dialogflow/pom.xml +++ b/google-cloud-clients/google-cloud-dialogflow/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-dialogflow - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha jar Google Cloud Dialog Flow API https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-dialogflow @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha google-cloud-dialogflow diff --git a/google-cloud-clients/google-cloud-dlp/README.md b/google-cloud-clients/google-cloud-dlp/README.md index b4e7d92927e7..ed504a201d10 100644 --- a/google-cloud-clients/google-cloud-dlp/README.md +++ b/google-cloud-clients/google-cloud-dlp/README.md @@ -24,16 +24,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-dlp - 0.61.0-beta + 0.62.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-dlp:0.61.0-beta' +compile 'com.google.cloud:google-cloud-dlp:0.62.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dlp" % "0.61.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-dlp" % "0.62.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-dlp/pom.xml b/google-cloud-clients/google-cloud-dlp/pom.xml index 5484205b8a97..b15afab81a00 100644 --- a/google-cloud-clients/google-cloud-dlp/pom.xml +++ b/google-cloud-clients/google-cloud-dlp/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-dlp - 0.61.1-beta-SNAPSHOT + 0.62.0-beta jar Google Cloud Data Loss Prevention API https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-dlp @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha google-cloud-dlp diff --git a/google-cloud-clients/google-cloud-dns/README.md b/google-cloud-clients/google-cloud-dns/README.md index 9c16cb467702..12fe6ff46aa1 100644 --- a/google-cloud-clients/google-cloud-dns/README.md +++ b/google-cloud-clients/google-cloud-dns/README.md @@ -24,16 +24,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-dns - 0.61.0-alpha + 0.62.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-dns:0.61.0-alpha' +compile 'com.google.cloud:google-cloud-dns:0.62.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dns" % "0.61.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-dns" % "0.62.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-dns/pom.xml b/google-cloud-clients/google-cloud-dns/pom.xml index f2a605f5c1fe..9e3c14fb789e 100644 --- a/google-cloud-clients/google-cloud-dns/pom.xml +++ b/google-cloud-clients/google-cloud-dns/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-dns - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha jar Google Cloud DNS https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-dns @@ -14,7 +14,7 @@ com.google.cloud google-cloud-clients - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha google-cloud-dns diff --git a/google-cloud-clients/google-cloud-errorreporting/README.md b/google-cloud-clients/google-cloud-errorreporting/README.md index 12ab3b07b900..3746b192342c 100644 --- a/google-cloud-clients/google-cloud-errorreporting/README.md +++ b/google-cloud-clients/google-cloud-errorreporting/README.md @@ -24,16 +24,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-errorreporting - 0.61.0-beta + 0.62.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-errorreporting:0.61.0-beta' +compile 'com.google.cloud:google-cloud-errorreporting:0.62.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-errorreporting" % "0.61.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-errorreporting" % "0.62.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-errorreporting/pom.xml b/google-cloud-clients/google-cloud-errorreporting/pom.xml index ff95f6d9e3e6..2da915e5abfb 100644 --- a/google-cloud-clients/google-cloud-errorreporting/pom.xml +++ b/google-cloud-clients/google-cloud-errorreporting/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-errorreporting - 0.61.1-beta-SNAPSHOT + 0.62.0-beta jar Google Cloud Error Reporting https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-errorreporting @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha google-cloud-errorreporting diff --git a/google-cloud-clients/google-cloud-firestore/README.md b/google-cloud-clients/google-cloud-firestore/README.md index ed30bf102c7e..795b4df0c4dd 100644 --- a/google-cloud-clients/google-cloud-firestore/README.md +++ b/google-cloud-clients/google-cloud-firestore/README.md @@ -14,16 +14,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-firestore - 0.61.0-beta + 0.62.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-firestore:0.61.0-beta' +compile 'com.google.cloud:google-cloud-firestore:0.62.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-firestore" % "0.61.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-firestore" % "0.62.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-firestore/pom.xml b/google-cloud-clients/google-cloud-firestore/pom.xml index 7227c0167d99..c7bc65f7549c 100644 --- a/google-cloud-clients/google-cloud-firestore/pom.xml +++ b/google-cloud-clients/google-cloud-firestore/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-firestore - 0.61.1-beta-SNAPSHOT + 0.62.0-beta jar Google Cloud Firestore https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-firestore @@ -15,7 +15,7 @@ com.google.cloud google-cloud-clients - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha google-cloud-firestore diff --git a/google-cloud-clients/google-cloud-iot/README.md b/google-cloud-clients/google-cloud-iot/README.md index 36a5269f4294..7ced6b3ff7ed 100644 --- a/google-cloud-clients/google-cloud-iot/README.md +++ b/google-cloud-clients/google-cloud-iot/README.md @@ -24,16 +24,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-iot - 0.61.0-beta + 0.62.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-iot:0.61.0-beta' +compile 'com.google.cloud:google-cloud-iot:0.62.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-iot" % "0.61.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-iot" % "0.62.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-iot/pom.xml b/google-cloud-clients/google-cloud-iot/pom.xml index c15276157584..ab36419fdb94 100644 --- a/google-cloud-clients/google-cloud-iot/pom.xml +++ b/google-cloud-clients/google-cloud-iot/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-iot - 0.61.1-beta-SNAPSHOT + 0.62.0-beta jar Google Cloud IoT https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-iot @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha google-cloud-iot diff --git a/google-cloud-clients/google-cloud-kms/README.md b/google-cloud-clients/google-cloud-kms/README.md index 70e62a8ee199..0f9d18adf16b 100644 --- a/google-cloud-clients/google-cloud-kms/README.md +++ b/google-cloud-clients/google-cloud-kms/README.md @@ -24,16 +24,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-kms - 0.61.0-beta + 0.62.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-kms:0.61.0-beta' +compile 'com.google.cloud:google-cloud-kms:0.62.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-kms" % "0.61.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-kms" % "0.62.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-kms/pom.xml b/google-cloud-clients/google-cloud-kms/pom.xml index 876005f5dd2c..ae956e72be3d 100644 --- a/google-cloud-clients/google-cloud-kms/pom.xml +++ b/google-cloud-clients/google-cloud-kms/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-kms - 0.61.1-beta-SNAPSHOT + 0.62.0-beta jar Google Cloud KMS https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-kms @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha google-cloud-kms-v1 diff --git a/google-cloud-clients/google-cloud-language/README.md b/google-cloud-clients/google-cloud-language/README.md index 1bf8aceaecb5..578a6defb195 100644 --- a/google-cloud-clients/google-cloud-language/README.md +++ b/google-cloud-clients/google-cloud-language/README.md @@ -21,16 +21,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-language - 1.43.0 + 1.44.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-language:1.43.0' +compile 'com.google.cloud:google-cloud-language:1.44.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-language" % "1.43.0" +libraryDependencies += "com.google.cloud" % "google-cloud-language" % "1.44.0" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-language/pom.xml b/google-cloud-clients/google-cloud-language/pom.xml index 7e93b4498d86..f9eb061e5484 100644 --- a/google-cloud-clients/google-cloud-language/pom.xml +++ b/google-cloud-clients/google-cloud-language/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-language - 1.43.1-SNAPSHOT + 1.44.0 jar Google Cloud Natural Language https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-language @@ -15,7 +15,7 @@ com.google.cloud google-cloud-clients - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha google-cloud-language diff --git a/google-cloud-clients/google-cloud-logging/README.md b/google-cloud-clients/google-cloud-logging/README.md index b9fcc11f550f..e77118e3e254 100644 --- a/google-cloud-clients/google-cloud-logging/README.md +++ b/google-cloud-clients/google-cloud-logging/README.md @@ -21,16 +21,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-logging - 1.43.0 + 1.44.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-logging:1.43.0' +compile 'com.google.cloud:google-cloud-logging:1.44.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-logging" % "1.43.0" +libraryDependencies += "com.google.cloud" % "google-cloud-logging" % "1.44.0" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-logging/pom.xml b/google-cloud-clients/google-cloud-logging/pom.xml index 198884817d03..f4383cd27b77 100644 --- a/google-cloud-clients/google-cloud-logging/pom.xml +++ b/google-cloud-clients/google-cloud-logging/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-logging - 1.43.1-SNAPSHOT + 1.44.0 jar Google Cloud Logging https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-logging @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha google-cloud-logging diff --git a/google-cloud-clients/google-cloud-monitoring/README.md b/google-cloud-clients/google-cloud-monitoring/README.md index 1093c706de98..6ecca6336b7b 100644 --- a/google-cloud-clients/google-cloud-monitoring/README.md +++ b/google-cloud-clients/google-cloud-monitoring/README.md @@ -21,16 +21,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-monitoring - 1.43.0 + 1.44.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-monitoring:1.43.0' +compile 'com.google.cloud:google-cloud-monitoring:1.44.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-monitoring" % "1.43.0" +libraryDependencies += "com.google.cloud" % "google-cloud-monitoring" % "1.44.0" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-monitoring/pom.xml b/google-cloud-clients/google-cloud-monitoring/pom.xml index 3abf46906cf3..60b86918831d 100644 --- a/google-cloud-clients/google-cloud-monitoring/pom.xml +++ b/google-cloud-clients/google-cloud-monitoring/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-monitoring - 1.43.1-SNAPSHOT + 1.44.0 jar Google Cloud Monitoring https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-monitoring @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha google-cloud-monitoring diff --git a/google-cloud-clients/google-cloud-notification/README.md b/google-cloud-clients/google-cloud-notification/README.md index 771759ce2b59..acafd691af72 100644 --- a/google-cloud-clients/google-cloud-notification/README.md +++ b/google-cloud-clients/google-cloud-notification/README.md @@ -14,16 +14,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-notification - 0.61.0-beta + 0.62.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-notification:0.61.0-beta' +compile 'com.google.cloud:google-cloud-notification:0.62.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-notification" % "0.61.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-notification" % "0.62.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-notification/pom.xml b/google-cloud-clients/google-cloud-notification/pom.xml index e0fdf417a7b5..2e5859dd3c4e 100644 --- a/google-cloud-clients/google-cloud-notification/pom.xml +++ b/google-cloud-clients/google-cloud-notification/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-notification - 0.61.1-beta-SNAPSHOT + 0.62.0-beta jar Google Cloud Pub/Sub Notifications for GCS https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-notification @@ -15,7 +15,7 @@ com.google.cloud google-cloud-clients - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha google-cloud-notification diff --git a/google-cloud-clients/google-cloud-os-login/README.md b/google-cloud-clients/google-cloud-os-login/README.md index 7a5d38ef3147..02f2e8437a02 100644 --- a/google-cloud-clients/google-cloud-os-login/README.md +++ b/google-cloud-clients/google-cloud-os-login/README.md @@ -24,16 +24,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-os-login - 0.61.0-alpha + 0.62.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-os-login:0.61.0-alpha' +compile 'com.google.cloud:google-cloud-os-login:0.62.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-os-login" % "0.61.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-os-login" % "0.62.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-os-login/pom.xml b/google-cloud-clients/google-cloud-os-login/pom.xml index 70c32ef37c7b..b22f4e496545 100644 --- a/google-cloud-clients/google-cloud-os-login/pom.xml +++ b/google-cloud-clients/google-cloud-os-login/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-os-login - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha jar Google Cloud OS Login https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-os-login @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha google-cloud-os-login diff --git a/google-cloud-clients/google-cloud-pubsub/README.md b/google-cloud-clients/google-cloud-pubsub/README.md index 0394dfd0e098..e6791f7af51c 100644 --- a/google-cloud-clients/google-cloud-pubsub/README.md +++ b/google-cloud-clients/google-cloud-pubsub/README.md @@ -21,16 +21,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.43.0 + 1.44.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.43.0' +compile 'com.google.cloud:google-cloud-pubsub:1.44.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.43.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.44.0" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-pubsub/pom.xml b/google-cloud-clients/google-cloud-pubsub/pom.xml index 9a0d2bbc43d4..5ec4c63bc568 100644 --- a/google-cloud-clients/google-cloud-pubsub/pom.xml +++ b/google-cloud-clients/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.43.1-SNAPSHOT + 1.44.0 jar Google Cloud Pub/Sub https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha google-cloud-pubsub diff --git a/google-cloud-clients/google-cloud-redis/README.md b/google-cloud-clients/google-cloud-redis/README.md index 3cad61b15a44..41883f12e328 100644 --- a/google-cloud-clients/google-cloud-redis/README.md +++ b/google-cloud-clients/google-cloud-redis/README.md @@ -24,16 +24,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-redis - 0.61.0-alpha + 0.62.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-redis:0.61.0-alpha' +compile 'com.google.cloud:google-cloud-redis:0.62.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-redis" % "0.61.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-redis" % "0.62.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-redis/pom.xml b/google-cloud-clients/google-cloud-redis/pom.xml index 326ebd48d63d..1c088bdd25e8 100644 --- a/google-cloud-clients/google-cloud-redis/pom.xml +++ b/google-cloud-clients/google-cloud-redis/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-redis - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha jar Google Cloud Redis https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-redis @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha google-cloud-redis diff --git a/google-cloud-clients/google-cloud-resourcemanager/README.md b/google-cloud-clients/google-cloud-resourcemanager/README.md index d51d42e5cd19..d69fd8889209 100644 --- a/google-cloud-clients/google-cloud-resourcemanager/README.md +++ b/google-cloud-clients/google-cloud-resourcemanager/README.md @@ -24,16 +24,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-resourcemanager - 0.61.0-alpha + 0.62.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-resourcemanager:0.61.0-alpha' +compile 'com.google.cloud:google-cloud-resourcemanager:0.62.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-resourcemanager" % "0.61.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-resourcemanager" % "0.62.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-resourcemanager/pom.xml b/google-cloud-clients/google-cloud-resourcemanager/pom.xml index 511554947935..cf95b474ed2c 100644 --- a/google-cloud-clients/google-cloud-resourcemanager/pom.xml +++ b/google-cloud-clients/google-cloud-resourcemanager/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-resourcemanager - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha jar Google Cloud Resource Manager https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-resourcemanager @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha google-cloud-resourcemanager diff --git a/google-cloud-clients/google-cloud-spanner/README.md b/google-cloud-clients/google-cloud-spanner/README.md index 28866ed06af6..efdf376f44e2 100644 --- a/google-cloud-clients/google-cloud-spanner/README.md +++ b/google-cloud-clients/google-cloud-spanner/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-spanner - 0.61.0-beta + 0.62.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-spanner:0.61.0-beta' +compile 'com.google.cloud:google-cloud-spanner:0.62.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-spanner" % "0.61.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-spanner" % "0.62.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-spanner/pom.xml b/google-cloud-clients/google-cloud-spanner/pom.xml index da79b31493e7..61c83fc3dec6 100644 --- a/google-cloud-clients/google-cloud-spanner/pom.xml +++ b/google-cloud-clients/google-cloud-spanner/pom.xml @@ -4,7 +4,7 @@ http://maven.apache.org/maven-v4_0_0.xsd"> 4.0.0 google-cloud-spanner - 0.61.1-beta-SNAPSHOT + 0.62.0-beta jar Google Cloud Spanner https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-spanner @@ -14,7 +14,7 @@ com.google.cloud google-cloud-clients - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha google-cloud-spanner diff --git a/google-cloud-clients/google-cloud-speech/README.md b/google-cloud-clients/google-cloud-speech/README.md index 6a278a3c7eb4..a288f02d7509 100644 --- a/google-cloud-clients/google-cloud-speech/README.md +++ b/google-cloud-clients/google-cloud-speech/README.md @@ -24,16 +24,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-speech - 0.61.0-beta + 0.62.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-speech:0.61.0-beta' +compile 'com.google.cloud:google-cloud-speech:0.62.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-speech" % "0.61.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-speech" % "0.62.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-speech/pom.xml b/google-cloud-clients/google-cloud-speech/pom.xml index a45243559e0f..ad4f1b51dd54 100644 --- a/google-cloud-clients/google-cloud-speech/pom.xml +++ b/google-cloud-clients/google-cloud-speech/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-speech - 0.61.1-beta-SNAPSHOT + 0.62.0-beta jar Google Cloud Speech https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-speech @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha google-cloud-speech diff --git a/google-cloud-clients/google-cloud-storage/README.md b/google-cloud-clients/google-cloud-storage/README.md index e54795a0ac6d..f8a6038f1b85 100644 --- a/google-cloud-clients/google-cloud-storage/README.md +++ b/google-cloud-clients/google-cloud-storage/README.md @@ -21,16 +21,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-storage - 1.43.0 + 1.44.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-storage:1.43.0' +compile 'com.google.cloud:google-cloud-storage:1.44.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-storage" % "1.43.0" +libraryDependencies += "com.google.cloud" % "google-cloud-storage" % "1.44.0" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-storage/pom.xml b/google-cloud-clients/google-cloud-storage/pom.xml index 4be6536a017b..70773b695f2a 100644 --- a/google-cloud-clients/google-cloud-storage/pom.xml +++ b/google-cloud-clients/google-cloud-storage/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-storage - 1.43.1-SNAPSHOT + 1.44.0 jar Google Cloud Storage https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-storage @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha google-cloud-storage diff --git a/google-cloud-clients/google-cloud-tasks/README.md b/google-cloud-clients/google-cloud-tasks/README.md index ed1aa20581be..dade1c5d1f10 100644 --- a/google-cloud-clients/google-cloud-tasks/README.md +++ b/google-cloud-clients/google-cloud-tasks/README.md @@ -24,16 +24,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-tasks - 0.61.0-beta + 0.62.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-tasks:0.61.0-beta' +compile 'com.google.cloud:google-cloud-tasks:0.62.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "0.61.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "0.62.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-tasks/pom.xml b/google-cloud-clients/google-cloud-tasks/pom.xml index 81074f35c625..2adadfece132 100644 --- a/google-cloud-clients/google-cloud-tasks/pom.xml +++ b/google-cloud-clients/google-cloud-tasks/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-tasks - 0.61.1-beta-SNAPSHOT + 0.62.0-beta jar Google Cloud Tasks https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-tasks @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha google-cloud-tasks-v2beta2 diff --git a/google-cloud-clients/google-cloud-texttospeech/README.md b/google-cloud-clients/google-cloud-texttospeech/README.md index f98767d72631..353f2e12fffc 100644 --- a/google-cloud-clients/google-cloud-texttospeech/README.md +++ b/google-cloud-clients/google-cloud-texttospeech/README.md @@ -24,16 +24,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-texttospeech - 0.61.0-beta + 0.62.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-texttospeech:0.61.0-beta' +compile 'com.google.cloud:google-cloud-texttospeech:0.62.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-texttospeech" % "0.61.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-texttospeech" % "0.62.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-texttospeech/pom.xml b/google-cloud-clients/google-cloud-texttospeech/pom.xml index f8d3639f7f5b..d925714682b9 100644 --- a/google-cloud-clients/google-cloud-texttospeech/pom.xml +++ b/google-cloud-clients/google-cloud-texttospeech/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-texttospeech - 0.61.1-beta-SNAPSHOT + 0.62.0-beta jar Google Cloud Text-to-Speech https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-texttospeech @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha google-cloud-texttospeech-v1beta1 diff --git a/google-cloud-clients/google-cloud-trace/README.md b/google-cloud-clients/google-cloud-trace/README.md index 3b5b7b2b2783..4c3b65053868 100644 --- a/google-cloud-clients/google-cloud-trace/README.md +++ b/google-cloud-clients/google-cloud-trace/README.md @@ -24,16 +24,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-trace - 0.61.0-beta + 0.62.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-trace:0.61.0-beta' +compile 'com.google.cloud:google-cloud-trace:0.62.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-trace" % "0.61.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-trace" % "0.62.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-trace/pom.xml b/google-cloud-clients/google-cloud-trace/pom.xml index 733e47ee333f..f6385f232c69 100644 --- a/google-cloud-clients/google-cloud-trace/pom.xml +++ b/google-cloud-clients/google-cloud-trace/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-trace - 0.61.1-beta-SNAPSHOT + 0.62.0-beta jar Google Cloud Trace https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-trace @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha google-cloud-trace diff --git a/google-cloud-clients/google-cloud-translate/README.md b/google-cloud-clients/google-cloud-translate/README.md index 004d885eed3e..5a8a8f825112 100644 --- a/google-cloud-clients/google-cloud-translate/README.md +++ b/google-cloud-clients/google-cloud-translate/README.md @@ -21,16 +21,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-translate - 1.43.0 + 1.44.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-translate:1.43.0' +compile 'com.google.cloud:google-cloud-translate:1.44.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-translate" % "1.43.0" +libraryDependencies += "com.google.cloud" % "google-cloud-translate" % "1.44.0" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-translate/pom.xml b/google-cloud-clients/google-cloud-translate/pom.xml index 9256a4317ee4..27c2de535b20 100644 --- a/google-cloud-clients/google-cloud-translate/pom.xml +++ b/google-cloud-clients/google-cloud-translate/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-translate - 1.43.1-SNAPSHOT + 1.44.0 jar Google Cloud Translation https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-translate @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha google-cloud-translate diff --git a/google-cloud-clients/google-cloud-video-intelligence/README.md b/google-cloud-clients/google-cloud-video-intelligence/README.md index 663f865fa20d..4d5e9ace8963 100644 --- a/google-cloud-clients/google-cloud-video-intelligence/README.md +++ b/google-cloud-clients/google-cloud-video-intelligence/README.md @@ -24,16 +24,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-video-intelligence - 0.61.0-beta + 0.62.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-video-intelligence:0.61.0-beta' +compile 'com.google.cloud:google-cloud-video-intelligence:0.62.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-video-intelligence" % "0.61.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-video-intelligence" % "0.62.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-video-intelligence/pom.xml b/google-cloud-clients/google-cloud-video-intelligence/pom.xml index 6c1a3deb4a2b..abf50c140cfb 100644 --- a/google-cloud-clients/google-cloud-video-intelligence/pom.xml +++ b/google-cloud-clients/google-cloud-video-intelligence/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-video-intelligence - 0.61.1-beta-SNAPSHOT + 0.62.0-beta jar Google Cloud Video Intelligence https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-video-intelligence @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha google-cloud-video-intelligence diff --git a/google-cloud-clients/google-cloud-vision/README.md b/google-cloud-clients/google-cloud-vision/README.md index 3ded43a8ae87..9ce73548a4cc 100644 --- a/google-cloud-clients/google-cloud-vision/README.md +++ b/google-cloud-clients/google-cloud-vision/README.md @@ -21,16 +21,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-vision - 1.43.0 + 1.44.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-vision:1.43.0' +compile 'com.google.cloud:google-cloud-vision:1.44.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vision" % "1.43.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vision" % "1.44.0" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-vision/pom.xml b/google-cloud-clients/google-cloud-vision/pom.xml index 5655fc1085fa..e97c12f9b0e7 100644 --- a/google-cloud-clients/google-cloud-vision/pom.xml +++ b/google-cloud-clients/google-cloud-vision/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-vision - 1.43.1-SNAPSHOT + 1.44.0 jar Google Cloud Vision https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-vision @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha google-cloud-vision diff --git a/google-cloud-clients/google-cloud-websecurityscanner/README.md b/google-cloud-clients/google-cloud-websecurityscanner/README.md index 74b37df6e082..98aee8031ce7 100644 --- a/google-cloud-clients/google-cloud-websecurityscanner/README.md +++ b/google-cloud-clients/google-cloud-websecurityscanner/README.md @@ -24,16 +24,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-websecurityscanner - 0.61.0-alpha + 0.62.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-websecurityscanner:0.61.0-alpha' +compile 'com.google.cloud:google-cloud-websecurityscanner:0.62.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-websecurityscanner" % "0.61.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-websecurityscanner" % "0.62.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-websecurityscanner/pom.xml b/google-cloud-clients/google-cloud-websecurityscanner/pom.xml index 5f19ec7a0f04..59b11391bf9d 100644 --- a/google-cloud-clients/google-cloud-websecurityscanner/pom.xml +++ b/google-cloud-clients/google-cloud-websecurityscanner/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-websecurityscanner - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha jar Google Cloud Web Security Scanner https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-websecurityscanner @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha google-cloud-websecurityscanner diff --git a/google-cloud-clients/pom.xml b/google-cloud-clients/pom.xml index 622a718fbcc5..62ab23e1dc66 100644 --- a/google-cloud-clients/pom.xml +++ b/google-cloud-clients/pom.xml @@ -6,7 +6,7 @@ com.google.cloud google-cloud-clients pom - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha Google Cloud https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients @@ -154,7 +154,7 @@ UTF-8 github google-cloud-clients - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha 1.24.1 1.31.0 0.11.0 diff --git a/google-cloud-examples/README.md b/google-cloud-examples/README.md index 07941e156eac..ab22bf499d18 100644 --- a/google-cloud-examples/README.md +++ b/google-cloud-examples/README.md @@ -21,16 +21,16 @@ If you are using Maven, add this to your pom.xml file com.google.cloud google-cloud-examples - 0.61.0-alpha + 0.62.0-alpha ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-examples:0.61.0-alpha' +compile 'com.google.cloud:google-cloud-examples:0.62.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-examples" % "0.61.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-examples" % "0.62.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-examples/pom.xml b/google-cloud-examples/pom.xml index 72ccef8133c0..de4c447350ab 100644 --- a/google-cloud-examples/pom.xml +++ b/google-cloud-examples/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-examples - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha jar Google Cloud Examples https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-examples @@ -18,7 +18,7 @@ com.google.cloud google-cloud-bom - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha pom import diff --git a/google-cloud-testing/google-cloud-appengineflexcompat/pom.xml b/google-cloud-testing/google-cloud-appengineflexcompat/pom.xml index e0481eb93a64..89b1cf73b422 100644 --- a/google-cloud-testing/google-cloud-appengineflexcompat/pom.xml +++ b/google-cloud-testing/google-cloud-appengineflexcompat/pom.xml @@ -4,13 +4,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-appengineflexcompat - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha war google-cloud-testing com.google.cloud - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha diff --git a/google-cloud-testing/google-cloud-appengineflexcustom/pom.xml b/google-cloud-testing/google-cloud-appengineflexcustom/pom.xml index 3ae753ac9a1c..1ee0a90b9367 100644 --- a/google-cloud-testing/google-cloud-appengineflexcustom/pom.xml +++ b/google-cloud-testing/google-cloud-appengineflexcustom/pom.xml @@ -4,13 +4,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-appengineflexcustom - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha war google-cloud-testing com.google.cloud - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha diff --git a/google-cloud-testing/google-cloud-appengineflexjava/pom.xml b/google-cloud-testing/google-cloud-appengineflexjava/pom.xml index fa8a828b064a..15372359fb8f 100644 --- a/google-cloud-testing/google-cloud-appengineflexjava/pom.xml +++ b/google-cloud-testing/google-cloud-appengineflexjava/pom.xml @@ -4,13 +4,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-appengineflexjava - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha war google-cloud-testing com.google.cloud - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha diff --git a/google-cloud-testing/google-cloud-appenginejava8/pom.xml b/google-cloud-testing/google-cloud-appenginejava8/pom.xml index 5499b12d5ba1..191a226b4f24 100644 --- a/google-cloud-testing/google-cloud-appenginejava8/pom.xml +++ b/google-cloud-testing/google-cloud-appenginejava8/pom.xml @@ -4,13 +4,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-appenginejava8 - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha war google-cloud-testing com.google.cloud - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha diff --git a/google-cloud-testing/google-cloud-managedtest/pom.xml b/google-cloud-testing/google-cloud-managedtest/pom.xml index 1dbb47b38302..e766f3159a65 100644 --- a/google-cloud-testing/google-cloud-managedtest/pom.xml +++ b/google-cloud-testing/google-cloud-managedtest/pom.xml @@ -4,13 +4,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-managedtest - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha jar google-cloud-testing com.google.cloud - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha diff --git a/google-cloud-testing/pom.xml b/google-cloud-testing/pom.xml index 015bbe889f76..7657d3d2a8f7 100644 --- a/google-cloud-testing/pom.xml +++ b/google-cloud-testing/pom.xml @@ -5,7 +5,7 @@ 4.0.0 com.google.cloud google-cloud-testing - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha pom Google Cloud Testing @@ -30,7 +30,7 @@ com.google.cloud google-cloud-bom - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha pom import diff --git a/google-cloud-util/google-cloud-compat-checker/pom.xml b/google-cloud-util/google-cloud-compat-checker/pom.xml index 54543f7d8879..d5068a3ae2b8 100644 --- a/google-cloud-util/google-cloud-compat-checker/pom.xml +++ b/google-cloud-util/google-cloud-compat-checker/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-compat-checker - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha jar Google Cloud Java Compatibility Checker https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-util/google-cloud-compat-checker @@ -12,7 +12,7 @@ com.google.cloud google-cloud-util - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha google-cloud-compat-checker diff --git a/google-cloud-util/pom.xml b/google-cloud-util/pom.xml index 263d68b65ba8..66541e3ebef3 100644 --- a/google-cloud-util/pom.xml +++ b/google-cloud-util/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-util - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha pom Google Cloud Util https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-util diff --git a/versions.txt b/versions.txt index 93c08afe2cee..b6e46be1c56d 100644 --- a/versions.txt +++ b/versions.txt @@ -5,161 +5,161 @@ # google-api-grpc versions # # parent -google-api-grpc:0.26.0:0.26.1-SNAPSHOT +google-api-grpc:0.27.0:0.27.0 # children #grpc-google-cloud-datastore-v1 -grpc-google-cloud-asset-v1beta1:0.26.0:0.26.1-SNAPSHOT -grpc-google-cloud-automl-v1beta1:0.26.0:0.26.1-SNAPSHOT -grpc-google-cloud-bigquerydatatransfer-v1:0.26.0:0.26.1-SNAPSHOT -grpc-google-cloud-bigtable-admin-v2:0.26.0:0.26.1-SNAPSHOT -grpc-google-cloud-bigtable-v2:0.26.0:0.26.1-SNAPSHOT -grpc-google-cloud-container-v1:0.26.0:0.26.1-SNAPSHOT -grpc-google-cloud-containeranalysis-v1beta1:0.26.0:0.26.1-SNAPSHOT -grpc-google-cloud-dataproc-v1:0.26.0:0.26.1-SNAPSHOT -grpc-google-cloud-dataproc-v1beta2:0.26.0:0.26.1-SNAPSHOT -grpc-google-cloud-dialogflow-v2:0.26.0:0.26.1-SNAPSHOT -grpc-google-cloud-dialogflow-v2beta1:0.26.0:0.26.1-SNAPSHOT -grpc-google-cloud-dlp-v2:0.26.0:0.26.1-SNAPSHOT -grpc-google-cloud-error-reporting-v1beta1:0.26.0:0.26.1-SNAPSHOT -grpc-google-cloud-firestore-v1beta1:0.26.0:0.26.1-SNAPSHOT -grpc-google-cloud-iot-v1:0.26.0:0.26.1-SNAPSHOT -grpc-google-cloud-kms-v1:0.26.0:0.26.1-SNAPSHOT -grpc-google-cloud-language-v1:1.25.0:1.25.1-SNAPSHOT -grpc-google-cloud-language-v1beta2:0.26.0:0.26.1-SNAPSHOT -grpc-google-cloud-logging-v2:0.26.0:0.26.1-SNAPSHOT -grpc-google-cloud-monitoring-v3:1.25.0:1.25.1-SNAPSHOT -grpc-google-cloud-os-login-v1:0.26.0:0.26.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.25.0:1.25.1-SNAPSHOT -grpc-google-cloud-redis-v1:0.26.0:0.26.1-SNAPSHOT -grpc-google-cloud-redis-v1beta1:0.26.0:0.26.1-SNAPSHOT -grpc-google-cloud-spanner-admin-database-v1:0.26.0:0.26.1-SNAPSHOT -grpc-google-cloud-spanner-admin-instance-v1:0.26.0:0.26.1-SNAPSHOT -grpc-google-cloud-spanner-v1:0.26.0:0.26.1-SNAPSHOT -grpc-google-cloud-speech-v1:0.26.0:0.26.1-SNAPSHOT -grpc-google-cloud-speech-v1beta1:0.26.0:0.26.1-SNAPSHOT -grpc-google-cloud-speech-v1p1beta1:0.26.0:0.26.1-SNAPSHOT -grpc-google-cloud-tasks-v2beta2:0.26.0:0.26.1-SNAPSHOT -grpc-google-cloud-tasks-v2beta3:0.26.0:0.26.1-SNAPSHOT -grpc-google-cloud-texttospeech-v1:0.26.0:0.26.1-SNAPSHOT -grpc-google-cloud-texttospeech-v1beta1:0.26.0:0.26.1-SNAPSHOT -grpc-google-cloud-trace-v1:0.26.0:0.26.1-SNAPSHOT -grpc-google-cloud-trace-v2:0.26.0:0.26.1-SNAPSHOT -grpc-google-cloud-video-intelligence-v1:0.26.0:0.26.1-SNAPSHOT -grpc-google-cloud-video-intelligence-v1beta1:0.26.0:0.26.1-SNAPSHOT -grpc-google-cloud-video-intelligence-v1beta2:0.26.0:0.26.1-SNAPSHOT -grpc-google-cloud-video-intelligence-v1p1beta1:0.26.0:0.26.1-SNAPSHOT -grpc-google-cloud-video-intelligence-v1p2beta1:0.26.0:0.26.1-SNAPSHOT -grpc-google-cloud-vision-v1:1.25.0:1.25.1-SNAPSHOT -grpc-google-cloud-vision-v1p1beta1:0.26.0:0.26.1-SNAPSHOT -grpc-google-cloud-vision-v1p2beta1:1.25.0:1.25.1-SNAPSHOT -grpc-google-cloud-vision-v1p3beta1:0.26.0:0.26.1-SNAPSHOT -grpc-google-cloud-websecurityscanner-v1alpha:0.26.0:0.26.1-SNAPSHOT +grpc-google-cloud-asset-v1beta1:0.27.0:0.27.0 +grpc-google-cloud-automl-v1beta1:0.27.0:0.27.0 +grpc-google-cloud-bigquerydatatransfer-v1:0.27.0:0.27.0 +grpc-google-cloud-bigtable-admin-v2:0.27.0:0.27.0 +grpc-google-cloud-bigtable-v2:0.27.0:0.27.0 +grpc-google-cloud-container-v1:0.27.0:0.27.0 +grpc-google-cloud-containeranalysis-v1beta1:0.27.0:0.27.0 +grpc-google-cloud-dataproc-v1:0.27.0:0.27.0 +grpc-google-cloud-dataproc-v1beta2:0.27.0:0.27.0 +grpc-google-cloud-dialogflow-v2:0.27.0:0.27.0 +grpc-google-cloud-dialogflow-v2beta1:0.27.0:0.27.0 +grpc-google-cloud-dlp-v2:0.27.0:0.27.0 +grpc-google-cloud-error-reporting-v1beta1:0.27.0:0.27.0 +grpc-google-cloud-firestore-v1beta1:0.27.0:0.27.0 +grpc-google-cloud-iot-v1:0.27.0:0.27.0 +grpc-google-cloud-kms-v1:0.27.0:0.27.0 +grpc-google-cloud-language-v1:1.26.0:1.26.0 +grpc-google-cloud-language-v1beta2:0.27.0:0.27.0 +grpc-google-cloud-logging-v2:0.27.0:0.27.0 +grpc-google-cloud-monitoring-v3:1.26.0:1.26.0 +grpc-google-cloud-os-login-v1:0.27.0:0.27.0 +grpc-google-cloud-pubsub-v1:1.26.0:1.26.0 +grpc-google-cloud-redis-v1:0.27.0:0.27.0 +grpc-google-cloud-redis-v1beta1:0.27.0:0.27.0 +grpc-google-cloud-spanner-admin-database-v1:0.27.0:0.27.0 +grpc-google-cloud-spanner-admin-instance-v1:0.27.0:0.27.0 +grpc-google-cloud-spanner-v1:0.27.0:0.27.0 +grpc-google-cloud-speech-v1:0.27.0:0.27.0 +grpc-google-cloud-speech-v1beta1:0.27.0:0.27.0 +grpc-google-cloud-speech-v1p1beta1:0.27.0:0.27.0 +grpc-google-cloud-tasks-v2beta2:0.27.0:0.27.0 +grpc-google-cloud-tasks-v2beta3:0.27.0:0.27.0 +grpc-google-cloud-texttospeech-v1:0.27.0:0.27.0 +grpc-google-cloud-texttospeech-v1beta1:0.27.0:0.27.0 +grpc-google-cloud-trace-v1:0.27.0:0.27.0 +grpc-google-cloud-trace-v2:0.27.0:0.27.0 +grpc-google-cloud-video-intelligence-v1:0.27.0:0.27.0 +grpc-google-cloud-video-intelligence-v1beta1:0.27.0:0.27.0 +grpc-google-cloud-video-intelligence-v1beta2:0.27.0:0.27.0 +grpc-google-cloud-video-intelligence-v1p1beta1:0.27.0:0.27.0 +grpc-google-cloud-video-intelligence-v1p2beta1:0.27.0:0.27.0 +grpc-google-cloud-vision-v1:1.26.0:1.26.0 +grpc-google-cloud-vision-v1p1beta1:0.27.0:0.27.0 +grpc-google-cloud-vision-v1p2beta1:1.26.0:1.26.0 +grpc-google-cloud-vision-v1p3beta1:0.27.0:0.27.0 +grpc-google-cloud-websecurityscanner-v1alpha:0.27.0:0.27.0 -proto-google-cloud-asset-v1beta1:0.26.0:0.26.1-SNAPSHOT -proto-google-cloud-automl-v1beta1:0.26.0:0.26.1-SNAPSHOT -proto-google-cloud-bigquerydatatransfer-v1:0.26.0:0.26.1-SNAPSHOT -proto-google-cloud-bigtable-admin-v2:0.26.0:0.26.1-SNAPSHOT -proto-google-cloud-bigtable-v2:0.26.0:0.26.1-SNAPSHOT -proto-google-cloud-container-v1:0.26.0:0.26.1-SNAPSHOT -proto-google-cloud-containeranalysis-v1beta1:0.26.0:0.26.1-SNAPSHOT -proto-google-cloud-dataproc-v1:0.26.0:0.26.1-SNAPSHOT -proto-google-cloud-dataproc-v1beta2:0.26.0:0.26.1-SNAPSHOT -proto-google-cloud-datastore-v1:0.26.0:0.26.1-SNAPSHOT -proto-google-cloud-dialogflow-v2:0.26.0:0.26.1-SNAPSHOT -proto-google-cloud-dialogflow-v2beta1:0.26.0:0.26.1-SNAPSHOT -proto-google-cloud-dlp-v2:0.26.0:0.26.1-SNAPSHOT -proto-google-cloud-error-reporting-v1beta1:0.26.0:0.26.1-SNAPSHOT -proto-google-cloud-firestore-v1beta1:0.26.0:0.26.1-SNAPSHOT -proto-google-cloud-iot-v1:0.26.0:0.26.1-SNAPSHOT -proto-google-cloud-kms-v1:0.26.0:0.26.1-SNAPSHOT -proto-google-cloud-language-v1:1.25.0:1.25.1-SNAPSHOT -proto-google-cloud-language-v1beta2:0.26.0:0.26.1-SNAPSHOT -proto-google-cloud-logging-v2:0.26.0:0.26.1-SNAPSHOT -proto-google-cloud-monitoring-v3:1.25.0:1.25.1-SNAPSHOT -proto-google-cloud-os-login-v1:0.26.0:0.26.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.25.0:1.25.1-SNAPSHOT -proto-google-cloud-redis-v1:0.26.0:0.26.1-SNAPSHOT -proto-google-cloud-redis-v1beta1:0.26.0:0.26.1-SNAPSHOT -proto-google-cloud-spanner-admin-database-v1:0.26.0:0.26.1-SNAPSHOT -proto-google-cloud-spanner-admin-instance-v1:0.26.0:0.26.1-SNAPSHOT -proto-google-cloud-spanner-v1:0.26.0:0.26.1-SNAPSHOT -proto-google-cloud-speech-v1:0.26.0:0.26.1-SNAPSHOT -proto-google-cloud-speech-v1beta1:0.26.0:0.26.1-SNAPSHOT -proto-google-cloud-speech-v1p1beta1:0.26.0:0.26.1-SNAPSHOT -proto-google-cloud-tasks-v2beta2:0.26.0:0.26.1-SNAPSHOT -proto-google-cloud-tasks-v2beta3:0.26.0:0.26.1-SNAPSHOT -proto-google-cloud-texttospeech-v1:0.26.0:0.26.1-SNAPSHOT -proto-google-cloud-texttospeech-v1beta1:0.26.0:0.26.1-SNAPSHOT -proto-google-cloud-trace-v1:0.26.0:0.26.1-SNAPSHOT -proto-google-cloud-trace-v2:0.26.0:0.26.1-SNAPSHOT -proto-google-cloud-video-intelligence-v1:0.26.0:0.26.1-SNAPSHOT -proto-google-cloud-video-intelligence-v1beta1:0.26.0:0.26.1-SNAPSHOT -proto-google-cloud-video-intelligence-v1beta2:0.26.0:0.26.1-SNAPSHOT -proto-google-cloud-video-intelligence-v1p1beta1:0.26.0:0.26.1-SNAPSHOT -proto-google-cloud-video-intelligence-v1p2beta1:0.26.0:0.26.1-SNAPSHOT -proto-google-cloud-vision-v1:1.25.0:1.25.1-SNAPSHOT -proto-google-cloud-vision-v1p1beta1:0.26.0:0.26.1-SNAPSHOT -proto-google-cloud-vision-v1p2beta1:1.25.0:1.25.1-SNAPSHOT -proto-google-cloud-vision-v1p3beta1:0.26.0:0.26.1-SNAPSHOT -proto-google-cloud-websecurityscanner-v1alpha:0.26.0:0.26.1-SNAPSHOT +proto-google-cloud-asset-v1beta1:0.27.0:0.27.0 +proto-google-cloud-automl-v1beta1:0.27.0:0.27.0 +proto-google-cloud-bigquerydatatransfer-v1:0.27.0:0.27.0 +proto-google-cloud-bigtable-admin-v2:0.27.0:0.27.0 +proto-google-cloud-bigtable-v2:0.27.0:0.27.0 +proto-google-cloud-container-v1:0.27.0:0.27.0 +proto-google-cloud-containeranalysis-v1beta1:0.27.0:0.27.0 +proto-google-cloud-dataproc-v1:0.27.0:0.27.0 +proto-google-cloud-dataproc-v1beta2:0.27.0:0.27.0 +proto-google-cloud-datastore-v1:0.27.0:0.27.0 +proto-google-cloud-dialogflow-v2:0.27.0:0.27.0 +proto-google-cloud-dialogflow-v2beta1:0.27.0:0.27.0 +proto-google-cloud-dlp-v2:0.27.0:0.27.0 +proto-google-cloud-error-reporting-v1beta1:0.27.0:0.27.0 +proto-google-cloud-firestore-v1beta1:0.27.0:0.27.0 +proto-google-cloud-iot-v1:0.27.0:0.27.0 +proto-google-cloud-kms-v1:0.27.0:0.27.0 +proto-google-cloud-language-v1:1.26.0:1.26.0 +proto-google-cloud-language-v1beta2:0.27.0:0.27.0 +proto-google-cloud-logging-v2:0.27.0:0.27.0 +proto-google-cloud-monitoring-v3:1.26.0:1.26.0 +proto-google-cloud-os-login-v1:0.27.0:0.27.0 +proto-google-cloud-pubsub-v1:1.26.0:1.26.0 +proto-google-cloud-redis-v1:0.27.0:0.27.0 +proto-google-cloud-redis-v1beta1:0.27.0:0.27.0 +proto-google-cloud-spanner-admin-database-v1:0.27.0:0.27.0 +proto-google-cloud-spanner-admin-instance-v1:0.27.0:0.27.0 +proto-google-cloud-spanner-v1:0.27.0:0.27.0 +proto-google-cloud-speech-v1:0.27.0:0.27.0 +proto-google-cloud-speech-v1beta1:0.27.0:0.27.0 +proto-google-cloud-speech-v1p1beta1:0.27.0:0.27.0 +proto-google-cloud-tasks-v2beta2:0.27.0:0.27.0 +proto-google-cloud-tasks-v2beta3:0.27.0:0.27.0 +proto-google-cloud-texttospeech-v1:0.27.0:0.27.0 +proto-google-cloud-texttospeech-v1beta1:0.27.0:0.27.0 +proto-google-cloud-trace-v1:0.27.0:0.27.0 +proto-google-cloud-trace-v2:0.27.0:0.27.0 +proto-google-cloud-video-intelligence-v1:0.27.0:0.27.0 +proto-google-cloud-video-intelligence-v1beta1:0.27.0:0.27.0 +proto-google-cloud-video-intelligence-v1beta2:0.27.0:0.27.0 +proto-google-cloud-video-intelligence-v1p1beta1:0.27.0:0.27.0 +proto-google-cloud-video-intelligence-v1p2beta1:0.27.0:0.27.0 +proto-google-cloud-vision-v1:1.26.0:1.26.0 +proto-google-cloud-vision-v1p1beta1:0.27.0:0.27.0 +proto-google-cloud-vision-v1p2beta1:1.26.0:1.26.0 +proto-google-cloud-vision-v1p3beta1:0.27.0:0.27.0 +proto-google-cloud-websecurityscanner-v1alpha:0.27.0:0.27.0 # # google-cloud-clients versions # # parent -google-cloud-clients:0.61.0-alpha:0.61.1-alpha-SNAPSHOT +google-cloud-clients:0.62.0-alpha:0.62.0-alpha # children -google-cloud-appengineflexcompat:0.61.0-alpha:0.61.1-alpha-SNAPSHOT -google-cloud-appengineflexcustom:0.61.0-alpha:0.61.1-alpha-SNAPSHOT -google-cloud-appengineflexjava:0.61.0-alpha:0.61.1-alpha-SNAPSHOT -google-cloud-appenginejava8:0.61.0-alpha:0.61.1-alpha-SNAPSHOT -google-cloud:0.61.0-alpha:0.61.1-alpha-SNAPSHOT -google-cloud-asset:0.61.0-beta:0.61.1-beta-SNAPSHOT -google-cloud-automl:0.61.0-beta:0.61.1-beta-SNAPSHOT -google-cloud-bigquery:1.43.0:1.43.1-SNAPSHOT -google-cloud-bigquerydatatransfer:0.61.0-beta:0.61.1-beta-SNAPSHOT -google-cloud-bigtable:0.61.0-alpha:0.61.1-alpha-SNAPSHOT -google-cloud-bigtable-admin:0.61.0-alpha:0.61.1-alpha-SNAPSHOT -google-cloud-bom:0.61.0-alpha:0.61.1-alpha-SNAPSHOT -google-cloud-compat-checker:0.61.0-alpha:0.61.1-alpha-SNAPSHOT -google-cloud-compute:0.61.0-alpha:0.61.1-alpha-SNAPSHOT -google-cloud-container:0.61.0-beta:0.61.1-beta-SNAPSHOT -google-cloud-containeranalysis:0.61.0-beta:0.61.1-beta-SNAPSHOT -google-cloud-contrib:0.61.0-alpha:0.61.1-alpha-SNAPSHOT -google-cloud-core:1.43.0:1.43.1-SNAPSHOT -google-cloud-core-grpc:1.43.0:1.43.1-SNAPSHOT -google-cloud-core-http:1.43.0:1.43.1-SNAPSHOT -google-cloud-dataproc:0.61.0-alpha:0.61.1-alpha-SNAPSHOT -google-cloud-datastore:1.43.0:1.43.1-SNAPSHOT -google-cloud-dialogflow:0.61.0-alpha:0.61.1-alpha-SNAPSHOT -google-cloud-dlp:0.61.0-beta:0.61.1-beta-SNAPSHOT -google-cloud-dns:0.61.0-alpha:0.61.1-alpha-SNAPSHOT -google-cloud-errorreporting:0.61.0-beta:0.61.1-beta-SNAPSHOT -google-cloud-examples:0.61.0-alpha:0.61.1-alpha-SNAPSHOT -google-cloud-firestore:0.61.0-beta:0.61.1-beta-SNAPSHOT -google-cloud-iot:0.61.0-beta:0.61.1-beta-SNAPSHOT -google-cloud-kms:0.61.0-beta:0.61.1-beta-SNAPSHOT -google-cloud-language:1.43.0:1.43.1-SNAPSHOT -google-cloud-logging:1.43.0:1.43.1-SNAPSHOT -google-cloud-logging-logback:0.61.0-alpha:0.61.1-alpha-SNAPSHOT -google-cloud-managedtest:0.61.0-alpha:0.61.1-alpha-SNAPSHOT -google-cloud-monitoring:1.43.0:1.43.1-SNAPSHOT -google-cloud-nio:0.61.0-alpha:0.61.1-alpha-SNAPSHOT -google-cloud-nio-examples:0.61.0-alpha:0.61.1-alpha-SNAPSHOT -google-cloud-notification:0.61.0-beta:0.61.1-beta-SNAPSHOT -google-cloud-os-login:0.61.0-alpha:0.61.1-alpha-SNAPSHOT -google-cloud-pubsub:1.43.0:1.43.1-SNAPSHOT -google-cloud-redis:0.61.0-alpha:0.61.1-alpha-SNAPSHOT -google-cloud-resourcemanager:0.61.0-alpha:0.61.1-alpha-SNAPSHOT -google-cloud-spanner:0.61.0-beta:0.61.1-beta-SNAPSHOT -google-cloud-speech:0.61.0-beta:0.61.1-beta-SNAPSHOT -google-cloud-storage:1.43.0:1.43.1-SNAPSHOT -google-cloud-tasks:0.61.0-beta:0.61.1-beta-SNAPSHOT -google-cloud-texttospeech:0.61.0-beta:0.61.1-beta-SNAPSHOT -google-cloud-testing:0.61.0-alpha:0.61.1-alpha-SNAPSHOT -google-cloud-trace:0.61.0-beta:0.61.1-beta-SNAPSHOT -google-cloud-translate:1.43.0:1.43.1-SNAPSHOT -google-cloud-util:0.61.0-alpha:0.61.1-alpha-SNAPSHOT -google-cloud-video-intelligence:0.61.0-beta:0.61.1-beta-SNAPSHOT -google-cloud-vision:1.43.0:1.43.1-SNAPSHOT -google-cloud-websecurityscanner:0.61.0-alpha:0.61.1-alpha-SNAPSHOT +google-cloud-appengineflexcompat:0.62.0-alpha:0.62.0-alpha +google-cloud-appengineflexcustom:0.62.0-alpha:0.62.0-alpha +google-cloud-appengineflexjava:0.62.0-alpha:0.62.0-alpha +google-cloud-appenginejava8:0.62.0-alpha:0.62.0-alpha +google-cloud:0.62.0-alpha:0.62.0-alpha +google-cloud-asset:0.62.0-beta:0.62.0-beta +google-cloud-automl:0.62.0-beta:0.62.0-beta +google-cloud-bigquery:1.44.0:1.44.0 +google-cloud-bigquerydatatransfer:0.62.0-beta:0.62.0-beta +google-cloud-bigtable:0.62.0-alpha:0.62.0-alpha +google-cloud-bigtable-admin:0.62.0-alpha:0.62.0-alpha +google-cloud-bom:0.62.0-alpha:0.62.0-alpha +google-cloud-compat-checker:0.62.0-alpha:0.62.0-alpha +google-cloud-compute:0.62.0-alpha:0.62.0-alpha +google-cloud-container:0.62.0-beta:0.62.0-beta +google-cloud-containeranalysis:0.62.0-beta:0.62.0-beta +google-cloud-contrib:0.62.0-alpha:0.62.0-alpha +google-cloud-core:1.44.0:1.44.0 +google-cloud-core-grpc:1.44.0:1.44.0 +google-cloud-core-http:1.44.0:1.44.0 +google-cloud-dataproc:0.62.0-alpha:0.62.0-alpha +google-cloud-datastore:1.44.0:1.44.0 +google-cloud-dialogflow:0.62.0-alpha:0.62.0-alpha +google-cloud-dlp:0.62.0-beta:0.62.0-beta +google-cloud-dns:0.62.0-alpha:0.62.0-alpha +google-cloud-errorreporting:0.62.0-beta:0.62.0-beta +google-cloud-examples:0.62.0-alpha:0.62.0-alpha +google-cloud-firestore:0.62.0-beta:0.62.0-beta +google-cloud-iot:0.62.0-beta:0.62.0-beta +google-cloud-kms:0.62.0-beta:0.62.0-beta +google-cloud-language:1.44.0:1.44.0 +google-cloud-logging:1.44.0:1.44.0 +google-cloud-logging-logback:0.62.0-alpha:0.62.0-alpha +google-cloud-managedtest:0.62.0-alpha:0.62.0-alpha +google-cloud-monitoring:1.44.0:1.44.0 +google-cloud-nio:0.62.0-alpha:0.62.0-alpha +google-cloud-nio-examples:0.62.0-alpha:0.62.0-alpha +google-cloud-notification:0.62.0-beta:0.62.0-beta +google-cloud-os-login:0.62.0-alpha:0.62.0-alpha +google-cloud-pubsub:1.44.0:1.44.0 +google-cloud-redis:0.62.0-alpha:0.62.0-alpha +google-cloud-resourcemanager:0.62.0-alpha:0.62.0-alpha +google-cloud-spanner:0.62.0-beta:0.62.0-beta +google-cloud-speech:0.62.0-beta:0.62.0-beta +google-cloud-storage:1.44.0:1.44.0 +google-cloud-tasks:0.62.0-beta:0.62.0-beta +google-cloud-texttospeech:0.62.0-beta:0.62.0-beta +google-cloud-testing:0.62.0-alpha:0.62.0-alpha +google-cloud-trace:0.62.0-beta:0.62.0-beta +google-cloud-translate:1.44.0:1.44.0 +google-cloud-util:0.62.0-alpha:0.62.0-alpha +google-cloud-video-intelligence:0.62.0-beta:0.62.0-beta +google-cloud-vision:1.44.0:1.44.0 +google-cloud-websecurityscanner:0.62.0-alpha:0.62.0-alpha From e855d48c3fd2a839ce68ac83915dcb779bcf28fb Mon Sep 17 00:00:00 2001 From: Garrett Jones Date: Thu, 13 Sep 2018 10:59:16 -0700 Subject: [PATCH 09/21] Bump to next snapshot versions (#3679) --- .../grpc-google-cloud-asset-v1beta1/pom.xml | 4 +- .../grpc-google-cloud-automl-v1beta1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-bigtable-v2/pom.xml | 4 +- .../grpc-google-cloud-container-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-dataproc-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-dialogflow-v2/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-dlp-v2/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-iot-v1/pom.xml | 4 +- .../grpc-google-cloud-kms-v1/pom.xml | 4 +- .../grpc-google-cloud-language-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-logging-v2/pom.xml | 4 +- .../grpc-google-cloud-monitoring-v3/pom.xml | 4 +- .../grpc-google-cloud-os-login-v1/pom.xml | 4 +- .../grpc-google-cloud-pubsub-v1/pom.xml | 4 +- .../grpc-google-cloud-redis-v1/pom.xml | 4 +- .../grpc-google-cloud-redis-v1beta1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-spanner-v1/pom.xml | 4 +- .../grpc-google-cloud-speech-v1/pom.xml | 4 +- .../grpc-google-cloud-speech-v1beta1/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-tasks-v2beta2/pom.xml | 4 +- .../grpc-google-cloud-tasks-v2beta3/pom.xml | 4 +- .../grpc-google-cloud-texttospeech-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-trace-v1/pom.xml | 4 +- .../grpc-google-cloud-trace-v2/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-vision-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- google-api-grpc/pom.xml | 188 +++++----- .../proto-google-cloud-asset-v1beta1/pom.xml | 4 +- .../proto-google-cloud-automl-v1beta1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-bigtable-v2/pom.xml | 4 +- .../proto-google-cloud-container-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-dataproc-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-datastore-v1/pom.xml | 4 +- .../proto-google-cloud-dialogflow-v2/pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-dlp-v2/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-iot-v1/pom.xml | 4 +- .../proto-google-cloud-kms-v1/pom.xml | 4 +- .../proto-google-cloud-language-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-logging-v2/pom.xml | 4 +- .../proto-google-cloud-monitoring-v3/pom.xml | 4 +- .../proto-google-cloud-os-login-v1/pom.xml | 4 +- .../proto-google-cloud-pubsub-v1/pom.xml | 4 +- .../proto-google-cloud-redis-v1/pom.xml | 4 +- .../proto-google-cloud-redis-v1beta1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-spanner-v1/pom.xml | 4 +- .../proto-google-cloud-speech-v1/pom.xml | 4 +- .../proto-google-cloud-speech-v1beta1/pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-tasks-v2beta2/pom.xml | 4 +- .../proto-google-cloud-tasks-v2beta3/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-trace-v1/pom.xml | 4 +- .../proto-google-cloud-trace-v2/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-vision-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- google-cloud-bom/pom.xml | 338 +++++++++--------- .../google-cloud-asset/pom.xml | 4 +- .../google-cloud-automl/pom.xml | 4 +- .../google-cloud-bigquery/pom.xml | 4 +- .../google-cloud-bigquerydatatransfer/pom.xml | 4 +- .../google-cloud-bigtable-admin/pom.xml | 4 +- .../google-cloud-bigtable/pom.xml | 4 +- .../google-cloud-compute/pom.xml | 4 +- .../google-cloud-container/pom.xml | 4 +- .../google-cloud-containeranalysis/pom.xml | 4 +- .../google-cloud-logging-logback/pom.xml | 4 +- .../google-cloud-nio-examples/README.md | 4 +- .../google-cloud-nio-examples/pom.xml | 4 +- .../google-cloud-nio/pom.xml | 4 +- .../google-cloud-contrib/pom.xml | 4 +- .../google-cloud-core-grpc/pom.xml | 4 +- .../google-cloud-core-http/pom.xml | 4 +- .../google-cloud-core/pom.xml | 4 +- .../google-cloud-dataproc/pom.xml | 4 +- .../google-cloud-datastore/pom.xml | 4 +- .../google-cloud-dialogflow/pom.xml | 4 +- google-cloud-clients/google-cloud-dlp/pom.xml | 4 +- google-cloud-clients/google-cloud-dns/pom.xml | 4 +- .../google-cloud-errorreporting/pom.xml | 4 +- .../google-cloud-firestore/pom.xml | 4 +- google-cloud-clients/google-cloud-iot/pom.xml | 4 +- google-cloud-clients/google-cloud-kms/pom.xml | 4 +- .../google-cloud-language/pom.xml | 4 +- .../google-cloud-logging/pom.xml | 4 +- .../google-cloud-monitoring/pom.xml | 4 +- .../google-cloud-notification/pom.xml | 4 +- .../google-cloud-os-login/pom.xml | 4 +- .../google-cloud-pubsub/pom.xml | 4 +- .../google-cloud-redis/pom.xml | 4 +- .../google-cloud-resourcemanager/pom.xml | 4 +- .../google-cloud-spanner/pom.xml | 4 +- .../google-cloud-speech/pom.xml | 4 +- .../google-cloud-storage/pom.xml | 4 +- .../google-cloud-tasks/pom.xml | 4 +- .../google-cloud-texttospeech/pom.xml | 4 +- .../google-cloud-trace/pom.xml | 4 +- .../google-cloud-translate/pom.xml | 4 +- .../google-cloud-video-intelligence/pom.xml | 4 +- .../google-cloud-vision/pom.xml | 4 +- .../google-cloud-websecurityscanner/pom.xml | 4 +- google-cloud-clients/pom.xml | 4 +- google-cloud-examples/pom.xml | 4 +- .../google-cloud-appengineflexcompat/pom.xml | 4 +- .../google-cloud-appengineflexcustom/pom.xml | 4 +- .../google-cloud-appengineflexjava/pom.xml | 4 +- .../google-cloud-appenginejava8/pom.xml | 4 +- .../google-cloud-managedtest/pom.xml | 4 +- google-cloud-testing/pom.xml | 4 +- .../google-cloud-compat-checker/pom.xml | 4 +- google-cloud-util/pom.xml | 2 +- versions.txt | 298 +++++++-------- 150 files changed, 705 insertions(+), 705 deletions(-) diff --git a/google-api-grpc/grpc-google-cloud-asset-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-asset-v1beta1/pom.xml index 166479d68ede..05c576052ac4 100644 --- a/google-api-grpc/grpc-google-cloud-asset-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-asset-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-asset-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT grpc-google-cloud-asset-v1beta1 GRPC library for grpc-google-cloud-asset-v1beta1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-automl-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-automl-v1beta1/pom.xml index 8fc43de3ca45..b1b591b5e30e 100644 --- a/google-api-grpc/grpc-google-cloud-automl-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-automl-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-automl-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT grpc-google-cloud-automl-v1beta1 GRPC library for grpc-google-cloud-automl-v1beta1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml b/google-api-grpc/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml index 040019e10870..9c264c26304c 100644 --- a/google-api-grpc/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-bigquerydatatransfer-v1 - 0.27.0 + 0.27.1-SNAPSHOT grpc-google-cloud-bigquerydatatransfer-v1 GRPC library for grpc-google-cloud-bigquerydatatransfer-v1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-bigtable-admin-v2/pom.xml b/google-api-grpc/grpc-google-cloud-bigtable-admin-v2/pom.xml index d38acf147450..f2cad706464d 100644 --- a/google-api-grpc/grpc-google-cloud-bigtable-admin-v2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-bigtable-admin-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-bigtable-admin-v2 - 0.27.0 + 0.27.1-SNAPSHOT grpc-google-cloud-bigtable-admin-v2 GRPC library for grpc-google-cloud-bigtable-admin-v2 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-bigtable-v2/pom.xml b/google-api-grpc/grpc-google-cloud-bigtable-v2/pom.xml index 8c0ae036c9c7..341d3d817dc0 100644 --- a/google-api-grpc/grpc-google-cloud-bigtable-v2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-bigtable-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-bigtable-v2 - 0.27.0 + 0.27.1-SNAPSHOT grpc-google-cloud-bigtable-v2 GRPC library for grpc-google-cloud-bigtable-v2 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-container-v1/pom.xml b/google-api-grpc/grpc-google-cloud-container-v1/pom.xml index 6d885333ea4c..8713a92ef7cc 100644 --- a/google-api-grpc/grpc-google-cloud-container-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-container-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-container-v1 - 0.27.0 + 0.27.1-SNAPSHOT grpc-google-cloud-container-v1 GRPC library for grpc-google-cloud-container-v1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-containeranalysis-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-containeranalysis-v1beta1/pom.xml index 1fb5a4ca8d65..01d518e5b313 100644 --- a/google-api-grpc/grpc-google-cloud-containeranalysis-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-containeranalysis-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-containeranalysis-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT grpc-google-cloud-containeranalysis-v1beta1 GRPC library for grpc-google-cloud-containeranalysis-v1beta1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-dataproc-v1/pom.xml b/google-api-grpc/grpc-google-cloud-dataproc-v1/pom.xml index c1b8821cae3d..643f2552446e 100644 --- a/google-api-grpc/grpc-google-cloud-dataproc-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-dataproc-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-dataproc-v1 - 0.27.0 + 0.27.1-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-dataproc-v1beta2/pom.xml b/google-api-grpc/grpc-google-cloud-dataproc-v1beta2/pom.xml index 6791b080ca48..0a0d21bddbd5 100644 --- a/google-api-grpc/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-dataproc-v1beta2 - 0.27.0 + 0.27.1-SNAPSHOT grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-dialogflow-v2/pom.xml b/google-api-grpc/grpc-google-cloud-dialogflow-v2/pom.xml index 8d8e4b3e6525..b77749a263fc 100644 --- a/google-api-grpc/grpc-google-cloud-dialogflow-v2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-dialogflow-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-dialogflow-v2 - 0.27.0 + 0.27.1-SNAPSHOT grpc-google-cloud-dialogflow-v2 GRPC library for grpc-google-cloud-dialogflow-v2 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/pom.xml b/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/pom.xml index 34bf71561b8e..13abc4de4918 100644 --- a/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-dialogflow-v2beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-dialogflow-v2beta1 - 0.27.0 + 0.27.1-SNAPSHOT grpc-google-cloud-dialogflow-v2beta1 GRPC library for grpc-google-cloud-dialogflow-v2beta1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-dlp-v2/pom.xml b/google-api-grpc/grpc-google-cloud-dlp-v2/pom.xml index 3eba858f6237..61665822b52c 100644 --- a/google-api-grpc/grpc-google-cloud-dlp-v2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-dlp-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-dlp-v2 - 0.27.0 + 0.27.1-SNAPSHOT grpc-google-cloud-dlp-v2 GRPC library for grpc-google-cloud-dlp-v2 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-error-reporting-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-error-reporting-v1beta1/pom.xml index c74e74b6cbb8..5c623bb4c2e5 100644 --- a/google-api-grpc/grpc-google-cloud-error-reporting-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-error-reporting-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-error-reporting-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT grpc-google-cloud-error-reporting-v1beta1 GRPC library for grpc-google-cloud-error-reporting-v1beta1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-firestore-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-firestore-v1beta1/pom.xml index 61b896c587f0..19116ca4e433 100644 --- a/google-api-grpc/grpc-google-cloud-firestore-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-firestore-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-firestore-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT grpc-google-cloud-firestore-v1beta1 GRPC library for grpc-google-cloud-firestore-v1beta1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-iot-v1/pom.xml b/google-api-grpc/grpc-google-cloud-iot-v1/pom.xml index f40816437ff6..bbe290f6c8ef 100644 --- a/google-api-grpc/grpc-google-cloud-iot-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-iot-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-iot-v1 - 0.27.0 + 0.27.1-SNAPSHOT grpc-google-cloud-iot-v1 GRPC library for grpc-google-cloud-iot-v1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-kms-v1/pom.xml b/google-api-grpc/grpc-google-cloud-kms-v1/pom.xml index 75d1c8c4bb40..c53b07d4e1b4 100644 --- a/google-api-grpc/grpc-google-cloud-kms-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-kms-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-kms-v1 - 0.27.0 + 0.27.1-SNAPSHOT grpc-google-cloud-kms-v1 GRPC library for grpc-google-cloud-kms-v1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-language-v1/pom.xml b/google-api-grpc/grpc-google-cloud-language-v1/pom.xml index cc22c64d5464..3d8c0e53c25e 100644 --- a/google-api-grpc/grpc-google-cloud-language-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-language-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-language-v1 - 1.26.0 + 1.26.1-SNAPSHOT grpc-google-cloud-language-v1 GRPC library for grpc-google-cloud-language-v1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-language-v1beta2/pom.xml b/google-api-grpc/grpc-google-cloud-language-v1beta2/pom.xml index 2559b4ce4877..d8e05eb12b57 100644 --- a/google-api-grpc/grpc-google-cloud-language-v1beta2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-language-v1beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-language-v1beta2 - 0.27.0 + 0.27.1-SNAPSHOT grpc-google-cloud-language-v1beta2 GRPC library for grpc-google-cloud-language-v1beta2 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-logging-v2/pom.xml b/google-api-grpc/grpc-google-cloud-logging-v2/pom.xml index 746a722d90de..477f4a01b8d6 100644 --- a/google-api-grpc/grpc-google-cloud-logging-v2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-logging-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-logging-v2 - 0.27.0 + 0.27.1-SNAPSHOT grpc-google-cloud-logging-v2 GRPC library for grpc-google-cloud-logging-v2 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-monitoring-v3/pom.xml b/google-api-grpc/grpc-google-cloud-monitoring-v3/pom.xml index 90a5f8855292..3a71c8e62641 100644 --- a/google-api-grpc/grpc-google-cloud-monitoring-v3/pom.xml +++ b/google-api-grpc/grpc-google-cloud-monitoring-v3/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-monitoring-v3 - 1.26.0 + 1.26.1-SNAPSHOT grpc-google-cloud-monitoring-v3 GRPC library for grpc-google-cloud-monitoring-v3 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-os-login-v1/pom.xml b/google-api-grpc/grpc-google-cloud-os-login-v1/pom.xml index 94c8edaf45cf..439a04777df6 100644 --- a/google-api-grpc/grpc-google-cloud-os-login-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-os-login-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-os-login-v1 - 0.27.0 + 0.27.1-SNAPSHOT grpc-google-cloud-os-login-v1 GRPC library for grpc-google-cloud-os-login-v1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-pubsub-v1/pom.xml b/google-api-grpc/grpc-google-cloud-pubsub-v1/pom.xml index b37d959529d7..1b491a1a677a 100644 --- a/google-api-grpc/grpc-google-cloud-pubsub-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.26.0 + 1.26.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-redis-v1/pom.xml b/google-api-grpc/grpc-google-cloud-redis-v1/pom.xml index efa7eb5dca5c..85bb1b3808b2 100644 --- a/google-api-grpc/grpc-google-cloud-redis-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-redis-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-redis-v1 - 0.27.0 + 0.27.1-SNAPSHOT grpc-google-cloud-redis-v1 GRPC library for grpc-google-cloud-redis-v1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-redis-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-redis-v1beta1/pom.xml index 47e4e3387246..6809c64a6acf 100644 --- a/google-api-grpc/grpc-google-cloud-redis-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-redis-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-redis-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT grpc-google-cloud-redis-v1beta1 GRPC library for grpc-google-cloud-redis-v1beta1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-spanner-admin-database-v1/pom.xml b/google-api-grpc/grpc-google-cloud-spanner-admin-database-v1/pom.xml index 64155290eed4..4d91eedbf500 100644 --- a/google-api-grpc/grpc-google-cloud-spanner-admin-database-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-spanner-admin-database-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-spanner-admin-database-v1 - 0.27.0 + 0.27.1-SNAPSHOT grpc-google-cloud-spanner-admin-database-v1 GRPC library for grpc-google-cloud-spanner-admin-database-v1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-spanner-admin-instance-v1/pom.xml b/google-api-grpc/grpc-google-cloud-spanner-admin-instance-v1/pom.xml index dffeb42a1063..2828a6651c44 100644 --- a/google-api-grpc/grpc-google-cloud-spanner-admin-instance-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-spanner-admin-instance-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-spanner-admin-instance-v1 - 0.27.0 + 0.27.1-SNAPSHOT grpc-google-cloud-spanner-admin-instance-v1 GRPC library for grpc-google-cloud-spanner-admin-instance-v1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-spanner-v1/pom.xml b/google-api-grpc/grpc-google-cloud-spanner-v1/pom.xml index 6fea41df4ab9..8501aea903f0 100644 --- a/google-api-grpc/grpc-google-cloud-spanner-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-spanner-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-spanner-v1 - 0.27.0 + 0.27.1-SNAPSHOT grpc-google-cloud-spanner-v1 GRPC library for grpc-google-cloud-spanner-v1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-speech-v1/pom.xml b/google-api-grpc/grpc-google-cloud-speech-v1/pom.xml index 76b09ebd3df0..71676485044a 100644 --- a/google-api-grpc/grpc-google-cloud-speech-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-speech-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-speech-v1 - 0.27.0 + 0.27.1-SNAPSHOT grpc-google-cloud-speech-v1 GRPC library for grpc-google-cloud-speech-v1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-speech-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-speech-v1beta1/pom.xml index 2c3401999430..b72e83a3a5ac 100644 --- a/google-api-grpc/grpc-google-cloud-speech-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-speech-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-speech-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT grpc-google-cloud-speech-v1beta1 GRPC library for grpc-google-cloud-speech-v1beta1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-speech-v1p1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-speech-v1p1beta1/pom.xml index 4ad8455d9cf1..3bdc07e4a45a 100644 --- a/google-api-grpc/grpc-google-cloud-speech-v1p1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-speech-v1p1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-speech-v1p1beta1 - 0.27.0 + 0.27.1-SNAPSHOT grpc-google-cloud-speech-v1p1beta1 GRPC library for grpc-google-cloud-speech-v1p1beta1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-tasks-v2beta2/pom.xml b/google-api-grpc/grpc-google-cloud-tasks-v2beta2/pom.xml index 241ebedcdf1b..ba24b3c39345 100644 --- a/google-api-grpc/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-tasks-v2beta2 - 0.27.0 + 0.27.1-SNAPSHOT grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-tasks-v2beta3/pom.xml b/google-api-grpc/grpc-google-cloud-tasks-v2beta3/pom.xml index 6840864fadc8..cec305eb768b 100644 --- a/google-api-grpc/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/google-api-grpc/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-tasks-v2beta3 - 0.27.0 + 0.27.1-SNAPSHOT grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-texttospeech-v1/pom.xml b/google-api-grpc/grpc-google-cloud-texttospeech-v1/pom.xml index d024a73520e8..f22852d8b5dd 100644 --- a/google-api-grpc/grpc-google-cloud-texttospeech-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-texttospeech-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-texttospeech-v1 - 0.27.0 + 0.27.1-SNAPSHOT grpc-google-cloud-texttospeech-v1 GRPC library for grpc-google-cloud-texttospeech-v1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-texttospeech-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-texttospeech-v1beta1/pom.xml index 16a8f57e305d..b64ad09a1ef8 100644 --- a/google-api-grpc/grpc-google-cloud-texttospeech-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-texttospeech-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-texttospeech-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT grpc-google-cloud-texttospeech-v1beta1 GRPC library for grpc-google-cloud-texttospeech-v1beta1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-trace-v1/pom.xml b/google-api-grpc/grpc-google-cloud-trace-v1/pom.xml index c7c78f6dd916..3e079fea7e68 100644 --- a/google-api-grpc/grpc-google-cloud-trace-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-trace-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-trace-v1 - 0.27.0 + 0.27.1-SNAPSHOT grpc-google-cloud-trace-v1 GRPC library for grpc-google-cloud-trace-v1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-trace-v2/pom.xml b/google-api-grpc/grpc-google-cloud-trace-v2/pom.xml index 97b3057e63b3..3bdae1def056 100644 --- a/google-api-grpc/grpc-google-cloud-trace-v2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-trace-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-trace-v2 - 0.27.0 + 0.27.1-SNAPSHOT grpc-google-cloud-trace-v2 GRPC library for grpc-google-cloud-trace-v2 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-video-intelligence-v1/pom.xml b/google-api-grpc/grpc-google-cloud-video-intelligence-v1/pom.xml index 93b6893bffd8..d02949a6853e 100644 --- a/google-api-grpc/grpc-google-cloud-video-intelligence-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-video-intelligence-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-video-intelligence-v1 - 0.27.0 + 0.27.1-SNAPSHOT grpc-google-cloud-video-intelligence-v1 GRPC library for grpc-google-cloud-video-intelligence-v1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta1/pom.xml index a8d14433ad39..8d3d106a35c1 100644 --- a/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-video-intelligence-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT grpc-google-cloud-video-intelligence-v1beta1 GRPC library for grpc-google-cloud-video-intelligence-v1beta1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta2/pom.xml b/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta2/pom.xml index 50875642bbac..a42210c3e13a 100644 --- a/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta2/pom.xml +++ b/google-api-grpc/grpc-google-cloud-video-intelligence-v1beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-video-intelligence-v1beta2 - 0.27.0 + 0.27.1-SNAPSHOT grpc-google-cloud-video-intelligence-v1beta2 GRPC library for grpc-google-cloud-video-intelligence-v1beta2 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-video-intelligence-v1p1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-video-intelligence-v1p1beta1/pom.xml index c2b3c0c99f7e..879ae2f4ee68 100644 --- a/google-api-grpc/grpc-google-cloud-video-intelligence-v1p1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-video-intelligence-v1p1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-video-intelligence-v1p1beta1 - 0.27.0 + 0.27.1-SNAPSHOT grpc-google-cloud-video-intelligence-v1p1beta1 GRPC library for grpc-google-cloud-video-intelligence-v1p1beta1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-video-intelligence-v1p2beta1/pom.xml b/google-api-grpc/grpc-google-cloud-video-intelligence-v1p2beta1/pom.xml index 67164f8b6863..7c623a51b0ec 100644 --- a/google-api-grpc/grpc-google-cloud-video-intelligence-v1p2beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-video-intelligence-v1p2beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-video-intelligence-v1p2beta1 - 0.27.0 + 0.27.1-SNAPSHOT grpc-google-cloud-video-intelligence-v1p2beta1 GRPC library for grpc-google-cloud-video-intelligence-v1p2beta1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-vision-v1/pom.xml b/google-api-grpc/grpc-google-cloud-vision-v1/pom.xml index 55bde8a97f39..b55f1a9f9597 100644 --- a/google-api-grpc/grpc-google-cloud-vision-v1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-vision-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-vision-v1 - 1.26.0 + 1.26.1-SNAPSHOT grpc-google-cloud-vision-v1 GRPC library for grpc-google-cloud-vision-v1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-vision-v1p1beta1/pom.xml b/google-api-grpc/grpc-google-cloud-vision-v1p1beta1/pom.xml index 5721a49d41b3..9b21aadcbf01 100644 --- a/google-api-grpc/grpc-google-cloud-vision-v1p1beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-vision-v1p1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-vision-v1p1beta1 - 0.27.0 + 0.27.1-SNAPSHOT grpc-google-cloud-vision-v1p1beta1 GRPC library for grpc-google-cloud-vision-v1p1beta1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-vision-v1p2beta1/pom.xml b/google-api-grpc/grpc-google-cloud-vision-v1p2beta1/pom.xml index 1fc3e573d9fe..eb53b1124a20 100644 --- a/google-api-grpc/grpc-google-cloud-vision-v1p2beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-vision-v1p2beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-vision-v1p2beta1 - 1.26.0 + 1.26.1-SNAPSHOT grpc-google-cloud-vision-v1p2beta1 GRPC library for grpc-google-cloud-vision-v1p2beta1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-vision-v1p3beta1/pom.xml b/google-api-grpc/grpc-google-cloud-vision-v1p3beta1/pom.xml index cda245d92857..3494c7d8e0e9 100644 --- a/google-api-grpc/grpc-google-cloud-vision-v1p3beta1/pom.xml +++ b/google-api-grpc/grpc-google-cloud-vision-v1p3beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-vision-v1p3beta1 - 0.27.0 + 0.27.1-SNAPSHOT grpc-google-cloud-vision-v1p3beta1 GRPC library for grpc-google-cloud-vision-v1p3beta1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml b/google-api-grpc/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml index 23e2ceeabe35..686401c84c39 100644 --- a/google-api-grpc/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml +++ b/google-api-grpc/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-websecurityscanner-v1alpha - 0.27.0 + 0.27.1-SNAPSHOT grpc-google-cloud-websecurityscanner-v1alpha GRPC library for grpc-google-cloud-websecurityscanner-v1alpha com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/pom.xml b/google-api-grpc/pom.xml index 6c0d33b46808..d5c44be845c9 100644 --- a/google-api-grpc/pom.xml +++ b/google-api-grpc/pom.xml @@ -4,7 +4,7 @@ com.google.api.grpc google-api-grpc pom - 0.27.0 + 0.27.1-SNAPSHOT Google Cloud API gRPC https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-api-grpc @@ -134,467 +134,467 @@ com.google.api.grpc proto-google-cloud-asset-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-asset-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-automl-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-automl-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-bigtable-v2 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigtable-v2 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-bigtable-admin-v2 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigtable-admin-v2 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-bigquerydatatransfer-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigquerydatatransfer-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-container-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-container-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-containeranalysis-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-containeranalysis-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-datastore-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-dlp-v2 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dlp-v2 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-dialogflow-v2beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dialogflow-v2beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-dialogflow-v2 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dialogflow-v2 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-error-reporting-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-error-reporting-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-firestore-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-firestore-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-kms-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-kms-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-language-v1 - 1.26.0 + 1.26.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-language-v1 - 1.26.0 + 1.26.1-SNAPSHOT com.google.api.grpc proto-google-cloud-language-v1beta2 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-language-v1beta2 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-logging-v2 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-logging-v2 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-monitoring-v3 - 1.26.0 + 1.26.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-monitoring-v3 - 1.26.0 + 1.26.1-SNAPSHOT com.google.api.grpc proto-google-cloud-os-login-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-os-login-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.26.0 + 1.26.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.26.0 + 1.26.1-SNAPSHOT com.google.api.grpc proto-google-cloud-spanner-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-spanner-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-spanner-admin-database-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-spanner-admin-database-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-spanner-admin-instance-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-spanner-admin-instance-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-speech-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-speech-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-speech-v1p1beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-speech-v1p1beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-speech-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-speech-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-texttospeech-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-texttospeech-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-texttospeech-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-texttospeech-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-trace-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-trace-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-trace-v2 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-trace-v2 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-vision-v1 - 1.26.0 + 1.26.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-vision-v1 - 1.26.0 + 1.26.1-SNAPSHOT com.google.api.grpc proto-google-cloud-vision-v1p1beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-vision-v1p1beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-vision-v1p2beta1 - 1.26.0 + 1.26.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-vision-v1p2beta1 - 1.26.0 + 1.26.1-SNAPSHOT com.google.api.grpc proto-google-cloud-vision-v1p3beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-vision-v1p3beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-video-intelligence-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-intelligence-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-video-intelligence-v1beta2 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-intelligence-v1beta2 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-video-intelligence-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-intelligence-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-video-intelligence-v1p1beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-intelligence-v1p1beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-video-intelligence-v1p2beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-intelligence-v1p2beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-iot-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-iot-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-redis-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-redis-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-redis-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-redis-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-websecurityscanner-v1alpha - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-websecurityscanner-v1alpha - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-asset-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-asset-v1beta1/pom.xml index 2506c686a2a7..af27f48f7961 100644 --- a/google-api-grpc/proto-google-cloud-asset-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-asset-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-asset-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT proto-google-cloud-asset-v1beta1 PROTO library for proto-google-cloud-asset-v1beta1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-automl-v1beta1/pom.xml index 9b54730a9c70..a4af48d43587 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-automl-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT proto-google-cloud-automl-v1beta1 PROTO library for proto-google-cloud-automl-v1beta1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/pom.xml b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/pom.xml index 704b7e14283a..34614b8489f5 100644 --- a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-bigquerydatatransfer-v1 - 0.27.0 + 0.27.1-SNAPSHOT proto-google-cloud-bigquerydatatransfer-v1 PROTO library for proto-google-cloud-bigquerydatatransfer-v1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/pom.xml b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/pom.xml index 4f2aa6c3dae1..d13b83c53310 100644 --- a/google-api-grpc/proto-google-cloud-bigtable-admin-v2/pom.xml +++ b/google-api-grpc/proto-google-cloud-bigtable-admin-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-bigtable-admin-v2 - 0.27.0 + 0.27.1-SNAPSHOT proto-google-cloud-bigtable-admin-v2 PROTO library for proto-google-cloud-bigtable-admin-v2 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-bigtable-v2/pom.xml b/google-api-grpc/proto-google-cloud-bigtable-v2/pom.xml index 67547732a891..327fbe1edf07 100644 --- a/google-api-grpc/proto-google-cloud-bigtable-v2/pom.xml +++ b/google-api-grpc/proto-google-cloud-bigtable-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-bigtable-v2 - 0.27.0 + 0.27.1-SNAPSHOT proto-google-cloud-bigtable-v2 PROTO library for proto-google-cloud-bigtable-v2 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-container-v1/pom.xml b/google-api-grpc/proto-google-cloud-container-v1/pom.xml index 6e9ac9c43c8b..1ef4b8157811 100644 --- a/google-api-grpc/proto-google-cloud-container-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-container-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-container-v1 - 0.27.0 + 0.27.1-SNAPSHOT proto-google-cloud-container-v1 PROTO library for proto-google-cloud-container-v1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-containeranalysis-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-containeranalysis-v1beta1/pom.xml index 8f15a2751c02..68fb1d2aa646 100644 --- a/google-api-grpc/proto-google-cloud-containeranalysis-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-containeranalysis-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-containeranalysis-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT proto-google-cloud-containeranalysis-v1beta1 PROTO library for proto-google-cloud-containeranalysis-v1beta1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1/pom.xml b/google-api-grpc/proto-google-cloud-dataproc-v1/pom.xml index 774e3e998d9c..3e20366c6ee1 100644 --- a/google-api-grpc/proto-google-cloud-dataproc-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-dataproc-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-dataproc-v1 - 0.27.0 + 0.27.1-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/pom.xml b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/pom.xml index f1c13edc0873..ebb391c03941 100644 --- a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-dataproc-v1beta2 - 0.27.0 + 0.27.1-SNAPSHOT proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-datastore-v1/pom.xml b/google-api-grpc/proto-google-cloud-datastore-v1/pom.xml index 43c9da03afb0..0743f0c2637f 100644 --- a/google-api-grpc/proto-google-cloud-datastore-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-datastore-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-datastore-v1 - 0.27.0 + 0.27.1-SNAPSHOT proto-google-cloud-datastore-v1 PROTO library for proto-google-cloud-datastore-v1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2/pom.xml b/google-api-grpc/proto-google-cloud-dialogflow-v2/pom.xml index 8f8ecd502dac..677e209dae97 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2/pom.xml +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-dialogflow-v2 - 0.27.0 + 0.27.1-SNAPSHOT proto-google-cloud-dialogflow-v2 PROTO library for proto-google-cloud-dialogflow-v2 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/pom.xml b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/pom.xml index 07495af883ca..10249c9382d4 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-dialogflow-v2beta1 - 0.27.0 + 0.27.1-SNAPSHOT proto-google-cloud-dialogflow-v2beta1 PROTO library for proto-google-cloud-dialogflow-v2beta1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-dlp-v2/pom.xml b/google-api-grpc/proto-google-cloud-dlp-v2/pom.xml index 81d2d9d14f3c..c32fea3fa915 100644 --- a/google-api-grpc/proto-google-cloud-dlp-v2/pom.xml +++ b/google-api-grpc/proto-google-cloud-dlp-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-dlp-v2 - 0.27.0 + 0.27.1-SNAPSHOT proto-google-cloud-dlp-v2 PROTO library for proto-google-cloud-dlp-v2 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-error-reporting-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-error-reporting-v1beta1/pom.xml index 2b118e0985dd..9c3435d1294d 100644 --- a/google-api-grpc/proto-google-cloud-error-reporting-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-error-reporting-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-error-reporting-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT proto-google-cloud-error-reporting-v1beta1 PROTO library for proto-google-cloud-error-reporting-v1beta1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-firestore-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-firestore-v1beta1/pom.xml index 25a692b54ee6..1ddb77836878 100644 --- a/google-api-grpc/proto-google-cloud-firestore-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-firestore-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-firestore-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT proto-google-cloud-firestore-v1beta1 PROTO library for proto-google-cloud-firestore-v1beta1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-iot-v1/pom.xml b/google-api-grpc/proto-google-cloud-iot-v1/pom.xml index 0ed81e3dbcf4..2bfbec20f02b 100644 --- a/google-api-grpc/proto-google-cloud-iot-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-iot-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-iot-v1 - 0.27.0 + 0.27.1-SNAPSHOT proto-google-cloud-iot-v1 PROTO library for proto-google-cloud-iot-v1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-kms-v1/pom.xml b/google-api-grpc/proto-google-cloud-kms-v1/pom.xml index 7df655cea87a..13842c11f5f4 100644 --- a/google-api-grpc/proto-google-cloud-kms-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-kms-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-kms-v1 - 0.27.0 + 0.27.1-SNAPSHOT proto-google-cloud-kms-v1 PROTO library for proto-google-cloud-kms-v1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-language-v1/pom.xml b/google-api-grpc/proto-google-cloud-language-v1/pom.xml index d4bf0b75e151..ca04651f270b 100644 --- a/google-api-grpc/proto-google-cloud-language-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-language-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-language-v1 - 1.26.0 + 1.26.1-SNAPSHOT proto-google-cloud-language-v1 PROTO library for proto-google-cloud-language-v1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-language-v1beta2/pom.xml b/google-api-grpc/proto-google-cloud-language-v1beta2/pom.xml index fe071e458f63..fe2284d21bd5 100644 --- a/google-api-grpc/proto-google-cloud-language-v1beta2/pom.xml +++ b/google-api-grpc/proto-google-cloud-language-v1beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-language-v1beta2 - 0.27.0 + 0.27.1-SNAPSHOT proto-google-cloud-language-v1beta2 PROTO library for proto-google-cloud-language-v1beta2 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-logging-v2/pom.xml b/google-api-grpc/proto-google-cloud-logging-v2/pom.xml index 90065a2de568..640d9f5f0535 100644 --- a/google-api-grpc/proto-google-cloud-logging-v2/pom.xml +++ b/google-api-grpc/proto-google-cloud-logging-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-logging-v2 - 0.27.0 + 0.27.1-SNAPSHOT proto-google-cloud-logging-v2 PROTO library for proto-google-cloud-logging-v2 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/pom.xml b/google-api-grpc/proto-google-cloud-monitoring-v3/pom.xml index ac6df2871123..9844b40976e1 100644 --- a/google-api-grpc/proto-google-cloud-monitoring-v3/pom.xml +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-monitoring-v3 - 1.26.0 + 1.26.1-SNAPSHOT proto-google-cloud-monitoring-v3 PROTO library for proto-google-cloud-monitoring-v3 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-os-login-v1/pom.xml b/google-api-grpc/proto-google-cloud-os-login-v1/pom.xml index 2437f601cb55..50df40b016c2 100644 --- a/google-api-grpc/proto-google-cloud-os-login-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-os-login-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-os-login-v1 - 0.27.0 + 0.27.1-SNAPSHOT proto-google-cloud-os-login-v1 PROTO library for proto-google-cloud-os-login-v1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-pubsub-v1/pom.xml b/google-api-grpc/proto-google-cloud-pubsub-v1/pom.xml index dc59348b5201..99df542be817 100644 --- a/google-api-grpc/proto-google-cloud-pubsub-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.26.0 + 1.26.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-redis-v1/pom.xml b/google-api-grpc/proto-google-cloud-redis-v1/pom.xml index 1dbc03709f97..e465e8b00129 100644 --- a/google-api-grpc/proto-google-cloud-redis-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-redis-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-redis-v1 - 0.27.0 + 0.27.1-SNAPSHOT proto-google-cloud-redis-v1 PROTO library for proto-google-cloud-redis-v1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-redis-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-redis-v1beta1/pom.xml index 61e00f88bcf5..c8f3c8b8af65 100644 --- a/google-api-grpc/proto-google-cloud-redis-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-redis-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-redis-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT proto-google-cloud-redis-v1beta1 PROTO library for proto-google-cloud-redis-v1beta1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-spanner-admin-database-v1/pom.xml b/google-api-grpc/proto-google-cloud-spanner-admin-database-v1/pom.xml index 01783871bd66..8186d579d1ff 100644 --- a/google-api-grpc/proto-google-cloud-spanner-admin-database-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-spanner-admin-database-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-spanner-admin-database-v1 - 0.27.0 + 0.27.1-SNAPSHOT proto-google-cloud-spanner-admin-database-v1 PROTO library for proto-google-cloud-spanner-admin-database-v1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-spanner-admin-instance-v1/pom.xml b/google-api-grpc/proto-google-cloud-spanner-admin-instance-v1/pom.xml index 1960df0613d2..a42debf919f4 100644 --- a/google-api-grpc/proto-google-cloud-spanner-admin-instance-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-spanner-admin-instance-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-spanner-admin-instance-v1 - 0.27.0 + 0.27.1-SNAPSHOT proto-google-cloud-spanner-admin-instance-v1 PROTO library for proto-google-cloud-spanner-admin-instance-v1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-spanner-v1/pom.xml b/google-api-grpc/proto-google-cloud-spanner-v1/pom.xml index 54326b617f2a..efa238a74ebe 100644 --- a/google-api-grpc/proto-google-cloud-spanner-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-spanner-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-spanner-v1 - 0.27.0 + 0.27.1-SNAPSHOT proto-google-cloud-spanner-v1 PROTO library for proto-google-cloud-spanner-v1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-speech-v1/pom.xml b/google-api-grpc/proto-google-cloud-speech-v1/pom.xml index 1dd3300a0adc..7b891d52c610 100644 --- a/google-api-grpc/proto-google-cloud-speech-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-speech-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-speech-v1 - 0.27.0 + 0.27.1-SNAPSHOT proto-google-cloud-speech-v1 PROTO library for proto-google-cloud-speech-v1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-speech-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-speech-v1beta1/pom.xml index 60a37a88d861..837e26a816e8 100644 --- a/google-api-grpc/proto-google-cloud-speech-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-speech-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-speech-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT proto-google-cloud-speech-v1beta1 PROTO library for proto-google-cloud-speech-v1beta1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-speech-v1p1beta1/pom.xml b/google-api-grpc/proto-google-cloud-speech-v1p1beta1/pom.xml index 3ff737b4eda5..8803bc53e4c2 100644 --- a/google-api-grpc/proto-google-cloud-speech-v1p1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-speech-v1p1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-speech-v1p1beta1 - 0.27.0 + 0.27.1-SNAPSHOT proto-google-cloud-speech-v1p1beta1 PROTO library for proto-google-cloud-speech-v1p1beta1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-tasks-v2beta2/pom.xml b/google-api-grpc/proto-google-cloud-tasks-v2beta2/pom.xml index 1332f4deeb18..febdaa6d0ec2 100644 --- a/google-api-grpc/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/google-api-grpc/proto-google-cloud-tasks-v2beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-tasks-v2beta2 - 0.27.0 + 0.27.1-SNAPSHOT proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-tasks-v2beta3/pom.xml b/google-api-grpc/proto-google-cloud-tasks-v2beta3/pom.xml index 053dac87fd63..bdd877995fd8 100644 --- a/google-api-grpc/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/google-api-grpc/proto-google-cloud-tasks-v2beta3/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-tasks-v2beta3 - 0.27.0 + 0.27.1-SNAPSHOT proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-texttospeech-v1/pom.xml b/google-api-grpc/proto-google-cloud-texttospeech-v1/pom.xml index f43abc33f91a..7ba3a81b4374 100644 --- a/google-api-grpc/proto-google-cloud-texttospeech-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-texttospeech-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-texttospeech-v1 - 0.27.0 + 0.27.1-SNAPSHOT proto-google-cloud-texttospeech-v1 PROTO library for proto-google-cloud-texttospeech-v1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/pom.xml index 22e1c956753c..88ac344edeba 100644 --- a/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-texttospeech-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT proto-google-cloud-texttospeech-v1beta1 PROTO library for proto-google-cloud-texttospeech-v1beta1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-trace-v1/pom.xml b/google-api-grpc/proto-google-cloud-trace-v1/pom.xml index 033bf9d3a83c..b4ad4ba45eed 100644 --- a/google-api-grpc/proto-google-cloud-trace-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-trace-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-trace-v1 - 0.27.0 + 0.27.1-SNAPSHOT proto-google-cloud-trace-v1 PROTO library for proto-google-cloud-trace-v1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-trace-v2/pom.xml b/google-api-grpc/proto-google-cloud-trace-v2/pom.xml index cab58d3540b7..48bda8c47a2c 100644 --- a/google-api-grpc/proto-google-cloud-trace-v2/pom.xml +++ b/google-api-grpc/proto-google-cloud-trace-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-trace-v2 - 0.27.0 + 0.27.1-SNAPSHOT proto-google-cloud-trace-v2 PROTO library for proto-google-cloud-trace-v2 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1/pom.xml b/google-api-grpc/proto-google-cloud-video-intelligence-v1/pom.xml index 219379bbe95a..1f7ec150eceb 100644 --- a/google-api-grpc/proto-google-cloud-video-intelligence-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-video-intelligence-v1 - 0.27.0 + 0.27.1-SNAPSHOT proto-google-cloud-video-intelligence-v1 PROTO library for proto-google-cloud-video-intelligence-v1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-video-intelligence-v1beta1/pom.xml index 951aadd27618..82b02bf99ae0 100644 --- a/google-api-grpc/proto-google-cloud-video-intelligence-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-video-intelligence-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT proto-google-cloud-video-intelligence-v1beta1 PROTO library for proto-google-cloud-video-intelligence-v1beta1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1beta2/pom.xml b/google-api-grpc/proto-google-cloud-video-intelligence-v1beta2/pom.xml index b5787d590492..619959d279db 100644 --- a/google-api-grpc/proto-google-cloud-video-intelligence-v1beta2/pom.xml +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-video-intelligence-v1beta2 - 0.27.0 + 0.27.1-SNAPSHOT proto-google-cloud-video-intelligence-v1beta2 PROTO library for proto-google-cloud-video-intelligence-v1beta2 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p1beta1/pom.xml b/google-api-grpc/proto-google-cloud-video-intelligence-v1p1beta1/pom.xml index 9e733c776f3d..5450df0460f7 100644 --- a/google-api-grpc/proto-google-cloud-video-intelligence-v1p1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-video-intelligence-v1p1beta1 - 0.27.0 + 0.27.1-SNAPSHOT proto-google-cloud-video-intelligence-v1p1beta1 PROTO library for proto-google-cloud-video-intelligence-v1p1beta1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml index a772d9bcb1c1..5d949c5d53fd 100644 --- a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-video-intelligence-v1p2beta1 - 0.27.0 + 0.27.1-SNAPSHOT proto-google-cloud-video-intelligence-v1p2beta1 PROTO library for proto-google-cloud-video-intelligence-v1p2beta1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-vision-v1/pom.xml b/google-api-grpc/proto-google-cloud-vision-v1/pom.xml index aa5ccfc69a99..c112637e3ad0 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-vision-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-vision-v1 - 1.26.0 + 1.26.1-SNAPSHOT proto-google-cloud-vision-v1 PROTO library for proto-google-cloud-vision-v1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-vision-v1p1beta1/pom.xml b/google-api-grpc/proto-google-cloud-vision-v1p1beta1/pom.xml index fa1900fafb8f..3422ed9c11ff 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1p1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-vision-v1p1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-vision-v1p1beta1 - 0.27.0 + 0.27.1-SNAPSHOT proto-google-cloud-vision-v1p1beta1 PROTO library for proto-google-cloud-vision-v1p1beta1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-vision-v1p2beta1/pom.xml b/google-api-grpc/proto-google-cloud-vision-v1p2beta1/pom.xml index 5d561ecae761..1be812cbe52d 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1p2beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-vision-v1p2beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-vision-v1p2beta1 - 1.26.0 + 1.26.1-SNAPSHOT proto-google-cloud-vision-v1p2beta1 PROTO library for proto-google-cloud-vision-v1p2beta1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-vision-v1p3beta1/pom.xml b/google-api-grpc/proto-google-cloud-vision-v1p3beta1/pom.xml index 2bc9619cf9da..9d1c16f4b394 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1p3beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-vision-v1p3beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-vision-v1p3beta1 - 0.27.0 + 0.27.1-SNAPSHOT proto-google-cloud-vision-v1p3beta1 PROTO library for proto-google-cloud-vision-v1p3beta1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-api-grpc/proto-google-cloud-websecurityscanner-v1alpha/pom.xml b/google-api-grpc/proto-google-cloud-websecurityscanner-v1alpha/pom.xml index 157698f3406e..77a78c175c28 100644 --- a/google-api-grpc/proto-google-cloud-websecurityscanner-v1alpha/pom.xml +++ b/google-api-grpc/proto-google-cloud-websecurityscanner-v1alpha/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-websecurityscanner-v1alpha - 0.27.0 + 0.27.1-SNAPSHOT proto-google-cloud-websecurityscanner-v1alpha PROTO library for proto-google-cloud-websecurityscanner-v1alpha com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-cloud-bom/pom.xml b/google-cloud-bom/pom.xml index 90f2d2f08c06..09089a41c1d1 100644 --- a/google-cloud-bom/pom.xml +++ b/google-cloud-bom/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bom pom - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT Google Cloud Java BOM https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-bom @@ -223,879 +223,879 @@ com.google.cloud google-cloud-asset - 0.62.0-beta + 0.62.1-beta-SNAPSHOT com.google.api.grpc proto-google-cloud-asset-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-asset-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.cloud google-cloud-automl - 0.62.0-beta + 0.62.1-beta-SNAPSHOT com.google.api.grpc proto-google-cloud-automl-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-automl-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.cloud google-cloud-bigtable - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT com.google.cloud google-cloud-bigtable - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT test-jar com.google.api.grpc proto-google-cloud-bigtable-v2 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigtable-v2 - 0.27.0 + 0.27.1-SNAPSHOT com.google.cloud google-cloud-bigtable-admin - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT com.google.cloud google-cloud-bigtable-admin - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT test-jar com.google.api.grpc proto-google-cloud-bigtable-admin-v2 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigtable-admin-v2 - 0.27.0 + 0.27.1-SNAPSHOT com.google.cloud google-cloud-bigquery - 1.44.0 + 1.44.1-SNAPSHOT com.google.cloud google-cloud-bigquery - 1.44.0 + 1.44.1-SNAPSHOT test-jar com.google.cloud google-cloud-bigquerydatatransfer - 0.62.0-beta + 0.62.1-beta-SNAPSHOT com.google.cloud google-cloud-bigquerydatatransfer - 0.62.0-beta + 0.62.1-beta-SNAPSHOT test-jar com.google.api.grpc proto-google-cloud-bigquerydatatransfer-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigquerydatatransfer-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.cloud google-cloud-compute - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT com.google.cloud google-cloud-compute - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT test-jar com.google.cloud google-cloud-container - 0.62.0-beta + 0.62.1-beta-SNAPSHOT com.google.cloud google-cloud-container - 0.62.0-beta + 0.62.1-beta-SNAPSHOT test-jar com.google.api.grpc proto-google-cloud-container-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-container-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.cloud google-cloud-containeranalysis - 0.62.0-beta + 0.62.1-beta-SNAPSHOT com.google.cloud google-cloud-containeranalysis - 0.62.0-beta + 0.62.1-beta-SNAPSHOT test-jar com.google.api.grpc proto-google-cloud-containeranalysis-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-containeranalysis-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.cloud google-cloud-contrib - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT com.google.cloud google-cloud-contrib - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT test-jar com.google.cloud google-cloud-nio - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT com.google.cloud google-cloud-nio - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT test-jar com.google.cloud google-cloud-core - 1.44.0 + 1.44.1-SNAPSHOT com.google.cloud google-cloud-core - 1.44.0 + 1.44.1-SNAPSHOT test-jar com.google.cloud google-cloud-core-grpc - 1.44.0 + 1.44.1-SNAPSHOT com.google.cloud google-cloud-core-grpc - 1.44.0 + 1.44.1-SNAPSHOT test-jar com.google.cloud google-cloud-core-http - 1.44.0 + 1.44.1-SNAPSHOT com.google.cloud google-cloud-core-http - 1.44.0 + 1.44.1-SNAPSHOT test-jar com.google.cloud google-cloud-dataproc - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT com.google.cloud google-cloud-dataproc - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT test-jar com.google.api.grpc proto-google-cloud-dataproc-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.27.0 + 0.27.1-SNAPSHOT com.google.cloud google-cloud-datastore - 1.44.0 + 1.44.1-SNAPSHOT com.google.cloud google-cloud-datastore - 1.44.0 + 1.44.1-SNAPSHOT test-jar com.google.api.grpc proto-google-cloud-datastore-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.cloud google-cloud-dlp - 0.62.0-beta + 0.62.1-beta-SNAPSHOT com.google.cloud google-cloud-dlp - 0.62.0-beta + 0.62.1-beta-SNAPSHOT test-jar com.google.api.grpc proto-google-cloud-dlp-v2 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dlp-v2 - 0.27.0 + 0.27.1-SNAPSHOT com.google.cloud google-cloud-dialogflow - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT com.google.cloud google-cloud-dialogflow - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT test-jar com.google.api.grpc proto-google-cloud-dialogflow-v2beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dialogflow-v2beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-dialogflow-v2 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dialogflow-v2 - 0.27.0 + 0.27.1-SNAPSHOT com.google.cloud google-cloud-dns - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT com.google.cloud google-cloud-dns - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT test-jar com.google.cloud google-cloud-errorreporting - 0.62.0-beta + 0.62.1-beta-SNAPSHOT com.google.cloud google-cloud-errorreporting - 0.62.0-beta + 0.62.1-beta-SNAPSHOT test-jar com.google.api.grpc proto-google-cloud-error-reporting-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-error-reporting-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.cloud google-cloud-firestore - 0.62.0-beta + 0.62.1-beta-SNAPSHOT com.google.cloud google-cloud-firestore - 0.62.0-beta + 0.62.1-beta-SNAPSHOT test-jar com.google.api.grpc proto-google-cloud-firestore-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-firestore-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.cloud google-cloud-kms - 0.62.0-beta + 0.62.1-beta-SNAPSHOT com.google.cloud google-cloud-kms - 0.62.0-beta + 0.62.1-beta-SNAPSHOT test-jar com.google.api.grpc proto-google-cloud-kms-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-kms-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.cloud google-cloud-language - 1.44.0 + 1.44.1-SNAPSHOT com.google.cloud google-cloud-language - 1.44.0 + 1.44.1-SNAPSHOT test-jar com.google.api.grpc proto-google-cloud-language-v1 - 1.26.0 + 1.26.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-language-v1 - 1.26.0 + 1.26.1-SNAPSHOT com.google.api.grpc proto-google-cloud-language-v1beta2 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-language-v1beta2 - 0.27.0 + 0.27.1-SNAPSHOT com.google.cloud google-cloud-logging - 1.44.0 + 1.44.1-SNAPSHOT com.google.cloud google-cloud-logging - 1.44.0 + 1.44.1-SNAPSHOT test-jar com.google.api.grpc proto-google-cloud-logging-v2 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-logging-v2 - 0.27.0 + 0.27.1-SNAPSHOT com.google.cloud google-cloud-logging-logback - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT com.google.cloud google-cloud-monitoring - 1.44.0 + 1.44.1-SNAPSHOT com.google.cloud google-cloud-monitoring - 1.44.0 + 1.44.1-SNAPSHOT test-jar com.google.api.grpc proto-google-cloud-monitoring-v3 - 1.26.0 + 1.26.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-monitoring-v3 - 1.26.0 + 1.26.1-SNAPSHOT com.google.cloud google-cloud-os-login - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT com.google.cloud google-cloud-os-login - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT test-jar com.google.api.grpc proto-google-cloud-os-login-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-os-login-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.44.0 + 1.44.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.44.0 + 1.44.1-SNAPSHOT test-jar com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.26.0 + 1.26.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.26.0 + 1.26.1-SNAPSHOT com.google.cloud google-cloud-redis - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT com.google.cloud google-cloud-redis - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT test-jar com.google.api.grpc proto-google-cloud-redis-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-redis-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-redis-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-redis-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.cloud google-cloud-resourcemanager - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT com.google.cloud google-cloud-resourcemanager - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT test-jar com.google.cloud google-cloud-spanner - 0.62.0-beta + 0.62.1-beta-SNAPSHOT com.google.cloud google-cloud-spanner - 0.62.0-beta + 0.62.1-beta-SNAPSHOT test-jar com.google.api.grpc proto-google-cloud-spanner-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-spanner-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-spanner-admin-database-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-spanner-admin-database-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-spanner-admin-instance-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-spanner-admin-instance-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.cloud google-cloud-speech - 0.62.0-beta + 0.62.1-beta-SNAPSHOT com.google.cloud google-cloud-speech - 0.62.0-beta + 0.62.1-beta-SNAPSHOT test-jar com.google.api.grpc proto-google-cloud-speech-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-speech-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-speech-v1p1beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-speech-v1p1beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-speech-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-speech-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.cloud google-cloud-storage - 1.44.0 + 1.44.1-SNAPSHOT com.google.cloud google-cloud-storage - 1.44.0 + 1.44.1-SNAPSHOT test-jar com.google.cloud google-cloud-tasks - 0.62.0-beta + 0.62.1-beta-SNAPSHOT com.google.cloud google-cloud-tasks - 0.62.0-beta + 0.62.1-beta-SNAPSHOT test-jar com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.27.0 + 0.27.1-SNAPSHOT com.google.cloud google-cloud-texttospeech - 0.62.0-beta + 0.62.1-beta-SNAPSHOT com.google.cloud google-cloud-texttospeech - 0.62.0-beta + 0.62.1-beta-SNAPSHOT test-jar com.google.api.grpc proto-google-cloud-texttospeech-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-texttospeech-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-texttospeech-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-texttospeech-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.cloud google-cloud-trace - 0.62.0-beta + 0.62.1-beta-SNAPSHOT com.google.cloud google-cloud-trace - 0.62.0-beta + 0.62.1-beta-SNAPSHOT test-jar com.google.api.grpc proto-google-cloud-trace-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-trace-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-trace-v2 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-trace-v2 - 0.27.0 + 0.27.1-SNAPSHOT com.google.cloud google-cloud-translate - 1.44.0 + 1.44.1-SNAPSHOT com.google.cloud google-cloud-translate - 1.44.0 + 1.44.1-SNAPSHOT test-jar com.google.cloud google-cloud-vision - 1.44.0 + 1.44.1-SNAPSHOT com.google.cloud google-cloud-vision - 1.44.0 + 1.44.1-SNAPSHOT test-jar com.google.api.grpc proto-google-cloud-vision-v1 - 1.26.0 + 1.26.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-vision-v1 - 1.26.0 + 1.26.1-SNAPSHOT com.google.api.grpc proto-google-cloud-vision-v1p1beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-vision-v1p1beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-vision-v1p2beta1 - 1.26.0 + 1.26.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-vision-v1p2beta1 - 1.26.0 + 1.26.1-SNAPSHOT com.google.api.grpc proto-google-cloud-vision-v1p3beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-vision-v1p3beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.cloud google-cloud-video-intelligence - 0.62.0-beta + 0.62.1-beta-SNAPSHOT com.google.cloud google-cloud-video-intelligence - 0.62.0-beta + 0.62.1-beta-SNAPSHOT test-jar com.google.api.grpc proto-google-cloud-video-intelligence-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-intelligence-v1beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-video-intelligence-v1beta2 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-intelligence-v1beta2 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-video-intelligence-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-intelligence-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-video-intelligence-v1p1beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-intelligence-v1p1beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-video-intelligence-v1p2beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-intelligence-v1p2beta1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-iot-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-iot-v1 - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc proto-google-cloud-websecurityscanner-v1alpha - 0.27.0 + 0.27.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-websecurityscanner-v1alpha - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/google-cloud-clients/google-cloud-asset/pom.xml b/google-cloud-clients/google-cloud-asset/pom.xml index c6db8d2fcb49..828a9f8d54a1 100644 --- a/google-cloud-clients/google-cloud-asset/pom.xml +++ b/google-cloud-clients/google-cloud-asset/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-asset - 0.62.0-beta + 0.62.1-beta-SNAPSHOT jar Google Cloud Asset https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-asset @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT google-cloud-asset diff --git a/google-cloud-clients/google-cloud-automl/pom.xml b/google-cloud-clients/google-cloud-automl/pom.xml index 7c70b241047c..b81a6fc93e0f 100644 --- a/google-cloud-clients/google-cloud-automl/pom.xml +++ b/google-cloud-clients/google-cloud-automl/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-automl - 0.62.0-beta + 0.62.1-beta-SNAPSHOT jar Google Cloud Auto ML https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-automl @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT google-cloud-automl diff --git a/google-cloud-clients/google-cloud-bigquery/pom.xml b/google-cloud-clients/google-cloud-bigquery/pom.xml index 93fa9d09008c..e31e559655cc 100644 --- a/google-cloud-clients/google-cloud-bigquery/pom.xml +++ b/google-cloud-clients/google-cloud-bigquery/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-bigquery - 1.44.0 + 1.44.1-SNAPSHOT jar Google Cloud BigQuery https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-bigquery @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT google-cloud-bigquery diff --git a/google-cloud-clients/google-cloud-bigquerydatatransfer/pom.xml b/google-cloud-clients/google-cloud-bigquerydatatransfer/pom.xml index eeebdbf88a52..5586775c1d7e 100644 --- a/google-cloud-clients/google-cloud-bigquerydatatransfer/pom.xml +++ b/google-cloud-clients/google-cloud-bigquerydatatransfer/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-bigquerydatatransfer - 0.62.0-beta + 0.62.1-beta-SNAPSHOT jar Google Cloud Bigquery Data Transfer https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-bigquerydatatransfer @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT google-cloud-bigquerydatatransfer diff --git a/google-cloud-clients/google-cloud-bigtable-admin/pom.xml b/google-cloud-clients/google-cloud-bigtable-admin/pom.xml index 64cd35aed292..d1ff00c62cb3 100644 --- a/google-cloud-clients/google-cloud-bigtable-admin/pom.xml +++ b/google-cloud-clients/google-cloud-bigtable-admin/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-bigtable-admin - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT jar Google Cloud Bigtable Admin https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-bigtable @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT google-cloud-bigtable-admin diff --git a/google-cloud-clients/google-cloud-bigtable/pom.xml b/google-cloud-clients/google-cloud-bigtable/pom.xml index bd814991fa52..6f558807919b 100644 --- a/google-cloud-clients/google-cloud-bigtable/pom.xml +++ b/google-cloud-clients/google-cloud-bigtable/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-bigtable - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT jar Google Cloud Bigtable https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-bigtable @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT google-cloud-bigtable diff --git a/google-cloud-clients/google-cloud-compute/pom.xml b/google-cloud-clients/google-cloud-compute/pom.xml index 0b5b6870c2f9..459bec7ec238 100644 --- a/google-cloud-clients/google-cloud-compute/pom.xml +++ b/google-cloud-clients/google-cloud-compute/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-compute - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT jar Google Cloud Compute https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-compute @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT google-cloud-compute diff --git a/google-cloud-clients/google-cloud-container/pom.xml b/google-cloud-clients/google-cloud-container/pom.xml index 6784a650d218..07d6e63db86d 100644 --- a/google-cloud-clients/google-cloud-container/pom.xml +++ b/google-cloud-clients/google-cloud-container/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-container - 0.62.0-beta + 0.62.1-beta-SNAPSHOT jar Google Cloud Container https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-container @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT google-cloud-container diff --git a/google-cloud-clients/google-cloud-containeranalysis/pom.xml b/google-cloud-clients/google-cloud-containeranalysis/pom.xml index b50e6738c035..cc7c03ae775a 100644 --- a/google-cloud-clients/google-cloud-containeranalysis/pom.xml +++ b/google-cloud-clients/google-cloud-containeranalysis/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-containeranalysis - 0.62.0-beta + 0.62.1-beta-SNAPSHOT jar Google Cloud Container Analysis https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-containeranalysis @@ -15,7 +15,7 @@ com.google.cloud google-cloud-clients - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT google-cloud-containeranalysis diff --git a/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/pom.xml b/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/pom.xml index 516849d89be6..67962d9bdad8 100644 --- a/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/pom.xml +++ b/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/pom.xml @@ -5,7 +5,7 @@ 4.0.0 google-cloud-logging-logback - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT jar Google Cloud Logging Logback Appender https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback @@ -20,7 +20,7 @@ com.google.cloud google-cloud-contrib - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT diff --git a/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/README.md b/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/README.md index 23873117c577..bf89129e3cdb 100644 --- a/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/README.md +++ b/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/README.md @@ -23,12 +23,12 @@ To run this example: [//]: # ({x-version-update-start:google-cloud-nio:current}) ``` - java -cp google-cloud-clients/google-cloud-contrib/google-cloud-nio/target/google-cloud-nio-0.62.0-alpha.jar:google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/target/google-cloud-nio-examples-0.62.0-alpha.jar com.google.cloud.nio.examples.ListFilesystems + java -cp google-cloud-clients/google-cloud-contrib/google-cloud-nio/target/google-cloud-nio-0.62.1-alpha-SNAPSHOT.jar:google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/target/google-cloud-nio-examples-0.62.1-alpha-SNAPSHOT.jar com.google.cloud.nio.examples.ListFilesystems ``` Notice that it lists Google Cloud Storage, which it wouldn't if you ran it without the NIO jar: ``` - java -cp google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/target/google-cloud-nio-examples-0.62.0-alpha.jar com.google.cloud.nio.examples.ListFilesystems + java -cp google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/target/google-cloud-nio-examples-0.62.1-alpha-SNAPSHOT.jar com.google.cloud.nio.examples.ListFilesystems ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/pom.xml b/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/pom.xml index 07b9f5f34fee..c8e0d26f17b2 100644 --- a/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/pom.xml +++ b/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-nio-examples - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT jar Google Cloud NIO Examples https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-contrib/google-cloud-nio-examples @@ -12,7 +12,7 @@ com.google.cloud google-cloud-contrib - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT google-cloud-nio-examples diff --git a/google-cloud-clients/google-cloud-contrib/google-cloud-nio/pom.xml b/google-cloud-clients/google-cloud-contrib/google-cloud-nio/pom.xml index 56b3a93f2a8b..9824286a2358 100644 --- a/google-cloud-clients/google-cloud-contrib/google-cloud-nio/pom.xml +++ b/google-cloud-clients/google-cloud-contrib/google-cloud-nio/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-nio - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT jar Google Cloud NIO https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-contrib/google-cloud-nio @@ -12,7 +12,7 @@ com.google.cloud google-cloud-contrib - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT google-cloud-nio diff --git a/google-cloud-clients/google-cloud-contrib/pom.xml b/google-cloud-clients/google-cloud-contrib/pom.xml index da8c31b0e52f..9a0e19783a3a 100644 --- a/google-cloud-clients/google-cloud-contrib/pom.xml +++ b/google-cloud-clients/google-cloud-contrib/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-contrib - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT pom Google Cloud Contributions https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-contrib @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT google-cloud-contrib diff --git a/google-cloud-clients/google-cloud-core-grpc/pom.xml b/google-cloud-clients/google-cloud-core-grpc/pom.xml index 94de3c333a1f..7ebd0db02318 100644 --- a/google-cloud-clients/google-cloud-core-grpc/pom.xml +++ b/google-cloud-clients/google-cloud-core-grpc/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-core-grpc - 1.44.0 + 1.44.1-SNAPSHOT jar Google Cloud Core gRPC https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-core-grpc @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT google-cloud-core-grpc diff --git a/google-cloud-clients/google-cloud-core-http/pom.xml b/google-cloud-clients/google-cloud-core-http/pom.xml index 25840fb0fb31..a97dff986e0d 100644 --- a/google-cloud-clients/google-cloud-core-http/pom.xml +++ b/google-cloud-clients/google-cloud-core-http/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-core-http - 1.44.0 + 1.44.1-SNAPSHOT jar Google Cloud Core HTTP https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-core-http @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT google-cloud-core-http diff --git a/google-cloud-clients/google-cloud-core/pom.xml b/google-cloud-clients/google-cloud-core/pom.xml index 6a299c081758..3415d5dc2dcb 100644 --- a/google-cloud-clients/google-cloud-core/pom.xml +++ b/google-cloud-clients/google-cloud-core/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-core - 1.44.0 + 1.44.1-SNAPSHOT jar Google Cloud Core https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-core @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT google-cloud-core diff --git a/google-cloud-clients/google-cloud-dataproc/pom.xml b/google-cloud-clients/google-cloud-dataproc/pom.xml index 9c36e24bc559..cd74557826c5 100644 --- a/google-cloud-clients/google-cloud-dataproc/pom.xml +++ b/google-cloud-clients/google-cloud-dataproc/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-dataproc - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT jar Google Cloud Dataproc https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-dataproc @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT google-cloud-dataproc diff --git a/google-cloud-clients/google-cloud-datastore/pom.xml b/google-cloud-clients/google-cloud-datastore/pom.xml index b8f0a7c3e8db..5dad8bbea5ba 100644 --- a/google-cloud-clients/google-cloud-datastore/pom.xml +++ b/google-cloud-clients/google-cloud-datastore/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-datastore - 1.44.0 + 1.44.1-SNAPSHOT jar Google Cloud Datastore https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-datastore @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT google-cloud-datastore diff --git a/google-cloud-clients/google-cloud-dialogflow/pom.xml b/google-cloud-clients/google-cloud-dialogflow/pom.xml index 978638bd9bf6..64649598b722 100644 --- a/google-cloud-clients/google-cloud-dialogflow/pom.xml +++ b/google-cloud-clients/google-cloud-dialogflow/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-dialogflow - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT jar Google Cloud Dialog Flow API https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-dialogflow @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT google-cloud-dialogflow diff --git a/google-cloud-clients/google-cloud-dlp/pom.xml b/google-cloud-clients/google-cloud-dlp/pom.xml index b15afab81a00..f87d29953591 100644 --- a/google-cloud-clients/google-cloud-dlp/pom.xml +++ b/google-cloud-clients/google-cloud-dlp/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-dlp - 0.62.0-beta + 0.62.1-beta-SNAPSHOT jar Google Cloud Data Loss Prevention API https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-dlp @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT google-cloud-dlp diff --git a/google-cloud-clients/google-cloud-dns/pom.xml b/google-cloud-clients/google-cloud-dns/pom.xml index 9e3c14fb789e..e178be2a74b4 100644 --- a/google-cloud-clients/google-cloud-dns/pom.xml +++ b/google-cloud-clients/google-cloud-dns/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-dns - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT jar Google Cloud DNS https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-dns @@ -14,7 +14,7 @@ com.google.cloud google-cloud-clients - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT google-cloud-dns diff --git a/google-cloud-clients/google-cloud-errorreporting/pom.xml b/google-cloud-clients/google-cloud-errorreporting/pom.xml index 2da915e5abfb..c2e28df08654 100644 --- a/google-cloud-clients/google-cloud-errorreporting/pom.xml +++ b/google-cloud-clients/google-cloud-errorreporting/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-errorreporting - 0.62.0-beta + 0.62.1-beta-SNAPSHOT jar Google Cloud Error Reporting https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-errorreporting @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT google-cloud-errorreporting diff --git a/google-cloud-clients/google-cloud-firestore/pom.xml b/google-cloud-clients/google-cloud-firestore/pom.xml index c7bc65f7549c..d378c85d0d58 100644 --- a/google-cloud-clients/google-cloud-firestore/pom.xml +++ b/google-cloud-clients/google-cloud-firestore/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-firestore - 0.62.0-beta + 0.62.1-beta-SNAPSHOT jar Google Cloud Firestore https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-firestore @@ -15,7 +15,7 @@ com.google.cloud google-cloud-clients - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT google-cloud-firestore diff --git a/google-cloud-clients/google-cloud-iot/pom.xml b/google-cloud-clients/google-cloud-iot/pom.xml index ab36419fdb94..571103da5bbd 100644 --- a/google-cloud-clients/google-cloud-iot/pom.xml +++ b/google-cloud-clients/google-cloud-iot/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-iot - 0.62.0-beta + 0.62.1-beta-SNAPSHOT jar Google Cloud IoT https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-iot @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT google-cloud-iot diff --git a/google-cloud-clients/google-cloud-kms/pom.xml b/google-cloud-clients/google-cloud-kms/pom.xml index ae956e72be3d..d538d4f1950a 100644 --- a/google-cloud-clients/google-cloud-kms/pom.xml +++ b/google-cloud-clients/google-cloud-kms/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-kms - 0.62.0-beta + 0.62.1-beta-SNAPSHOT jar Google Cloud KMS https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-kms @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT google-cloud-kms-v1 diff --git a/google-cloud-clients/google-cloud-language/pom.xml b/google-cloud-clients/google-cloud-language/pom.xml index f9eb061e5484..5ad9bd1ddf13 100644 --- a/google-cloud-clients/google-cloud-language/pom.xml +++ b/google-cloud-clients/google-cloud-language/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-language - 1.44.0 + 1.44.1-SNAPSHOT jar Google Cloud Natural Language https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-language @@ -15,7 +15,7 @@ com.google.cloud google-cloud-clients - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT google-cloud-language diff --git a/google-cloud-clients/google-cloud-logging/pom.xml b/google-cloud-clients/google-cloud-logging/pom.xml index f4383cd27b77..0b70795cba6d 100644 --- a/google-cloud-clients/google-cloud-logging/pom.xml +++ b/google-cloud-clients/google-cloud-logging/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-logging - 1.44.0 + 1.44.1-SNAPSHOT jar Google Cloud Logging https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-logging @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT google-cloud-logging diff --git a/google-cloud-clients/google-cloud-monitoring/pom.xml b/google-cloud-clients/google-cloud-monitoring/pom.xml index 60b86918831d..004306e00ca2 100644 --- a/google-cloud-clients/google-cloud-monitoring/pom.xml +++ b/google-cloud-clients/google-cloud-monitoring/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-monitoring - 1.44.0 + 1.44.1-SNAPSHOT jar Google Cloud Monitoring https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-monitoring @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT google-cloud-monitoring diff --git a/google-cloud-clients/google-cloud-notification/pom.xml b/google-cloud-clients/google-cloud-notification/pom.xml index 2e5859dd3c4e..e43aaf296b97 100644 --- a/google-cloud-clients/google-cloud-notification/pom.xml +++ b/google-cloud-clients/google-cloud-notification/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-notification - 0.62.0-beta + 0.62.1-beta-SNAPSHOT jar Google Cloud Pub/Sub Notifications for GCS https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-notification @@ -15,7 +15,7 @@ com.google.cloud google-cloud-clients - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT google-cloud-notification diff --git a/google-cloud-clients/google-cloud-os-login/pom.xml b/google-cloud-clients/google-cloud-os-login/pom.xml index b22f4e496545..c11359aade1b 100644 --- a/google-cloud-clients/google-cloud-os-login/pom.xml +++ b/google-cloud-clients/google-cloud-os-login/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-os-login - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT jar Google Cloud OS Login https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-os-login @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT google-cloud-os-login diff --git a/google-cloud-clients/google-cloud-pubsub/pom.xml b/google-cloud-clients/google-cloud-pubsub/pom.xml index 5ec4c63bc568..482e031283b0 100644 --- a/google-cloud-clients/google-cloud-pubsub/pom.xml +++ b/google-cloud-clients/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.44.0 + 1.44.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/google-cloud-clients/google-cloud-redis/pom.xml b/google-cloud-clients/google-cloud-redis/pom.xml index 1c088bdd25e8..ee6d8af1aeac 100644 --- a/google-cloud-clients/google-cloud-redis/pom.xml +++ b/google-cloud-clients/google-cloud-redis/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-redis - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT jar Google Cloud Redis https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-redis @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT google-cloud-redis diff --git a/google-cloud-clients/google-cloud-resourcemanager/pom.xml b/google-cloud-clients/google-cloud-resourcemanager/pom.xml index cf95b474ed2c..5350962c0b9d 100644 --- a/google-cloud-clients/google-cloud-resourcemanager/pom.xml +++ b/google-cloud-clients/google-cloud-resourcemanager/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-resourcemanager - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT jar Google Cloud Resource Manager https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-resourcemanager @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT google-cloud-resourcemanager diff --git a/google-cloud-clients/google-cloud-spanner/pom.xml b/google-cloud-clients/google-cloud-spanner/pom.xml index 61c83fc3dec6..af1545a1dc13 100644 --- a/google-cloud-clients/google-cloud-spanner/pom.xml +++ b/google-cloud-clients/google-cloud-spanner/pom.xml @@ -4,7 +4,7 @@ http://maven.apache.org/maven-v4_0_0.xsd"> 4.0.0 google-cloud-spanner - 0.62.0-beta + 0.62.1-beta-SNAPSHOT jar Google Cloud Spanner https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-spanner @@ -14,7 +14,7 @@ com.google.cloud google-cloud-clients - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT google-cloud-spanner diff --git a/google-cloud-clients/google-cloud-speech/pom.xml b/google-cloud-clients/google-cloud-speech/pom.xml index ad4f1b51dd54..3d624efce50f 100644 --- a/google-cloud-clients/google-cloud-speech/pom.xml +++ b/google-cloud-clients/google-cloud-speech/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-speech - 0.62.0-beta + 0.62.1-beta-SNAPSHOT jar Google Cloud Speech https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-speech @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT google-cloud-speech diff --git a/google-cloud-clients/google-cloud-storage/pom.xml b/google-cloud-clients/google-cloud-storage/pom.xml index 70773b695f2a..75e0fa6f4cd5 100644 --- a/google-cloud-clients/google-cloud-storage/pom.xml +++ b/google-cloud-clients/google-cloud-storage/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-storage - 1.44.0 + 1.44.1-SNAPSHOT jar Google Cloud Storage https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-storage @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT google-cloud-storage diff --git a/google-cloud-clients/google-cloud-tasks/pom.xml b/google-cloud-clients/google-cloud-tasks/pom.xml index 2adadfece132..319bded1f37b 100644 --- a/google-cloud-clients/google-cloud-tasks/pom.xml +++ b/google-cloud-clients/google-cloud-tasks/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-tasks - 0.62.0-beta + 0.62.1-beta-SNAPSHOT jar Google Cloud Tasks https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-tasks @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT google-cloud-tasks-v2beta2 diff --git a/google-cloud-clients/google-cloud-texttospeech/pom.xml b/google-cloud-clients/google-cloud-texttospeech/pom.xml index d925714682b9..78890a89e004 100644 --- a/google-cloud-clients/google-cloud-texttospeech/pom.xml +++ b/google-cloud-clients/google-cloud-texttospeech/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-texttospeech - 0.62.0-beta + 0.62.1-beta-SNAPSHOT jar Google Cloud Text-to-Speech https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-texttospeech @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT google-cloud-texttospeech-v1beta1 diff --git a/google-cloud-clients/google-cloud-trace/pom.xml b/google-cloud-clients/google-cloud-trace/pom.xml index f6385f232c69..7b827ce5c08f 100644 --- a/google-cloud-clients/google-cloud-trace/pom.xml +++ b/google-cloud-clients/google-cloud-trace/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-trace - 0.62.0-beta + 0.62.1-beta-SNAPSHOT jar Google Cloud Trace https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-trace @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT google-cloud-trace diff --git a/google-cloud-clients/google-cloud-translate/pom.xml b/google-cloud-clients/google-cloud-translate/pom.xml index 27c2de535b20..e987269bf63b 100644 --- a/google-cloud-clients/google-cloud-translate/pom.xml +++ b/google-cloud-clients/google-cloud-translate/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-translate - 1.44.0 + 1.44.1-SNAPSHOT jar Google Cloud Translation https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-translate @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT google-cloud-translate diff --git a/google-cloud-clients/google-cloud-video-intelligence/pom.xml b/google-cloud-clients/google-cloud-video-intelligence/pom.xml index abf50c140cfb..b3985e21009d 100644 --- a/google-cloud-clients/google-cloud-video-intelligence/pom.xml +++ b/google-cloud-clients/google-cloud-video-intelligence/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-video-intelligence - 0.62.0-beta + 0.62.1-beta-SNAPSHOT jar Google Cloud Video Intelligence https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-video-intelligence @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT google-cloud-video-intelligence diff --git a/google-cloud-clients/google-cloud-vision/pom.xml b/google-cloud-clients/google-cloud-vision/pom.xml index e97c12f9b0e7..8a7f4b9c0392 100644 --- a/google-cloud-clients/google-cloud-vision/pom.xml +++ b/google-cloud-clients/google-cloud-vision/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-vision - 1.44.0 + 1.44.1-SNAPSHOT jar Google Cloud Vision https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-vision @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT google-cloud-vision diff --git a/google-cloud-clients/google-cloud-websecurityscanner/pom.xml b/google-cloud-clients/google-cloud-websecurityscanner/pom.xml index 59b11391bf9d..bb1e4c1c144f 100644 --- a/google-cloud-clients/google-cloud-websecurityscanner/pom.xml +++ b/google-cloud-clients/google-cloud-websecurityscanner/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-websecurityscanner - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT jar Google Cloud Web Security Scanner https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-websecurityscanner @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT google-cloud-websecurityscanner diff --git a/google-cloud-clients/pom.xml b/google-cloud-clients/pom.xml index 62ab23e1dc66..a2a9180e1109 100644 --- a/google-cloud-clients/pom.xml +++ b/google-cloud-clients/pom.xml @@ -6,7 +6,7 @@ com.google.cloud google-cloud-clients pom - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT Google Cloud https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients @@ -154,7 +154,7 @@ UTF-8 github google-cloud-clients - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT 1.24.1 1.31.0 0.11.0 diff --git a/google-cloud-examples/pom.xml b/google-cloud-examples/pom.xml index de4c447350ab..0e4935e44b25 100644 --- a/google-cloud-examples/pom.xml +++ b/google-cloud-examples/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-examples - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT jar Google Cloud Examples https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-examples @@ -18,7 +18,7 @@ com.google.cloud google-cloud-bom - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT pom import diff --git a/google-cloud-testing/google-cloud-appengineflexcompat/pom.xml b/google-cloud-testing/google-cloud-appengineflexcompat/pom.xml index 89b1cf73b422..e08e8be88c18 100644 --- a/google-cloud-testing/google-cloud-appengineflexcompat/pom.xml +++ b/google-cloud-testing/google-cloud-appengineflexcompat/pom.xml @@ -4,13 +4,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-appengineflexcompat - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT war google-cloud-testing com.google.cloud - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT diff --git a/google-cloud-testing/google-cloud-appengineflexcustom/pom.xml b/google-cloud-testing/google-cloud-appengineflexcustom/pom.xml index 1ee0a90b9367..cc3e36ea9861 100644 --- a/google-cloud-testing/google-cloud-appengineflexcustom/pom.xml +++ b/google-cloud-testing/google-cloud-appengineflexcustom/pom.xml @@ -4,13 +4,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-appengineflexcustom - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT war google-cloud-testing com.google.cloud - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT diff --git a/google-cloud-testing/google-cloud-appengineflexjava/pom.xml b/google-cloud-testing/google-cloud-appengineflexjava/pom.xml index 15372359fb8f..9ab4b65cc8e0 100644 --- a/google-cloud-testing/google-cloud-appengineflexjava/pom.xml +++ b/google-cloud-testing/google-cloud-appengineflexjava/pom.xml @@ -4,13 +4,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-appengineflexjava - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT war google-cloud-testing com.google.cloud - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT diff --git a/google-cloud-testing/google-cloud-appenginejava8/pom.xml b/google-cloud-testing/google-cloud-appenginejava8/pom.xml index 191a226b4f24..4ba025c5e348 100644 --- a/google-cloud-testing/google-cloud-appenginejava8/pom.xml +++ b/google-cloud-testing/google-cloud-appenginejava8/pom.xml @@ -4,13 +4,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-appenginejava8 - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT war google-cloud-testing com.google.cloud - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT diff --git a/google-cloud-testing/google-cloud-managedtest/pom.xml b/google-cloud-testing/google-cloud-managedtest/pom.xml index e766f3159a65..3a30a0c47b6b 100644 --- a/google-cloud-testing/google-cloud-managedtest/pom.xml +++ b/google-cloud-testing/google-cloud-managedtest/pom.xml @@ -4,13 +4,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-managedtest - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT jar google-cloud-testing com.google.cloud - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT diff --git a/google-cloud-testing/pom.xml b/google-cloud-testing/pom.xml index 7657d3d2a8f7..9fffa0fde3a3 100644 --- a/google-cloud-testing/pom.xml +++ b/google-cloud-testing/pom.xml @@ -5,7 +5,7 @@ 4.0.0 com.google.cloud google-cloud-testing - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT pom Google Cloud Testing @@ -30,7 +30,7 @@ com.google.cloud google-cloud-bom - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT pom import diff --git a/google-cloud-util/google-cloud-compat-checker/pom.xml b/google-cloud-util/google-cloud-compat-checker/pom.xml index d5068a3ae2b8..5536cc0f2981 100644 --- a/google-cloud-util/google-cloud-compat-checker/pom.xml +++ b/google-cloud-util/google-cloud-compat-checker/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-compat-checker - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT jar Google Cloud Java Compatibility Checker https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-util/google-cloud-compat-checker @@ -12,7 +12,7 @@ com.google.cloud google-cloud-util - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT google-cloud-compat-checker diff --git a/google-cloud-util/pom.xml b/google-cloud-util/pom.xml index 66541e3ebef3..7dcecfdf14a7 100644 --- a/google-cloud-util/pom.xml +++ b/google-cloud-util/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-util - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT pom Google Cloud Util https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-util diff --git a/versions.txt b/versions.txt index b6e46be1c56d..9e611bcf0ede 100644 --- a/versions.txt +++ b/versions.txt @@ -5,161 +5,161 @@ # google-api-grpc versions # # parent -google-api-grpc:0.27.0:0.27.0 +google-api-grpc:0.27.0:0.27.1-SNAPSHOT # children #grpc-google-cloud-datastore-v1 -grpc-google-cloud-asset-v1beta1:0.27.0:0.27.0 -grpc-google-cloud-automl-v1beta1:0.27.0:0.27.0 -grpc-google-cloud-bigquerydatatransfer-v1:0.27.0:0.27.0 -grpc-google-cloud-bigtable-admin-v2:0.27.0:0.27.0 -grpc-google-cloud-bigtable-v2:0.27.0:0.27.0 -grpc-google-cloud-container-v1:0.27.0:0.27.0 -grpc-google-cloud-containeranalysis-v1beta1:0.27.0:0.27.0 -grpc-google-cloud-dataproc-v1:0.27.0:0.27.0 -grpc-google-cloud-dataproc-v1beta2:0.27.0:0.27.0 -grpc-google-cloud-dialogflow-v2:0.27.0:0.27.0 -grpc-google-cloud-dialogflow-v2beta1:0.27.0:0.27.0 -grpc-google-cloud-dlp-v2:0.27.0:0.27.0 -grpc-google-cloud-error-reporting-v1beta1:0.27.0:0.27.0 -grpc-google-cloud-firestore-v1beta1:0.27.0:0.27.0 -grpc-google-cloud-iot-v1:0.27.0:0.27.0 -grpc-google-cloud-kms-v1:0.27.0:0.27.0 -grpc-google-cloud-language-v1:1.26.0:1.26.0 -grpc-google-cloud-language-v1beta2:0.27.0:0.27.0 -grpc-google-cloud-logging-v2:0.27.0:0.27.0 -grpc-google-cloud-monitoring-v3:1.26.0:1.26.0 -grpc-google-cloud-os-login-v1:0.27.0:0.27.0 -grpc-google-cloud-pubsub-v1:1.26.0:1.26.0 -grpc-google-cloud-redis-v1:0.27.0:0.27.0 -grpc-google-cloud-redis-v1beta1:0.27.0:0.27.0 -grpc-google-cloud-spanner-admin-database-v1:0.27.0:0.27.0 -grpc-google-cloud-spanner-admin-instance-v1:0.27.0:0.27.0 -grpc-google-cloud-spanner-v1:0.27.0:0.27.0 -grpc-google-cloud-speech-v1:0.27.0:0.27.0 -grpc-google-cloud-speech-v1beta1:0.27.0:0.27.0 -grpc-google-cloud-speech-v1p1beta1:0.27.0:0.27.0 -grpc-google-cloud-tasks-v2beta2:0.27.0:0.27.0 -grpc-google-cloud-tasks-v2beta3:0.27.0:0.27.0 -grpc-google-cloud-texttospeech-v1:0.27.0:0.27.0 -grpc-google-cloud-texttospeech-v1beta1:0.27.0:0.27.0 -grpc-google-cloud-trace-v1:0.27.0:0.27.0 -grpc-google-cloud-trace-v2:0.27.0:0.27.0 -grpc-google-cloud-video-intelligence-v1:0.27.0:0.27.0 -grpc-google-cloud-video-intelligence-v1beta1:0.27.0:0.27.0 -grpc-google-cloud-video-intelligence-v1beta2:0.27.0:0.27.0 -grpc-google-cloud-video-intelligence-v1p1beta1:0.27.0:0.27.0 -grpc-google-cloud-video-intelligence-v1p2beta1:0.27.0:0.27.0 -grpc-google-cloud-vision-v1:1.26.0:1.26.0 -grpc-google-cloud-vision-v1p1beta1:0.27.0:0.27.0 -grpc-google-cloud-vision-v1p2beta1:1.26.0:1.26.0 -grpc-google-cloud-vision-v1p3beta1:0.27.0:0.27.0 -grpc-google-cloud-websecurityscanner-v1alpha:0.27.0:0.27.0 +grpc-google-cloud-asset-v1beta1:0.27.0:0.27.1-SNAPSHOT +grpc-google-cloud-automl-v1beta1:0.27.0:0.27.1-SNAPSHOT +grpc-google-cloud-bigquerydatatransfer-v1:0.27.0:0.27.1-SNAPSHOT +grpc-google-cloud-bigtable-admin-v2:0.27.0:0.27.1-SNAPSHOT +grpc-google-cloud-bigtable-v2:0.27.0:0.27.1-SNAPSHOT +grpc-google-cloud-container-v1:0.27.0:0.27.1-SNAPSHOT +grpc-google-cloud-containeranalysis-v1beta1:0.27.0:0.27.1-SNAPSHOT +grpc-google-cloud-dataproc-v1:0.27.0:0.27.1-SNAPSHOT +grpc-google-cloud-dataproc-v1beta2:0.27.0:0.27.1-SNAPSHOT +grpc-google-cloud-dialogflow-v2:0.27.0:0.27.1-SNAPSHOT +grpc-google-cloud-dialogflow-v2beta1:0.27.0:0.27.1-SNAPSHOT +grpc-google-cloud-dlp-v2:0.27.0:0.27.1-SNAPSHOT +grpc-google-cloud-error-reporting-v1beta1:0.27.0:0.27.1-SNAPSHOT +grpc-google-cloud-firestore-v1beta1:0.27.0:0.27.1-SNAPSHOT +grpc-google-cloud-iot-v1:0.27.0:0.27.1-SNAPSHOT +grpc-google-cloud-kms-v1:0.27.0:0.27.1-SNAPSHOT +grpc-google-cloud-language-v1:1.26.0:1.26.1-SNAPSHOT +grpc-google-cloud-language-v1beta2:0.27.0:0.27.1-SNAPSHOT +grpc-google-cloud-logging-v2:0.27.0:0.27.1-SNAPSHOT +grpc-google-cloud-monitoring-v3:1.26.0:1.26.1-SNAPSHOT +grpc-google-cloud-os-login-v1:0.27.0:0.27.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.26.0:1.26.1-SNAPSHOT +grpc-google-cloud-redis-v1:0.27.0:0.27.1-SNAPSHOT +grpc-google-cloud-redis-v1beta1:0.27.0:0.27.1-SNAPSHOT +grpc-google-cloud-spanner-admin-database-v1:0.27.0:0.27.1-SNAPSHOT +grpc-google-cloud-spanner-admin-instance-v1:0.27.0:0.27.1-SNAPSHOT +grpc-google-cloud-spanner-v1:0.27.0:0.27.1-SNAPSHOT +grpc-google-cloud-speech-v1:0.27.0:0.27.1-SNAPSHOT +grpc-google-cloud-speech-v1beta1:0.27.0:0.27.1-SNAPSHOT +grpc-google-cloud-speech-v1p1beta1:0.27.0:0.27.1-SNAPSHOT +grpc-google-cloud-tasks-v2beta2:0.27.0:0.27.1-SNAPSHOT +grpc-google-cloud-tasks-v2beta3:0.27.0:0.27.1-SNAPSHOT +grpc-google-cloud-texttospeech-v1:0.27.0:0.27.1-SNAPSHOT +grpc-google-cloud-texttospeech-v1beta1:0.27.0:0.27.1-SNAPSHOT +grpc-google-cloud-trace-v1:0.27.0:0.27.1-SNAPSHOT +grpc-google-cloud-trace-v2:0.27.0:0.27.1-SNAPSHOT +grpc-google-cloud-video-intelligence-v1:0.27.0:0.27.1-SNAPSHOT +grpc-google-cloud-video-intelligence-v1beta1:0.27.0:0.27.1-SNAPSHOT +grpc-google-cloud-video-intelligence-v1beta2:0.27.0:0.27.1-SNAPSHOT +grpc-google-cloud-video-intelligence-v1p1beta1:0.27.0:0.27.1-SNAPSHOT +grpc-google-cloud-video-intelligence-v1p2beta1:0.27.0:0.27.1-SNAPSHOT +grpc-google-cloud-vision-v1:1.26.0:1.26.1-SNAPSHOT +grpc-google-cloud-vision-v1p1beta1:0.27.0:0.27.1-SNAPSHOT +grpc-google-cloud-vision-v1p2beta1:1.26.0:1.26.1-SNAPSHOT +grpc-google-cloud-vision-v1p3beta1:0.27.0:0.27.1-SNAPSHOT +grpc-google-cloud-websecurityscanner-v1alpha:0.27.0:0.27.1-SNAPSHOT -proto-google-cloud-asset-v1beta1:0.27.0:0.27.0 -proto-google-cloud-automl-v1beta1:0.27.0:0.27.0 -proto-google-cloud-bigquerydatatransfer-v1:0.27.0:0.27.0 -proto-google-cloud-bigtable-admin-v2:0.27.0:0.27.0 -proto-google-cloud-bigtable-v2:0.27.0:0.27.0 -proto-google-cloud-container-v1:0.27.0:0.27.0 -proto-google-cloud-containeranalysis-v1beta1:0.27.0:0.27.0 -proto-google-cloud-dataproc-v1:0.27.0:0.27.0 -proto-google-cloud-dataproc-v1beta2:0.27.0:0.27.0 -proto-google-cloud-datastore-v1:0.27.0:0.27.0 -proto-google-cloud-dialogflow-v2:0.27.0:0.27.0 -proto-google-cloud-dialogflow-v2beta1:0.27.0:0.27.0 -proto-google-cloud-dlp-v2:0.27.0:0.27.0 -proto-google-cloud-error-reporting-v1beta1:0.27.0:0.27.0 -proto-google-cloud-firestore-v1beta1:0.27.0:0.27.0 -proto-google-cloud-iot-v1:0.27.0:0.27.0 -proto-google-cloud-kms-v1:0.27.0:0.27.0 -proto-google-cloud-language-v1:1.26.0:1.26.0 -proto-google-cloud-language-v1beta2:0.27.0:0.27.0 -proto-google-cloud-logging-v2:0.27.0:0.27.0 -proto-google-cloud-monitoring-v3:1.26.0:1.26.0 -proto-google-cloud-os-login-v1:0.27.0:0.27.0 -proto-google-cloud-pubsub-v1:1.26.0:1.26.0 -proto-google-cloud-redis-v1:0.27.0:0.27.0 -proto-google-cloud-redis-v1beta1:0.27.0:0.27.0 -proto-google-cloud-spanner-admin-database-v1:0.27.0:0.27.0 -proto-google-cloud-spanner-admin-instance-v1:0.27.0:0.27.0 -proto-google-cloud-spanner-v1:0.27.0:0.27.0 -proto-google-cloud-speech-v1:0.27.0:0.27.0 -proto-google-cloud-speech-v1beta1:0.27.0:0.27.0 -proto-google-cloud-speech-v1p1beta1:0.27.0:0.27.0 -proto-google-cloud-tasks-v2beta2:0.27.0:0.27.0 -proto-google-cloud-tasks-v2beta3:0.27.0:0.27.0 -proto-google-cloud-texttospeech-v1:0.27.0:0.27.0 -proto-google-cloud-texttospeech-v1beta1:0.27.0:0.27.0 -proto-google-cloud-trace-v1:0.27.0:0.27.0 -proto-google-cloud-trace-v2:0.27.0:0.27.0 -proto-google-cloud-video-intelligence-v1:0.27.0:0.27.0 -proto-google-cloud-video-intelligence-v1beta1:0.27.0:0.27.0 -proto-google-cloud-video-intelligence-v1beta2:0.27.0:0.27.0 -proto-google-cloud-video-intelligence-v1p1beta1:0.27.0:0.27.0 -proto-google-cloud-video-intelligence-v1p2beta1:0.27.0:0.27.0 -proto-google-cloud-vision-v1:1.26.0:1.26.0 -proto-google-cloud-vision-v1p1beta1:0.27.0:0.27.0 -proto-google-cloud-vision-v1p2beta1:1.26.0:1.26.0 -proto-google-cloud-vision-v1p3beta1:0.27.0:0.27.0 -proto-google-cloud-websecurityscanner-v1alpha:0.27.0:0.27.0 +proto-google-cloud-asset-v1beta1:0.27.0:0.27.1-SNAPSHOT +proto-google-cloud-automl-v1beta1:0.27.0:0.27.1-SNAPSHOT +proto-google-cloud-bigquerydatatransfer-v1:0.27.0:0.27.1-SNAPSHOT +proto-google-cloud-bigtable-admin-v2:0.27.0:0.27.1-SNAPSHOT +proto-google-cloud-bigtable-v2:0.27.0:0.27.1-SNAPSHOT +proto-google-cloud-container-v1:0.27.0:0.27.1-SNAPSHOT +proto-google-cloud-containeranalysis-v1beta1:0.27.0:0.27.1-SNAPSHOT +proto-google-cloud-dataproc-v1:0.27.0:0.27.1-SNAPSHOT +proto-google-cloud-dataproc-v1beta2:0.27.0:0.27.1-SNAPSHOT +proto-google-cloud-datastore-v1:0.27.0:0.27.1-SNAPSHOT +proto-google-cloud-dialogflow-v2:0.27.0:0.27.1-SNAPSHOT +proto-google-cloud-dialogflow-v2beta1:0.27.0:0.27.1-SNAPSHOT +proto-google-cloud-dlp-v2:0.27.0:0.27.1-SNAPSHOT +proto-google-cloud-error-reporting-v1beta1:0.27.0:0.27.1-SNAPSHOT +proto-google-cloud-firestore-v1beta1:0.27.0:0.27.1-SNAPSHOT +proto-google-cloud-iot-v1:0.27.0:0.27.1-SNAPSHOT +proto-google-cloud-kms-v1:0.27.0:0.27.1-SNAPSHOT +proto-google-cloud-language-v1:1.26.0:1.26.1-SNAPSHOT +proto-google-cloud-language-v1beta2:0.27.0:0.27.1-SNAPSHOT +proto-google-cloud-logging-v2:0.27.0:0.27.1-SNAPSHOT +proto-google-cloud-monitoring-v3:1.26.0:1.26.1-SNAPSHOT +proto-google-cloud-os-login-v1:0.27.0:0.27.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.26.0:1.26.1-SNAPSHOT +proto-google-cloud-redis-v1:0.27.0:0.27.1-SNAPSHOT +proto-google-cloud-redis-v1beta1:0.27.0:0.27.1-SNAPSHOT +proto-google-cloud-spanner-admin-database-v1:0.27.0:0.27.1-SNAPSHOT +proto-google-cloud-spanner-admin-instance-v1:0.27.0:0.27.1-SNAPSHOT +proto-google-cloud-spanner-v1:0.27.0:0.27.1-SNAPSHOT +proto-google-cloud-speech-v1:0.27.0:0.27.1-SNAPSHOT +proto-google-cloud-speech-v1beta1:0.27.0:0.27.1-SNAPSHOT +proto-google-cloud-speech-v1p1beta1:0.27.0:0.27.1-SNAPSHOT +proto-google-cloud-tasks-v2beta2:0.27.0:0.27.1-SNAPSHOT +proto-google-cloud-tasks-v2beta3:0.27.0:0.27.1-SNAPSHOT +proto-google-cloud-texttospeech-v1:0.27.0:0.27.1-SNAPSHOT +proto-google-cloud-texttospeech-v1beta1:0.27.0:0.27.1-SNAPSHOT +proto-google-cloud-trace-v1:0.27.0:0.27.1-SNAPSHOT +proto-google-cloud-trace-v2:0.27.0:0.27.1-SNAPSHOT +proto-google-cloud-video-intelligence-v1:0.27.0:0.27.1-SNAPSHOT +proto-google-cloud-video-intelligence-v1beta1:0.27.0:0.27.1-SNAPSHOT +proto-google-cloud-video-intelligence-v1beta2:0.27.0:0.27.1-SNAPSHOT +proto-google-cloud-video-intelligence-v1p1beta1:0.27.0:0.27.1-SNAPSHOT +proto-google-cloud-video-intelligence-v1p2beta1:0.27.0:0.27.1-SNAPSHOT +proto-google-cloud-vision-v1:1.26.0:1.26.1-SNAPSHOT +proto-google-cloud-vision-v1p1beta1:0.27.0:0.27.1-SNAPSHOT +proto-google-cloud-vision-v1p2beta1:1.26.0:1.26.1-SNAPSHOT +proto-google-cloud-vision-v1p3beta1:0.27.0:0.27.1-SNAPSHOT +proto-google-cloud-websecurityscanner-v1alpha:0.27.0:0.27.1-SNAPSHOT # # google-cloud-clients versions # # parent -google-cloud-clients:0.62.0-alpha:0.62.0-alpha +google-cloud-clients:0.62.0-alpha:0.62.1-alpha-SNAPSHOT # children -google-cloud-appengineflexcompat:0.62.0-alpha:0.62.0-alpha -google-cloud-appengineflexcustom:0.62.0-alpha:0.62.0-alpha -google-cloud-appengineflexjava:0.62.0-alpha:0.62.0-alpha -google-cloud-appenginejava8:0.62.0-alpha:0.62.0-alpha -google-cloud:0.62.0-alpha:0.62.0-alpha -google-cloud-asset:0.62.0-beta:0.62.0-beta -google-cloud-automl:0.62.0-beta:0.62.0-beta -google-cloud-bigquery:1.44.0:1.44.0 -google-cloud-bigquerydatatransfer:0.62.0-beta:0.62.0-beta -google-cloud-bigtable:0.62.0-alpha:0.62.0-alpha -google-cloud-bigtable-admin:0.62.0-alpha:0.62.0-alpha -google-cloud-bom:0.62.0-alpha:0.62.0-alpha -google-cloud-compat-checker:0.62.0-alpha:0.62.0-alpha -google-cloud-compute:0.62.0-alpha:0.62.0-alpha -google-cloud-container:0.62.0-beta:0.62.0-beta -google-cloud-containeranalysis:0.62.0-beta:0.62.0-beta -google-cloud-contrib:0.62.0-alpha:0.62.0-alpha -google-cloud-core:1.44.0:1.44.0 -google-cloud-core-grpc:1.44.0:1.44.0 -google-cloud-core-http:1.44.0:1.44.0 -google-cloud-dataproc:0.62.0-alpha:0.62.0-alpha -google-cloud-datastore:1.44.0:1.44.0 -google-cloud-dialogflow:0.62.0-alpha:0.62.0-alpha -google-cloud-dlp:0.62.0-beta:0.62.0-beta -google-cloud-dns:0.62.0-alpha:0.62.0-alpha -google-cloud-errorreporting:0.62.0-beta:0.62.0-beta -google-cloud-examples:0.62.0-alpha:0.62.0-alpha -google-cloud-firestore:0.62.0-beta:0.62.0-beta -google-cloud-iot:0.62.0-beta:0.62.0-beta -google-cloud-kms:0.62.0-beta:0.62.0-beta -google-cloud-language:1.44.0:1.44.0 -google-cloud-logging:1.44.0:1.44.0 -google-cloud-logging-logback:0.62.0-alpha:0.62.0-alpha -google-cloud-managedtest:0.62.0-alpha:0.62.0-alpha -google-cloud-monitoring:1.44.0:1.44.0 -google-cloud-nio:0.62.0-alpha:0.62.0-alpha -google-cloud-nio-examples:0.62.0-alpha:0.62.0-alpha -google-cloud-notification:0.62.0-beta:0.62.0-beta -google-cloud-os-login:0.62.0-alpha:0.62.0-alpha -google-cloud-pubsub:1.44.0:1.44.0 -google-cloud-redis:0.62.0-alpha:0.62.0-alpha -google-cloud-resourcemanager:0.62.0-alpha:0.62.0-alpha -google-cloud-spanner:0.62.0-beta:0.62.0-beta -google-cloud-speech:0.62.0-beta:0.62.0-beta -google-cloud-storage:1.44.0:1.44.0 -google-cloud-tasks:0.62.0-beta:0.62.0-beta -google-cloud-texttospeech:0.62.0-beta:0.62.0-beta -google-cloud-testing:0.62.0-alpha:0.62.0-alpha -google-cloud-trace:0.62.0-beta:0.62.0-beta -google-cloud-translate:1.44.0:1.44.0 -google-cloud-util:0.62.0-alpha:0.62.0-alpha -google-cloud-video-intelligence:0.62.0-beta:0.62.0-beta -google-cloud-vision:1.44.0:1.44.0 -google-cloud-websecurityscanner:0.62.0-alpha:0.62.0-alpha +google-cloud-appengineflexcompat:0.62.0-alpha:0.62.1-alpha-SNAPSHOT +google-cloud-appengineflexcustom:0.62.0-alpha:0.62.1-alpha-SNAPSHOT +google-cloud-appengineflexjava:0.62.0-alpha:0.62.1-alpha-SNAPSHOT +google-cloud-appenginejava8:0.62.0-alpha:0.62.1-alpha-SNAPSHOT +google-cloud:0.62.0-alpha:0.62.1-alpha-SNAPSHOT +google-cloud-asset:0.62.0-beta:0.62.1-beta-SNAPSHOT +google-cloud-automl:0.62.0-beta:0.62.1-beta-SNAPSHOT +google-cloud-bigquery:1.44.0:1.44.1-SNAPSHOT +google-cloud-bigquerydatatransfer:0.62.0-beta:0.62.1-beta-SNAPSHOT +google-cloud-bigtable:0.62.0-alpha:0.62.1-alpha-SNAPSHOT +google-cloud-bigtable-admin:0.62.0-alpha:0.62.1-alpha-SNAPSHOT +google-cloud-bom:0.62.0-alpha:0.62.1-alpha-SNAPSHOT +google-cloud-compat-checker:0.62.0-alpha:0.62.1-alpha-SNAPSHOT +google-cloud-compute:0.62.0-alpha:0.62.1-alpha-SNAPSHOT +google-cloud-container:0.62.0-beta:0.62.1-beta-SNAPSHOT +google-cloud-containeranalysis:0.62.0-beta:0.62.1-beta-SNAPSHOT +google-cloud-contrib:0.62.0-alpha:0.62.1-alpha-SNAPSHOT +google-cloud-core:1.44.0:1.44.1-SNAPSHOT +google-cloud-core-grpc:1.44.0:1.44.1-SNAPSHOT +google-cloud-core-http:1.44.0:1.44.1-SNAPSHOT +google-cloud-dataproc:0.62.0-alpha:0.62.1-alpha-SNAPSHOT +google-cloud-datastore:1.44.0:1.44.1-SNAPSHOT +google-cloud-dialogflow:0.62.0-alpha:0.62.1-alpha-SNAPSHOT +google-cloud-dlp:0.62.0-beta:0.62.1-beta-SNAPSHOT +google-cloud-dns:0.62.0-alpha:0.62.1-alpha-SNAPSHOT +google-cloud-errorreporting:0.62.0-beta:0.62.1-beta-SNAPSHOT +google-cloud-examples:0.62.0-alpha:0.62.1-alpha-SNAPSHOT +google-cloud-firestore:0.62.0-beta:0.62.1-beta-SNAPSHOT +google-cloud-iot:0.62.0-beta:0.62.1-beta-SNAPSHOT +google-cloud-kms:0.62.0-beta:0.62.1-beta-SNAPSHOT +google-cloud-language:1.44.0:1.44.1-SNAPSHOT +google-cloud-logging:1.44.0:1.44.1-SNAPSHOT +google-cloud-logging-logback:0.62.0-alpha:0.62.1-alpha-SNAPSHOT +google-cloud-managedtest:0.62.0-alpha:0.62.1-alpha-SNAPSHOT +google-cloud-monitoring:1.44.0:1.44.1-SNAPSHOT +google-cloud-nio:0.62.0-alpha:0.62.1-alpha-SNAPSHOT +google-cloud-nio-examples:0.62.0-alpha:0.62.1-alpha-SNAPSHOT +google-cloud-notification:0.62.0-beta:0.62.1-beta-SNAPSHOT +google-cloud-os-login:0.62.0-alpha:0.62.1-alpha-SNAPSHOT +google-cloud-pubsub:1.44.0:1.44.1-SNAPSHOT +google-cloud-redis:0.62.0-alpha:0.62.1-alpha-SNAPSHOT +google-cloud-resourcemanager:0.62.0-alpha:0.62.1-alpha-SNAPSHOT +google-cloud-spanner:0.62.0-beta:0.62.1-beta-SNAPSHOT +google-cloud-speech:0.62.0-beta:0.62.1-beta-SNAPSHOT +google-cloud-storage:1.44.0:1.44.1-SNAPSHOT +google-cloud-tasks:0.62.0-beta:0.62.1-beta-SNAPSHOT +google-cloud-texttospeech:0.62.0-beta:0.62.1-beta-SNAPSHOT +google-cloud-testing:0.62.0-alpha:0.62.1-alpha-SNAPSHOT +google-cloud-trace:0.62.0-beta:0.62.1-beta-SNAPSHOT +google-cloud-translate:1.44.0:1.44.1-SNAPSHOT +google-cloud-util:0.62.0-alpha:0.62.1-alpha-SNAPSHOT +google-cloud-video-intelligence:0.62.0-beta:0.62.1-beta-SNAPSHOT +google-cloud-vision:1.44.0:1.44.1-SNAPSHOT +google-cloud-websecurityscanner:0.62.0-alpha:0.62.1-alpha-SNAPSHOT From 1d7b95f9f2b55f273542c0ce3a44dfe23c9f11b0 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Thu, 13 Sep 2018 11:01:07 -0700 Subject: [PATCH 10/21] Add Kokoro CI config (#3664) * Add presubmit test configs Add windows test config and add credentials for integration tests Invert the env var check Use fastconfigpush for faster keystore propagation Fix missing ;; in build script Allow LoggingAppender default options test to pass locally and on GCE Temporarily comment out the resource test Also grab surefire reports Fix java8-win bat path credentials path debug Set GCLOUD_PROJECT environment variable Add Java 11 test config try uploading surefire results as sponge_log.xml Fix BigTable IT args Temporarily test Java 11 Upload integration test output as sponge_log.xml too Revert "Temporarily comment out the resource test" This reverts commit f01bdbd447d6bc79eb282343cbbb0c7413659363. Revert "Allow LoggingAppender default options test to pass locally and on GCE" This reverts commit 90e28af65c2060f2591e1a42d963fca96729d685. * Temporarily comment out the LoggingAppender default resource test. The default depends on the execution environment (GCE vs. locally) and Kokoro tests run on GCE. * Clean up debug output * Add continuous build configs * Fix the java10 build images to use Java 10, not 11 --- .kokoro/build.bat | 3 ++ .kokoro/build.sh | 43 +++++++++++++++++ .kokoro/common.cfg | 13 ++++++ .kokoro/continuous/bigquery-it.cfg | 27 +++++++++++ .kokoro/continuous/bigtable-it.cfg | 27 +++++++++++ .kokoro/continuous/bigtableadmin-it.cfg | 27 +++++++++++ .kokoro/continuous/common.cfg | 46 +++++++++++++++++++ .kokoro/continuous/compute-it.cfg | 27 +++++++++++ .kokoro/continuous/datastore-it.cfg | 27 +++++++++++ .kokoro/continuous/dns-it.cfg | 27 +++++++++++ .kokoro/continuous/firestore-it.cfg | 27 +++++++++++ .kokoro/continuous/java10.cfg | 7 +++ .kokoro/continuous/java11.cfg | 7 +++ .kokoro/continuous/java7.cfg | 7 +++ .kokoro/continuous/java8-win.cfg | 3 ++ .kokoro/continuous/java8.cfg | 7 +++ .kokoro/continuous/javadoc.cfg | 12 +++++ .kokoro/continuous/logging-it.cfg | 27 +++++++++++ .kokoro/continuous/notification-it.cfg | 27 +++++++++++ .kokoro/continuous/pubsub-it.cfg | 27 +++++++++++ .kokoro/continuous/spanner-it.cfg | 27 +++++++++++ .kokoro/continuous/speech-it.cfg | 27 +++++++++++ .kokoro/continuous/storage-it.cfg | 27 +++++++++++ .kokoro/continuous/translate-it.cfg | 27 +++++++++++ .kokoro/presubmit/bigquery-it.cfg | 27 +++++++++++ .kokoro/presubmit/bigtable-it.cfg | 27 +++++++++++ .kokoro/presubmit/bigtableadmin-it.cfg | 27 +++++++++++ .kokoro/presubmit/common.cfg | 46 +++++++++++++++++++ .kokoro/presubmit/compute-it.cfg | 27 +++++++++++ .kokoro/presubmit/datastore-it.cfg | 27 +++++++++++ .kokoro/presubmit/dns-it.cfg | 27 +++++++++++ .kokoro/presubmit/firestore-it.cfg | 27 +++++++++++ .kokoro/presubmit/java10.cfg | 7 +++ .kokoro/presubmit/java11.cfg | 7 +++ .kokoro/presubmit/java7.cfg | 7 +++ .kokoro/presubmit/java8-win.cfg | 3 ++ .kokoro/presubmit/java8.cfg | 7 +++ .kokoro/presubmit/javadoc.cfg | 12 +++++ .kokoro/presubmit/logging-it.cfg | 27 +++++++++++ .kokoro/presubmit/notification-it.cfg | 27 +++++++++++ .kokoro/presubmit/pubsub-it.cfg | 27 +++++++++++ .kokoro/presubmit/spanner-it.cfg | 27 +++++++++++ .kokoro/presubmit/speech-it.cfg | 27 +++++++++++ .kokoro/presubmit/storage-it.cfg | 27 +++++++++++ .kokoro/presubmit/translate-it.cfg | 27 +++++++++++ .kokoro/trampoline.sh | 24 ++++++++++ .../logging/logback/LoggingAppenderTest.java | 3 +- .../google-cloud-spanner/pom.xml | 1 + google-cloud-clients/pom.xml | 4 ++ 49 files changed, 1024 insertions(+), 1 deletion(-) create mode 100644 .kokoro/build.bat create mode 100755 .kokoro/build.sh create mode 100644 .kokoro/common.cfg create mode 100644 .kokoro/continuous/bigquery-it.cfg create mode 100644 .kokoro/continuous/bigtable-it.cfg create mode 100644 .kokoro/continuous/bigtableadmin-it.cfg create mode 100644 .kokoro/continuous/common.cfg create mode 100644 .kokoro/continuous/compute-it.cfg create mode 100644 .kokoro/continuous/datastore-it.cfg create mode 100644 .kokoro/continuous/dns-it.cfg create mode 100644 .kokoro/continuous/firestore-it.cfg create mode 100644 .kokoro/continuous/java10.cfg create mode 100644 .kokoro/continuous/java11.cfg create mode 100644 .kokoro/continuous/java7.cfg create mode 100644 .kokoro/continuous/java8-win.cfg create mode 100644 .kokoro/continuous/java8.cfg create mode 100644 .kokoro/continuous/javadoc.cfg create mode 100644 .kokoro/continuous/logging-it.cfg create mode 100644 .kokoro/continuous/notification-it.cfg create mode 100644 .kokoro/continuous/pubsub-it.cfg create mode 100644 .kokoro/continuous/spanner-it.cfg create mode 100644 .kokoro/continuous/speech-it.cfg create mode 100644 .kokoro/continuous/storage-it.cfg create mode 100644 .kokoro/continuous/translate-it.cfg create mode 100644 .kokoro/presubmit/bigquery-it.cfg create mode 100644 .kokoro/presubmit/bigtable-it.cfg create mode 100644 .kokoro/presubmit/bigtableadmin-it.cfg create mode 100644 .kokoro/presubmit/common.cfg create mode 100644 .kokoro/presubmit/compute-it.cfg create mode 100644 .kokoro/presubmit/datastore-it.cfg create mode 100644 .kokoro/presubmit/dns-it.cfg create mode 100644 .kokoro/presubmit/firestore-it.cfg create mode 100644 .kokoro/presubmit/java10.cfg create mode 100644 .kokoro/presubmit/java11.cfg create mode 100644 .kokoro/presubmit/java7.cfg create mode 100644 .kokoro/presubmit/java8-win.cfg create mode 100644 .kokoro/presubmit/java8.cfg create mode 100644 .kokoro/presubmit/javadoc.cfg create mode 100644 .kokoro/presubmit/logging-it.cfg create mode 100644 .kokoro/presubmit/notification-it.cfg create mode 100644 .kokoro/presubmit/pubsub-it.cfg create mode 100644 .kokoro/presubmit/spanner-it.cfg create mode 100644 .kokoro/presubmit/speech-it.cfg create mode 100644 .kokoro/presubmit/storage-it.cfg create mode 100644 .kokoro/presubmit/translate-it.cfg create mode 100644 .kokoro/trampoline.sh diff --git a/.kokoro/build.bat b/.kokoro/build.bat new file mode 100644 index 000000000000..e00de4004503 --- /dev/null +++ b/.kokoro/build.bat @@ -0,0 +1,3 @@ +:: See documentation in type-shell-output.bat + +"C:\Program Files\Git\bin\bash.exe" github/google-cloud-java/.kokoro/build.sh diff --git a/.kokoro/build.sh b/.kokoro/build.sh new file mode 100755 index 000000000000..342c7692a26c --- /dev/null +++ b/.kokoro/build.sh @@ -0,0 +1,43 @@ +#!/bin/bash +# Copyright 2018 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -eo pipefail + +cd github/google-cloud-java/ + +# Print out Java version +java -version +echo $JOB_TYPE + +mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V + +# prepend Kokoro root directory onto GOOGLE_APPLICATION_CREDENTIALS path +if [ ! -z "$GOOGLE_APPLICATION_CREDENTIALS" ]; then + export GOOGLE_APPLICATION_CREDENTIALS=${KOKORO_ROOT}/src/${GOOGLE_APPLICATION_CREDENTIALS} +fi + +case $JOB_TYPE in +test) + mvn test -B + ;; +javadoc) + mvn javadoc:javadoc javadoc:test-javadoc + ;; +integration) + ./utilities/verify_single_it.sh $INTEGRATION_TEST_ARGS + ;; +*) + ;; +esac diff --git a/.kokoro/common.cfg b/.kokoro/common.cfg new file mode 100644 index 000000000000..89302a415028 --- /dev/null +++ b/.kokoro/common.cfg @@ -0,0 +1,13 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Download trampoline resources. These will be in ${KOKORO_GFILE_DIR} +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" + +# All builds use the trampoline script to run in docker. +build_file: "google-auth-library-java/.kokoro/trampoline.sh" + +# Tell the trampoline which build file to use. +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/google-auth-library-java/.kokoro/build.sh" +} diff --git a/.kokoro/continuous/bigquery-it.cfg b/.kokoro/continuous/bigquery-it.cfg new file mode 100644 index 000000000000..56ada949e7e7 --- /dev/null +++ b/.kokoro/continuous/bigquery-it.cfg @@ -0,0 +1,27 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "INTEGRATION_TEST_ARGS" + value: "google-cloud-clients/google-cloud-bigquery" +} + +env_vars: { + key: "JOB_TYPE" + value: "integration" +} + +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "keystore/73713_java_it_service_account" +} diff --git a/.kokoro/continuous/bigtable-it.cfg b/.kokoro/continuous/bigtable-it.cfg new file mode 100644 index 000000000000..1e92e040f690 --- /dev/null +++ b/.kokoro/continuous/bigtable-it.cfg @@ -0,0 +1,27 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "INTEGRATION_TEST_ARGS" + value: "google-cloud-clients/google-cloud-bigtable -Dbigtable.env=prod -Dbigtable.table=projects/gcloud-devel/instances/google-cloud-bigtable/tables/integration-tests" +} + +env_vars: { + key: "JOB_TYPE" + value: "integration" +} + +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "keystore/73713_java_it_service_account" +} diff --git a/.kokoro/continuous/bigtableadmin-it.cfg b/.kokoro/continuous/bigtableadmin-it.cfg new file mode 100644 index 000000000000..697ae187e3c4 --- /dev/null +++ b/.kokoro/continuous/bigtableadmin-it.cfg @@ -0,0 +1,27 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "INTEGRATION_TEST_ARGS" + value: "google-cloud-clients/google-cloud-bigtable-admin -Dbigtable.instance=projects/gcloud-devel/instances/google-cloud-bigtable" +} + +env_vars: { + key: "JOB_TYPE" + value: "integration" +} + +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "keystore/73713_java_it_service_account" +} diff --git a/.kokoro/continuous/common.cfg b/.kokoro/continuous/common.cfg new file mode 100644 index 000000000000..6a6b94a4cb4a --- /dev/null +++ b/.kokoro/continuous/common.cfg @@ -0,0 +1,46 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Build logs will be here +action { + define_artifacts { + regex: "**/*sponge_log.xml" + } +} + +# Download trampoline resources. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" + +# Use the trampoline script to run in docker. +build_file: "google-cloud-java/.kokoro/trampoline.sh" + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/google-cloud-java/.kokoro/build.sh" +} + +env_vars: { + key: "JOB_TYPE" + value: "test" +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "java_it_service_account" + # TODO(chingor): remove this after secrets have globally propagated + backend_type: FASTCONFIGPUSH + } + } +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "java_firestore_it_service_account" + # TODO(chingor): remove this after secrets have globally propagated + backend_type: FASTCONFIGPUSH + } + } +} diff --git a/.kokoro/continuous/compute-it.cfg b/.kokoro/continuous/compute-it.cfg new file mode 100644 index 000000000000..dfdb383fd64d --- /dev/null +++ b/.kokoro/continuous/compute-it.cfg @@ -0,0 +1,27 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "INTEGRATION_TEST_ARGS" + value: "google-cloud-clients/google-cloud-compute" +} + +env_vars: { + key: "JOB_TYPE" + value: "integration" +} + +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "keystore/73713_java_it_service_account" +} diff --git a/.kokoro/continuous/datastore-it.cfg b/.kokoro/continuous/datastore-it.cfg new file mode 100644 index 000000000000..28bb73391c73 --- /dev/null +++ b/.kokoro/continuous/datastore-it.cfg @@ -0,0 +1,27 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "INTEGRATION_TEST_ARGS" + value: "google-cloud-clients/google-cloud-datastore" +} + +env_vars: { + key: "JOB_TYPE" + value: "integration" +} + +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "keystore/73713_java_it_service_account" +} diff --git a/.kokoro/continuous/dns-it.cfg b/.kokoro/continuous/dns-it.cfg new file mode 100644 index 000000000000..296f180166a8 --- /dev/null +++ b/.kokoro/continuous/dns-it.cfg @@ -0,0 +1,27 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "INTEGRATION_TEST_ARGS" + value: "google-cloud-clients/google-cloud-dns" +} + +env_vars: { + key: "JOB_TYPE" + value: "integration" +} + +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "keystore/73713_java_it_service_account" +} diff --git a/.kokoro/continuous/firestore-it.cfg b/.kokoro/continuous/firestore-it.cfg new file mode 100644 index 000000000000..b02e884fe75b --- /dev/null +++ b/.kokoro/continuous/firestore-it.cfg @@ -0,0 +1,27 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "INTEGRATION_TEST_ARGS" + value: "google-cloud-clients/google-cloud-firestore" +} + +env_vars: { + key: "JOB_TYPE" + value: "integration" +} + +env_vars: { + key: "GCLOUD_PROJECT" + value: "java-review" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "keystore/73713_java_firestore_it_service_account" +} diff --git a/.kokoro/continuous/java10.cfg b/.kokoro/continuous/java10.cfg new file mode 100644 index 000000000000..e560ae22fd39 --- /dev/null +++ b/.kokoro/continuous/java10.cfg @@ -0,0 +1,7 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java10" +} diff --git a/.kokoro/continuous/java11.cfg b/.kokoro/continuous/java11.cfg new file mode 100644 index 000000000000..b81a66a3c45e --- /dev/null +++ b/.kokoro/continuous/java11.cfg @@ -0,0 +1,7 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java11" +} diff --git a/.kokoro/continuous/java7.cfg b/.kokoro/continuous/java7.cfg new file mode 100644 index 000000000000..584e8ea60b9c --- /dev/null +++ b/.kokoro/continuous/java7.cfg @@ -0,0 +1,7 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java7" +} diff --git a/.kokoro/continuous/java8-win.cfg b/.kokoro/continuous/java8-win.cfg new file mode 100644 index 000000000000..0e1b3c17e3e8 --- /dev/null +++ b/.kokoro/continuous/java8-win.cfg @@ -0,0 +1,3 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +build_file: "google-cloud-java/.kokoro/build.bat" diff --git a/.kokoro/continuous/java8.cfg b/.kokoro/continuous/java8.cfg new file mode 100644 index 000000000000..34f6c33e581a --- /dev/null +++ b/.kokoro/continuous/java8.cfg @@ -0,0 +1,7 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} diff --git a/.kokoro/continuous/javadoc.cfg b/.kokoro/continuous/javadoc.cfg new file mode 100644 index 000000000000..5bdc43f6cec8 --- /dev/null +++ b/.kokoro/continuous/javadoc.cfg @@ -0,0 +1,12 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java7" +} + +env_vars: { + key: "JOB_TYPE" + value: "javadoc" +} diff --git a/.kokoro/continuous/logging-it.cfg b/.kokoro/continuous/logging-it.cfg new file mode 100644 index 000000000000..d1d808bce242 --- /dev/null +++ b/.kokoro/continuous/logging-it.cfg @@ -0,0 +1,27 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "INTEGRATION_TEST_ARGS" + value: "google-cloud-clients/google-cloud-logging" +} + +env_vars: { + key: "JOB_TYPE" + value: "integration" +} + +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "keystore/73713_java_it_service_account" +} diff --git a/.kokoro/continuous/notification-it.cfg b/.kokoro/continuous/notification-it.cfg new file mode 100644 index 000000000000..9e27c361f4fa --- /dev/null +++ b/.kokoro/continuous/notification-it.cfg @@ -0,0 +1,27 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "INTEGRATION_TEST_ARGS" + value: "google-cloud-clients/google-cloud-notification" +} + +env_vars: { + key: "JOB_TYPE" + value: "integration" +} + +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "keystore/73713_java_it_service_account" +} diff --git a/.kokoro/continuous/pubsub-it.cfg b/.kokoro/continuous/pubsub-it.cfg new file mode 100644 index 000000000000..70e018331388 --- /dev/null +++ b/.kokoro/continuous/pubsub-it.cfg @@ -0,0 +1,27 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "INTEGRATION_TEST_ARGS" + value: "google-cloud-clients/google-cloud-pubsub" +} + +env_vars: { + key: "JOB_TYPE" + value: "integration" +} + +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "keystore/73713_java_it_service_account" +} diff --git a/.kokoro/continuous/spanner-it.cfg b/.kokoro/continuous/spanner-it.cfg new file mode 100644 index 000000000000..8e48d717702c --- /dev/null +++ b/.kokoro/continuous/spanner-it.cfg @@ -0,0 +1,27 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "INTEGRATION_TEST_ARGS" + value: "google-cloud-clients/google-cloud-spanner" +} + +env_vars: { + key: "JOB_TYPE" + value: "integration" +} + +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "keystore/73713_java_it_service_account" +} diff --git a/.kokoro/continuous/speech-it.cfg b/.kokoro/continuous/speech-it.cfg new file mode 100644 index 000000000000..d7570d6faa83 --- /dev/null +++ b/.kokoro/continuous/speech-it.cfg @@ -0,0 +1,27 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "INTEGRATION_TEST_ARGS" + value: "google-cloud-clients/google-cloud-speech" +} + +env_vars: { + key: "JOB_TYPE" + value: "integration" +} + +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "keystore/73713_java_it_service_account" +} diff --git a/.kokoro/continuous/storage-it.cfg b/.kokoro/continuous/storage-it.cfg new file mode 100644 index 000000000000..cf9cc474499a --- /dev/null +++ b/.kokoro/continuous/storage-it.cfg @@ -0,0 +1,27 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "INTEGRATION_TEST_ARGS" + value: "google-cloud-clients/google-cloud-storage" +} + +env_vars: { + key: "JOB_TYPE" + value: "integration" +} + +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "keystore/73713_java_it_service_account" +} diff --git a/.kokoro/continuous/translate-it.cfg b/.kokoro/continuous/translate-it.cfg new file mode 100644 index 000000000000..a0988e5710d8 --- /dev/null +++ b/.kokoro/continuous/translate-it.cfg @@ -0,0 +1,27 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "INTEGRATION_TEST_ARGS" + value: "google-cloud-clients/google-cloud-translate" +} + +env_vars: { + key: "JOB_TYPE" + value: "integration" +} + +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "keystore/73713_java_it_service_account" +} diff --git a/.kokoro/presubmit/bigquery-it.cfg b/.kokoro/presubmit/bigquery-it.cfg new file mode 100644 index 000000000000..56ada949e7e7 --- /dev/null +++ b/.kokoro/presubmit/bigquery-it.cfg @@ -0,0 +1,27 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "INTEGRATION_TEST_ARGS" + value: "google-cloud-clients/google-cloud-bigquery" +} + +env_vars: { + key: "JOB_TYPE" + value: "integration" +} + +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "keystore/73713_java_it_service_account" +} diff --git a/.kokoro/presubmit/bigtable-it.cfg b/.kokoro/presubmit/bigtable-it.cfg new file mode 100644 index 000000000000..1e92e040f690 --- /dev/null +++ b/.kokoro/presubmit/bigtable-it.cfg @@ -0,0 +1,27 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "INTEGRATION_TEST_ARGS" + value: "google-cloud-clients/google-cloud-bigtable -Dbigtable.env=prod -Dbigtable.table=projects/gcloud-devel/instances/google-cloud-bigtable/tables/integration-tests" +} + +env_vars: { + key: "JOB_TYPE" + value: "integration" +} + +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "keystore/73713_java_it_service_account" +} diff --git a/.kokoro/presubmit/bigtableadmin-it.cfg b/.kokoro/presubmit/bigtableadmin-it.cfg new file mode 100644 index 000000000000..697ae187e3c4 --- /dev/null +++ b/.kokoro/presubmit/bigtableadmin-it.cfg @@ -0,0 +1,27 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "INTEGRATION_TEST_ARGS" + value: "google-cloud-clients/google-cloud-bigtable-admin -Dbigtable.instance=projects/gcloud-devel/instances/google-cloud-bigtable" +} + +env_vars: { + key: "JOB_TYPE" + value: "integration" +} + +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "keystore/73713_java_it_service_account" +} diff --git a/.kokoro/presubmit/common.cfg b/.kokoro/presubmit/common.cfg new file mode 100644 index 000000000000..6a6b94a4cb4a --- /dev/null +++ b/.kokoro/presubmit/common.cfg @@ -0,0 +1,46 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Build logs will be here +action { + define_artifacts { + regex: "**/*sponge_log.xml" + } +} + +# Download trampoline resources. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" + +# Use the trampoline script to run in docker. +build_file: "google-cloud-java/.kokoro/trampoline.sh" + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/google-cloud-java/.kokoro/build.sh" +} + +env_vars: { + key: "JOB_TYPE" + value: "test" +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "java_it_service_account" + # TODO(chingor): remove this after secrets have globally propagated + backend_type: FASTCONFIGPUSH + } + } +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "java_firestore_it_service_account" + # TODO(chingor): remove this after secrets have globally propagated + backend_type: FASTCONFIGPUSH + } + } +} diff --git a/.kokoro/presubmit/compute-it.cfg b/.kokoro/presubmit/compute-it.cfg new file mode 100644 index 000000000000..dfdb383fd64d --- /dev/null +++ b/.kokoro/presubmit/compute-it.cfg @@ -0,0 +1,27 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "INTEGRATION_TEST_ARGS" + value: "google-cloud-clients/google-cloud-compute" +} + +env_vars: { + key: "JOB_TYPE" + value: "integration" +} + +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "keystore/73713_java_it_service_account" +} diff --git a/.kokoro/presubmit/datastore-it.cfg b/.kokoro/presubmit/datastore-it.cfg new file mode 100644 index 000000000000..28bb73391c73 --- /dev/null +++ b/.kokoro/presubmit/datastore-it.cfg @@ -0,0 +1,27 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "INTEGRATION_TEST_ARGS" + value: "google-cloud-clients/google-cloud-datastore" +} + +env_vars: { + key: "JOB_TYPE" + value: "integration" +} + +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "keystore/73713_java_it_service_account" +} diff --git a/.kokoro/presubmit/dns-it.cfg b/.kokoro/presubmit/dns-it.cfg new file mode 100644 index 000000000000..296f180166a8 --- /dev/null +++ b/.kokoro/presubmit/dns-it.cfg @@ -0,0 +1,27 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "INTEGRATION_TEST_ARGS" + value: "google-cloud-clients/google-cloud-dns" +} + +env_vars: { + key: "JOB_TYPE" + value: "integration" +} + +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "keystore/73713_java_it_service_account" +} diff --git a/.kokoro/presubmit/firestore-it.cfg b/.kokoro/presubmit/firestore-it.cfg new file mode 100644 index 000000000000..b02e884fe75b --- /dev/null +++ b/.kokoro/presubmit/firestore-it.cfg @@ -0,0 +1,27 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "INTEGRATION_TEST_ARGS" + value: "google-cloud-clients/google-cloud-firestore" +} + +env_vars: { + key: "JOB_TYPE" + value: "integration" +} + +env_vars: { + key: "GCLOUD_PROJECT" + value: "java-review" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "keystore/73713_java_firestore_it_service_account" +} diff --git a/.kokoro/presubmit/java10.cfg b/.kokoro/presubmit/java10.cfg new file mode 100644 index 000000000000..e560ae22fd39 --- /dev/null +++ b/.kokoro/presubmit/java10.cfg @@ -0,0 +1,7 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java10" +} diff --git a/.kokoro/presubmit/java11.cfg b/.kokoro/presubmit/java11.cfg new file mode 100644 index 000000000000..b81a66a3c45e --- /dev/null +++ b/.kokoro/presubmit/java11.cfg @@ -0,0 +1,7 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java11" +} diff --git a/.kokoro/presubmit/java7.cfg b/.kokoro/presubmit/java7.cfg new file mode 100644 index 000000000000..584e8ea60b9c --- /dev/null +++ b/.kokoro/presubmit/java7.cfg @@ -0,0 +1,7 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java7" +} diff --git a/.kokoro/presubmit/java8-win.cfg b/.kokoro/presubmit/java8-win.cfg new file mode 100644 index 000000000000..0e1b3c17e3e8 --- /dev/null +++ b/.kokoro/presubmit/java8-win.cfg @@ -0,0 +1,3 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +build_file: "google-cloud-java/.kokoro/build.bat" diff --git a/.kokoro/presubmit/java8.cfg b/.kokoro/presubmit/java8.cfg new file mode 100644 index 000000000000..34f6c33e581a --- /dev/null +++ b/.kokoro/presubmit/java8.cfg @@ -0,0 +1,7 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} diff --git a/.kokoro/presubmit/javadoc.cfg b/.kokoro/presubmit/javadoc.cfg new file mode 100644 index 000000000000..5bdc43f6cec8 --- /dev/null +++ b/.kokoro/presubmit/javadoc.cfg @@ -0,0 +1,12 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java7" +} + +env_vars: { + key: "JOB_TYPE" + value: "javadoc" +} diff --git a/.kokoro/presubmit/logging-it.cfg b/.kokoro/presubmit/logging-it.cfg new file mode 100644 index 000000000000..d1d808bce242 --- /dev/null +++ b/.kokoro/presubmit/logging-it.cfg @@ -0,0 +1,27 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "INTEGRATION_TEST_ARGS" + value: "google-cloud-clients/google-cloud-logging" +} + +env_vars: { + key: "JOB_TYPE" + value: "integration" +} + +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "keystore/73713_java_it_service_account" +} diff --git a/.kokoro/presubmit/notification-it.cfg b/.kokoro/presubmit/notification-it.cfg new file mode 100644 index 000000000000..9e27c361f4fa --- /dev/null +++ b/.kokoro/presubmit/notification-it.cfg @@ -0,0 +1,27 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "INTEGRATION_TEST_ARGS" + value: "google-cloud-clients/google-cloud-notification" +} + +env_vars: { + key: "JOB_TYPE" + value: "integration" +} + +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "keystore/73713_java_it_service_account" +} diff --git a/.kokoro/presubmit/pubsub-it.cfg b/.kokoro/presubmit/pubsub-it.cfg new file mode 100644 index 000000000000..70e018331388 --- /dev/null +++ b/.kokoro/presubmit/pubsub-it.cfg @@ -0,0 +1,27 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "INTEGRATION_TEST_ARGS" + value: "google-cloud-clients/google-cloud-pubsub" +} + +env_vars: { + key: "JOB_TYPE" + value: "integration" +} + +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "keystore/73713_java_it_service_account" +} diff --git a/.kokoro/presubmit/spanner-it.cfg b/.kokoro/presubmit/spanner-it.cfg new file mode 100644 index 000000000000..8e48d717702c --- /dev/null +++ b/.kokoro/presubmit/spanner-it.cfg @@ -0,0 +1,27 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "INTEGRATION_TEST_ARGS" + value: "google-cloud-clients/google-cloud-spanner" +} + +env_vars: { + key: "JOB_TYPE" + value: "integration" +} + +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "keystore/73713_java_it_service_account" +} diff --git a/.kokoro/presubmit/speech-it.cfg b/.kokoro/presubmit/speech-it.cfg new file mode 100644 index 000000000000..d7570d6faa83 --- /dev/null +++ b/.kokoro/presubmit/speech-it.cfg @@ -0,0 +1,27 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "INTEGRATION_TEST_ARGS" + value: "google-cloud-clients/google-cloud-speech" +} + +env_vars: { + key: "JOB_TYPE" + value: "integration" +} + +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "keystore/73713_java_it_service_account" +} diff --git a/.kokoro/presubmit/storage-it.cfg b/.kokoro/presubmit/storage-it.cfg new file mode 100644 index 000000000000..cf9cc474499a --- /dev/null +++ b/.kokoro/presubmit/storage-it.cfg @@ -0,0 +1,27 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "INTEGRATION_TEST_ARGS" + value: "google-cloud-clients/google-cloud-storage" +} + +env_vars: { + key: "JOB_TYPE" + value: "integration" +} + +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "keystore/73713_java_it_service_account" +} diff --git a/.kokoro/presubmit/translate-it.cfg b/.kokoro/presubmit/translate-it.cfg new file mode 100644 index 000000000000..a0988e5710d8 --- /dev/null +++ b/.kokoro/presubmit/translate-it.cfg @@ -0,0 +1,27 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "INTEGRATION_TEST_ARGS" + value: "google-cloud-clients/google-cloud-translate" +} + +env_vars: { + key: "JOB_TYPE" + value: "integration" +} + +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "keystore/73713_java_it_service_account" +} diff --git a/.kokoro/trampoline.sh b/.kokoro/trampoline.sh new file mode 100644 index 000000000000..ba17ce01466b --- /dev/null +++ b/.kokoro/trampoline.sh @@ -0,0 +1,24 @@ +#!/bin/bash +# Copyright 2018 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +set -eo pipefail +# Always run the cleanup script, regardless of the success of bouncing into +# the container. +function cleanup() { + chmod +x ${KOKORO_GFILE_DIR}/trampoline_cleanup.sh + ${KOKORO_GFILE_DIR}/trampoline_cleanup.sh + echo "cleanup"; +} +trap cleanup EXIT +python3 "${KOKORO_GFILE_DIR}/trampoline_v1.py" diff --git a/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/src/test/java/com/google/cloud/logging/logback/LoggingAppenderTest.java b/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/src/test/java/com/google/cloud/logging/logback/LoggingAppenderTest.java index 9d67190b3d92..d1232042f803 100644 --- a/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/src/test/java/com/google/cloud/logging/logback/LoggingAppenderTest.java +++ b/google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/src/test/java/com/google/cloud/logging/logback/LoggingAppenderTest.java @@ -180,7 +180,8 @@ public void testDefaultWriteOptionsHasExpectedDefaults() { loggingAppender.doAppend(loggingEvent); assertThat(logNameArg.getValue()).isEqualTo(defaultWriteOptions[0]); - assertThat(resourceArg.getValue()).isEqualTo(defaultWriteOptions[1]); + // TODO(chingor): Fix this test to work on GCE and locally + //assertThat(resourceArg.getValue()).isEqualTo(defaultWriteOptions[1]); } private LoggingEvent createLoggingEvent(Level level, long timestamp) { diff --git a/google-cloud-clients/google-cloud-spanner/pom.xml b/google-cloud-clients/google-cloud-spanner/pom.xml index af1545a1dc13..acb7b16e6a29 100644 --- a/google-cloud-clients/google-cloud-spanner/pom.xml +++ b/google-cloud-clients/google-cloud-spanner/pom.xml @@ -27,6 +27,7 @@ 2.12.4 com.google.cloud.spanner.IntegrationTest + sponge_log diff --git a/google-cloud-clients/pom.xml b/google-cloud-clients/pom.xml index a2a9180e1109..9534ab57ed56 100644 --- a/google-cloud-clients/pom.xml +++ b/google-cloud-clients/pom.xml @@ -497,6 +497,7 @@ **/IT*.java **/*SmokeTest.java + sponge_log @@ -555,6 +556,9 @@ + + sponge_log + maven-jar-plugin From ccf68f390c2faac648dea1f958f08f385b45edda Mon Sep 17 00:00:00 2001 From: Andrea Lin Date: Thu, 13 Sep 2018 12:25:13 -0700 Subject: [PATCH 11/21] Verify protoc version for batch-generation (#3676) Fail fast when using utilities/batch_generate_apis.py if the local protoc version doesn't match the protobuf-java version defined in the pom.xml. --- utilities/batch_generate_apis.py | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/utilities/batch_generate_apis.py b/utilities/batch_generate_apis.py index 289643b7889d..08a5f75fe394 100644 --- a/utilities/batch_generate_apis.py +++ b/utilities/batch_generate_apis.py @@ -20,12 +20,14 @@ # $ git clone https://github.com/googleapis/googleapis.git # $ git clone https://github.com/googleapis/discovery-artifact-manager.git # -# Run this script: +# Run this script from the top-level google-cloud-java directory: # # $ python utilities/batch_generate_apis.py PATH_TO_GOOGLEAPIS PATH_TO_DISCOVERY_ARTIFACT_MANAGER import argparse import os +import sys +from subprocess import check_output import generate_api @@ -93,7 +95,27 @@ def generate(artman_yaml): generate('gapic/google/compute/artman_compute.yaml') +def verify_protoc_version(): + protobuf_version_node = check_output( + ['grep', '-zohr', '--include=pom.xml', + '.*']) + version_start_index = protobuf_version_node.find('>') + 1 + version_end_index = protobuf_version_node.rfind('<') + protobuf_version = protobuf_version_node[version_start_index : version_end_index].strip() + + # This will be something like 'libprotoc 3.6.0' + protoc_version_str = check_output(['protoc', '--version']) + + if not (protobuf_version in protoc_version_str): + sys.exit("ERROR: Local version of protoc is %s" + " (see output of `which protoc`)." + " Please use protoc version %s" + " to match the version of protobuf-java used in this repo." + % (protoc_version_str, protobuf_version)) + + def main(): + verify_protoc_version() # TODO Make the docker image the default, add --local option parser = argparse.ArgumentParser(description='Batch generate all APIs.') parser.add_argument('googleapis', help='The path to the googleapis repo') From 0e3f03ac90b46ba18272108d02b7b3683ee17ea4 Mon Sep 17 00:00:00 2001 From: Frank Natividad Date: Thu, 13 Sep 2018 14:43:09 -0700 Subject: [PATCH 12/21] Fix typos --- .../cloud/examples/storage/snippets/ITStorageSnippets.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/google-cloud-examples/src/test/java/com/google/cloud/examples/storage/snippets/ITStorageSnippets.java b/google-cloud-examples/src/test/java/com/google/cloud/examples/storage/snippets/ITStorageSnippets.java index f5ee3826fc87..fa4257441a83 100644 --- a/google-cloud-examples/src/test/java/com/google/cloud/examples/storage/snippets/ITStorageSnippets.java +++ b/google-cloud-examples/src/test/java/com/google/cloud/examples/storage/snippets/ITStorageSnippets.java @@ -422,10 +422,11 @@ public void testAuthListBuckets() { } @Test - public void testBlobDownload() { + public void testBlobDownload() throws Exception { String blobName = "test-create-empty-blob"; BlobId blobId = BlobId.of(BUCKET, blobName); - Blob remoteBlob = storage.create(blobId, BLOB_BYTE_CONTENT); + BlobInfo blobInfo = BlobInfo.newBuilder(blobId).build(); + Blob remoteBlob = storage.create(blobInfo, BLOB_BYTE_CONTENT); assertNotNull(remoteBlob); storageSnippets.downloadFile(BUCKET, blobName, Paths.get(blobName)); byte[] readBytes = Files.readAllBytes(Paths.get(blobName)); From 5ccfc3a36964a2533cfa6ac4745ea80e8c790751 Mon Sep 17 00:00:00 2001 From: Nithin Sujir <118742+nithinsujir@users.noreply.github.com> Date: Thu, 13 Sep 2018 14:45:27 -0700 Subject: [PATCH 13/21] spanner: Add snippets for ReadContext (#3662) spanner: Add snippets for ReadContext --- .../com/google/cloud/spanner/ReadContext.java | 66 +++++++++- .../spanner/snippets/ReadContextSnippets.java | 124 ++++++++++++++++++ 2 files changed, 189 insertions(+), 1 deletion(-) create mode 100644 google-cloud-examples/src/main/java/com/google/cloud/examples/spanner/snippets/ReadContextSnippets.java diff --git a/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/ReadContext.java b/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/ReadContext.java index 4e221b1ea999..a484e8297834 100644 --- a/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/ReadContext.java +++ b/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/ReadContext.java @@ -43,7 +43,18 @@ enum QueryAnalyzeMode { * to the first {@link ResultSet#next()} call. Regardless of blocking behavior, any {@link * SpannerException} is deferred to the first or subsequent {@link ResultSet#next()} call. * - *

TODO(user): Code examples. + * + *

{@code
+   * ReadContext readContext = dbClient.singleUse();
+   * ResultSet resultSet =
+   *     readContext.read(
+   *         "Albums",
+   *         // KeySet.all() can be used to read all rows in a table. KeySet exposes other
+   *         // methods to read only a subset of the table.
+   *         KeySet.all(),
+   *         Arrays.asList("SingerId", "AlbumId", "AlbumTitle"));
+   * }
+ * * * @param table the name of the table to read * @param keys the keys and ranges of rows to read. Regardless of ordering in {@code keys}, rows @@ -61,6 +72,15 @@ enum QueryAnalyzeMode { * to the first {@link ResultSet#next()} call. Regardless of blocking behavior, any {@link * SpannerException} is deferred to the first or subsequent {@link ResultSet#next()} call. * + * + *
{@code
+   * ReadContext readContext = dbClient.singleUse();
+   * Struct row =
+   *     readContext.readRowUsingIndex("Albums", "AlbumsByAlbumId", Key.of(1, "Green"),
+   *         Arrays.asList("AlbumId", "AlbumTitle"));
+   * }
+ * + * * @param table the name of the table to read * @param index the name of the index on {@code table} to use * @param keys the keys and ranges of index rows to read. Regardless of ordering in {@code keys}, @@ -74,6 +94,14 @@ ResultSet readUsingIndex( /** * Reads a single row from a database, returning {@code null} if the row does not exist. * + * + *
{@code
+   * ReadContext readContext = dbClient.singleUse();
+   * Struct row =
+   *     readContext.readRow("Albums", Key.of(2, 1), Arrays.asList("MarketingBudget"));
+   * }
+ * + * * @param table the name of the table to read * @param key the row to read * @param columns the columns to return @@ -85,6 +113,15 @@ ResultSet readUsingIndex( * Reads a single row from a database using an index, returning {@code null} if the row does not * exist. * + * + *
{@code
+   * ReadContext readContext = dbClient.singleUse();
+   * Struct row =
+   *     readContext.readRowUsingIndex("Albums", "AlbumsByAlbumId", Key.of(1, "Green"),
+   *         Arrays.asList("AlbumId", "AlbumTitle"));
+   * }
+ * + * * @param table the name of the table to read * @param index the name of the index on {@code table} to use * @param key the index row to read @@ -101,6 +138,18 @@ ResultSet readUsingIndex( * is deferred to the first {@link ResultSet#next()} call. Regardless of blocking behavior, any * {@link SpannerException} is deferred to the first or subsequent {@link ResultSet#next()} call. * + * + *
{@code
+   * // Rows without an explicit value for MarketingBudget will have a MarketingBudget equal to
+   * // null.
+   * ReadContext readContext = dbClient.singleUse();
+   * ResultSet resultSet =
+   *     readContext.executeQuery(
+   *         Statement.of(
+   *             "SELECT SingerId, AlbumId, MarketingBudget, LastUpdateTime FROM Albums"));
+   * }
+ * + * * @param statement the query statement to execute * @param options the options to configure the query */ @@ -113,6 +162,21 @@ ResultSet readUsingIndex( * com.google.spanner.v1.ResultSetStats} that can be accessed by calling {@link * ResultSet#getStats()} on the returned {@code ResultSet}. * + * + *
{@code
+   * ReadContext rc = dbClient.singleUse();
+   * ResultSet resultSet =
+   *     rc.analyzeQuery(
+   *         Statement.of("SELECT SingerId, AlbumId, MarketingBudget FROM Albums"),
+   *         ReadContext.QueryAnalyzeMode.PROFILE);
+   * while (resultSet.next()) {
+   *   // Discard the results. We're only processing because getStats() below requires it.
+   *   resultSet.getCurrentRowAsStruct();
+   * }
+   * ResultSetStats stats = resultSet.getStats();
+   * }
+ * + * * @param statement the query statement to execute * @param queryMode the mode in which to execute the query */ diff --git a/google-cloud-examples/src/main/java/com/google/cloud/examples/spanner/snippets/ReadContextSnippets.java b/google-cloud-examples/src/main/java/com/google/cloud/examples/spanner/snippets/ReadContextSnippets.java new file mode 100644 index 000000000000..3aecca889d0d --- /dev/null +++ b/google-cloud-examples/src/main/java/com/google/cloud/examples/spanner/snippets/ReadContextSnippets.java @@ -0,0 +1,124 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/* + * EDITING INSTRUCTIONS + * This file is referenced in spanner/ReadContext's javadoc. Any change + * to this file should be reflected in spanner/ReadContext's javadoc. + */ + +package com.google.cloud.examples.spanner.snippets; + +import com.google.cloud.spanner.DatabaseClient; +import com.google.cloud.spanner.Key; +import com.google.cloud.spanner.KeySet; +import com.google.cloud.spanner.ReadContext; +import com.google.cloud.spanner.ResultSet; +import com.google.cloud.spanner.Statement; +import com.google.cloud.spanner.Struct; +import com.google.spanner.v1.ResultSetStats; +import java.util.Arrays; + +/** + * This class contains snippets for {@link com.google.cloud.spanner.ReadContext} interface. + */ +public class ReadContextSnippets { + private final DatabaseClient dbClient; + + public ReadContextSnippets(DatabaseClient dbClient) { + this.dbClient = dbClient; + } + + ResultSet read() { + // [START read_context_read] + ReadContext readContext = dbClient.singleUse(); + ResultSet resultSet = + readContext.read( + "Albums", + // KeySet.all() can be used to read all rows in a table. KeySet exposes other + // methods to read only a subset of the table. + KeySet.all(), + Arrays.asList("SingerId", "AlbumId", "AlbumTitle")); + // [END read_context_read] + + return resultSet; + } + + ResultSet readUsingIndex() { + // [START read_context_read_index] + ReadContext readContext = dbClient.singleUse(); + ResultSet resultSet = + readContext.readUsingIndex( + "Albums", + "AlbumsByAlbumTitle", + KeySet.all(), + Arrays.asList("AlbumId", "AlbumTitle")); + // [END read_context_read_index] + + return resultSet; + } + + Struct readRow() { + // [START read_context_read_row] + ReadContext readContext = dbClient.singleUse(); + Struct row = + readContext.readRow("Albums", Key.of(2, 1), Arrays.asList("MarketingBudget")); + // [END read_context_read_row] + + return row; + } + + Struct readRowUsingIndex() { + // [START read_context_read_index] + ReadContext readContext = dbClient.singleUse(); + Struct row = + readContext.readRowUsingIndex("Albums", "AlbumsByAlbumId", Key.of(1, "Green"), + Arrays.asList("AlbumId", "AlbumTitle")); + // [END read_context_read_index] + + return row; + } + + ResultSet executeQuery() { + // [START read_context_execute_query] + // Rows without an explicit value for MarketingBudget will have a MarketingBudget equal to + // null. + ReadContext readContext = dbClient.singleUse(); + ResultSet resultSet = + readContext.executeQuery( + Statement.of( + "SELECT SingerId, AlbumId, MarketingBudget, LastUpdateTime FROM Albums")); + // [END read_context_execute_query] + return resultSet; + } + + ResultSetStats analyzeQuery() { + // [START read_context_analyze_query] + ReadContext rc = dbClient.singleUse(); + ResultSet resultSet = + rc.analyzeQuery( + Statement.of("SELECT SingerId, AlbumId, MarketingBudget FROM Albums"), + ReadContext.QueryAnalyzeMode.PROFILE); + while (resultSet.next()) { + // Discard the results. We're only processing because getStats() below requires it. + resultSet.getCurrentRowAsStruct(); + } + ResultSetStats stats = resultSet.getStats(); + // [END read_context_analyze_query] + return stats; + } +} + From 713cb88824b7ef27cc23554a682de1153748c040 Mon Sep 17 00:00:00 2001 From: Elliotte Rusty Harold Date: Fri, 14 Sep 2018 15:13:39 -0400 Subject: [PATCH 14/21] link to google-cloud-logging from README (#3681) --- google-cloud-clients/google-cloud-contrib/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/google-cloud-clients/google-cloud-contrib/README.md b/google-cloud-clients/google-cloud-contrib/README.md index fc6038e4f18f..41db3d999b28 100644 --- a/google-cloud-clients/google-cloud-contrib/README.md +++ b/google-cloud-clients/google-cloud-contrib/README.md @@ -12,6 +12,7 @@ Packages that provide higher-level abstraction/functionality for common Google C Contents -------- + * [google-cloud-logging-logback](./google-cloud-logging-logback): Logback appender for Google Cloud Logging. * [google-cloud-nio](./google-cloud-nio/): NIO Filesystem Provider for Google Cloud Storage. * [google-cloud-nio-examples](./google-cloud-nio-examples/): How to add Google Cloud Storage NIO after the fact. From c901932518bd5c18c046297ff0b8f6eb91b97013 Mon Sep 17 00:00:00 2001 From: Frank Natividad Date: Fri, 14 Sep 2018 16:32:53 -0700 Subject: [PATCH 15/21] storage: include information on a bucket prefix (#3671) --- .../google/cloud/examples/storage/snippets/StorageSnippets.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/google-cloud-examples/src/main/java/com/google/cloud/examples/storage/snippets/StorageSnippets.java b/google-cloud-examples/src/main/java/com/google/cloud/examples/storage/snippets/StorageSnippets.java index 438f3c1a455f..729b65b3b950 100644 --- a/google-cloud-examples/src/main/java/com/google/cloud/examples/storage/snippets/StorageSnippets.java +++ b/google-cloud-examples/src/main/java/com/google/cloud/examples/storage/snippets/StorageSnippets.java @@ -273,6 +273,8 @@ public Blob getBlobFromIdWithMetageneration(String bucketName, String blobName, // [VARIABLE "bucket_"] public Page listBucketsWithSizeAndPrefix(String prefix) { // [START listBucketsWithSizeAndPrefix] + // Include a prefix of bucket-name to reduce search space. + // For more information read https://cloud.google.com/storage/docs/json_api/v1/buckets/list Page buckets = storage.list(BucketListOption.pageSize(100), BucketListOption.prefix(prefix)); for (Bucket bucket : buckets.iterateAll()) { From b9cd107ced591a69a8137527763fb48923343fa4 Mon Sep 17 00:00:00 2001 From: Frank Natividad Date: Wed, 12 Sep 2018 15:42:17 -0700 Subject: [PATCH 16/21] Update download sample --- .../storage/snippets/StorageSnippets.java | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/google-cloud-examples/src/main/java/com/google/cloud/examples/storage/snippets/StorageSnippets.java b/google-cloud-examples/src/main/java/com/google/cloud/examples/storage/snippets/StorageSnippets.java index 729b65b3b950..677c19e4ea72 100644 --- a/google-cloud-examples/src/main/java/com/google/cloud/examples/storage/snippets/StorageSnippets.java +++ b/google-cloud-examples/src/main/java/com/google/cloud/examples/storage/snippets/StorageSnippets.java @@ -1135,6 +1135,32 @@ public Bucket getRequesterPaysStatus(String bucketName) throws StorageException return bucket; } + /** + * Example of downloading a file. + */ + public void downloadFile(String projectId, String bucketName, + String srcFilename, Path destFilePath) throws IOException { + // [START storage_download_file] + // The name of the bucket to access + // String bucketName = "my-bucket"; + + // The name of the remote file to download + // String srcFilename = "file.txt"; + + // The path to which the file should be downloaded + // Path destFilePath = Paths.get("/local/path/to/file.txt"); + + // Instantiate a Google Cloud Storage client + Storage storage = StorageOptions.getDefaultInstance().getService(); + + // Get specific file from specified bucket + Blob blob = storage.get(BlobId.of(bucketName, srcFilename)); + + // Download file to specified path + blob.downloadTo(destFilePath); + // [END storage_download_file] + } + /** * Example of downloading a file using Requester pay. */ From a4ddd4ee85c2b53d82d4da330ba6a38ae2f3bad9 Mon Sep 17 00:00:00 2001 From: Frank Natividad Date: Wed, 12 Sep 2018 15:44:40 -0700 Subject: [PATCH 17/21] Update test for download sample --- .../examples/storage/snippets/ITStorageSnippets.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/google-cloud-examples/src/test/java/com/google/cloud/examples/storage/snippets/ITStorageSnippets.java b/google-cloud-examples/src/test/java/com/google/cloud/examples/storage/snippets/ITStorageSnippets.java index 470a761ff645..9450d71f2859 100644 --- a/google-cloud-examples/src/test/java/com/google/cloud/examples/storage/snippets/ITStorageSnippets.java +++ b/google-cloud-examples/src/test/java/com/google/cloud/examples/storage/snippets/ITStorageSnippets.java @@ -421,6 +421,16 @@ public void testAuthListBuckets() { assertNotNull(bucket); } + @Test + public void testBlobDownload() { + String blobName = "test-create-empty-blob"; + Blob remoteBlob = bucket.create(blobName, BLOB_BYTE_CONTENT); + assertNotNull(remoteBlob); + storageSnippets.downloadFile(BUCKET, blobName, Paths.get(blobName)); + byte[] readBytes = Files.readAllBytes(Paths.get(blobName)); + assertArrayEquals(BLOB_BYTE_CONTENT, readBytes); + } + @Test public void testRequesterPays() throws Exception { Bucket bucket = storageSnippets.enableRequesterPays(BUCKET); From b1ce55ded1a41fa56d72370dd83340cc6e956e6d Mon Sep 17 00:00:00 2001 From: Frank Natividad Date: Wed, 12 Sep 2018 15:46:06 -0700 Subject: [PATCH 18/21] Remove projectid --- .../cloud/examples/storage/snippets/StorageSnippets.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-examples/src/main/java/com/google/cloud/examples/storage/snippets/StorageSnippets.java b/google-cloud-examples/src/main/java/com/google/cloud/examples/storage/snippets/StorageSnippets.java index 677c19e4ea72..585d732df7ed 100644 --- a/google-cloud-examples/src/main/java/com/google/cloud/examples/storage/snippets/StorageSnippets.java +++ b/google-cloud-examples/src/main/java/com/google/cloud/examples/storage/snippets/StorageSnippets.java @@ -1138,8 +1138,8 @@ public Bucket getRequesterPaysStatus(String bucketName) throws StorageException /** * Example of downloading a file. */ - public void downloadFile(String projectId, String bucketName, - String srcFilename, Path destFilePath) throws IOException { + public void downloadFile(String bucketName, String srcFilename, + Path destFilePath) throws IOException { // [START storage_download_file] // The name of the bucket to access // String bucketName = "my-bucket"; From 68a2810b7e9846feb20c6af63328b9f97bc58e58 Mon Sep 17 00:00:00 2001 From: Frank Natividad Date: Thu, 13 Sep 2018 08:48:36 -0700 Subject: [PATCH 19/21] Fix typos --- .../cloud/examples/storage/snippets/ITStorageSnippets.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/google-cloud-examples/src/test/java/com/google/cloud/examples/storage/snippets/ITStorageSnippets.java b/google-cloud-examples/src/test/java/com/google/cloud/examples/storage/snippets/ITStorageSnippets.java index 9450d71f2859..f5ee3826fc87 100644 --- a/google-cloud-examples/src/test/java/com/google/cloud/examples/storage/snippets/ITStorageSnippets.java +++ b/google-cloud-examples/src/test/java/com/google/cloud/examples/storage/snippets/ITStorageSnippets.java @@ -424,7 +424,8 @@ public void testAuthListBuckets() { @Test public void testBlobDownload() { String blobName = "test-create-empty-blob"; - Blob remoteBlob = bucket.create(blobName, BLOB_BYTE_CONTENT); + BlobId blobId = BlobId.of(BUCKET, blobName); + Blob remoteBlob = storage.create(blobId, BLOB_BYTE_CONTENT); assertNotNull(remoteBlob); storageSnippets.downloadFile(BUCKET, blobName, Paths.get(blobName)); byte[] readBytes = Files.readAllBytes(Paths.get(blobName)); From ccde1b54b580e71b74a89a383269bef521f91cd5 Mon Sep 17 00:00:00 2001 From: Frank Natividad Date: Thu, 13 Sep 2018 14:43:09 -0700 Subject: [PATCH 20/21] Fix typos --- .../cloud/examples/storage/snippets/ITStorageSnippets.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/google-cloud-examples/src/test/java/com/google/cloud/examples/storage/snippets/ITStorageSnippets.java b/google-cloud-examples/src/test/java/com/google/cloud/examples/storage/snippets/ITStorageSnippets.java index f5ee3826fc87..fa4257441a83 100644 --- a/google-cloud-examples/src/test/java/com/google/cloud/examples/storage/snippets/ITStorageSnippets.java +++ b/google-cloud-examples/src/test/java/com/google/cloud/examples/storage/snippets/ITStorageSnippets.java @@ -422,10 +422,11 @@ public void testAuthListBuckets() { } @Test - public void testBlobDownload() { + public void testBlobDownload() throws Exception { String blobName = "test-create-empty-blob"; BlobId blobId = BlobId.of(BUCKET, blobName); - Blob remoteBlob = storage.create(blobId, BLOB_BYTE_CONTENT); + BlobInfo blobInfo = BlobInfo.newBuilder(blobId).build(); + Blob remoteBlob = storage.create(blobInfo, BLOB_BYTE_CONTENT); assertNotNull(remoteBlob); storageSnippets.downloadFile(BUCKET, blobName, Paths.get(blobName)); byte[] readBytes = Files.readAllBytes(Paths.get(blobName)); From 53e8d57bb48c6a5ba0f52a37d1fdc678b8aac5fc Mon Sep 17 00:00:00 2001 From: Frank Natividad Date: Fri, 14 Sep 2018 17:21:58 -0700 Subject: [PATCH 21/21] Reformat Storage snippets --- .../storage/snippets/StorageSnippets.java | 453 +++++++----------- .../storage/snippets/ITStorageSnippets.java | 66 +-- 2 files changed, 209 insertions(+), 310 deletions(-) diff --git a/google-cloud-examples/src/main/java/com/google/cloud/examples/storage/snippets/StorageSnippets.java b/google-cloud-examples/src/main/java/com/google/cloud/examples/storage/snippets/StorageSnippets.java index 585d732df7ed..9d943c87331e 100644 --- a/google-cloud-examples/src/main/java/com/google/cloud/examples/storage/snippets/StorageSnippets.java +++ b/google-cloud-examples/src/main/java/com/google/cloud/examples/storage/snippets/StorageSnippets.java @@ -73,9 +73,7 @@ import java.util.Map; import java.util.concurrent.TimeUnit; -/** - * This class contains a number of snippets for the {@link Storage} interface. - */ +/** This class contains a number of snippets for the {@link Storage} interface. */ public class StorageSnippets { private final Storage storage; @@ -84,9 +82,7 @@ public StorageSnippets(Storage storage) { this.storage = storage; } - /** - * Example of creating a bucket. - */ + /** Example of creating a bucket. */ // [TARGET create(BucketInfo, BucketTargetOption...)] // [VARIABLE "my_unique_bucket"] public Bucket createBucket(String bucketName) { @@ -96,26 +92,24 @@ public Bucket createBucket(String bucketName) { return bucket; } - /** - * Example of creating a bucket with storage class and location. - */ + /** Example of creating a bucket with storage class and location. */ // [TARGET create(BucketInfo, BucketTargetOption...)] // [VARIABLE "my_unique_bucket"] public Bucket createBucketWithStorageClassAndLocation(String bucketName) { // [START createBucketWithStorageClassAndLocation] - Bucket bucket = storage.create(BucketInfo.newBuilder(bucketName) - // See here for possible values: http://g.co/cloud/storage/docs/storage-classes - .setStorageClass(StorageClass.COLDLINE) - // Possible values: http://g.co/cloud/storage/docs/bucket-locations#location-mr - .setLocation("asia") - .build()); + Bucket bucket = + storage.create( + BucketInfo.newBuilder(bucketName) + // See here for possible values: http://g.co/cloud/storage/docs/storage-classes + .setStorageClass(StorageClass.COLDLINE) + // Possible values: http://g.co/cloud/storage/docs/bucket-locations#location-mr + .setLocation("asia") + .build()); // [END createBucketWithStorageClassAndLocation] return bucket; } - /** - * Example of creating a blob with no content. - */ + /** Example of creating a blob with no content. */ // [TARGET create(BlobInfo, BlobTargetOption...)] // [VARIABLE "my_unique_bucket"] // [VARIABLE "my_blob_name"] @@ -128,9 +122,7 @@ public Blob createBlob(String bucketName, String blobName) { return blob; } - /** - * Example of creating a blob from a byte array. - */ + /** Example of creating a blob from a byte array. */ // [TARGET create(BlobInfo, byte[], BlobTargetOption...)] // [VARIABLE "my_unique_bucket"] // [VARIABLE "my_blob_name"] @@ -143,9 +135,7 @@ public Blob createBlobFromByteArray(String bucketName, String blobName) { return blob; } - /** - * Example of creating a blob from an input stream. - */ + /** Example of creating a blob from an input stream. */ // [TARGET create(BlobInfo, InputStream, BlobWriteOption...)] // [VARIABLE "my_unique_bucket"] // [VARIABLE "my_blob_name"] @@ -159,9 +149,7 @@ public Blob createBlobFromInputStream(String bucketName, String blobName) { return blob; } - /** - * Example of uploading an encrypted blob. - */ + /** Example of uploading an encrypted blob. */ // [TARGET create(BlobInfo, InputStream, BlobWriteOption...)] // [VARIABLE "my_unique_bucket"] // [VARIABLE "my_blob_name"] @@ -171,17 +159,13 @@ public Blob createEncryptedBlob(String bucketName, String blobName, String encry byte[] data = "Hello, World!".getBytes(UTF_8); BlobId blobId = BlobId.of(bucketName, blobName); - BlobInfo blobInfo = BlobInfo.newBuilder(blobId) - .setContentType("text/plain") - .build(); + BlobInfo blobInfo = BlobInfo.newBuilder(blobId).setContentType("text/plain").build(); Blob blob = storage.create(blobInfo, data, BlobTargetOption.encryptionKey(encryptionKey)); // [END storageUploadEncryptedFile] return blob; } - /** - * Example of uploading a blob encrypted service side with a Cloud KMS key. - */ + /** Example of uploading a blob encrypted service side with a Cloud KMS key. */ public Blob createKmsEncrpytedBlob(String bucketName, String blobName, String kmsKeyName) { // [START storage_upload_with_kms_key] byte[] data = "Hello, World!".getBytes(UTF_8); @@ -195,9 +179,7 @@ public Blob createKmsEncrpytedBlob(String bucketName, String blobName, String km // String kmsKeyName = "" BlobId blobId = BlobId.of(bucketName, blobName); - BlobInfo blobInfo = BlobInfo.newBuilder(blobId) - .setContentType("text/plain") - .build(); + BlobInfo blobInfo = BlobInfo.newBuilder(blobId).setContentType("text/plain").build(); Blob blob = storage.create(blobInfo, data, BlobTargetOption.kmsKeyName(kmsKeyName)); // [END storage_upload_with_kms_key] return blob; @@ -212,32 +194,30 @@ public Blob createKmsEncrpytedBlob(String bucketName, String blobName, String km // [VARIABLE 42] public Bucket getBucketWithMetageneration(String bucketName, long bucketMetageneration) { // [START getBucketWithMetageneration] - Bucket bucket = storage.get(bucketName, - BucketGetOption.metagenerationMatch(bucketMetageneration)); + Bucket bucket = + storage.get(bucketName, BucketGetOption.metagenerationMatch(bucketMetageneration)); // [END getBucketWithMetageneration] return bucket; } /** - * Example of getting information on a blob, only if its metageneration matches a value, - * otherwise a {@link StorageException} is thrown. + * Example of getting information on a blob, only if its metageneration matches a value, otherwise + * a {@link StorageException} is thrown. */ // [TARGET get(String, String, BlobGetOption...)] // [VARIABLE "my_unique_bucket"] // [VARIABLE "my_blob_name"] // [VARIABLE 42] - public Blob getBlobFromStringsWithMetageneration(String bucketName, String blobName, - long blobMetageneration) { + public Blob getBlobFromStringsWithMetageneration( + String bucketName, String blobName, long blobMetageneration) { // [START getBlobFromStringsWithMetageneration] - Blob blob = storage.get(bucketName, blobName, - BlobGetOption.metagenerationMatch(blobMetageneration)); + Blob blob = + storage.get(bucketName, blobName, BlobGetOption.metagenerationMatch(blobMetageneration)); // [END getBlobFromStringsWithMetageneration] return blob; } - /** - * Example of getting information on a blob. - */ + /** Example of getting information on a blob. */ // [TARGET get(BlobId)] // [VARIABLE "my_unique_bucket"] // [VARIABLE "my_blob_name"] @@ -250,15 +230,15 @@ public Blob getBlobFromId(String bucketName, String blobName) { } /** - * Example of getting information on a blob, only if its metageneration matches a value, - * otherwise a {@link StorageException} is thrown. + * Example of getting information on a blob, only if its metageneration matches a value, otherwise + * a {@link StorageException} is thrown. */ // [TARGET get(BlobId, BlobGetOption...)] // [VARIABLE "my_unique_bucket"] // [VARIABLE "my_blob_name"] // [VARIABLE 42] - public Blob getBlobFromIdWithMetageneration(String bucketName, String blobName, - long blobMetageneration) { + public Blob getBlobFromIdWithMetageneration( + String bucketName, String blobName, long blobMetageneration) { // [START getBlobFromIdWithMetageneration] BlobId blobId = BlobId.of(bucketName, blobName); Blob blob = storage.get(blobId, BlobGetOption.metagenerationMatch(blobMetageneration)); @@ -266,17 +246,15 @@ public Blob getBlobFromIdWithMetageneration(String bucketName, String blobName, return blob; } - /** - * Example of listing buckets, specifying the page size and a name prefix. - */ + /** Example of listing buckets, specifying the page size and a name prefix. */ // [TARGET list(BucketListOption...)] // [VARIABLE "bucket_"] public Page listBucketsWithSizeAndPrefix(String prefix) { // [START listBucketsWithSizeAndPrefix] // Include a prefix of bucket-name to reduce search space. // For more information read https://cloud.google.com/storage/docs/json_api/v1/buckets/list - Page buckets = storage.list(BucketListOption.pageSize(100), - BucketListOption.prefix(prefix)); + Page buckets = + storage.list(BucketListOption.pageSize(100), BucketListOption.prefix(prefix)); for (Bucket bucket : buckets.iterateAll()) { // do something with the bucket } @@ -284,16 +262,15 @@ public Page listBucketsWithSizeAndPrefix(String prefix) { return buckets; } - /** - * Example of listing blobs in a provided directory. - */ + /** Example of listing blobs in a provided directory. */ // [TARGET list(String, BlobListOption...)] // [VARIABLE "my_unique_bucket"] // [VARIABLE "my_directory/"] public Page listBlobsWithDirectoryAndPrefix(String bucketName, String directory) { // [START listBlobsWithDirectoryAndPrefix] - Page blobs = storage.list(bucketName, BlobListOption.currentDirectory(), - BlobListOption.prefix(directory)); + Page blobs = + storage.list( + bucketName, BlobListOption.currentDirectory(), BlobListOption.prefix(directory)); for (Blob blob : blobs.iterateAll()) { // do something with the blob } @@ -301,9 +278,7 @@ public Page listBlobsWithDirectoryAndPrefix(String bucketName, String dire return blobs; } - /** - * Example of updating bucket information. - */ + /** Example of updating bucket information. */ // [TARGET update(BucketInfo, BucketTargetOption...)] // [VARIABLE "my_unique_bucket"] public Bucket updateBucket(String bucketName) { @@ -314,9 +289,7 @@ public Bucket updateBucket(String bucketName) { return bucket; } - /** - * Example of replacing blob's metadata. - */ + /** Example of replacing blob's metadata. */ // [TARGET update(BlobInfo)] // [VARIABLE "my_unique_bucket"] // [VARIABLE "my_blob_name"] @@ -325,9 +298,8 @@ public Blob updateBlob(String bucketName, String blobName) { Map newMetadata = new HashMap<>(); newMetadata.put("key", "value"); storage.update(BlobInfo.newBuilder(bucketName, blobName).setMetadata(null).build()); - Blob blob = storage.update(BlobInfo.newBuilder(bucketName, blobName) - .setMetadata(newMetadata) - .build()); + Blob blob = + storage.update(BlobInfo.newBuilder(bucketName, blobName).setMetadata(newMetadata).build()); // [END updateBlob] return blob; } @@ -349,16 +321,16 @@ public Blob updateBlobWithMetageneration(String bucketName, String blobName) { } /** - * Example of deleting a bucket, only if its metageneration matches a value, otherwise a - * {@link StorageException} is thrown. + * Example of deleting a bucket, only if its metageneration matches a value, otherwise a {@link + * StorageException} is thrown. */ // [TARGET delete(String, BucketSourceOption...)] // [VARIABLE "my_unique_bucket"] // [VARIABLE 42] public boolean deleteBucketWithMetageneration(String bucketName, long bucketMetageneration) { // [START deleteBucketWithMetageneration] - boolean deleted = storage.delete(bucketName, - BucketSourceOption.metagenerationMatch(bucketMetageneration)); + boolean deleted = + storage.delete(bucketName, BucketSourceOption.metagenerationMatch(bucketMetageneration)); if (deleted) { // the bucket was deleted } else { @@ -369,18 +341,18 @@ public boolean deleteBucketWithMetageneration(String bucketName, long bucketMeta } /** - * Example of deleting a blob, only if its generation matches a value, otherwise a - * {@link StorageException} is thrown. + * Example of deleting a blob, only if its generation matches a value, otherwise a {@link + * StorageException} is thrown. */ // [TARGET delete(String, String, BlobSourceOption...)] // [VARIABLE "my_unique_bucket"] // [VARIABLE "my_blob_name"] // [VARIABLE 42] - public boolean deleteBlobFromStringsWithGeneration(String bucketName, String blobName, - long blobGeneration) { + public boolean deleteBlobFromStringsWithGeneration( + String bucketName, String blobName, long blobGeneration) { // [START deleteBlobFromStringsWithGeneration] - boolean deleted = storage.delete(bucketName, blobName, - BlobSourceOption.generationMatch(blobGeneration)); + boolean deleted = + storage.delete(bucketName, blobName, BlobSourceOption.generationMatch(blobGeneration)); if (deleted) { // the blob was deleted } else { @@ -391,15 +363,15 @@ public boolean deleteBlobFromStringsWithGeneration(String bucketName, String blo } /** - * Example of deleting a blob, only if its generation matches a value, otherwise a - * {@link StorageException} is thrown. + * Example of deleting a blob, only if its generation matches a value, otherwise a {@link + * StorageException} is thrown. */ // [TARGET delete(BlobId, BlobSourceOption...)] // [VARIABLE "my_unique_bucket"] // [VARIABLE "my_blob_name"] // [VARIABLE 42] - public boolean deleteBlobFromIdWithGeneration(String bucketName, String blobName, - long blobGeneration) { + public boolean deleteBlobFromIdWithGeneration( + String bucketName, String blobName, long blobGeneration) { // [START deleteBlobFromIdWithGeneration] BlobId blobId = BlobId.of(bucketName, blobName); boolean deleted = storage.delete(blobId, BlobSourceOption.generationMatch(blobGeneration)); @@ -412,9 +384,7 @@ public boolean deleteBlobFromIdWithGeneration(String bucketName, String blobName return deleted; } - /** - * Example of deleting a blob. - */ + /** Example of deleting a blob. */ // [TARGET delete(BlobId)] // [VARIABLE "my_unique_bucket"] // [VARIABLE "my_blob_name"] @@ -431,60 +401,57 @@ public boolean deleteBlob(String bucketName, String blobName) { return deleted; } - /** - * Example of composing two blobs. - */ + /** Example of composing two blobs. */ // [TARGET compose(ComposeRequest)] // [VARIABLE "my_unique_bucket"] // [VARIABLE "my_blob_name"] // [VARIABLE "source_blob_1"] // [VARIABLE "source_blob_2"] - public Blob composeBlobs(String bucketName, String blobName, String sourceBlob1, - String sourceBlob2) { + public Blob composeBlobs( + String bucketName, String blobName, String sourceBlob1, String sourceBlob2) { // [START composeBlobs] BlobId blobId = BlobId.of(bucketName, blobName); BlobInfo blobInfo = BlobInfo.newBuilder(blobId).setContentType("text/plain").build(); - ComposeRequest request = ComposeRequest.newBuilder() - .setTarget(blobInfo) - .addSource(sourceBlob1) - .addSource(sourceBlob2) - .build(); + ComposeRequest request = + ComposeRequest.newBuilder() + .setTarget(blobInfo) + .addSource(sourceBlob1) + .addSource(sourceBlob2) + .build(); Blob blob = storage.compose(request); // [END composeBlobs] return blob; } - /** - * Example of copying a blob. - */ + /** Example of copying a blob. */ // [TARGET copy(CopyRequest)] // [VARIABLE "my_unique_bucket"] // [VARIABLE "my_blob_name"] // [VARIABLE "copy_blob_name"] public Blob copyBlob(String bucketName, String blobName, String copyBlobName) { // [START copyBlob] - CopyRequest request = CopyRequest.newBuilder() - .setSource(BlobId.of(bucketName, blobName)) - .setTarget(BlobId.of(bucketName, copyBlobName)) - .build(); + CopyRequest request = + CopyRequest.newBuilder() + .setSource(BlobId.of(bucketName, blobName)) + .setTarget(BlobId.of(bucketName, copyBlobName)) + .build(); Blob blob = storage.copy(request).getResult(); // [END copyBlob] return blob; } - /** - * Example of copying a blob in chunks. - */ + /** Example of copying a blob in chunks. */ // [TARGET copy(CopyRequest)] // [VARIABLE "my_unique_bucket"] // [VARIABLE "my_blob_name"] // [VARIABLE "copy_blob_name"] public Blob copyBlobInChunks(String bucketName, String blobName, String copyBlobName) { // [START copyBlobInChunks] - CopyRequest request = CopyRequest.newBuilder() - .setSource(BlobId.of(bucketName, blobName)) - .setTarget(BlobId.of(bucketName, copyBlobName)) - .build(); + CopyRequest request = + CopyRequest.newBuilder() + .setSource(BlobId.of(bucketName, blobName)) + .setTarget(BlobId.of(bucketName, copyBlobName)) + .build(); CopyWriter copyWriter = storage.copy(request); while (!copyWriter.isDone()) { copyWriter.copyChunk(); @@ -494,9 +461,7 @@ public Blob copyBlobInChunks(String bucketName, String blobName, String copyBlob return blob; } - /** - * Example of rotating the encryption key of a blob. - */ + /** Example of rotating the encryption key of a blob. */ // [TARGET copy(CopyRequest)] // [VARIABLE "my_unique_bucket"] // [VARIABLE "my_blob_name"] @@ -506,36 +471,38 @@ public Blob rotateBlobEncryptionKey( String bucketName, String blobName, String oldEncryptionKey, String newEncryptionKey) { // [START storageRotateEncryptionKey] BlobId blobId = BlobId.of(bucketName, blobName); - CopyRequest request = CopyRequest.newBuilder() - .setSource(blobId) - .setSourceOptions(BlobSourceOption.decryptionKey(oldEncryptionKey)) - .setTarget(blobId, BlobTargetOption.encryptionKey(newEncryptionKey)) - .build(); + CopyRequest request = + CopyRequest.newBuilder() + .setSource(blobId) + .setSourceOptions(BlobSourceOption.decryptionKey(oldEncryptionKey)) + .setTarget(blobId, BlobTargetOption.encryptionKey(newEncryptionKey)) + .build(); Blob blob = storage.copy(request).getResult(); // [END storageRotateEncryptionKey] return blob; } /** - * Example of reading all bytes of a blob, if generation matches a value, otherwise a - * {@link StorageException} is thrown. + * Example of reading all bytes of a blob, if generation matches a value, otherwise a {@link + * StorageException} is thrown. */ // [TARGET readAllBytes(String, String, BlobSourceOption...)] // [VARIABLE "my_unique_bucket"] // [VARIABLE "my_blob_name"] // [VARIABLE 42"] - public byte[] readBlobFromStringsWithGeneration(String bucketName, String blobName, - long blobGeneration) { + public byte[] readBlobFromStringsWithGeneration( + String bucketName, String blobName, long blobGeneration) { // [START readBlobFromStringsWithGeneration] - byte[] content = storage.readAllBytes(bucketName, blobName, - BlobSourceOption.generationMatch(blobGeneration)); + byte[] content = + storage.readAllBytes( + bucketName, blobName, BlobSourceOption.generationMatch(blobGeneration)); // [END readBlobFromStringsWithGeneration] return content; } /** - * Example of reading all bytes of a blob's specific generation, otherwise a - * {@link StorageException} is thrown. + * Example of reading all bytes of a blob's specific generation, otherwise a {@link + * StorageException} is thrown. */ // [TARGET readAllBytes(BlobId, BlobSourceOption...)] // [VARIABLE "my_unique_bucket"] @@ -549,24 +516,20 @@ public byte[] readBlobFromId(String bucketName, String blobName, long blobGenera return content; } - /** - * Example of reading all bytes of an encrypted blob. - */ + /** Example of reading all bytes of an encrypted blob. */ // [TARGET readAllBytes(BlobId, BlobSourceOption...)] // [VARIABLE "my_unique_bucket"] // [VARIABLE "my_blob_name"] // [VARIABLE "my_encryption_key"] public byte[] readEncryptedBlob(String bucketName, String blobName, String decryptionKey) { // [START readEncryptedBlob] - byte[] content = storage.readAllBytes( - bucketName, blobName, BlobSourceOption.decryptionKey(decryptionKey)); + byte[] content = + storage.readAllBytes(bucketName, blobName, BlobSourceOption.decryptionKey(decryptionKey)); // [END readEncryptedBlob] return content; } - /** - * Example of using a batch request to delete, update and get a blob. - */ + /** Example of using a batch request to delete, update and get a blob. */ // [TARGET batch()] // [VARIABLE "my_unique_bucket"] // [VARIABLE "my_blob_name1"] @@ -576,15 +539,18 @@ public Blob batch(String bucketName, String blobName1, String blobName2) { StorageBatch batch = storage.batch(); BlobId firstBlob = BlobId.of(bucketName, blobName1); BlobId secondBlob = BlobId.of(bucketName, blobName2); - batch.delete(firstBlob).notify(new BatchResult.Callback() { - public void success(Boolean result) { - // deleted successfully - } - - public void error(StorageException exception) { - // delete failed - } - }); + batch + .delete(firstBlob) + .notify( + new BatchResult.Callback() { + public void success(Boolean result) { + // deleted successfully + } + + public void error(StorageException exception) { + // delete failed + } + }); batch.update(BlobInfo.newBuilder(secondBlob).setContentType("text/plain").build()); StorageBatchResult result = batch.get(secondBlob); batch.submit(); @@ -593,9 +559,7 @@ public void error(StorageException exception) { return blob; } - /** - * Example of reading a blob's content through a reader. - */ + /** Example of reading a blob's content through a reader. */ // [TARGET reader(String, String, BlobSourceOption...)] // [VARIABLE "my_unique_bucket"] // [VARIABLE "my_blob_name"] @@ -612,9 +576,7 @@ public void readerFromStrings(String bucketName, String blobName) throws IOExcep // [END readerFromStrings] } - /** - * Example of reading a blob's content through a reader. - */ + /** Example of reading a blob's content through a reader. */ // [TARGET reader(BlobId, BlobSourceOption...)] // [VARIABLE "my_unique_bucket"] // [VARIABLE "my_blob_name"] @@ -632,9 +594,7 @@ public void readerFromId(String bucketName, String blobName) throws IOException // [END readerFromId] } - /** - * Example of writing a blob's content through a writer. - */ + /** Example of writing a blob's content through a writer. */ // [TARGET writer(BlobInfo, BlobWriteOption...)] // [VARIABLE "my_unique_bucket"] // [VARIABLE "my_blob_name"] @@ -654,24 +614,23 @@ public void writer(String bucketName, String blobName) throws IOException { } /** - * Example of creating a signed URL that is valid for 2 weeks, using the default credentials - * for signing the URL. + * Example of creating a signed URL that is valid for 2 weeks, using the default credentials for + * signing the URL. */ // [TARGET signUrl(BlobInfo, long, TimeUnit, SignUrlOption...)] // [VARIABLE "my_unique_bucket"] // [VARIABLE "my_blob_name"] public URL signUrl(String bucketName, String blobName) { // [START signUrl] - URL signedUrl = storage.signUrl(BlobInfo.newBuilder(bucketName, blobName).build(), 14, - TimeUnit.DAYS); + URL signedUrl = + storage.signUrl(BlobInfo.newBuilder(bucketName, blobName).build(), 14, TimeUnit.DAYS); // [END signUrl] return signedUrl; } /** - * Example of creating a signed URL passing the - * {@link SignUrlOption#signWith(ServiceAccountSigner)} option, that will be used for signing the - * URL. + * Example of creating a signed URL passing the {@link + * SignUrlOption#signWith(ServiceAccountSigner)} option, that will be used for signing the URL. */ // [TARGET signUrl(BlobInfo, long, TimeUnit, SignUrlOption...)] // [VARIABLE "my_unique_bucket"] @@ -680,16 +639,18 @@ public URL signUrl(String bucketName, String blobName) { public URL signUrlWithSigner(String bucketName, String blobName, String keyPath) throws IOException { // [START signUrlWithSigner] - URL signedUrl = storage.signUrl(BlobInfo.newBuilder(bucketName, blobName).build(), - 14, TimeUnit.DAYS, SignUrlOption.signWith( - ServiceAccountCredentials.fromStream(new FileInputStream(keyPath)))); + URL signedUrl = + storage.signUrl( + BlobInfo.newBuilder(bucketName, blobName).build(), + 14, + TimeUnit.DAYS, + SignUrlOption.signWith( + ServiceAccountCredentials.fromStream(new FileInputStream(keyPath)))); // [END signUrlWithSigner] return signedUrl; } - /** - * Example of getting information on several blobs using a single batch request. - */ + /** Example of getting information on several blobs using a single batch request. */ // [TARGET get(BlobId...)] // [VARIABLE "my_unique_bucket"] // [VARIABLE "my_blob_name1"] @@ -703,9 +664,7 @@ public List batchGet(String bucketName, String blobName1, String blobName2 return blobs; } - /** - * Example of getting information on several blobs using a single batch request. - */ + /** Example of getting information on several blobs using a single batch request. */ // [TARGET get(Iterable)] // [VARIABLE "my_unique_bucket"] // [VARIABLE "my_blob_name1"] @@ -720,9 +679,7 @@ public List batchGetIterable(String bucketName, String blobName1, String b return blobs; } - /** - * Example of updating information on several blobs using a single batch request. - */ + /** Example of updating information on several blobs using a single batch request. */ // [TARGET update(BlobInfo...)] // [VARIABLE "my_unique_bucket"] // [VARIABLE "my_blob_name1"] @@ -731,16 +688,15 @@ public List batchUpdate(String bucketName, String blobName1, String blobNa // [START batchUpdate] Blob firstBlob = storage.get(bucketName, blobName1); Blob secondBlob = storage.get(bucketName, blobName2); - List updatedBlobs = storage.update( - firstBlob.toBuilder().setContentType("text/plain").build(), - secondBlob.toBuilder().setContentType("text/plain").build()); + List updatedBlobs = + storage.update( + firstBlob.toBuilder().setContentType("text/plain").build(), + secondBlob.toBuilder().setContentType("text/plain").build()); // [END batchUpdate] return updatedBlobs; } - /** - * Example of updating information on several blobs using a single batch request. - */ + /** Example of updating information on several blobs using a single batch request. */ // [TARGET update(Iterable)] // [VARIABLE "my_unique_bucket"] // [VARIABLE "my_blob_name1"] @@ -757,9 +713,7 @@ public List batchUpdateIterable(String bucketName, String blobName1, Strin return updatedBlobs; } - /** - * Example of deleting several blobs using a single batch request. - */ + /** Example of deleting several blobs using a single batch request. */ // [TARGET delete(BlobId...)] // [VARIABLE "my_unique_bucket"] // [VARIABLE "my_blob_name1"] @@ -773,9 +727,7 @@ public List batchDelete(String bucketName, String blobName1, String blo return deleted; } - /** - * Example of deleting several blobs using a single batch request. - */ + /** Example of deleting several blobs using a single batch request. */ // [TARGET delete(Iterable)] // [VARIABLE "my_unique_bucket"] // [VARIABLE "my_blob_name1"] @@ -790,9 +742,7 @@ public List batchDeleteIterable(String bucketName, String blobName1, St return deleted; } - /** - * Example of getting the ACL entry for an entity on a bucket. - */ + /** Example of getting the ACL entry for an entity on a bucket. */ // [TARGET getAcl(String, Entity)] // [VARIABLE "my_unique_bucket"] public Acl getBucketAcl(String bucketName) { @@ -802,9 +752,7 @@ public Acl getBucketAcl(String bucketName) { return acl; } - /** - * Example of getting the ACL entry for a specific user on a bucket. - */ + /** Example of getting the ACL entry for a specific user on a bucket. */ // [TARGET getAcl(String, Entity)] // [VARIABLE "my_unique_bucket"] // [VARIABLE "google-cloud-java-tests@java-docs-samples-tests.iam.gserviceaccount.com"] @@ -815,9 +763,7 @@ public Acl getBucketAcl(String bucketName, String userEmail) { return acl; } - /** - * Example of deleting the ACL entry for an entity on a bucket. - */ + /** Example of deleting the ACL entry for an entity on a bucket. */ // [TARGET deleteAcl(String, Entity)] // [VARIABLE "my_unique_bucket"] public boolean deleteBucketAcl(String bucketName) { @@ -832,9 +778,7 @@ public boolean deleteBucketAcl(String bucketName) { return deleted; } - /** - * Example of creating a new ACL entry on a bucket. - */ + /** Example of creating a new ACL entry on a bucket. */ // [TARGET createAcl(String, Acl)] // [VARIABLE "my_unique_bucket"] public Acl createBucketAcl(String bucketName) { @@ -844,9 +788,7 @@ public Acl createBucketAcl(String bucketName) { return acl; } - /** - * Example of updating a new ACL entry on a bucket. - */ + /** Example of updating a new ACL entry on a bucket. */ // [TARGET updateAcl(String, Acl)] // [VARIABLE "my_unique_bucket"] public Acl updateBucketAcl(String bucketName) { @@ -856,9 +798,7 @@ public Acl updateBucketAcl(String bucketName) { return acl; } - /** - * Example of listing the ACL entries for a blob. - */ + /** Example of listing the ACL entries for a blob. */ // [TARGET listAcls(String)] // [VARIABLE "my_unique_bucket"] public List listBucketAcls(String bucketName) { @@ -871,9 +811,7 @@ public List listBucketAcls(String bucketName) { return acls; } - /** - * Example of getting the default ACL entry for an entity on a bucket. - */ + /** Example of getting the default ACL entry for an entity on a bucket. */ // [TARGET getDefaultAcl(String, Entity)] // [VARIABLE "my_unique_bucket"] public Acl getDefaultBucketAcl(String bucketName) { @@ -883,9 +821,7 @@ public Acl getDefaultBucketAcl(String bucketName) { return acl; } - /** - * Example of deleting the default ACL entry for an entity on a bucket. - */ + /** Example of deleting the default ACL entry for an entity on a bucket. */ // [TARGET deleteDefaultAcl(String, Entity)] // [VARIABLE "my_unique_bucket"] public boolean deleteDefaultBucketAcl(String bucketName) { @@ -900,9 +836,7 @@ public boolean deleteDefaultBucketAcl(String bucketName) { return deleted; } - /** - * Example of creating a new default ACL entry on a bucket. - */ + /** Example of creating a new default ACL entry on a bucket. */ // [TARGET createDefaultAcl(String, Acl)] // [VARIABLE "my_unique_bucket"] public Acl createDefaultBucketAcl(String bucketName) { @@ -913,9 +847,7 @@ public Acl createDefaultBucketAcl(String bucketName) { return acl; } - /** - * Example of updating a new default ACL entry on a bucket. - */ + /** Example of updating a new default ACL entry on a bucket. */ // [TARGET updateDefaultAcl(String, Acl)] // [VARIABLE "my_unique_bucket"] public Acl updateDefaultBucketAcl(String bucketName) { @@ -926,9 +858,7 @@ public Acl updateDefaultBucketAcl(String bucketName) { return acl; } - /** - * Example of listing the default ACL entries for a blob. - */ + /** Example of listing the default ACL entries for a blob. */ // [TARGET listDefaultAcls(String)] // [VARIABLE "my_unique_bucket"] public List listDefaultBucketAcls(String bucketName) { @@ -941,9 +871,7 @@ public List listDefaultBucketAcls(String bucketName) { return acls; } - /** - * Example of getting the ACL entry for an entity on a blob. - */ + /** Example of getting the ACL entry for an entity on a blob. */ // [TARGET getAcl(BlobId, Entity)] // [VARIABLE "my_unique_bucket"] // [VARIABLE "my_blob_name"] @@ -956,9 +884,7 @@ public Acl getBlobAcl(String bucketName, String blobName, long blobGeneration) { return acl; } - /** - * Example of getting the ACL entry for a specific user on a blob. - */ + /** Example of getting the ACL entry for a specific user on a blob. */ // [TARGET getAcl(BlobId, Entity)] // [VARIABLE "my_unique_bucket"] // [VARIABLE "my_blob_name"] @@ -971,9 +897,7 @@ public Acl getBlobAcl(String bucketName, String blobName, String userEmail) { return acl; } - /** - * Example of deleting the ACL entry for an entity on a blob. - */ + /** Example of deleting the ACL entry for an entity on a blob. */ // [TARGET deleteAcl(BlobId, Entity)] // [VARIABLE "my_unique_bucket"] // [VARIABLE "my_blob_name"] @@ -991,9 +915,7 @@ public boolean deleteBlobAcl(String bucketName, String blobName, long blobGenera return deleted; } - /** - * Example of creating a new ACL entry on a blob. - */ + /** Example of creating a new ACL entry on a blob. */ // [TARGET createAcl(BlobId, Acl)] // [VARIABLE "my_unique_bucket"] // [VARIABLE "my_blob_name"] @@ -1006,9 +928,7 @@ public Acl createBlobAcl(String bucketName, String blobName, long blobGeneration return acl; } - /** - * Example of updating a new ACL entry on a blob. - */ + /** Example of updating a new ACL entry on a blob. */ // [TARGET updateAcl(BlobId, Acl)] // [VARIABLE "my_unique_bucket"] // [VARIABLE "my_blob_name"] @@ -1021,9 +941,7 @@ public Acl updateBlobAcl(String bucketName, String blobName, long blobGeneration return acl; } - /** - * Example of updating a blob to be public-read. - */ + /** Example of updating a blob to be public-read. */ // [TARGET createAcl(BlobId, Acl)] // [VARIABLE "my_unique_bucket"] // [VARIABLE "my_blob_name"] @@ -1036,9 +954,7 @@ public Acl blobToPublicRead(String bucketName, String blobName, long blobGenerat return acl; } - /** - * Example of listing the ACL entries for a blob. - */ + /** Example of listing the ACL entries for a blob. */ // [TARGET listAcls(BlobId)] // [VARIABLE "my_unique_bucket"] // [VARIABLE "my_blob_name"] @@ -1054,9 +970,7 @@ public List listBlobAcls(String bucketName, String blobName, long blobGener return acls; } - /** - * Example of default auth - */ + /** Example of default auth */ public Page authListBuckets() { // [START auth_cloud_implicit] // If you don't specify credentials when constructing the client, the @@ -1072,31 +986,25 @@ public Page authListBuckets() { return buckets; } - /** - * Example of enabling Requester pays on a bucket. - */ - public Bucket enableRequesterPays(String bucketName) throws StorageException { + /** Example of enabling Requester pays on a bucket. */ + public Bucket enableRequesterPays(String bucketName) throws StorageException { // [START enable_requester_pays] // Instantiate a Google Cloud Storage client Storage storage = StorageOptions.getDefaultInstance().getService(); // The name of the existing bucket to enable requester-paying for, e.g. "my-bucket" // String bucketName = "my-bucket" - BucketInfo bucketInfo = BucketInfo.newBuilder(bucketName) - .setRequesterPays(true) - .build(); + BucketInfo bucketInfo = BucketInfo.newBuilder(bucketName).setRequesterPays(true).build(); // Update the bucket, throws StorageException on failure Bucket bucket = storage.update(bucketInfo); - System.out.println("Requester pay status for " + bucketName +": " + bucket.requesterPays()); + System.out.println("Requester pay status for " + bucketName + ": " + bucket.requesterPays()); // [END enable_requester_pays] return bucket; } - /** - * Example of disabling Requester pays on a bucket. - */ + /** Example of disabling Requester pays on a bucket. */ public Bucket disableRequesterPays(String bucketName) { // [START disable_requester_pays] // Instantiate a Google Cloud Storage client @@ -1104,21 +1012,17 @@ public Bucket disableRequesterPays(String bucketName) { // The name of the bucket to disable requester-paying for, e.g. "my-bucket" // String bucketName = "my-bucket" - BucketInfo bucketInfo = BucketInfo.newBuilder(bucketName) - .setRequesterPays(false) - .build(); + BucketInfo bucketInfo = BucketInfo.newBuilder(bucketName).setRequesterPays(false).build(); // Update the bucket, throws StorageException on failure Bucket bucket = storage.update(bucketInfo); - System.out.println("Requester pays status for " + bucketName +": " + bucket.requesterPays()); + System.out.println("Requester pays status for " + bucketName + ": " + bucket.requesterPays()); // [END disable_requester_pays] return bucket; } - /** - * Example of retrieving Requester pays status on a bucket. - */ + /** Example of retrieving Requester pays status on a bucket. */ public Bucket getRequesterPaysStatus(String bucketName) throws StorageException { // [START get_requester_pays_status] // Instantiate a Google Cloud Storage client @@ -1127,19 +1031,16 @@ public Bucket getRequesterPaysStatus(String bucketName) throws StorageException // The name of the bucket to retrieve requester-pays status, eg. "my-bucket" // String bucketName = "my-bucket" // Retrieve the bucket, throws StorageException on failure - Bucket bucket = storage.get(bucketName, - Storage.BucketGetOption.fields(BucketField.BILLING)); + Bucket bucket = storage.get(bucketName, Storage.BucketGetOption.fields(BucketField.BILLING)); System.out.println("Requester pays status : " + bucket.requesterPays()); // [END get_requester_pays_status] return bucket; } - /** - * Example of downloading a file. - */ - public void downloadFile(String bucketName, String srcFilename, - Path destFilePath) throws IOException { + /** Example of downloading a file. */ + public void downloadFile(String bucketName, String srcFilename, Path destFilePath) + throws IOException { // [START storage_download_file] // The name of the bucket to access // String bucketName = "my-bucket"; @@ -1160,12 +1061,11 @@ public void downloadFile(String bucketName, String srcFilename, blob.downloadTo(destFilePath); // [END storage_download_file] } - - /** - * Example of downloading a file using Requester pay. - */ - public void downloadFileUsingRequesterPays(String projectId, String bucketName, - String srcFilename, Path destFilePath) throws IOException { + + /** Example of downloading a file using Requester pay. */ + public void downloadFileUsingRequesterPays( + String projectId, String bucketName, String srcFilename, Path destFilePath) + throws IOException { // [START storage_download_file_requester_pays] // The project ID to bill // String projectId = "my-billable-project-id"; @@ -1190,9 +1090,7 @@ public void downloadFileUsingRequesterPays(String projectId, String bucketName, // [END storage_download_file_requester_pays] } - /** - * Example of setting a default KMS key on a bucket. - */ + /** Example of setting a default KMS key on a bucket. */ public Bucket setDefaultKmsKey(String bucketName, String kmsKeyName) throws StorageException { // [START storage_set_bucket_default_kms_key] // Instantiate a Google Cloud Storage client @@ -1206,9 +1104,8 @@ public Bucket setDefaultKmsKey(String bucketName, String kmsKeyName) throws Stor // 'projects//locations//keyRings//cryptoKeys/' // String kmsKeyName = "" - BucketInfo bucketInfo = BucketInfo.newBuilder(bucketName) - .setDefaultKmsKeyName(kmsKeyName) - .build(); + BucketInfo bucketInfo = + BucketInfo.newBuilder(bucketName).setDefaultKmsKeyName(kmsKeyName).build(); Bucket bucket = storage.update(bucketInfo); diff --git a/google-cloud-examples/src/test/java/com/google/cloud/examples/storage/snippets/ITStorageSnippets.java b/google-cloud-examples/src/test/java/com/google/cloud/examples/storage/snippets/ITStorageSnippets.java index fa4257441a83..fffd0c3eb5b5 100644 --- a/google-cloud-examples/src/test/java/com/google/cloud/examples/storage/snippets/ITStorageSnippets.java +++ b/google-cloud-examples/src/test/java/com/google/cloud/examples/storage/snippets/ITStorageSnippets.java @@ -69,21 +69,19 @@ public class ITStorageSnippets { private static final Logger log = Logger.getLogger(ITStorageSnippets.class.getName()); private static final String BUCKET = RemoteStorageHelper.generateBucketName(); private static final byte[] BLOB_BYTE_CONTENT = {0xD, 0xE, 0xA, 0xD}; - private static final String USER_EMAIL = "google-cloud-java-tests@" - + "java-docs-samples-tests.iam.gserviceaccount.com"; + private static final String USER_EMAIL = + "google-cloud-java-tests@" + "java-docs-samples-tests.iam.gserviceaccount.com"; - private static final String KMS_KEY_NAME = "projects/gcloud-devel/locations/us/" - + "keyRings/gcs_kms_key_ring_us/cryptoKeys/key"; + private static final String KMS_KEY_NAME = + "projects/gcloud-devel/locations/us/" + "keyRings/gcs_kms_key_ring_us/cryptoKeys/key"; private static Storage storage; private static StorageSnippets storageSnippets; private static List bucketsToCleanUp; - @Rule - public ExpectedException thrown = ExpectedException.none(); + @Rule public ExpectedException thrown = ExpectedException.none(); - @Rule - public Timeout globalTimeout = Timeout.seconds(300); + @Rule public Timeout globalTimeout = Timeout.seconds(300); @BeforeClass public static void beforeClass() { @@ -171,8 +169,8 @@ public void testCreateUpdateEncryptedBlob() throws InterruptedException { String encryptionKey2 = "wnxMO0w+dmxribu7rICJ+Q2ES9TLpFRIDy3/L7HN5ZA="; - blob = storageSnippets.rotateBlobEncryptionKey( - BUCKET, blobName, encryptionKey1, encryptionKey2); + blob = + storageSnippets.rotateBlobEncryptionKey(BUCKET, blobName, encryptionKey1, encryptionKey2); assertNotNull(blob); encryptedContent = storageSnippets.readEncryptedBlob(BUCKET, blobName, encryptionKey2); @@ -211,8 +209,9 @@ public void testCreateBlobFromInputStream() { Blob blob = storageSnippets.createBlobFromInputStream(BUCKET, "test-create-blob-from-input-stream"); assertNotNull(blob); - assertTrue(storageSnippets.deleteBlobFromIdWithGeneration( - BUCKET, "test-create-blob-from-input-stream", blob.getGeneration())); + assertTrue( + storageSnippets.deleteBlobFromIdWithGeneration( + BUCKET, "test-create-blob-from-input-stream", blob.getGeneration())); } @Test @@ -261,11 +260,11 @@ public void testComposeBlobs() { public void testReadWriteAndSignUrl() throws IOException { String blobName = "text-read-write-sign-url"; byte[] content = "Hello, World!".getBytes(UTF_8); - Blob blob = storage.create( - BlobInfo.newBuilder(BUCKET, blobName).build(), content); - assertArrayEquals(content, - storageSnippets.readBlobFromId(BUCKET, blobName, blob.getGeneration())); - assertArrayEquals(content, + Blob blob = storage.create(BlobInfo.newBuilder(BUCKET, blobName).build(), content); + assertArrayEquals( + content, storageSnippets.readBlobFromId(BUCKET, blobName, blob.getGeneration())); + assertArrayEquals( + content, storageSnippets.readBlobFromStringsWithGeneration(BUCKET, blobName, blob.getGeneration())); storageSnippets.readerFromId(BUCKET, blobName); storageSnippets.readerFromStrings(BUCKET, blobName); @@ -277,8 +276,9 @@ public void testReadWriteAndSignUrl() throws IOException { assertEquals(content.length, responseStream.read(readBytes)); assertArrayEquals(content, readBytes); } - signedUrl = storageSnippets.signUrlWithSigner(BUCKET, blobName, - System.getenv("GOOGLE_APPLICATION_CREDENTIALS")); + signedUrl = + storageSnippets.signUrlWithSigner( + BUCKET, blobName, System.getenv("GOOGLE_APPLICATION_CREDENTIALS")); connection = signedUrl.openConnection(); try (InputStream responseStream = connection.getInputStream()) { assertEquals(content.length, responseStream.read(readBytes)); @@ -342,7 +342,7 @@ public void testBucketAcl() { storage.createAcl(BUCKET, Acl.of(new User(USER_EMAIL), Role.READER)); Acl userAcl = storageSnippets.getBucketAcl(BUCKET, USER_EMAIL); assertNotNull(userAcl); - assertEquals(USER_EMAIL, ((User)userAcl.getEntity()).getEmail()); + assertEquals(USER_EMAIL, ((User) userAcl.getEntity()).getEmail()); assertTrue(storageSnippets.deleteBucketAcl(BUCKET)); assertNull(storageSnippets.getBucketAcl(BUCKET)); @@ -371,21 +371,23 @@ public void testBlobAcl() { assertNotNull(storageSnippets.createBlobAcl(BUCKET, blobName, createdBlob.getGeneration())); Acl updatedAcl = storageSnippets.updateBlobAcl(BUCKET, blobName, createdBlob.getGeneration()); assertEquals(Acl.Role.OWNER, updatedAcl.getRole()); - Set acls = Sets.newHashSet( - storageSnippets.listBlobAcls(BUCKET, blobName, createdBlob.getGeneration())); + Set acls = + Sets.newHashSet( + storageSnippets.listBlobAcls(BUCKET, blobName, createdBlob.getGeneration())); assertTrue(acls.contains(updatedAcl)); assertNull(storageSnippets.getBlobAcl(BUCKET, blobName, USER_EMAIL)); storage.createAcl(BlobId.of(BUCKET, blobName), Acl.of(new User(USER_EMAIL), Role.READER)); Acl userAcl = storageSnippets.getBlobAcl(BUCKET, blobName, USER_EMAIL); assertNotNull(userAcl); - assertEquals(USER_EMAIL, ((User)userAcl.getEntity()).getEmail()); + assertEquals(USER_EMAIL, ((User) userAcl.getEntity()).getEmail()); updatedAcl = storageSnippets.blobToPublicRead(BUCKET, blobName, createdBlob.getGeneration()); assertEquals(Acl.Role.READER, updatedAcl.getRole()); assertEquals(User.ofAllUsers(), updatedAcl.getEntity()); - acls = Sets.newHashSet( - storageSnippets.listBlobAcls(BUCKET, blobName, createdBlob.getGeneration())); + acls = + Sets.newHashSet( + storageSnippets.listBlobAcls(BUCKET, blobName, createdBlob.getGeneration())); assertTrue(acls.contains(updatedAcl)); assertNotNull(storageSnippets.getBlobAcl(BUCKET, blobName, createdBlob.getGeneration())); @@ -432,7 +434,7 @@ public void testBlobDownload() throws Exception { byte[] readBytes = Files.readAllBytes(Paths.get(blobName)); assertArrayEquals(BLOB_BYTE_CONTENT, readBytes); } - + @Test public void testRequesterPays() throws Exception { Bucket bucket = storageSnippets.enableRequesterPays(BUCKET); @@ -441,11 +443,11 @@ public void testRequesterPays() throws Exception { assertTrue(bucket.requesterPays()); String projectId = ServiceOptions.getDefaultProjectId(); String blobName = "test-create-empty-blob-requester-pays"; - Blob remoteBlob = bucket.create(blobName, BLOB_BYTE_CONTENT, - BlobTargetOption.userProject(projectId)); + Blob remoteBlob = + bucket.create(blobName, BLOB_BYTE_CONTENT, BlobTargetOption.userProject(projectId)); assertNotNull(remoteBlob); - storageSnippets.downloadFileUsingRequesterPays(projectId, BUCKET, blobName, - Paths.get(blobName)); + storageSnippets.downloadFileUsingRequesterPays( + projectId, BUCKET, blobName, Paths.get(blobName)); byte[] readBytes = Files.readAllBytes(Paths.get(blobName)); assertArrayEquals(BLOB_BYTE_CONTENT, readBytes); bucket = storageSnippets.disableRequesterPays(BUCKET); @@ -453,10 +455,10 @@ public void testRequesterPays() throws Exception { } @Test - public void testDefaultKMSKey(){ + public void testDefaultKMSKey() { Bucket bucket = storageSnippets.setDefaultKmsKey(BUCKET, KMS_KEY_NAME); assertEquals(KMS_KEY_NAME, bucket.getDefaultKmsKeyName()); // Remove default key - storageSnippets.setDefaultKmsKey(BUCKET,null); + storageSnippets.setDefaultKmsKey(BUCKET, null); } }