From 359b543bc6475e3362762c841ba8997649687425 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 13 Nov 2019 09:01:56 -0800 Subject: [PATCH] feat: add celebrity recognition to v1p3beta1 (#13) * [CHANGE ME] Re-generated to pick up changes in the API or client library generator. * fix: allow proto interface changes Release-As: 0.116.0 --- .kokoro/release/drop.cfg | 3 - .kokoro/release/promote.cfg | 4 - ...reamingVideoIntelligenceServiceClient.java | 2 +- .../VideoIntelligenceServiceClient.java | 2 +- .../v1p3beta1/package-info.java | 2 +- ...StreamingVideoIntelligenceServiceGrpc.java | 10 +- .../clirr-ignored-differences.xml | 19 + .../v1p3beta1/AnnotateVideoRequest.java | 158 +- .../AnnotateVideoRequestOrBuilder.java | 46 +- .../v1p3beta1/Celebrity.java | 964 +++++++ .../v1p3beta1/CelebrityOrBuilder.java | 96 + .../CelebrityRecognitionAnnotation.java | 1039 +++++++ ...lebrityRecognitionAnnotationOrBuilder.java | 89 + .../v1p3beta1/CelebrityTrack.java | 2177 +++++++++++++++ .../v1p3beta1/CelebrityTrackOrBuilder.java | 124 + .../videointelligence/v1p3beta1/Feature.java | 22 + .../v1p3beta1/SpeechContext.java | 52 +- .../v1p3beta1/SpeechContextOrBuilder.java | 16 +- .../SpeechRecognitionAlternative.java | 224 +- ...SpeechRecognitionAlternativeOrBuilder.java | 50 +- .../v1p3beta1/SpeechTranscription.java | 63 +- .../v1p3beta1/SpeechTranscriptionConfig.java | 299 +- .../SpeechTranscriptionConfigOrBuilder.java | 74 +- .../SpeechTranscriptionOrBuilder.java | 18 +- .../StreamingAutomlClassificationConfig.java | 4 +- .../StreamingAutomlObjectTrackingConfig.java | 4 +- ...reamingExplicitContentDetectionConfig.java | 4 +- .../StreamingLabelDetectionConfig.java | 4 +- .../StreamingShotChangeDetectionConfig.java | 4 +- .../v1p3beta1/TimestampedObject.java | 75 +- .../v1p3beta1/TimestampedObjectOrBuilder.java | 15 +- .../videointelligence/v1p3beta1/Track.java | 77 +- .../v1p3beta1/TrackOrBuilder.java | 17 +- .../v1p3beta1/VideoAnnotationProgress.java | 423 +++ .../VideoAnnotationProgressOrBuilder.java | 57 + .../v1p3beta1/VideoAnnotationResults.java | 2444 +++++++++++++++-- .../VideoAnnotationResultsOrBuilder.java | 265 +- .../VideoIntelligenceServiceProto.java | 654 +++-- .../videointelligence/v1p3beta1/WordInfo.java | 16 +- .../v1p3beta1/WordInfoOrBuilder.java | 4 +- .../v1p3beta1/video_intelligence.proto | 228 +- .../v1p3beta1/VideoDetectLogoBeta.java | 187 ++ .../v1p3beta1/VideoDetectLogoGcsBeta.java | 158 ++ synth.metadata | 10 +- 44 files changed, 9065 insertions(+), 1138 deletions(-) create mode 100644 proto-google-cloud-video-intelligence-v1p3beta1/clirr-ignored-differences.xml create mode 100644 proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/Celebrity.java create mode 100644 proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/CelebrityOrBuilder.java create mode 100644 proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/CelebrityRecognitionAnnotation.java create mode 100644 proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/CelebrityRecognitionAnnotationOrBuilder.java create mode 100644 proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/CelebrityTrack.java create mode 100644 proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/CelebrityTrackOrBuilder.java create mode 100644 samples/src/main/java/com/google/cloud/examples/videointelligence/v1p3beta1/VideoDetectLogoBeta.java create mode 100644 samples/src/main/java/com/google/cloud/examples/videointelligence/v1p3beta1/VideoDetectLogoGcsBeta.java diff --git a/.kokoro/release/drop.cfg b/.kokoro/release/drop.cfg index c929ed0ea..ebae0702f 100644 --- a/.kokoro/release/drop.cfg +++ b/.kokoro/release/drop.cfg @@ -4,6 +4,3 @@ env_vars: { key: "TRAMPOLINE_BUILD_FILE" value: "github/java-video-intelligence/.kokoro/release/drop.sh" } - -# Download staging properties file. -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/java/releases/java-video-intelligence" \ No newline at end of file diff --git a/.kokoro/release/promote.cfg b/.kokoro/release/promote.cfg index d579cb3b9..4b367e5e6 100644 --- a/.kokoro/release/promote.cfg +++ b/.kokoro/release/promote.cfg @@ -4,7 +4,3 @@ env_vars: { key: "TRAMPOLINE_BUILD_FILE" value: "github/java-video-intelligence/.kokoro/release/promote.sh" } - -# Download staging properties file. -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/java/releases/java-video-intelligence" - diff --git a/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoIntelligenceServiceClient.java b/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoIntelligenceServiceClient.java index 7fe7b85ac..0eda2c277 100644 --- a/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoIntelligenceServiceClient.java +++ b/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoIntelligenceServiceClient.java @@ -26,7 +26,7 @@ // AUTO-GENERATED DOCUMENTATION AND SERVICE /** - * Service Description: Service that implements Google Cloud Video Intelligence Streaming API. + * Service Description: Service that implements streaming 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: diff --git a/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoIntelligenceServiceClient.java b/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoIntelligenceServiceClient.java index bb32c8eca..d3a33f26b 100644 --- a/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoIntelligenceServiceClient.java +++ b/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoIntelligenceServiceClient.java @@ -193,7 +193,7 @@ public final OperationsClient getOperationsClient() { * 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. + * @param features Required. Requested video annotation features. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi( diff --git a/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/package-info.java b/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/package-info.java index 6869e7a83..b4c49341a 100644 --- a/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/package-info.java +++ b/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/package-info.java @@ -39,7 +39,7 @@ * ======================================= StreamingVideoIntelligenceServiceClient * ======================================= * - *

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

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

Sample for StreamingVideoIntelligenceServiceClient: * diff --git a/grpc-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoIntelligenceServiceGrpc.java b/grpc-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoIntelligenceServiceGrpc.java index 95dd01c0c..6d43c5a60 100644 --- a/grpc-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoIntelligenceServiceGrpc.java +++ b/grpc-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoIntelligenceServiceGrpc.java @@ -24,7 +24,7 @@ * * *

- * Service that implements Google Cloud Video Intelligence Streaming API.
+ * Service that implements streaming Google Cloud Video Intelligence API.
  * 
*/ @javax.annotation.Generated( @@ -126,7 +126,7 @@ public static StreamingVideoIntelligenceServiceFutureStub newFutureStub(io.grpc. * * *
-   * Service that implements Google Cloud Video Intelligence Streaming API.
+   * Service that implements streaming Google Cloud Video Intelligence API.
    * 
*/ public abstract static class StreamingVideoIntelligenceServiceImplBase @@ -169,7 +169,7 @@ public final io.grpc.ServerServiceDefinition bindService() { * * *
-   * Service that implements Google Cloud Video Intelligence Streaming API.
+   * Service that implements streaming Google Cloud Video Intelligence API.
    * 
*/ public static final class StreamingVideoIntelligenceServiceStub @@ -214,7 +214,7 @@ protected StreamingVideoIntelligenceServiceStub build( * * *
-   * Service that implements Google Cloud Video Intelligence Streaming API.
+   * Service that implements streaming Google Cloud Video Intelligence API.
    * 
*/ public static final class StreamingVideoIntelligenceServiceBlockingStub @@ -239,7 +239,7 @@ protected StreamingVideoIntelligenceServiceBlockingStub build( * * *
-   * Service that implements Google Cloud Video Intelligence Streaming API.
+   * Service that implements streaming Google Cloud Video Intelligence API.
    * 
*/ public static final class StreamingVideoIntelligenceServiceFutureStub diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/clirr-ignored-differences.xml b/proto-google-cloud-video-intelligence-v1p3beta1/clirr-ignored-differences.xml new file mode 100644 index 000000000..a9172e710 --- /dev/null +++ b/proto-google-cloud-video-intelligence-v1p3beta1/clirr-ignored-differences.xml @@ -0,0 +1,19 @@ + + + + + 7012 + com/google/cloud/videointelligence/v1p3beta1/*OrBuilder + * get*(*) + + + 7012 + com/google/cloud/videointelligence/v1p3beta1/*OrBuilder + boolean contains*(*) + + + 7012 + com/google/cloud/videointelligence/v1p3beta1/*OrBuilder + boolean has*(*) + + diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoRequest.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoRequest.java index cc9e6cbe4..18a0f2837 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoRequest.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoRequest.java @@ -274,10 +274,12 @@ public com.google.cloud.videointelligence.v1p3beta1.Feature convert( * * *
-   * Requested video annotation features.
+   * Required. Requested video annotation features.
    * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2; + * + * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getFeaturesList() { return new com.google.protobuf.Internal.ListAdapter< @@ -288,10 +290,12 @@ public java.util.List getF * * *
-   * Requested video annotation features.
+   * Required. Requested video annotation features.
    * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2; + * + * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getFeaturesCount() { return features_.size(); @@ -300,10 +304,12 @@ public int getFeaturesCount() { * * *
-   * Requested video annotation features.
+   * Required. Requested video annotation features.
    * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2; + * + * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.videointelligence.v1p3beta1.Feature getFeatures(int index) { return features_converter_.convert(features_.get(index)); @@ -312,10 +318,12 @@ public com.google.cloud.videointelligence.v1p3beta1.Feature getFeatures(int inde * * *
-   * Requested video annotation features.
+   * Required. Requested video annotation features.
    * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2; + * + * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getFeaturesValueList() { return features_; @@ -324,10 +332,12 @@ public java.util.List getFeaturesValueList() { * * *
-   * Requested video annotation features.
+   * Required. Requested video annotation features.
    * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2; + * + * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getFeaturesValue(int index) { return features_.get(index); @@ -383,7 +393,7 @@ public com.google.cloud.videointelligence.v1p3beta1.VideoContext getVideoContext * * *
-   * Optional location where the output (in JSON format) should be stored.
+   * 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
@@ -391,7 +401,7 @@ public com.google.cloud.videointelligence.v1p3beta1.VideoContext getVideoContext
    * more information, see [Request URIs](/storage/docs/reference-uris).
    * 
* - * string output_uri = 4; + * string output_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public java.lang.String getOutputUri() { java.lang.Object ref = outputUri_; @@ -408,7 +418,7 @@ public java.lang.String getOutputUri() { * * *
-   * Optional location where the output (in JSON format) should be stored.
+   * 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
@@ -416,7 +426,7 @@ public java.lang.String getOutputUri() {
    * more information, see [Request URIs](/storage/docs/reference-uris).
    * 
* - * string output_uri = 4; + * string output_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.ByteString getOutputUriBytes() { java.lang.Object ref = outputUri_; @@ -436,12 +446,12 @@ public com.google.protobuf.ByteString getOutputUriBytes() { * * *
-   * Optional cloud region where annotation should take place. Supported cloud
+   * 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; + * string location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public java.lang.String getLocationId() { java.lang.Object ref = locationId_; @@ -458,12 +468,12 @@ public java.lang.String getLocationId() { * * *
-   * Optional cloud region where annotation should take place. Supported cloud
+   * 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; + * string location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.ByteString getLocationIdBytes() { java.lang.Object ref = locationId_; @@ -1128,10 +1138,12 @@ private void ensureFeaturesIsMutable() { * * *
-     * Requested video annotation features.
+     * Required. Requested video annotation features.
      * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2; + * + * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getFeaturesList() { return new com.google.protobuf.Internal.ListAdapter< @@ -1142,10 +1154,12 @@ public java.util.List getF * * *
-     * Requested video annotation features.
+     * Required. Requested video annotation features.
      * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2; + * + * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getFeaturesCount() { return features_.size(); @@ -1154,10 +1168,12 @@ public int getFeaturesCount() { * * *
-     * Requested video annotation features.
+     * Required. Requested video annotation features.
      * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2; + * + * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.videointelligence.v1p3beta1.Feature getFeatures(int index) { return features_converter_.convert(features_.get(index)); @@ -1166,10 +1182,12 @@ public com.google.cloud.videointelligence.v1p3beta1.Feature getFeatures(int inde * * *
-     * Requested video annotation features.
+     * Required. Requested video annotation features.
      * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2; + * + * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setFeatures( int index, com.google.cloud.videointelligence.v1p3beta1.Feature value) { @@ -1185,10 +1203,12 @@ public Builder setFeatures( * * *
-     * Requested video annotation features.
+     * Required. Requested video annotation features.
      * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2; + * + * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addFeatures(com.google.cloud.videointelligence.v1p3beta1.Feature value) { if (value == null) { @@ -1203,10 +1223,12 @@ public Builder addFeatures(com.google.cloud.videointelligence.v1p3beta1.Feature * * *
-     * Requested video annotation features.
+     * Required. Requested video annotation features.
      * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2; + * + * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllFeatures( java.lang.Iterable values) { @@ -1221,10 +1243,12 @@ public Builder addAllFeatures( * * *
-     * Requested video annotation features.
+     * Required. Requested video annotation features.
      * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2; + * + * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearFeatures() { features_ = java.util.Collections.emptyList(); @@ -1236,10 +1260,12 @@ public Builder clearFeatures() { * * *
-     * Requested video annotation features.
+     * Required. Requested video annotation features.
      * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2; + * + * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getFeaturesValueList() { return java.util.Collections.unmodifiableList(features_); @@ -1248,10 +1274,12 @@ public java.util.List getFeaturesValueList() { * * *
-     * Requested video annotation features.
+     * Required. Requested video annotation features.
      * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2; + * + * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getFeaturesValue(int index) { return features_.get(index); @@ -1260,10 +1288,12 @@ public int getFeaturesValue(int index) { * * *
-     * Requested video annotation features.
+     * Required. Requested video annotation features.
      * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2; + * + * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setFeaturesValue(int index, int value) { ensureFeaturesIsMutable(); @@ -1275,10 +1305,12 @@ public Builder setFeaturesValue(int index, int value) { * * *
-     * Requested video annotation features.
+     * Required. Requested video annotation features.
      * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2; + * + * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addFeaturesValue(int value) { ensureFeaturesIsMutable(); @@ -1290,10 +1322,12 @@ public Builder addFeaturesValue(int value) { * * *
-     * Requested video annotation features.
+     * Required. Requested video annotation features.
      * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2; + * + * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllFeaturesValue(java.lang.Iterable values) { ensureFeaturesIsMutable(); @@ -1495,7 +1529,7 @@ public Builder clearVideoContext() { * * *
-     * Optional location where the output (in JSON format) should be stored.
+     * 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
@@ -1503,7 +1537,7 @@ public Builder clearVideoContext() {
      * more information, see [Request URIs](/storage/docs/reference-uris).
      * 
* - * string output_uri = 4; + * string output_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public java.lang.String getOutputUri() { java.lang.Object ref = outputUri_; @@ -1520,7 +1554,7 @@ public java.lang.String getOutputUri() { * * *
-     * Optional location where the output (in JSON format) should be stored.
+     * 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
@@ -1528,7 +1562,7 @@ public java.lang.String getOutputUri() {
      * more information, see [Request URIs](/storage/docs/reference-uris).
      * 
* - * string output_uri = 4; + * string output_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.ByteString getOutputUriBytes() { java.lang.Object ref = outputUri_; @@ -1545,7 +1579,7 @@ public com.google.protobuf.ByteString getOutputUriBytes() { * * *
-     * Optional location where the output (in JSON format) should be stored.
+     * 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
@@ -1553,7 +1587,7 @@ public com.google.protobuf.ByteString getOutputUriBytes() {
      * more information, see [Request URIs](/storage/docs/reference-uris).
      * 
* - * string output_uri = 4; + * string output_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setOutputUri(java.lang.String value) { if (value == null) { @@ -1568,7 +1602,7 @@ public Builder setOutputUri(java.lang.String value) { * * *
-     * Optional location where the output (in JSON format) should be stored.
+     * 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
@@ -1576,7 +1610,7 @@ public Builder setOutputUri(java.lang.String value) {
      * more information, see [Request URIs](/storage/docs/reference-uris).
      * 
* - * string output_uri = 4; + * string output_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearOutputUri() { @@ -1588,7 +1622,7 @@ public Builder clearOutputUri() { * * *
-     * Optional location where the output (in JSON format) should be stored.
+     * 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
@@ -1596,7 +1630,7 @@ public Builder clearOutputUri() {
      * more information, see [Request URIs](/storage/docs/reference-uris).
      * 
* - * string output_uri = 4; + * string output_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setOutputUriBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1614,12 +1648,12 @@ public Builder setOutputUriBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional cloud region where annotation should take place. Supported cloud
+     * 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; + * string location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public java.lang.String getLocationId() { java.lang.Object ref = locationId_; @@ -1636,12 +1670,12 @@ public java.lang.String getLocationId() { * * *
-     * Optional cloud region where annotation should take place. Supported cloud
+     * 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; + * string location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.ByteString getLocationIdBytes() { java.lang.Object ref = locationId_; @@ -1658,12 +1692,12 @@ public com.google.protobuf.ByteString getLocationIdBytes() { * * *
-     * Optional cloud region where annotation should take place. Supported cloud
+     * 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; + * string location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setLocationId(java.lang.String value) { if (value == null) { @@ -1678,12 +1712,12 @@ public Builder setLocationId(java.lang.String value) { * * *
-     * Optional cloud region where annotation should take place. Supported cloud
+     * 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; + * string location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearLocationId() { @@ -1695,12 +1729,12 @@ public Builder clearLocationId() { * * *
-     * Optional cloud region where annotation should take place. Supported cloud
+     * 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; + * string location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setLocationIdBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoRequestOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoRequestOrBuilder.java index 03ded0e4a..715a4f767 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoRequestOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoRequestOrBuilder.java @@ -79,50 +79,60 @@ public interface AnnotateVideoRequestOrBuilder * * *
-   * Requested video annotation features.
+   * Required. Requested video annotation features.
    * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2; + * + * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ java.util.List getFeaturesList(); /** * * *
-   * Requested video annotation features.
+   * Required. Requested video annotation features.
    * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2; + * + * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ int getFeaturesCount(); /** * * *
-   * Requested video annotation features.
+   * Required. Requested video annotation features.
    * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2; + * + * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.videointelligence.v1p3beta1.Feature getFeatures(int index); /** * * *
-   * Requested video annotation features.
+   * Required. Requested video annotation features.
    * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2; + * + * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ java.util.List getFeaturesValueList(); /** * * *
-   * Requested video annotation features.
+   * Required. Requested video annotation features.
    * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2; + * + * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ int getFeaturesValue(int index); @@ -161,7 +171,7 @@ public interface AnnotateVideoRequestOrBuilder * * *
-   * Optional location where the output (in JSON format) should be stored.
+   * 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
@@ -169,14 +179,14 @@ public interface AnnotateVideoRequestOrBuilder
    * more information, see [Request URIs](/storage/docs/reference-uris).
    * 
* - * string output_uri = 4; + * string output_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; */ java.lang.String getOutputUri(); /** * * *
-   * Optional location where the output (in JSON format) should be stored.
+   * 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
@@ -184,7 +194,7 @@ public interface AnnotateVideoRequestOrBuilder
    * more information, see [Request URIs](/storage/docs/reference-uris).
    * 
* - * string output_uri = 4; + * string output_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.ByteString getOutputUriBytes(); @@ -192,24 +202,24 @@ public interface AnnotateVideoRequestOrBuilder * * *
-   * Optional cloud region where annotation should take place. Supported cloud
+   * 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; + * string location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; */ java.lang.String getLocationId(); /** * * *
-   * Optional cloud region where annotation should take place. Supported cloud
+   * 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; + * string location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.ByteString getLocationIdBytes(); } diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/Celebrity.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/Celebrity.java new file mode 100644 index 000000000..5f7b2702e --- /dev/null +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/Celebrity.java @@ -0,0 +1,964 @@ +/* + * Copyright 2019 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +/** + * + * + *
+ * Celebrity definition.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.Celebrity} + */ +public final class Celebrity extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.Celebrity) + CelebrityOrBuilder { + private static final long serialVersionUID = 0L; + // Use Celebrity.newBuilder() to construct. + private Celebrity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Celebrity() { + name_ = ""; + displayName_ = ""; + description_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Celebrity( + 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: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + default: + { + if (!parseUnknownField(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.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_Celebrity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_Celebrity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.Celebrity.class, + com.google.cloud.videointelligence.v1p3beta1.Celebrity.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The resource name of the celebrity. Have the format
+   * `video-intelligence/kg-mid` indicates a celebrity from preloaded gallery.
+   * kg-mid is the id in Google knowledge graph, which is unique for the
+   * celebrity.
+   * 
+ * + * 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 resource name of the celebrity. Have the format
+   * `video-intelligence/kg-mid` indicates a celebrity from preloaded gallery.
+   * kg-mid is the id in Google knowledge graph, which is unique for the
+   * celebrity.
+   * 
+ * + * 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_; + /** + * + * + *
+   * The celebrity name.
+   * 
+ * + * 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; + } + } + /** + * + * + *
+   * The celebrity name.
+   * 
+ * + * 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 DESCRIPTION_FIELD_NUMBER = 3; + private volatile java.lang.Object description_; + /** + * + * + *
+   * Textual description of additional information about the celebrity, if
+   * applicable.
+   * 
+ * + * string description = 3; + */ + 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 of additional information about the celebrity, if
+   * applicable.
+   * 
+ * + * string description = 3; + */ + 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; + } + } + + 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_); + } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); + } + 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_); + } + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); + } + 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.v1p3beta1.Celebrity)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p3beta1.Celebrity other = + (com.google.cloud.videointelligence.v1p3beta1.Celebrity) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @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(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p3beta1.Celebrity parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.Celebrity 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.v1p3beta1.Celebrity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.Celebrity 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.v1p3beta1.Celebrity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.Celebrity parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.Celebrity parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.Celebrity 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.v1p3beta1.Celebrity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.Celebrity 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.v1p3beta1.Celebrity parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.Celebrity 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.v1p3beta1.Celebrity 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; + } + /** + * + * + *
+   * Celebrity definition.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.Celebrity} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p3beta1.Celebrity) + com.google.cloud.videointelligence.v1p3beta1.CelebrityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_Celebrity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_Celebrity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.Celebrity.class, + com.google.cloud.videointelligence.v1p3beta1.Celebrity.Builder.class); + } + + // Construct using com.google.cloud.videointelligence.v1p3beta1.Celebrity.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_ = ""; + + description_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_Celebrity_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.Celebrity getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p3beta1.Celebrity.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.Celebrity build() { + com.google.cloud.videointelligence.v1p3beta1.Celebrity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.Celebrity buildPartial() { + com.google.cloud.videointelligence.v1p3beta1.Celebrity result = + new com.google.cloud.videointelligence.v1p3beta1.Celebrity(this); + result.name_ = name_; + result.displayName_ = displayName_; + result.description_ = description_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1p3beta1.Celebrity) { + return mergeFrom((com.google.cloud.videointelligence.v1p3beta1.Celebrity) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.videointelligence.v1p3beta1.Celebrity other) { + if (other == com.google.cloud.videointelligence.v1p3beta1.Celebrity.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + 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.v1p3beta1.Celebrity parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.videointelligence.v1p3beta1.Celebrity) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The resource name of the celebrity. Have the format
+     * `video-intelligence/kg-mid` indicates a celebrity from preloaded gallery.
+     * kg-mid is the id in Google knowledge graph, which is unique for the
+     * celebrity.
+     * 
+ * + * 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 resource name of the celebrity. Have the format
+     * `video-intelligence/kg-mid` indicates a celebrity from preloaded gallery.
+     * kg-mid is the id in Google knowledge graph, which is unique for the
+     * celebrity.
+     * 
+ * + * 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 resource name of the celebrity. Have the format
+     * `video-intelligence/kg-mid` indicates a celebrity from preloaded gallery.
+     * kg-mid is the id in Google knowledge graph, which is unique for the
+     * celebrity.
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The resource name of the celebrity. Have the format
+     * `video-intelligence/kg-mid` indicates a celebrity from preloaded gallery.
+     * kg-mid is the id in Google knowledge graph, which is unique for the
+     * celebrity.
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The resource name of the celebrity. Have the format
+     * `video-intelligence/kg-mid` indicates a celebrity from preloaded gallery.
+     * kg-mid is the id in Google knowledge graph, which is unique for the
+     * celebrity.
+     * 
+ * + * 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_ = ""; + /** + * + * + *
+     * The celebrity name.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * The celebrity name.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * The celebrity name.
+     * 
+ * + * string display_name = 2; + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The celebrity name.
+     * 
+ * + * string display_name = 2; + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The celebrity name.
+     * 
+ * + * 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 java.lang.Object description_ = ""; + /** + * + * + *
+     * Textual description of additional information about the celebrity, if
+     * applicable.
+     * 
+ * + * string description = 3; + */ + 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 of additional information about the celebrity, if
+     * applicable.
+     * 
+ * + * string description = 3; + */ + 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 of additional information about the celebrity, if
+     * applicable.
+     * 
+ * + * string description = 3; + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Textual description of additional information about the celebrity, if
+     * applicable.
+     * 
+ * + * string description = 3; + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * Textual description of additional information about the celebrity, if
+     * applicable.
+     * 
+ * + * string description = 3; + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(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.v1p3beta1.Celebrity) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.Celebrity) + private static final com.google.cloud.videointelligence.v1p3beta1.Celebrity DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p3beta1.Celebrity(); + } + + public static com.google.cloud.videointelligence.v1p3beta1.Celebrity getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Celebrity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Celebrity(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.v1p3beta1.Celebrity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/CelebrityOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/CelebrityOrBuilder.java new file mode 100644 index 000000000..46994bfae --- /dev/null +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/CelebrityOrBuilder.java @@ -0,0 +1,96 @@ +/* + * Copyright 2019 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +public interface CelebrityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p3beta1.Celebrity) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The resource name of the celebrity. Have the format
+   * `video-intelligence/kg-mid` indicates a celebrity from preloaded gallery.
+   * kg-mid is the id in Google knowledge graph, which is unique for the
+   * celebrity.
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * The resource name of the celebrity. Have the format
+   * `video-intelligence/kg-mid` indicates a celebrity from preloaded gallery.
+   * kg-mid is the id in Google knowledge graph, which is unique for the
+   * celebrity.
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The celebrity name.
+   * 
+ * + * string display_name = 2; + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * The celebrity name.
+   * 
+ * + * string display_name = 2; + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Textual description of additional information about the celebrity, if
+   * applicable.
+   * 
+ * + * string description = 3; + */ + java.lang.String getDescription(); + /** + * + * + *
+   * Textual description of additional information about the celebrity, if
+   * applicable.
+   * 
+ * + * string description = 3; + */ + com.google.protobuf.ByteString getDescriptionBytes(); +} diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/CelebrityRecognitionAnnotation.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/CelebrityRecognitionAnnotation.java new file mode 100644 index 000000000..3e9aafbe5 --- /dev/null +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/CelebrityRecognitionAnnotation.java @@ -0,0 +1,1039 @@ +/* + * Copyright 2019 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +/** + * + * + *
+ * Celebrity recognition annotation per video.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation} + */ +public final class CelebrityRecognitionAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation) + CelebrityRecognitionAnnotationOrBuilder { + private static final long serialVersionUID = 0L; + // Use CelebrityRecognitionAnnotation.newBuilder() to construct. + private CelebrityRecognitionAnnotation( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CelebrityRecognitionAnnotation() { + celebrityTracks_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CelebrityRecognitionAnnotation( + 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) != 0)) { + celebrityTracks_ = + new java.util.ArrayList< + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack>(); + mutable_bitField0_ |= 0x00000001; + } + celebrityTracks_.add( + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(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) != 0)) { + celebrityTracks_ = java.util.Collections.unmodifiableList(celebrityTracks_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_CelebrityRecognitionAnnotation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_CelebrityRecognitionAnnotation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation.class, + com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation.Builder + .class); + } + + public static final int CELEBRITY_TRACKS_FIELD_NUMBER = 1; + private java.util.List + celebrityTracks_; + /** + * + * + *
+   * The tracks detected from the input video, including recognized celebrities
+   * and other detected faces in the video.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack celebrity_tracks = 1; + * + */ + public java.util.List + getCelebrityTracksList() { + return celebrityTracks_; + } + /** + * + * + *
+   * The tracks detected from the input video, including recognized celebrities
+   * and other detected faces in the video.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack celebrity_tracks = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.videointelligence.v1p3beta1.CelebrityTrackOrBuilder> + getCelebrityTracksOrBuilderList() { + return celebrityTracks_; + } + /** + * + * + *
+   * The tracks detected from the input video, including recognized celebrities
+   * and other detected faces in the video.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack celebrity_tracks = 1; + * + */ + public int getCelebrityTracksCount() { + return celebrityTracks_.size(); + } + /** + * + * + *
+   * The tracks detected from the input video, including recognized celebrities
+   * and other detected faces in the video.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack celebrity_tracks = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack getCelebrityTracks(int index) { + return celebrityTracks_.get(index); + } + /** + * + * + *
+   * The tracks detected from the input video, including recognized celebrities
+   * and other detected faces in the video.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack celebrity_tracks = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.CelebrityTrackOrBuilder + getCelebrityTracksOrBuilder(int index) { + return celebrityTracks_.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 < celebrityTracks_.size(); i++) { + output.writeMessage(1, celebrityTracks_.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 < celebrityTracks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, celebrityTracks_.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.v1p3beta1.CelebrityRecognitionAnnotation)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation other = + (com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation) obj; + + if (!getCelebrityTracksList().equals(other.getCelebrityTracksList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getCelebrityTracksCount() > 0) { + hash = (37 * hash) + CELEBRITY_TRACKS_FIELD_NUMBER; + hash = (53 * hash) + getCelebrityTracksList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation + 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.v1p3beta1.CelebrityRecognitionAnnotation + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation + 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.v1p3beta1.CelebrityRecognitionAnnotation + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation + 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.v1p3beta1.CelebrityRecognitionAnnotation + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation + 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.v1p3beta1.CelebrityRecognitionAnnotation + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation + 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.v1p3beta1.CelebrityRecognitionAnnotation 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; + } + /** + * + * + *
+   * Celebrity recognition annotation per video.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation) + com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_CelebrityRecognitionAnnotation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_CelebrityRecognitionAnnotation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation.class, + com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation.Builder + .class); + } + + // Construct using + // com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCelebrityTracksFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (celebrityTracksBuilder_ == null) { + celebrityTracks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + celebrityTracksBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_CelebrityRecognitionAnnotation_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation + getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation build() { + com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation + buildPartial() { + com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation result = + new com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation(this); + int from_bitField0_ = bitField0_; + if (celebrityTracksBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + celebrityTracks_ = java.util.Collections.unmodifiableList(celebrityTracks_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.celebrityTracks_ = celebrityTracks_; + } else { + result.celebrityTracks_ = celebrityTracksBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation) { + return mergeFrom( + (com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation other) { + if (other + == com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation + .getDefaultInstance()) return this; + if (celebrityTracksBuilder_ == null) { + if (!other.celebrityTracks_.isEmpty()) { + if (celebrityTracks_.isEmpty()) { + celebrityTracks_ = other.celebrityTracks_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCelebrityTracksIsMutable(); + celebrityTracks_.addAll(other.celebrityTracks_); + } + onChanged(); + } + } else { + if (!other.celebrityTracks_.isEmpty()) { + if (celebrityTracksBuilder_.isEmpty()) { + celebrityTracksBuilder_.dispose(); + celebrityTracksBuilder_ = null; + celebrityTracks_ = other.celebrityTracks_; + bitField0_ = (bitField0_ & ~0x00000001); + celebrityTracksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCelebrityTracksFieldBuilder() + : null; + } else { + celebrityTracksBuilder_.addAllMessages(other.celebrityTracks_); + } + } + } + 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.v1p3beta1.CelebrityRecognitionAnnotation parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List + celebrityTracks_ = java.util.Collections.emptyList(); + + private void ensureCelebrityTracksIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + celebrityTracks_ = + new java.util.ArrayList( + celebrityTracks_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack, + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.Builder, + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrackOrBuilder> + celebrityTracksBuilder_; + + /** + * + * + *
+     * The tracks detected from the input video, including recognized celebrities
+     * and other detected faces in the video.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack celebrity_tracks = 1; + * + */ + public java.util.List + getCelebrityTracksList() { + if (celebrityTracksBuilder_ == null) { + return java.util.Collections.unmodifiableList(celebrityTracks_); + } else { + return celebrityTracksBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The tracks detected from the input video, including recognized celebrities
+     * and other detected faces in the video.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack celebrity_tracks = 1; + * + */ + public int getCelebrityTracksCount() { + if (celebrityTracksBuilder_ == null) { + return celebrityTracks_.size(); + } else { + return celebrityTracksBuilder_.getCount(); + } + } + /** + * + * + *
+     * The tracks detected from the input video, including recognized celebrities
+     * and other detected faces in the video.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack celebrity_tracks = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack getCelebrityTracks( + int index) { + if (celebrityTracksBuilder_ == null) { + return celebrityTracks_.get(index); + } else { + return celebrityTracksBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The tracks detected from the input video, including recognized celebrities
+     * and other detected faces in the video.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack celebrity_tracks = 1; + * + */ + public Builder setCelebrityTracks( + int index, com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack value) { + if (celebrityTracksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCelebrityTracksIsMutable(); + celebrityTracks_.set(index, value); + onChanged(); + } else { + celebrityTracksBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The tracks detected from the input video, including recognized celebrities
+     * and other detected faces in the video.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack celebrity_tracks = 1; + * + */ + public Builder setCelebrityTracks( + int index, + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.Builder builderForValue) { + if (celebrityTracksBuilder_ == null) { + ensureCelebrityTracksIsMutable(); + celebrityTracks_.set(index, builderForValue.build()); + onChanged(); + } else { + celebrityTracksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The tracks detected from the input video, including recognized celebrities
+     * and other detected faces in the video.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack celebrity_tracks = 1; + * + */ + public Builder addCelebrityTracks( + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack value) { + if (celebrityTracksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCelebrityTracksIsMutable(); + celebrityTracks_.add(value); + onChanged(); + } else { + celebrityTracksBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The tracks detected from the input video, including recognized celebrities
+     * and other detected faces in the video.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack celebrity_tracks = 1; + * + */ + public Builder addCelebrityTracks( + int index, com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack value) { + if (celebrityTracksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCelebrityTracksIsMutable(); + celebrityTracks_.add(index, value); + onChanged(); + } else { + celebrityTracksBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The tracks detected from the input video, including recognized celebrities
+     * and other detected faces in the video.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack celebrity_tracks = 1; + * + */ + public Builder addCelebrityTracks( + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.Builder builderForValue) { + if (celebrityTracksBuilder_ == null) { + ensureCelebrityTracksIsMutable(); + celebrityTracks_.add(builderForValue.build()); + onChanged(); + } else { + celebrityTracksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The tracks detected from the input video, including recognized celebrities
+     * and other detected faces in the video.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack celebrity_tracks = 1; + * + */ + public Builder addCelebrityTracks( + int index, + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.Builder builderForValue) { + if (celebrityTracksBuilder_ == null) { + ensureCelebrityTracksIsMutable(); + celebrityTracks_.add(index, builderForValue.build()); + onChanged(); + } else { + celebrityTracksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The tracks detected from the input video, including recognized celebrities
+     * and other detected faces in the video.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack celebrity_tracks = 1; + * + */ + public Builder addAllCelebrityTracks( + java.lang.Iterable + values) { + if (celebrityTracksBuilder_ == null) { + ensureCelebrityTracksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, celebrityTracks_); + onChanged(); + } else { + celebrityTracksBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The tracks detected from the input video, including recognized celebrities
+     * and other detected faces in the video.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack celebrity_tracks = 1; + * + */ + public Builder clearCelebrityTracks() { + if (celebrityTracksBuilder_ == null) { + celebrityTracks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + celebrityTracksBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The tracks detected from the input video, including recognized celebrities
+     * and other detected faces in the video.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack celebrity_tracks = 1; + * + */ + public Builder removeCelebrityTracks(int index) { + if (celebrityTracksBuilder_ == null) { + ensureCelebrityTracksIsMutable(); + celebrityTracks_.remove(index); + onChanged(); + } else { + celebrityTracksBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The tracks detected from the input video, including recognized celebrities
+     * and other detected faces in the video.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack celebrity_tracks = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.Builder + getCelebrityTracksBuilder(int index) { + return getCelebrityTracksFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The tracks detected from the input video, including recognized celebrities
+     * and other detected faces in the video.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack celebrity_tracks = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.CelebrityTrackOrBuilder + getCelebrityTracksOrBuilder(int index) { + if (celebrityTracksBuilder_ == null) { + return celebrityTracks_.get(index); + } else { + return celebrityTracksBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The tracks detected from the input video, including recognized celebrities
+     * and other detected faces in the video.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack celebrity_tracks = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.videointelligence.v1p3beta1.CelebrityTrackOrBuilder> + getCelebrityTracksOrBuilderList() { + if (celebrityTracksBuilder_ != null) { + return celebrityTracksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(celebrityTracks_); + } + } + /** + * + * + *
+     * The tracks detected from the input video, including recognized celebrities
+     * and other detected faces in the video.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack celebrity_tracks = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.Builder + addCelebrityTracksBuilder() { + return getCelebrityTracksFieldBuilder() + .addBuilder( + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.getDefaultInstance()); + } + /** + * + * + *
+     * The tracks detected from the input video, including recognized celebrities
+     * and other detected faces in the video.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack celebrity_tracks = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.Builder + addCelebrityTracksBuilder(int index) { + return getCelebrityTracksFieldBuilder() + .addBuilder( + index, + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.getDefaultInstance()); + } + /** + * + * + *
+     * The tracks detected from the input video, including recognized celebrities
+     * and other detected faces in the video.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack celebrity_tracks = 1; + * + */ + public java.util.List + getCelebrityTracksBuilderList() { + return getCelebrityTracksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack, + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.Builder, + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrackOrBuilder> + getCelebrityTracksFieldBuilder() { + if (celebrityTracksBuilder_ == null) { + celebrityTracksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack, + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.Builder, + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrackOrBuilder>( + celebrityTracks_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + celebrityTracks_ = null; + } + return celebrityTracksBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(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.v1p3beta1.CelebrityRecognitionAnnotation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation) + private static final com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation(); + } + + public static com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CelebrityRecognitionAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CelebrityRecognitionAnnotation(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.v1p3beta1.CelebrityRecognitionAnnotation + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/CelebrityRecognitionAnnotationOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/CelebrityRecognitionAnnotationOrBuilder.java new file mode 100644 index 000000000..98eec57dc --- /dev/null +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/CelebrityRecognitionAnnotationOrBuilder.java @@ -0,0 +1,89 @@ +/* + * Copyright 2019 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +public interface CelebrityRecognitionAnnotationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The tracks detected from the input video, including recognized celebrities
+   * and other detected faces in the video.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack celebrity_tracks = 1; + * + */ + java.util.List + getCelebrityTracksList(); + /** + * + * + *
+   * The tracks detected from the input video, including recognized celebrities
+   * and other detected faces in the video.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack celebrity_tracks = 1; + * + */ + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack getCelebrityTracks(int index); + /** + * + * + *
+   * The tracks detected from the input video, including recognized celebrities
+   * and other detected faces in the video.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack celebrity_tracks = 1; + * + */ + int getCelebrityTracksCount(); + /** + * + * + *
+   * The tracks detected from the input video, including recognized celebrities
+   * and other detected faces in the video.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack celebrity_tracks = 1; + * + */ + java.util.List + getCelebrityTracksOrBuilderList(); + /** + * + * + *
+   * The tracks detected from the input video, including recognized celebrities
+   * and other detected faces in the video.
+   * 
+ * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack celebrity_tracks = 1; + * + */ + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrackOrBuilder getCelebrityTracksOrBuilder( + int index); +} diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/CelebrityTrack.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/CelebrityTrack.java new file mode 100644 index 000000000..29a6b0201 --- /dev/null +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/CelebrityTrack.java @@ -0,0 +1,2177 @@ +/* + * Copyright 2019 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +/** + * + * + *
+ * The annotation result of a celebrity face track. RecognizedCelebrity field
+ * could be empty if the face track does not have any matched celebrities.
+ * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.CelebrityTrack} + */ +public final class CelebrityTrack extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.CelebrityTrack) + CelebrityTrackOrBuilder { + private static final long serialVersionUID = 0L; + // Use CelebrityTrack.newBuilder() to construct. + private CelebrityTrack(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CelebrityTrack() { + celebrities_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CelebrityTrack( + 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) != 0)) { + celebrities_ = + new java.util.ArrayList< + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack + .RecognizedCelebrity>(); + mutable_bitField0_ |= 0x00000001; + } + celebrities_.add( + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack + .RecognizedCelebrity.parser(), + extensionRegistry)); + break; + } + case 26: + { + com.google.cloud.videointelligence.v1p3beta1.Track.Builder subBuilder = null; + if (faceTrack_ != null) { + subBuilder = faceTrack_.toBuilder(); + } + faceTrack_ = + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.Track.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(faceTrack_); + faceTrack_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(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) != 0)) { + celebrities_ = java.util.Collections.unmodifiableList(celebrities_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_CelebrityTrack_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_CelebrityTrack_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.class, + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.Builder.class); + } + + public interface RecognizedCelebrityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The recognized celebrity.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Celebrity celebrity = 1; + */ + boolean hasCelebrity(); + /** + * + * + *
+     * The recognized celebrity.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Celebrity celebrity = 1; + */ + com.google.cloud.videointelligence.v1p3beta1.Celebrity getCelebrity(); + /** + * + * + *
+     * The recognized celebrity.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Celebrity celebrity = 1; + */ + com.google.cloud.videointelligence.v1p3beta1.CelebrityOrBuilder getCelebrityOrBuilder(); + + /** + * + * + *
+     * Recognition confidence. Range [0, 1].
+     * 
+ * + * float confidence = 2; + */ + float getConfidence(); + } + /** + * + * + *
+   * The recognized celebrity with confidence score.
+   * 
+ * + * Protobuf type {@code + * google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity} + */ + public static final class RecognizedCelebrity extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity) + RecognizedCelebrityOrBuilder { + private static final long serialVersionUID = 0L; + // Use RecognizedCelebrity.newBuilder() to construct. + private RecognizedCelebrity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RecognizedCelebrity() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RecognizedCelebrity( + 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.v1p3beta1.Celebrity.Builder subBuilder = null; + if (celebrity_ != null) { + subBuilder = celebrity_.toBuilder(); + } + celebrity_ = + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.Celebrity.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(celebrity_); + celebrity_ = subBuilder.buildPartial(); + } + + break; + } + case 21: + { + confidence_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownField(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.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_CelebrityTrack_RecognizedCelebrity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_CelebrityTrack_RecognizedCelebrity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity.class, + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity + .Builder.class); + } + + public static final int CELEBRITY_FIELD_NUMBER = 1; + private com.google.cloud.videointelligence.v1p3beta1.Celebrity celebrity_; + /** + * + * + *
+     * The recognized celebrity.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Celebrity celebrity = 1; + */ + public boolean hasCelebrity() { + return celebrity_ != null; + } + /** + * + * + *
+     * The recognized celebrity.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Celebrity celebrity = 1; + */ + public com.google.cloud.videointelligence.v1p3beta1.Celebrity getCelebrity() { + return celebrity_ == null + ? com.google.cloud.videointelligence.v1p3beta1.Celebrity.getDefaultInstance() + : celebrity_; + } + /** + * + * + *
+     * The recognized celebrity.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Celebrity celebrity = 1; + */ + public com.google.cloud.videointelligence.v1p3beta1.CelebrityOrBuilder getCelebrityOrBuilder() { + return getCelebrity(); + } + + public static final int CONFIDENCE_FIELD_NUMBER = 2; + private float confidence_; + /** + * + * + *
+     * Recognition confidence. 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 (celebrity_ != null) { + output.writeMessage(1, getCelebrity()); + } + 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 (celebrity_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCelebrity()); + } + 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.v1p3beta1.CelebrityTrack.RecognizedCelebrity)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity other = + (com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity) obj; + + if (hasCelebrity() != other.hasCelebrity()) return false; + if (hasCelebrity()) { + if (!getCelebrity().equals(other.getCelebrity())) return false; + } + if (java.lang.Float.floatToIntBits(getConfidence()) + != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCelebrity()) { + hash = (37 * hash) + CELEBRITY_FIELD_NUMBER; + hash = (53 * hash) + getCelebrity().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.v1p3beta1.CelebrityTrack.RecognizedCelebrity + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity + 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.v1p3beta1.CelebrityTrack.RecognizedCelebrity + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity + 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.v1p3beta1.CelebrityTrack.RecognizedCelebrity + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity + 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.v1p3beta1.CelebrityTrack.RecognizedCelebrity + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity + 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.v1p3beta1.CelebrityTrack.RecognizedCelebrity + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity + 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.v1p3beta1.CelebrityTrack.RecognizedCelebrity 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 recognized celebrity with confidence score.
+     * 
+ * + * Protobuf type {@code + * google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity) + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_CelebrityTrack_RecognizedCelebrity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_CelebrityTrack_RecognizedCelebrity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity + .class, + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity + .Builder.class); + } + + // Construct using + // com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity.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 (celebrityBuilder_ == null) { + celebrity_ = null; + } else { + celebrity_ = null; + celebrityBuilder_ = null; + } + confidence_ = 0F; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_CelebrityTrack_RecognizedCelebrity_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity + getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity + build() { + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity + buildPartial() { + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity result = + new com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity( + this); + if (celebrityBuilder_ == null) { + result.celebrity_ = celebrity_; + } else { + result.celebrity_ = celebrityBuilder_.build(); + } + result.confidence_ = confidence_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity) { + return mergeFrom( + (com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity other) { + if (other + == com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity + .getDefaultInstance()) return this; + if (other.hasCelebrity()) { + mergeCelebrity(other.getCelebrity()); + } + 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.v1p3beta1.CelebrityTrack.RecognizedCelebrity + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.videointelligence.v1p3beta1.Celebrity celebrity_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.Celebrity, + com.google.cloud.videointelligence.v1p3beta1.Celebrity.Builder, + com.google.cloud.videointelligence.v1p3beta1.CelebrityOrBuilder> + celebrityBuilder_; + /** + * + * + *
+       * The recognized celebrity.
+       * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Celebrity celebrity = 1; + */ + public boolean hasCelebrity() { + return celebrityBuilder_ != null || celebrity_ != null; + } + /** + * + * + *
+       * The recognized celebrity.
+       * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Celebrity celebrity = 1; + */ + public com.google.cloud.videointelligence.v1p3beta1.Celebrity getCelebrity() { + if (celebrityBuilder_ == null) { + return celebrity_ == null + ? com.google.cloud.videointelligence.v1p3beta1.Celebrity.getDefaultInstance() + : celebrity_; + } else { + return celebrityBuilder_.getMessage(); + } + } + /** + * + * + *
+       * The recognized celebrity.
+       * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Celebrity celebrity = 1; + */ + public Builder setCelebrity(com.google.cloud.videointelligence.v1p3beta1.Celebrity value) { + if (celebrityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + celebrity_ = value; + onChanged(); + } else { + celebrityBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * The recognized celebrity.
+       * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Celebrity celebrity = 1; + */ + public Builder setCelebrity( + com.google.cloud.videointelligence.v1p3beta1.Celebrity.Builder builderForValue) { + if (celebrityBuilder_ == null) { + celebrity_ = builderForValue.build(); + onChanged(); + } else { + celebrityBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * The recognized celebrity.
+       * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Celebrity celebrity = 1; + */ + public Builder mergeCelebrity(com.google.cloud.videointelligence.v1p3beta1.Celebrity value) { + if (celebrityBuilder_ == null) { + if (celebrity_ != null) { + celebrity_ = + com.google.cloud.videointelligence.v1p3beta1.Celebrity.newBuilder(celebrity_) + .mergeFrom(value) + .buildPartial(); + } else { + celebrity_ = value; + } + onChanged(); + } else { + celebrityBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * The recognized celebrity.
+       * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Celebrity celebrity = 1; + */ + public Builder clearCelebrity() { + if (celebrityBuilder_ == null) { + celebrity_ = null; + onChanged(); + } else { + celebrity_ = null; + celebrityBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * The recognized celebrity.
+       * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Celebrity celebrity = 1; + */ + public com.google.cloud.videointelligence.v1p3beta1.Celebrity.Builder getCelebrityBuilder() { + + onChanged(); + return getCelebrityFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * The recognized celebrity.
+       * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Celebrity celebrity = 1; + */ + public com.google.cloud.videointelligence.v1p3beta1.CelebrityOrBuilder + getCelebrityOrBuilder() { + if (celebrityBuilder_ != null) { + return celebrityBuilder_.getMessageOrBuilder(); + } else { + return celebrity_ == null + ? com.google.cloud.videointelligence.v1p3beta1.Celebrity.getDefaultInstance() + : celebrity_; + } + } + /** + * + * + *
+       * The recognized celebrity.
+       * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Celebrity celebrity = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.Celebrity, + com.google.cloud.videointelligence.v1p3beta1.Celebrity.Builder, + com.google.cloud.videointelligence.v1p3beta1.CelebrityOrBuilder> + getCelebrityFieldBuilder() { + if (celebrityBuilder_ == null) { + celebrityBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.Celebrity, + com.google.cloud.videointelligence.v1p3beta1.Celebrity.Builder, + com.google.cloud.videointelligence.v1p3beta1.CelebrityOrBuilder>( + getCelebrity(), getParentForChildren(), isClean()); + celebrity_ = null; + } + return celebrityBuilder_; + } + + private float confidence_; + /** + * + * + *
+       * Recognition confidence. Range [0, 1].
+       * 
+ * + * float confidence = 2; + */ + public float getConfidence() { + return confidence_; + } + /** + * + * + *
+       * Recognition confidence. Range [0, 1].
+       * 
+ * + * float confidence = 2; + */ + public Builder setConfidence(float value) { + + confidence_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Recognition confidence. 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.setUnknownFields(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.v1p3beta1.CelebrityTrack.RecognizedCelebrity) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity) + private static final com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack + .RecognizedCelebrity + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity(); + } + + public static com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognizedCelebrity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecognizedCelebrity(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.v1p3beta1.CelebrityTrack.RecognizedCelebrity + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int CELEBRITIES_FIELD_NUMBER = 1; + private java.util.List< + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity> + celebrities_; + /** + * + * + *
+   * Top N match of the celebrities for the face in this track.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity celebrities = 1; + * + */ + public java.util.List< + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity> + getCelebritiesList() { + return celebrities_; + } + /** + * + * + *
+   * Top N match of the celebrities for the face in this track.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity celebrities = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack + .RecognizedCelebrityOrBuilder> + getCelebritiesOrBuilderList() { + return celebrities_; + } + /** + * + * + *
+   * Top N match of the celebrities for the face in this track.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity celebrities = 1; + * + */ + public int getCelebritiesCount() { + return celebrities_.size(); + } + /** + * + * + *
+   * Top N match of the celebrities for the face in this track.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity celebrities = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity + getCelebrities(int index) { + return celebrities_.get(index); + } + /** + * + * + *
+   * Top N match of the celebrities for the face in this track.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity celebrities = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrityOrBuilder + getCelebritiesOrBuilder(int index) { + return celebrities_.get(index); + } + + public static final int FACE_TRACK_FIELD_NUMBER = 3; + private com.google.cloud.videointelligence.v1p3beta1.Track faceTrack_; + /** + * + * + *
+   * A track of a person's face.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Track face_track = 3; + */ + public boolean hasFaceTrack() { + return faceTrack_ != null; + } + /** + * + * + *
+   * A track of a person's face.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Track face_track = 3; + */ + public com.google.cloud.videointelligence.v1p3beta1.Track getFaceTrack() { + return faceTrack_ == null + ? com.google.cloud.videointelligence.v1p3beta1.Track.getDefaultInstance() + : faceTrack_; + } + /** + * + * + *
+   * A track of a person's face.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Track face_track = 3; + */ + public com.google.cloud.videointelligence.v1p3beta1.TrackOrBuilder getFaceTrackOrBuilder() { + return getFaceTrack(); + } + + 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 < celebrities_.size(); i++) { + output.writeMessage(1, celebrities_.get(i)); + } + if (faceTrack_ != null) { + output.writeMessage(3, getFaceTrack()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < celebrities_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, celebrities_.get(i)); + } + if (faceTrack_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getFaceTrack()); + } + 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.v1p3beta1.CelebrityTrack)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack other = + (com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack) obj; + + if (!getCelebritiesList().equals(other.getCelebritiesList())) return false; + if (hasFaceTrack() != other.hasFaceTrack()) return false; + if (hasFaceTrack()) { + if (!getFaceTrack().equals(other.getFaceTrack())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getCelebritiesCount() > 0) { + hash = (37 * hash) + CELEBRITIES_FIELD_NUMBER; + hash = (53 * hash) + getCelebritiesList().hashCode(); + } + if (hasFaceTrack()) { + hash = (37 * hash) + FACE_TRACK_FIELD_NUMBER; + hash = (53 * hash) + getFaceTrack().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack 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.v1p3beta1.CelebrityTrack parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack 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.v1p3beta1.CelebrityTrack parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack 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.v1p3beta1.CelebrityTrack parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack 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.v1p3beta1.CelebrityTrack parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack 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.v1p3beta1.CelebrityTrack 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 annotation result of a celebrity face track. RecognizedCelebrity field
+   * could be empty if the face track does not have any matched celebrities.
+   * 
+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.CelebrityTrack} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1p3beta1.CelebrityTrack) + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrackOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_CelebrityTrack_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_CelebrityTrack_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.class, + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.Builder.class); + } + + // Construct using com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCelebritiesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (celebritiesBuilder_ == null) { + celebrities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + celebritiesBuilder_.clear(); + } + if (faceTrackBuilder_ == null) { + faceTrack_ = null; + } else { + faceTrack_ = null; + faceTrackBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_CelebrityTrack_descriptor; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack getDefaultInstanceForType() { + return com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack build() { + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack buildPartial() { + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack result = + new com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (celebritiesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + celebrities_ = java.util.Collections.unmodifiableList(celebrities_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.celebrities_ = celebrities_; + } else { + result.celebrities_ = celebritiesBuilder_.build(); + } + if (faceTrackBuilder_ == null) { + result.faceTrack_ = faceTrack_; + } else { + result.faceTrack_ = faceTrackBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack) { + return mergeFrom((com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack other) { + if (other == com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.getDefaultInstance()) + return this; + if (celebritiesBuilder_ == null) { + if (!other.celebrities_.isEmpty()) { + if (celebrities_.isEmpty()) { + celebrities_ = other.celebrities_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCelebritiesIsMutable(); + celebrities_.addAll(other.celebrities_); + } + onChanged(); + } + } else { + if (!other.celebrities_.isEmpty()) { + if (celebritiesBuilder_.isEmpty()) { + celebritiesBuilder_.dispose(); + celebritiesBuilder_ = null; + celebrities_ = other.celebrities_; + bitField0_ = (bitField0_ & ~0x00000001); + celebritiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCelebritiesFieldBuilder() + : null; + } else { + celebritiesBuilder_.addAllMessages(other.celebrities_); + } + } + } + if (other.hasFaceTrack()) { + mergeFaceTrack(other.getFaceTrack()); + } + 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.v1p3beta1.CelebrityTrack parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List< + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity> + celebrities_ = java.util.Collections.emptyList(); + + private void ensureCelebritiesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + celebrities_ = + new java.util.ArrayList< + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity>( + celebrities_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity, + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity.Builder, + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack + .RecognizedCelebrityOrBuilder> + celebritiesBuilder_; + + /** + * + * + *
+     * Top N match of the celebrities for the face in this track.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity celebrities = 1; + * + */ + public java.util.List< + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity> + getCelebritiesList() { + if (celebritiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(celebrities_); + } else { + return celebritiesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Top N match of the celebrities for the face in this track.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity celebrities = 1; + * + */ + public int getCelebritiesCount() { + if (celebritiesBuilder_ == null) { + return celebrities_.size(); + } else { + return celebritiesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Top N match of the celebrities for the face in this track.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity celebrities = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity + getCelebrities(int index) { + if (celebritiesBuilder_ == null) { + return celebrities_.get(index); + } else { + return celebritiesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Top N match of the celebrities for the face in this track.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity celebrities = 1; + * + */ + public Builder setCelebrities( + int index, + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity value) { + if (celebritiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCelebritiesIsMutable(); + celebrities_.set(index, value); + onChanged(); + } else { + celebritiesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Top N match of the celebrities for the face in this track.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity celebrities = 1; + * + */ + public Builder setCelebrities( + int index, + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity.Builder + builderForValue) { + if (celebritiesBuilder_ == null) { + ensureCelebritiesIsMutable(); + celebrities_.set(index, builderForValue.build()); + onChanged(); + } else { + celebritiesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Top N match of the celebrities for the face in this track.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity celebrities = 1; + * + */ + public Builder addCelebrities( + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity value) { + if (celebritiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCelebritiesIsMutable(); + celebrities_.add(value); + onChanged(); + } else { + celebritiesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Top N match of the celebrities for the face in this track.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity celebrities = 1; + * + */ + public Builder addCelebrities( + int index, + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity value) { + if (celebritiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCelebritiesIsMutable(); + celebrities_.add(index, value); + onChanged(); + } else { + celebritiesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Top N match of the celebrities for the face in this track.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity celebrities = 1; + * + */ + public Builder addCelebrities( + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity.Builder + builderForValue) { + if (celebritiesBuilder_ == null) { + ensureCelebritiesIsMutable(); + celebrities_.add(builderForValue.build()); + onChanged(); + } else { + celebritiesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Top N match of the celebrities for the face in this track.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity celebrities = 1; + * + */ + public Builder addCelebrities( + int index, + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity.Builder + builderForValue) { + if (celebritiesBuilder_ == null) { + ensureCelebritiesIsMutable(); + celebrities_.add(index, builderForValue.build()); + onChanged(); + } else { + celebritiesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Top N match of the celebrities for the face in this track.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity celebrities = 1; + * + */ + public Builder addAllCelebrities( + java.lang.Iterable< + ? extends + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity> + values) { + if (celebritiesBuilder_ == null) { + ensureCelebritiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, celebrities_); + onChanged(); + } else { + celebritiesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Top N match of the celebrities for the face in this track.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity celebrities = 1; + * + */ + public Builder clearCelebrities() { + if (celebritiesBuilder_ == null) { + celebrities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + celebritiesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Top N match of the celebrities for the face in this track.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity celebrities = 1; + * + */ + public Builder removeCelebrities(int index) { + if (celebritiesBuilder_ == null) { + ensureCelebritiesIsMutable(); + celebrities_.remove(index); + onChanged(); + } else { + celebritiesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Top N match of the celebrities for the face in this track.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity celebrities = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity.Builder + getCelebritiesBuilder(int index) { + return getCelebritiesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Top N match of the celebrities for the face in this track.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity celebrities = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrityOrBuilder + getCelebritiesOrBuilder(int index) { + if (celebritiesBuilder_ == null) { + return celebrities_.get(index); + } else { + return celebritiesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Top N match of the celebrities for the face in this track.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity celebrities = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack + .RecognizedCelebrityOrBuilder> + getCelebritiesOrBuilderList() { + if (celebritiesBuilder_ != null) { + return celebritiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(celebrities_); + } + } + /** + * + * + *
+     * Top N match of the celebrities for the face in this track.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity celebrities = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity.Builder + addCelebritiesBuilder() { + return getCelebritiesFieldBuilder() + .addBuilder( + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity + .getDefaultInstance()); + } + /** + * + * + *
+     * Top N match of the celebrities for the face in this track.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity celebrities = 1; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity.Builder + addCelebritiesBuilder(int index) { + return getCelebritiesFieldBuilder() + .addBuilder( + index, + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity + .getDefaultInstance()); + } + /** + * + * + *
+     * Top N match of the celebrities for the face in this track.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity celebrities = 1; + * + */ + public java.util.List< + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity.Builder> + getCelebritiesBuilderList() { + return getCelebritiesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity, + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity.Builder, + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack + .RecognizedCelebrityOrBuilder> + getCelebritiesFieldBuilder() { + if (celebritiesBuilder_ == null) { + celebritiesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity, + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity + .Builder, + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack + .RecognizedCelebrityOrBuilder>( + celebrities_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + celebrities_ = null; + } + return celebritiesBuilder_; + } + + private com.google.cloud.videointelligence.v1p3beta1.Track faceTrack_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.Track, + com.google.cloud.videointelligence.v1p3beta1.Track.Builder, + com.google.cloud.videointelligence.v1p3beta1.TrackOrBuilder> + faceTrackBuilder_; + /** + * + * + *
+     * A track of a person's face.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Track face_track = 3; + */ + public boolean hasFaceTrack() { + return faceTrackBuilder_ != null || faceTrack_ != null; + } + /** + * + * + *
+     * A track of a person's face.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Track face_track = 3; + */ + public com.google.cloud.videointelligence.v1p3beta1.Track getFaceTrack() { + if (faceTrackBuilder_ == null) { + return faceTrack_ == null + ? com.google.cloud.videointelligence.v1p3beta1.Track.getDefaultInstance() + : faceTrack_; + } else { + return faceTrackBuilder_.getMessage(); + } + } + /** + * + * + *
+     * A track of a person's face.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Track face_track = 3; + */ + public Builder setFaceTrack(com.google.cloud.videointelligence.v1p3beta1.Track value) { + if (faceTrackBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + faceTrack_ = value; + onChanged(); + } else { + faceTrackBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * A track of a person's face.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Track face_track = 3; + */ + public Builder setFaceTrack( + com.google.cloud.videointelligence.v1p3beta1.Track.Builder builderForValue) { + if (faceTrackBuilder_ == null) { + faceTrack_ = builderForValue.build(); + onChanged(); + } else { + faceTrackBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * A track of a person's face.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Track face_track = 3; + */ + public Builder mergeFaceTrack(com.google.cloud.videointelligence.v1p3beta1.Track value) { + if (faceTrackBuilder_ == null) { + if (faceTrack_ != null) { + faceTrack_ = + com.google.cloud.videointelligence.v1p3beta1.Track.newBuilder(faceTrack_) + .mergeFrom(value) + .buildPartial(); + } else { + faceTrack_ = value; + } + onChanged(); + } else { + faceTrackBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * A track of a person's face.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Track face_track = 3; + */ + public Builder clearFaceTrack() { + if (faceTrackBuilder_ == null) { + faceTrack_ = null; + onChanged(); + } else { + faceTrack_ = null; + faceTrackBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * A track of a person's face.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Track face_track = 3; + */ + public com.google.cloud.videointelligence.v1p3beta1.Track.Builder getFaceTrackBuilder() { + + onChanged(); + return getFaceTrackFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A track of a person's face.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Track face_track = 3; + */ + public com.google.cloud.videointelligence.v1p3beta1.TrackOrBuilder getFaceTrackOrBuilder() { + if (faceTrackBuilder_ != null) { + return faceTrackBuilder_.getMessageOrBuilder(); + } else { + return faceTrack_ == null + ? com.google.cloud.videointelligence.v1p3beta1.Track.getDefaultInstance() + : faceTrack_; + } + } + /** + * + * + *
+     * A track of a person's face.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Track face_track = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.Track, + com.google.cloud.videointelligence.v1p3beta1.Track.Builder, + com.google.cloud.videointelligence.v1p3beta1.TrackOrBuilder> + getFaceTrackFieldBuilder() { + if (faceTrackBuilder_ == null) { + faceTrackBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.Track, + com.google.cloud.videointelligence.v1p3beta1.Track.Builder, + com.google.cloud.videointelligence.v1p3beta1.TrackOrBuilder>( + getFaceTrack(), getParentForChildren(), isClean()); + faceTrack_ = null; + } + return faceTrackBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(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.v1p3beta1.CelebrityTrack) + } + + // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.CelebrityTrack) + private static final com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack(); + } + + public static com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CelebrityTrack parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CelebrityTrack(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.v1p3beta1.CelebrityTrack getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/CelebrityTrackOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/CelebrityTrackOrBuilder.java new file mode 100644 index 000000000..878817cb3 --- /dev/null +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/CelebrityTrackOrBuilder.java @@ -0,0 +1,124 @@ +/* + * Copyright 2019 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto + +package com.google.cloud.videointelligence.v1p3beta1; + +public interface CelebrityTrackOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1p3beta1.CelebrityTrack) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Top N match of the celebrities for the face in this track.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity celebrities = 1; + * + */ + java.util.List + getCelebritiesList(); + /** + * + * + *
+   * Top N match of the celebrities for the face in this track.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity celebrities = 1; + * + */ + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity getCelebrities( + int index); + /** + * + * + *
+   * Top N match of the celebrities for the face in this track.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity celebrities = 1; + * + */ + int getCelebritiesCount(); + /** + * + * + *
+   * Top N match of the celebrities for the face in this track.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity celebrities = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack + .RecognizedCelebrityOrBuilder> + getCelebritiesOrBuilderList(); + /** + * + * + *
+   * Top N match of the celebrities for the face in this track.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity celebrities = 1; + * + */ + com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrityOrBuilder + getCelebritiesOrBuilder(int index); + + /** + * + * + *
+   * A track of a person's face.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Track face_track = 3; + */ + boolean hasFaceTrack(); + /** + * + * + *
+   * A track of a person's face.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Track face_track = 3; + */ + com.google.cloud.videointelligence.v1p3beta1.Track getFaceTrack(); + /** + * + * + *
+   * A track of a person's face.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Track face_track = 3; + */ + com.google.cloud.videointelligence.v1p3beta1.TrackOrBuilder getFaceTrackOrBuilder(); +} diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/Feature.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/Feature.java index 8dbd88a77..1ce8b3771 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/Feature.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/Feature.java @@ -108,6 +108,16 @@ public enum Feature implements com.google.protobuf.ProtocolMessageEnum { * LOGO_RECOGNITION = 12; */ LOGO_RECOGNITION(12), + /** + * + * + *
+   * Celebrity recognition.
+   * 
+ * + * CELEBRITY_RECOGNITION = 13; + */ + CELEBRITY_RECOGNITION(13), UNRECOGNIZED(-1), ; @@ -191,6 +201,16 @@ public enum Feature implements com.google.protobuf.ProtocolMessageEnum { * LOGO_RECOGNITION = 12; */ public static final int LOGO_RECOGNITION_VALUE = 12; + /** + * + * + *
+   * Celebrity recognition.
+   * 
+ * + * CELEBRITY_RECOGNITION = 13; + */ + public static final int CELEBRITY_RECOGNITION_VALUE = 13; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -224,6 +244,8 @@ public static Feature forNumber(int value) { return OBJECT_TRACKING; case 12: return LOGO_RECOGNITION; + case 13: + return CELEBRITY_RECOGNITION; default: return null; } diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechContext.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechContext.java index 6c9bbb90b..afa19a71a 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechContext.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechContext.java @@ -119,7 +119,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * *Optional* A list of strings containing words and phrases "hints" so that
+   * Optional. A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
    * to improve the accuracy for specific words and phrases, for example, if
    * specific commands are typically spoken by the user. This can also be used
@@ -127,7 +127,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * [usage limits](https://cloud.google.com/speech/limits#content).
    * 
* - * repeated string phrases = 1; + * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.ProtocolStringList getPhrasesList() { return phrases_; @@ -136,7 +136,7 @@ public com.google.protobuf.ProtocolStringList getPhrasesList() { * * *
-   * *Optional* A list of strings containing words and phrases "hints" so that
+   * Optional. A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
    * to improve the accuracy for specific words and phrases, for example, if
    * specific commands are typically spoken by the user. This can also be used
@@ -144,7 +144,7 @@ public com.google.protobuf.ProtocolStringList getPhrasesList() {
    * [usage limits](https://cloud.google.com/speech/limits#content).
    * 
* - * repeated string phrases = 1; + * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public int getPhrasesCount() { return phrases_.size(); @@ -153,7 +153,7 @@ public int getPhrasesCount() { * * *
-   * *Optional* A list of strings containing words and phrases "hints" so that
+   * Optional. A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
    * to improve the accuracy for specific words and phrases, for example, if
    * specific commands are typically spoken by the user. This can also be used
@@ -161,7 +161,7 @@ public int getPhrasesCount() {
    * [usage limits](https://cloud.google.com/speech/limits#content).
    * 
* - * repeated string phrases = 1; + * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public java.lang.String getPhrases(int index) { return phrases_.get(index); @@ -170,7 +170,7 @@ public java.lang.String getPhrases(int index) { * * *
-   * *Optional* A list of strings containing words and phrases "hints" so that
+   * Optional. A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
    * to improve the accuracy for specific words and phrases, for example, if
    * specific commands are typically spoken by the user. This can also be used
@@ -178,7 +178,7 @@ public java.lang.String getPhrases(int index) {
    * [usage limits](https://cloud.google.com/speech/limits#content).
    * 
* - * repeated string phrases = 1; + * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.ByteString getPhrasesBytes(int index) { return phrases_.getByteString(index); @@ -537,7 +537,7 @@ private void ensurePhrasesIsMutable() { * * *
-     * *Optional* A list of strings containing words and phrases "hints" so that
+     * Optional. A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
      * to improve the accuracy for specific words and phrases, for example, if
      * specific commands are typically spoken by the user. This can also be used
@@ -545,7 +545,7 @@ private void ensurePhrasesIsMutable() {
      * [usage limits](https://cloud.google.com/speech/limits#content).
      * 
* - * repeated string phrases = 1; + * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.ProtocolStringList getPhrasesList() { return phrases_.getUnmodifiableView(); @@ -554,7 +554,7 @@ public com.google.protobuf.ProtocolStringList getPhrasesList() { * * *
-     * *Optional* A list of strings containing words and phrases "hints" so that
+     * Optional. A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
      * to improve the accuracy for specific words and phrases, for example, if
      * specific commands are typically spoken by the user. This can also be used
@@ -562,7 +562,7 @@ public com.google.protobuf.ProtocolStringList getPhrasesList() {
      * [usage limits](https://cloud.google.com/speech/limits#content).
      * 
* - * repeated string phrases = 1; + * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public int getPhrasesCount() { return phrases_.size(); @@ -571,7 +571,7 @@ public int getPhrasesCount() { * * *
-     * *Optional* A list of strings containing words and phrases "hints" so that
+     * Optional. A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
      * to improve the accuracy for specific words and phrases, for example, if
      * specific commands are typically spoken by the user. This can also be used
@@ -579,7 +579,7 @@ public int getPhrasesCount() {
      * [usage limits](https://cloud.google.com/speech/limits#content).
      * 
* - * repeated string phrases = 1; + * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public java.lang.String getPhrases(int index) { return phrases_.get(index); @@ -588,7 +588,7 @@ public java.lang.String getPhrases(int index) { * * *
-     * *Optional* A list of strings containing words and phrases "hints" so that
+     * Optional. A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
      * to improve the accuracy for specific words and phrases, for example, if
      * specific commands are typically spoken by the user. This can also be used
@@ -596,7 +596,7 @@ public java.lang.String getPhrases(int index) {
      * [usage limits](https://cloud.google.com/speech/limits#content).
      * 
* - * repeated string phrases = 1; + * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.ByteString getPhrasesBytes(int index) { return phrases_.getByteString(index); @@ -605,7 +605,7 @@ public com.google.protobuf.ByteString getPhrasesBytes(int index) { * * *
-     * *Optional* A list of strings containing words and phrases "hints" so that
+     * Optional. A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
      * to improve the accuracy for specific words and phrases, for example, if
      * specific commands are typically spoken by the user. This can also be used
@@ -613,7 +613,7 @@ public com.google.protobuf.ByteString getPhrasesBytes(int index) {
      * [usage limits](https://cloud.google.com/speech/limits#content).
      * 
* - * repeated string phrases = 1; + * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setPhrases(int index, java.lang.String value) { if (value == null) { @@ -628,7 +628,7 @@ public Builder setPhrases(int index, java.lang.String value) { * * *
-     * *Optional* A list of strings containing words and phrases "hints" so that
+     * Optional. A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
      * to improve the accuracy for specific words and phrases, for example, if
      * specific commands are typically spoken by the user. This can also be used
@@ -636,7 +636,7 @@ public Builder setPhrases(int index, java.lang.String value) {
      * [usage limits](https://cloud.google.com/speech/limits#content).
      * 
* - * repeated string phrases = 1; + * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addPhrases(java.lang.String value) { if (value == null) { @@ -651,7 +651,7 @@ public Builder addPhrases(java.lang.String value) { * * *
-     * *Optional* A list of strings containing words and phrases "hints" so that
+     * Optional. A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
      * to improve the accuracy for specific words and phrases, for example, if
      * specific commands are typically spoken by the user. This can also be used
@@ -659,7 +659,7 @@ public Builder addPhrases(java.lang.String value) {
      * [usage limits](https://cloud.google.com/speech/limits#content).
      * 
* - * repeated string phrases = 1; + * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllPhrases(java.lang.Iterable values) { ensurePhrasesIsMutable(); @@ -671,7 +671,7 @@ public Builder addAllPhrases(java.lang.Iterable values) { * * *
-     * *Optional* A list of strings containing words and phrases "hints" so that
+     * Optional. A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
      * to improve the accuracy for specific words and phrases, for example, if
      * specific commands are typically spoken by the user. This can also be used
@@ -679,7 +679,7 @@ public Builder addAllPhrases(java.lang.Iterable values) {
      * [usage limits](https://cloud.google.com/speech/limits#content).
      * 
* - * repeated string phrases = 1; + * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearPhrases() { phrases_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -691,7 +691,7 @@ public Builder clearPhrases() { * * *
-     * *Optional* A list of strings containing words and phrases "hints" so that
+     * Optional. A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
      * to improve the accuracy for specific words and phrases, for example, if
      * specific commands are typically spoken by the user. This can also be used
@@ -699,7 +699,7 @@ public Builder clearPhrases() {
      * [usage limits](https://cloud.google.com/speech/limits#content).
      * 
* - * repeated string phrases = 1; + * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addPhrasesBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechContextOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechContextOrBuilder.java index f7a7f7a13..0f049d985 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechContextOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechContextOrBuilder.java @@ -27,7 +27,7 @@ public interface SpeechContextOrBuilder * * *
-   * *Optional* A list of strings containing words and phrases "hints" so that
+   * Optional. A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
    * to improve the accuracy for specific words and phrases, for example, if
    * specific commands are typically spoken by the user. This can also be used
@@ -35,14 +35,14 @@ public interface SpeechContextOrBuilder
    * [usage limits](https://cloud.google.com/speech/limits#content).
    * 
* - * repeated string phrases = 1; + * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; */ java.util.List getPhrasesList(); /** * * *
-   * *Optional* A list of strings containing words and phrases "hints" so that
+   * Optional. A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
    * to improve the accuracy for specific words and phrases, for example, if
    * specific commands are typically spoken by the user. This can also be used
@@ -50,14 +50,14 @@ public interface SpeechContextOrBuilder
    * [usage limits](https://cloud.google.com/speech/limits#content).
    * 
* - * repeated string phrases = 1; + * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; */ int getPhrasesCount(); /** * * *
-   * *Optional* A list of strings containing words and phrases "hints" so that
+   * Optional. A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
    * to improve the accuracy for specific words and phrases, for example, if
    * specific commands are typically spoken by the user. This can also be used
@@ -65,14 +65,14 @@ public interface SpeechContextOrBuilder
    * [usage limits](https://cloud.google.com/speech/limits#content).
    * 
* - * repeated string phrases = 1; + * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; */ java.lang.String getPhrases(int index); /** * * *
-   * *Optional* A list of strings containing words and phrases "hints" so that
+   * Optional. A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
    * to improve the accuracy for specific words and phrases, for example, if
    * specific commands are typically spoken by the user. This can also be used
@@ -80,7 +80,7 @@ public interface SpeechContextOrBuilder
    * [usage limits](https://cloud.google.com/speech/limits#content).
    * 
* - * repeated string phrases = 1; + * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.ByteString getPhrasesBytes(int index); } diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechRecognitionAlternative.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechRecognitionAlternative.java index 6810b0e7f..c9243e174 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechRecognitionAlternative.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechRecognitionAlternative.java @@ -180,15 +180,15 @@ public com.google.protobuf.ByteString getTranscriptBytes() { * * *
-   * The confidence estimate between 0.0 and 1.0. A higher number
+   * Output only. The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
-   * correct. This field is typically provided only for the top hypothesis, and
-   * only for `is_final=true` results. Clients should not rely on the
-   * `confidence` field as it is not guaranteed to be accurate or consistent.
+   * correct. This field is set only for the top alternative.
+   * This field is not guaranteed to be accurate and users should not rely on it
+   * to be always provided.
    * The default of 0.0 is a sentinel value indicating `confidence` was not set.
    * 
* - * float confidence = 2; + * float confidence = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public float getConfidence() { return confidence_; @@ -200,10 +200,14 @@ public float getConfidence() { * * *
-   * A list of word-specific information for each recognized word.
+   * Output only. A list of word-specific information for each recognized word.
+   * Note: When `enable_speaker_diarization` is true, you will see all the words
+   * from the beginning of the audio.
    * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getWordsList() { return words_; @@ -212,10 +216,14 @@ public java.util.List get * * *
-   * A list of word-specific information for each recognized word.
+   * Output only. A list of word-specific information for each recognized word.
+   * Note: When `enable_speaker_diarization` is true, you will see all the words
+   * from the beginning of the audio.
    * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getWordsOrBuilderList() { @@ -225,10 +233,14 @@ public java.util.List get * * *
-   * A list of word-specific information for each recognized word.
+   * Output only. A list of word-specific information for each recognized word.
+   * Note: When `enable_speaker_diarization` is true, you will see all the words
+   * from the beginning of the audio.
    * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getWordsCount() { return words_.size(); @@ -237,10 +249,14 @@ public int getWordsCount() { * * *
-   * A list of word-specific information for each recognized word.
+   * Output only. A list of word-specific information for each recognized word.
+   * Note: When `enable_speaker_diarization` is true, you will see all the words
+   * from the beginning of the audio.
    * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.videointelligence.v1p3beta1.WordInfo getWords(int index) { return words_.get(index); @@ -249,10 +265,14 @@ public com.google.cloud.videointelligence.v1p3beta1.WordInfo getWords(int index) * * *
-   * A list of word-specific information for each recognized word.
+   * Output only. A list of word-specific information for each recognized word.
+   * Note: When `enable_speaker_diarization` is true, you will see all the words
+   * from the beginning of the audio.
    * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.videointelligence.v1p3beta1.WordInfoOrBuilder getWordsOrBuilder( int index) { @@ -767,15 +787,15 @@ public Builder setTranscriptBytes(com.google.protobuf.ByteString value) { * * *
-     * The confidence estimate between 0.0 and 1.0. A higher number
+     * Output only. The confidence estimate between 0.0 and 1.0. A higher number
      * indicates an estimated greater likelihood that the recognized words are
-     * correct. This field is typically provided only for the top hypothesis, and
-     * only for `is_final=true` results. Clients should not rely on the
-     * `confidence` field as it is not guaranteed to be accurate or consistent.
+     * correct. This field is set only for the top alternative.
+     * This field is not guaranteed to be accurate and users should not rely on it
+     * to be always provided.
      * The default of 0.0 is a sentinel value indicating `confidence` was not set.
      * 
* - * float confidence = 2; + * float confidence = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public float getConfidence() { return confidence_; @@ -784,15 +804,15 @@ public float getConfidence() { * * *
-     * The confidence estimate between 0.0 and 1.0. A higher number
+     * Output only. The confidence estimate between 0.0 and 1.0. A higher number
      * indicates an estimated greater likelihood that the recognized words are
-     * correct. This field is typically provided only for the top hypothesis, and
-     * only for `is_final=true` results. Clients should not rely on the
-     * `confidence` field as it is not guaranteed to be accurate or consistent.
+     * correct. This field is set only for the top alternative.
+     * This field is not guaranteed to be accurate and users should not rely on it
+     * to be always provided.
      * The default of 0.0 is a sentinel value indicating `confidence` was not set.
      * 
* - * float confidence = 2; + * float confidence = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setConfidence(float value) { @@ -804,15 +824,15 @@ public Builder setConfidence(float value) { * * *
-     * The confidence estimate between 0.0 and 1.0. A higher number
+     * Output only. The confidence estimate between 0.0 and 1.0. A higher number
      * indicates an estimated greater likelihood that the recognized words are
-     * correct. This field is typically provided only for the top hypothesis, and
-     * only for `is_final=true` results. Clients should not rely on the
-     * `confidence` field as it is not guaranteed to be accurate or consistent.
+     * correct. This field is set only for the top alternative.
+     * This field is not guaranteed to be accurate and users should not rely on it
+     * to be always provided.
      * The default of 0.0 is a sentinel value indicating `confidence` was not set.
      * 
* - * float confidence = 2; + * float confidence = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearConfidence() { @@ -842,10 +862,14 @@ private void ensureWordsIsMutable() { * * *
-     * A list of word-specific information for each recognized word.
+     * Output only. A list of word-specific information for each recognized word.
+     * Note: When `enable_speaker_diarization` is true, you will see all the words
+     * from the beginning of the audio.
      * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getWordsList() { if (wordsBuilder_ == null) { @@ -858,10 +882,14 @@ public java.util.List get * * *
-     * A list of word-specific information for each recognized word.
+     * Output only. A list of word-specific information for each recognized word.
+     * Note: When `enable_speaker_diarization` is true, you will see all the words
+     * from the beginning of the audio.
      * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getWordsCount() { if (wordsBuilder_ == null) { @@ -874,10 +902,14 @@ public int getWordsCount() { * * *
-     * A list of word-specific information for each recognized word.
+     * Output only. A list of word-specific information for each recognized word.
+     * Note: When `enable_speaker_diarization` is true, you will see all the words
+     * from the beginning of the audio.
      * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.videointelligence.v1p3beta1.WordInfo getWords(int index) { if (wordsBuilder_ == null) { @@ -890,10 +922,14 @@ public com.google.cloud.videointelligence.v1p3beta1.WordInfo getWords(int index) * * *
-     * A list of word-specific information for each recognized word.
+     * Output only. A list of word-specific information for each recognized word.
+     * Note: When `enable_speaker_diarization` is true, you will see all the words
+     * from the beginning of the audio.
      * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setWords( int index, com.google.cloud.videointelligence.v1p3beta1.WordInfo value) { @@ -913,10 +949,14 @@ public Builder setWords( * * *
-     * A list of word-specific information for each recognized word.
+     * Output only. A list of word-specific information for each recognized word.
+     * Note: When `enable_speaker_diarization` is true, you will see all the words
+     * from the beginning of the audio.
      * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setWords( int index, com.google.cloud.videointelligence.v1p3beta1.WordInfo.Builder builderForValue) { @@ -933,10 +973,14 @@ public Builder setWords( * * *
-     * A list of word-specific information for each recognized word.
+     * Output only. A list of word-specific information for each recognized word.
+     * Note: When `enable_speaker_diarization` is true, you will see all the words
+     * from the beginning of the audio.
      * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addWords(com.google.cloud.videointelligence.v1p3beta1.WordInfo value) { if (wordsBuilder_ == null) { @@ -955,10 +999,14 @@ public Builder addWords(com.google.cloud.videointelligence.v1p3beta1.WordInfo va * * *
-     * A list of word-specific information for each recognized word.
+     * Output only. A list of word-specific information for each recognized word.
+     * Note: When `enable_speaker_diarization` is true, you will see all the words
+     * from the beginning of the audio.
      * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addWords( int index, com.google.cloud.videointelligence.v1p3beta1.WordInfo value) { @@ -978,10 +1026,14 @@ public Builder addWords( * * *
-     * A list of word-specific information for each recognized word.
+     * Output only. A list of word-specific information for each recognized word.
+     * Note: When `enable_speaker_diarization` is true, you will see all the words
+     * from the beginning of the audio.
      * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addWords( com.google.cloud.videointelligence.v1p3beta1.WordInfo.Builder builderForValue) { @@ -998,10 +1050,14 @@ public Builder addWords( * * *
-     * A list of word-specific information for each recognized word.
+     * Output only. A list of word-specific information for each recognized word.
+     * Note: When `enable_speaker_diarization` is true, you will see all the words
+     * from the beginning of the audio.
      * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addWords( int index, com.google.cloud.videointelligence.v1p3beta1.WordInfo.Builder builderForValue) { @@ -1018,10 +1074,14 @@ public Builder addWords( * * *
-     * A list of word-specific information for each recognized word.
+     * Output only. A list of word-specific information for each recognized word.
+     * Note: When `enable_speaker_diarization` is true, you will see all the words
+     * from the beginning of the audio.
      * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllWords( java.lang.Iterable @@ -1039,10 +1099,14 @@ public Builder addAllWords( * * *
-     * A list of word-specific information for each recognized word.
+     * Output only. A list of word-specific information for each recognized word.
+     * Note: When `enable_speaker_diarization` is true, you will see all the words
+     * from the beginning of the audio.
      * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearWords() { if (wordsBuilder_ == null) { @@ -1058,10 +1122,14 @@ public Builder clearWords() { * * *
-     * A list of word-specific information for each recognized word.
+     * Output only. A list of word-specific information for each recognized word.
+     * Note: When `enable_speaker_diarization` is true, you will see all the words
+     * from the beginning of the audio.
      * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeWords(int index) { if (wordsBuilder_ == null) { @@ -1077,10 +1145,14 @@ public Builder removeWords(int index) { * * *
-     * A list of word-specific information for each recognized word.
+     * Output only. A list of word-specific information for each recognized word.
+     * Note: When `enable_speaker_diarization` is true, you will see all the words
+     * from the beginning of the audio.
      * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.videointelligence.v1p3beta1.WordInfo.Builder getWordsBuilder( int index) { @@ -1090,10 +1162,14 @@ public com.google.cloud.videointelligence.v1p3beta1.WordInfo.Builder getWordsBui * * *
-     * A list of word-specific information for each recognized word.
+     * Output only. A list of word-specific information for each recognized word.
+     * Note: When `enable_speaker_diarization` is true, you will see all the words
+     * from the beginning of the audio.
      * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.videointelligence.v1p3beta1.WordInfoOrBuilder getWordsOrBuilder( int index) { @@ -1107,10 +1183,14 @@ public com.google.cloud.videointelligence.v1p3beta1.WordInfoOrBuilder getWordsOr * * *
-     * A list of word-specific information for each recognized word.
+     * Output only. A list of word-specific information for each recognized word.
+     * Note: When `enable_speaker_diarization` is true, you will see all the words
+     * from the beginning of the audio.
      * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getWordsOrBuilderList() { @@ -1124,10 +1204,14 @@ public com.google.cloud.videointelligence.v1p3beta1.WordInfoOrBuilder getWordsOr * * *
-     * A list of word-specific information for each recognized word.
+     * Output only. A list of word-specific information for each recognized word.
+     * Note: When `enable_speaker_diarization` is true, you will see all the words
+     * from the beginning of the audio.
      * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.videointelligence.v1p3beta1.WordInfo.Builder addWordsBuilder() { return getWordsFieldBuilder() @@ -1137,10 +1221,14 @@ public com.google.cloud.videointelligence.v1p3beta1.WordInfo.Builder addWordsBui * * *
-     * A list of word-specific information for each recognized word.
+     * Output only. A list of word-specific information for each recognized word.
+     * Note: When `enable_speaker_diarization` is true, you will see all the words
+     * from the beginning of the audio.
      * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.videointelligence.v1p3beta1.WordInfo.Builder addWordsBuilder( int index) { @@ -1152,10 +1240,14 @@ public com.google.cloud.videointelligence.v1p3beta1.WordInfo.Builder addWordsBui * * *
-     * A list of word-specific information for each recognized word.
+     * Output only. A list of word-specific information for each recognized word.
+     * Note: When `enable_speaker_diarization` is true, you will see all the words
+     * from the beginning of the audio.
      * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getWordsBuilderList() { diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechRecognitionAlternativeOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechRecognitionAlternativeOrBuilder.java index 0a2b04363..bc97b6237 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechRecognitionAlternativeOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechRecognitionAlternativeOrBuilder.java @@ -48,15 +48,15 @@ public interface SpeechRecognitionAlternativeOrBuilder * * *
-   * The confidence estimate between 0.0 and 1.0. A higher number
+   * Output only. The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
-   * correct. This field is typically provided only for the top hypothesis, and
-   * only for `is_final=true` results. Clients should not rely on the
-   * `confidence` field as it is not guaranteed to be accurate or consistent.
+   * correct. This field is set only for the top alternative.
+   * This field is not guaranteed to be accurate and users should not rely on it
+   * to be always provided.
    * The default of 0.0 is a sentinel value indicating `confidence` was not set.
    * 
* - * float confidence = 2; + * float confidence = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ float getConfidence(); @@ -64,40 +64,56 @@ public interface SpeechRecognitionAlternativeOrBuilder * * *
-   * A list of word-specific information for each recognized word.
+   * Output only. A list of word-specific information for each recognized word.
+   * Note: When `enable_speaker_diarization` is true, you will see all the words
+   * from the beginning of the audio.
    * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ java.util.List getWordsList(); /** * * *
-   * A list of word-specific information for each recognized word.
+   * Output only. A list of word-specific information for each recognized word.
+   * Note: When `enable_speaker_diarization` is true, you will see all the words
+   * from the beginning of the audio.
    * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.videointelligence.v1p3beta1.WordInfo getWords(int index); /** * * *
-   * A list of word-specific information for each recognized word.
+   * Output only. A list of word-specific information for each recognized word.
+   * Note: When `enable_speaker_diarization` is true, you will see all the words
+   * from the beginning of the audio.
    * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getWordsCount(); /** * * *
-   * A list of word-specific information for each recognized word.
+   * Output only. A list of word-specific information for each recognized word.
+   * Note: When `enable_speaker_diarization` is true, you will see all the words
+   * from the beginning of the audio.
    * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ java.util.List getWordsOrBuilderList(); @@ -105,10 +121,14 @@ public interface SpeechRecognitionAlternativeOrBuilder * * *
-   * A list of word-specific information for each recognized word.
+   * Output only. A list of word-specific information for each recognized word.
+   * Note: When `enable_speaker_diarization` is true, you will see all the words
+   * from the beginning of the audio.
    * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.WordInfo words = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.videointelligence.v1p3beta1.WordInfoOrBuilder getWordsOrBuilder(int index); } diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechTranscription.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechTranscription.java index c15d09e63..c293ee478 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechTranscription.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechTranscription.java @@ -228,13 +228,12 @@ public com.google.cloud.videointelligence.v1p3beta1.SpeechRecognitionAlternative * * *
-   * Output only. The
-   * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag of the
-   * language in this result. This language code was detected to have the most
-   * likelihood of being spoken in the audio.
+   * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
+   * language tag of the language in this result. This language code was
+   * detected to have the most likelihood of being spoken in the audio.
    * 
* - * string language_code = 2; + * string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; @@ -251,13 +250,12 @@ public java.lang.String getLanguageCode() { * * *
-   * Output only. The
-   * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag of the
-   * language in this result. This language code was detected to have the most
-   * likelihood of being spoken in the audio.
+   * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
+   * language tag of the language in this result. This language code was
+   * detected to have the most likelihood of being spoken in the audio.
    * 
* - * string language_code = 2; + * string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; @@ -1129,13 +1127,12 @@ public Builder removeAlternatives(int index) { * * *
-     * Output only. The
-     * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag of the
-     * language in this result. This language code was detected to have the most
-     * likelihood of being spoken in the audio.
+     * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
+     * language tag of the language in this result. This language code was
+     * detected to have the most likelihood of being spoken in the audio.
      * 
* - * string language_code = 2; + * string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; @@ -1152,13 +1149,12 @@ public java.lang.String getLanguageCode() { * * *
-     * Output only. The
-     * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag of the
-     * language in this result. This language code was detected to have the most
-     * likelihood of being spoken in the audio.
+     * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
+     * language tag of the language in this result. This language code was
+     * detected to have the most likelihood of being spoken in the audio.
      * 
* - * string language_code = 2; + * string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; @@ -1175,13 +1171,12 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { * * *
-     * Output only. The
-     * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag of the
-     * language in this result. This language code was detected to have the most
-     * likelihood of being spoken in the audio.
+     * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
+     * language tag of the language in this result. This language code was
+     * detected to have the most likelihood of being spoken in the audio.
      * 
* - * string language_code = 2; + * string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setLanguageCode(java.lang.String value) { if (value == null) { @@ -1196,13 +1191,12 @@ public Builder setLanguageCode(java.lang.String value) { * * *
-     * Output only. The
-     * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag of the
-     * language in this result. This language code was detected to have the most
-     * likelihood of being spoken in the audio.
+     * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
+     * language tag of the language in this result. This language code was
+     * detected to have the most likelihood of being spoken in the audio.
      * 
* - * string language_code = 2; + * string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearLanguageCode() { @@ -1214,13 +1208,12 @@ public Builder clearLanguageCode() { * * *
-     * Output only. The
-     * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag of the
-     * language in this result. This language code was detected to have the most
-     * likelihood of being spoken in the audio.
+     * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
+     * language tag of the language in this result. This language code was
+     * detected to have the most likelihood of being spoken in the audio.
      * 
* - * string language_code = 2; + * string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechTranscriptionConfig.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechTranscriptionConfig.java index ece24d728..2c47be5a6 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechTranscriptionConfig.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechTranscriptionConfig.java @@ -188,14 +188,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * *Required* The language of the supplied audio as a
+   * Required. *Required* The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
    * Example: "en-US".
    * See [Language Support](https://cloud.google.com/speech/docs/languages)
    * for a list of the currently supported language codes.
    * 
* - * string language_code = 1; + * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; @@ -212,14 +212,14 @@ public java.lang.String getLanguageCode() { * * *
-   * *Required* The language of the supplied audio as a
+   * Required. *Required* The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
    * Example: "en-US".
    * See [Language Support](https://cloud.google.com/speech/docs/languages)
    * for a list of the currently supported language codes.
    * 
* - * string language_code = 1; + * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; @@ -239,14 +239,14 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { * * *
-   * *Optional* Maximum number of recognition hypotheses to be returned.
+   * Optional. Maximum number of recognition hypotheses to be returned.
    * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
    * within each `SpeechTranscription`. The server may return fewer than
    * `max_alternatives`. Valid values are `0`-`30`. A value of `0` or `1` will
    * return a maximum of one. If omitted, will return a maximum of one.
    * 
* - * int32 max_alternatives = 2; + * int32 max_alternatives = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public int getMaxAlternatives() { return maxAlternatives_; @@ -258,13 +258,13 @@ public int getMaxAlternatives() { * * *
-   * *Optional* If set to `true`, the server will attempt to filter out
+   * Optional. If set to `true`, the server will attempt to filter out
    * profanities, replacing all but the initial character in each filtered word
    * with asterisks, e.g. "f***". If set to `false` or omitted, profanities
    * won't be filtered out.
    * 
* - * bool filter_profanity = 3; + * bool filter_profanity = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public boolean getFilterProfanity() { return filterProfanity_; @@ -277,10 +277,11 @@ public boolean getFilterProfanity() { * * *
-   * *Optional* A means to provide context to assist the speech recognition.
+   * Optional. A means to provide context to assist the speech recognition.
    * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4; + * + * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public java.util.List @@ -291,10 +292,11 @@ public boolean getFilterProfanity() { * * *
-   * *Optional* A means to provide context to assist the speech recognition.
+   * Optional. A means to provide context to assist the speech recognition.
    * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4; + * + * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public java.util.List< @@ -306,10 +308,11 @@ public boolean getFilterProfanity() { * * *
-   * *Optional* A means to provide context to assist the speech recognition.
+   * Optional. A means to provide context to assist the speech recognition.
    * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4; + * + * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public int getSpeechContextsCount() { @@ -319,10 +322,11 @@ public int getSpeechContextsCount() { * * *
-   * *Optional* A means to provide context to assist the speech recognition.
+   * Optional. A means to provide context to assist the speech recognition.
    * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4; + * + * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.videointelligence.v1p3beta1.SpeechContext getSpeechContexts(int index) { @@ -332,10 +336,11 @@ public com.google.cloud.videointelligence.v1p3beta1.SpeechContext getSpeechConte * * *
-   * *Optional* A means to provide context to assist the speech recognition.
+   * Optional. A means to provide context to assist the speech recognition.
    * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4; + * + * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.videointelligence.v1p3beta1.SpeechContextOrBuilder @@ -349,7 +354,7 @@ public com.google.cloud.videointelligence.v1p3beta1.SpeechContext getSpeechConte * * *
-   * *Optional* If 'true', adds punctuation to recognition result hypotheses.
+   * Optional. If 'true', adds punctuation to recognition result hypotheses.
    * This feature is only available in select languages. Setting this for
    * requests in other languages has no effect at all. The default 'false' value
    * does not add punctuation to result hypotheses. NOTE: "This is currently
@@ -357,7 +362,7 @@ public com.google.cloud.videointelligence.v1p3beta1.SpeechContext getSpeechConte
    * future this may be exclusively available as a premium feature."
    * 
* - * bool enable_automatic_punctuation = 5; + * bool enable_automatic_punctuation = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public boolean getEnableAutomaticPunctuation() { return enableAutomaticPunctuation_; @@ -369,11 +374,11 @@ public boolean getEnableAutomaticPunctuation() { * * *
-   * *Optional* For file formats, such as MXF or MKV, supporting multiple audio
+   * Optional. For file formats, such as MXF or MKV, supporting multiple audio
    * tracks, specify up to two tracks. Default: track 0.
    * 
* - * repeated int32 audio_tracks = 6; + * repeated int32 audio_tracks = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public java.util.List getAudioTracksList() { return audioTracks_; @@ -382,11 +387,11 @@ public java.util.List getAudioTracksList() { * * *
-   * *Optional* For file formats, such as MXF or MKV, supporting multiple audio
+   * Optional. For file formats, such as MXF or MKV, supporting multiple audio
    * tracks, specify up to two tracks. Default: track 0.
    * 
* - * repeated int32 audio_tracks = 6; + * repeated int32 audio_tracks = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public int getAudioTracksCount() { return audioTracks_.size(); @@ -395,11 +400,11 @@ public int getAudioTracksCount() { * * *
-   * *Optional* For file formats, such as MXF or MKV, supporting multiple audio
+   * Optional. For file formats, such as MXF or MKV, supporting multiple audio
    * tracks, specify up to two tracks. Default: track 0.
    * 
* - * repeated int32 audio_tracks = 6; + * repeated int32 audio_tracks = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public int getAudioTracks(int index) { return audioTracks_.getInt(index); @@ -413,7 +418,7 @@ public int getAudioTracks(int index) { * * *
-   * *Optional* If 'true', enables speaker detection for each recognized word in
+   * Optional. If 'true', enables speaker detection for each recognized word in
    * the top alternative of the recognition result using a speaker_tag provided
    * in the WordInfo.
    * Note: When this is true, we send all the words from the beginning of the
@@ -422,7 +427,7 @@ public int getAudioTracks(int index) {
    * identify the speakers in the conversation over time.
    * 
* - * bool enable_speaker_diarization = 7; + * bool enable_speaker_diarization = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public boolean getEnableSpeakerDiarization() { return enableSpeakerDiarization_; @@ -434,13 +439,12 @@ public boolean getEnableSpeakerDiarization() { * * *
-   * *Optional*
-   * If set, specifies the estimated number of speakers in the conversation.
-   * If not set, defaults to '2'.
-   * Ignored unless enable_speaker_diarization is set to true.
+   * Optional. If set, specifies the estimated number of speakers in the
+   * conversation. If not set, defaults to '2'. Ignored unless
+   * enable_speaker_diarization is set to true.
    * 
* - * int32 diarization_speaker_count = 8; + * int32 diarization_speaker_count = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public int getDiarizationSpeakerCount() { return diarizationSpeakerCount_; @@ -452,12 +456,12 @@ public int getDiarizationSpeakerCount() { * * *
-   * *Optional* If `true`, the top result includes a list of words and the
+   * Optional. If `true`, the top result includes a list of words and the
    * confidence for those words. If `false`, no word-level confidence
    * information is returned. The default is `false`.
    * 
* - * bool enable_word_confidence = 9; + * bool enable_word_confidence = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public boolean getEnableWordConfidence() { return enableWordConfidence_; @@ -989,14 +993,14 @@ public Builder mergeFrom( * * *
-     * *Required* The language of the supplied audio as a
+     * Required. *Required* The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
      * Example: "en-US".
      * See [Language Support](https://cloud.google.com/speech/docs/languages)
      * for a list of the currently supported language codes.
      * 
* - * string language_code = 1; + * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; @@ -1013,14 +1017,14 @@ public java.lang.String getLanguageCode() { * * *
-     * *Required* The language of the supplied audio as a
+     * Required. *Required* The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
      * Example: "en-US".
      * See [Language Support](https://cloud.google.com/speech/docs/languages)
      * for a list of the currently supported language codes.
      * 
* - * string language_code = 1; + * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; @@ -1037,14 +1041,14 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { * * *
-     * *Required* The language of the supplied audio as a
+     * Required. *Required* The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
      * Example: "en-US".
      * See [Language Support](https://cloud.google.com/speech/docs/languages)
      * for a list of the currently supported language codes.
      * 
* - * string language_code = 1; + * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setLanguageCode(java.lang.String value) { if (value == null) { @@ -1059,14 +1063,14 @@ public Builder setLanguageCode(java.lang.String value) { * * *
-     * *Required* The language of the supplied audio as a
+     * Required. *Required* The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
      * Example: "en-US".
      * See [Language Support](https://cloud.google.com/speech/docs/languages)
      * for a list of the currently supported language codes.
      * 
* - * string language_code = 1; + * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearLanguageCode() { @@ -1078,14 +1082,14 @@ public Builder clearLanguageCode() { * * *
-     * *Required* The language of the supplied audio as a
+     * Required. *Required* The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
      * Example: "en-US".
      * See [Language Support](https://cloud.google.com/speech/docs/languages)
      * for a list of the currently supported language codes.
      * 
* - * string language_code = 1; + * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1103,14 +1107,14 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { * * *
-     * *Optional* Maximum number of recognition hypotheses to be returned.
+     * Optional. Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
      * within each `SpeechTranscription`. The server may return fewer than
      * `max_alternatives`. Valid values are `0`-`30`. A value of `0` or `1` will
      * return a maximum of one. If omitted, will return a maximum of one.
      * 
* - * int32 max_alternatives = 2; + * int32 max_alternatives = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public int getMaxAlternatives() { return maxAlternatives_; @@ -1119,14 +1123,14 @@ public int getMaxAlternatives() { * * *
-     * *Optional* Maximum number of recognition hypotheses to be returned.
+     * Optional. Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
      * within each `SpeechTranscription`. The server may return fewer than
      * `max_alternatives`. Valid values are `0`-`30`. A value of `0` or `1` will
      * return a maximum of one. If omitted, will return a maximum of one.
      * 
* - * int32 max_alternatives = 2; + * int32 max_alternatives = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setMaxAlternatives(int value) { @@ -1138,14 +1142,14 @@ public Builder setMaxAlternatives(int value) { * * *
-     * *Optional* Maximum number of recognition hypotheses to be returned.
+     * Optional. Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
      * within each `SpeechTranscription`. The server may return fewer than
      * `max_alternatives`. Valid values are `0`-`30`. A value of `0` or `1` will
      * return a maximum of one. If omitted, will return a maximum of one.
      * 
* - * int32 max_alternatives = 2; + * int32 max_alternatives = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearMaxAlternatives() { @@ -1159,13 +1163,13 @@ public Builder clearMaxAlternatives() { * * *
-     * *Optional* If set to `true`, the server will attempt to filter out
+     * Optional. If set to `true`, the server will attempt to filter out
      * profanities, replacing all but the initial character in each filtered word
      * with asterisks, e.g. "f***". If set to `false` or omitted, profanities
      * won't be filtered out.
      * 
* - * bool filter_profanity = 3; + * bool filter_profanity = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public boolean getFilterProfanity() { return filterProfanity_; @@ -1174,13 +1178,13 @@ public boolean getFilterProfanity() { * * *
-     * *Optional* If set to `true`, the server will attempt to filter out
+     * Optional. If set to `true`, the server will attempt to filter out
      * profanities, replacing all but the initial character in each filtered word
      * with asterisks, e.g. "f***". If set to `false` or omitted, profanities
      * won't be filtered out.
      * 
* - * bool filter_profanity = 3; + * bool filter_profanity = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setFilterProfanity(boolean value) { @@ -1192,13 +1196,13 @@ public Builder setFilterProfanity(boolean value) { * * *
-     * *Optional* If set to `true`, the server will attempt to filter out
+     * Optional. If set to `true`, the server will attempt to filter out
      * profanities, replacing all but the initial character in each filtered word
      * with asterisks, e.g. "f***". If set to `false` or omitted, profanities
      * won't be filtered out.
      * 
* - * bool filter_profanity = 3; + * bool filter_profanity = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearFilterProfanity() { @@ -1229,10 +1233,11 @@ private void ensureSpeechContextsIsMutable() { * * *
-     * *Optional* A means to provide context to assist the speech recognition.
+     * Optional. A means to provide context to assist the speech recognition.
      * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4; + * + * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public java.util.List @@ -1247,10 +1252,11 @@ private void ensureSpeechContextsIsMutable() { * * *
-     * *Optional* A means to provide context to assist the speech recognition.
+     * Optional. A means to provide context to assist the speech recognition.
      * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4; + * + * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public int getSpeechContextsCount() { @@ -1264,10 +1270,11 @@ public int getSpeechContextsCount() { * * *
-     * *Optional* A means to provide context to assist the speech recognition.
+     * Optional. A means to provide context to assist the speech recognition.
      * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4; + * + * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.videointelligence.v1p3beta1.SpeechContext getSpeechContexts(int index) { @@ -1281,10 +1288,11 @@ public com.google.cloud.videointelligence.v1p3beta1.SpeechContext getSpeechConte * * *
-     * *Optional* A means to provide context to assist the speech recognition.
+     * Optional. A means to provide context to assist the speech recognition.
      * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4; + * + * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setSpeechContexts( @@ -1305,10 +1313,11 @@ public Builder setSpeechContexts( * * *
-     * *Optional* A means to provide context to assist the speech recognition.
+     * Optional. A means to provide context to assist the speech recognition.
      * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4; + * + * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setSpeechContexts( @@ -1327,10 +1336,11 @@ public Builder setSpeechContexts( * * *
-     * *Optional* A means to provide context to assist the speech recognition.
+     * Optional. A means to provide context to assist the speech recognition.
      * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4; + * + * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addSpeechContexts( @@ -1351,10 +1361,11 @@ public Builder addSpeechContexts( * * *
-     * *Optional* A means to provide context to assist the speech recognition.
+     * Optional. A means to provide context to assist the speech recognition.
      * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4; + * + * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addSpeechContexts( @@ -1375,10 +1386,11 @@ public Builder addSpeechContexts( * * *
-     * *Optional* A means to provide context to assist the speech recognition.
+     * Optional. A means to provide context to assist the speech recognition.
      * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4; + * + * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addSpeechContexts( @@ -1396,10 +1408,11 @@ public Builder addSpeechContexts( * * *
-     * *Optional* A means to provide context to assist the speech recognition.
+     * Optional. A means to provide context to assist the speech recognition.
      * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4; + * + * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addSpeechContexts( @@ -1418,10 +1431,11 @@ public Builder addSpeechContexts( * * *
-     * *Optional* A means to provide context to assist the speech recognition.
+     * Optional. A means to provide context to assist the speech recognition.
      * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4; + * + * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addAllSpeechContexts( @@ -1440,10 +1454,11 @@ public Builder addAllSpeechContexts( * * *
-     * *Optional* A means to provide context to assist the speech recognition.
+     * Optional. A means to provide context to assist the speech recognition.
      * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4; + * + * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearSpeechContexts() { @@ -1460,10 +1475,11 @@ public Builder clearSpeechContexts() { * * *
-     * *Optional* A means to provide context to assist the speech recognition.
+     * Optional. A means to provide context to assist the speech recognition.
      * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4; + * + * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder removeSpeechContexts(int index) { @@ -1480,10 +1496,11 @@ public Builder removeSpeechContexts(int index) { * * *
-     * *Optional* A means to provide context to assist the speech recognition.
+     * Optional. A means to provide context to assist the speech recognition.
      * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4; + * + * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.videointelligence.v1p3beta1.SpeechContext.Builder @@ -1494,10 +1511,11 @@ public Builder removeSpeechContexts(int index) { * * *
-     * *Optional* A means to provide context to assist the speech recognition.
+     * Optional. A means to provide context to assist the speech recognition.
      * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4; + * + * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.videointelligence.v1p3beta1.SpeechContextOrBuilder @@ -1512,10 +1530,11 @@ public Builder removeSpeechContexts(int index) { * * *
-     * *Optional* A means to provide context to assist the speech recognition.
+     * Optional. A means to provide context to assist the speech recognition.
      * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4; + * + * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public java.util.List< @@ -1531,10 +1550,11 @@ public Builder removeSpeechContexts(int index) { * * *
-     * *Optional* A means to provide context to assist the speech recognition.
+     * Optional. A means to provide context to assist the speech recognition.
      * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4; + * + * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.videointelligence.v1p3beta1.SpeechContext.Builder @@ -1547,10 +1567,11 @@ public Builder removeSpeechContexts(int index) { * * *
-     * *Optional* A means to provide context to assist the speech recognition.
+     * Optional. A means to provide context to assist the speech recognition.
      * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4; + * + * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.videointelligence.v1p3beta1.SpeechContext.Builder @@ -1564,10 +1585,11 @@ public Builder removeSpeechContexts(int index) { * * *
-     * *Optional* A means to provide context to assist the speech recognition.
+     * Optional. A means to provide context to assist the speech recognition.
      * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4; + * + * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public java.util.List @@ -1600,7 +1622,7 @@ public Builder removeSpeechContexts(int index) { * * *
-     * *Optional* If 'true', adds punctuation to recognition result hypotheses.
+     * Optional. If 'true', adds punctuation to recognition result hypotheses.
      * This feature is only available in select languages. Setting this for
      * requests in other languages has no effect at all. The default 'false' value
      * does not add punctuation to result hypotheses. NOTE: "This is currently
@@ -1608,7 +1630,7 @@ public Builder removeSpeechContexts(int index) {
      * future this may be exclusively available as a premium feature."
      * 
* - * bool enable_automatic_punctuation = 5; + * bool enable_automatic_punctuation = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public boolean getEnableAutomaticPunctuation() { return enableAutomaticPunctuation_; @@ -1617,7 +1639,7 @@ public boolean getEnableAutomaticPunctuation() { * * *
-     * *Optional* If 'true', adds punctuation to recognition result hypotheses.
+     * Optional. If 'true', adds punctuation to recognition result hypotheses.
      * This feature is only available in select languages. Setting this for
      * requests in other languages has no effect at all. The default 'false' value
      * does not add punctuation to result hypotheses. NOTE: "This is currently
@@ -1625,7 +1647,7 @@ public boolean getEnableAutomaticPunctuation() {
      * future this may be exclusively available as a premium feature."
      * 
* - * bool enable_automatic_punctuation = 5; + * bool enable_automatic_punctuation = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setEnableAutomaticPunctuation(boolean value) { @@ -1637,7 +1659,7 @@ public Builder setEnableAutomaticPunctuation(boolean value) { * * *
-     * *Optional* If 'true', adds punctuation to recognition result hypotheses.
+     * Optional. If 'true', adds punctuation to recognition result hypotheses.
      * This feature is only available in select languages. Setting this for
      * requests in other languages has no effect at all. The default 'false' value
      * does not add punctuation to result hypotheses. NOTE: "This is currently
@@ -1645,7 +1667,7 @@ public Builder setEnableAutomaticPunctuation(boolean value) {
      * future this may be exclusively available as a premium feature."
      * 
* - * bool enable_automatic_punctuation = 5; + * bool enable_automatic_punctuation = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearEnableAutomaticPunctuation() { @@ -1666,11 +1688,11 @@ private void ensureAudioTracksIsMutable() { * * *
-     * *Optional* For file formats, such as MXF or MKV, supporting multiple audio
+     * Optional. For file formats, such as MXF or MKV, supporting multiple audio
      * tracks, specify up to two tracks. Default: track 0.
      * 
* - * repeated int32 audio_tracks = 6; + * repeated int32 audio_tracks = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public java.util.List getAudioTracksList() { return ((bitField0_ & 0x00000020) != 0) @@ -1681,11 +1703,11 @@ public java.util.List getAudioTracksList() { * * *
-     * *Optional* For file formats, such as MXF or MKV, supporting multiple audio
+     * Optional. For file formats, such as MXF or MKV, supporting multiple audio
      * tracks, specify up to two tracks. Default: track 0.
      * 
* - * repeated int32 audio_tracks = 6; + * repeated int32 audio_tracks = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public int getAudioTracksCount() { return audioTracks_.size(); @@ -1694,11 +1716,11 @@ public int getAudioTracksCount() { * * *
-     * *Optional* For file formats, such as MXF or MKV, supporting multiple audio
+     * Optional. For file formats, such as MXF or MKV, supporting multiple audio
      * tracks, specify up to two tracks. Default: track 0.
      * 
* - * repeated int32 audio_tracks = 6; + * repeated int32 audio_tracks = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public int getAudioTracks(int index) { return audioTracks_.getInt(index); @@ -1707,11 +1729,11 @@ public int getAudioTracks(int index) { * * *
-     * *Optional* For file formats, such as MXF or MKV, supporting multiple audio
+     * Optional. For file formats, such as MXF or MKV, supporting multiple audio
      * tracks, specify up to two tracks. Default: track 0.
      * 
* - * repeated int32 audio_tracks = 6; + * repeated int32 audio_tracks = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setAudioTracks(int index, int value) { ensureAudioTracksIsMutable(); @@ -1723,11 +1745,11 @@ public Builder setAudioTracks(int index, int value) { * * *
-     * *Optional* For file formats, such as MXF or MKV, supporting multiple audio
+     * Optional. For file formats, such as MXF or MKV, supporting multiple audio
      * tracks, specify up to two tracks. Default: track 0.
      * 
* - * repeated int32 audio_tracks = 6; + * repeated int32 audio_tracks = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAudioTracks(int value) { ensureAudioTracksIsMutable(); @@ -1739,11 +1761,11 @@ public Builder addAudioTracks(int value) { * * *
-     * *Optional* For file formats, such as MXF or MKV, supporting multiple audio
+     * Optional. For file formats, such as MXF or MKV, supporting multiple audio
      * tracks, specify up to two tracks. Default: track 0.
      * 
* - * repeated int32 audio_tracks = 6; + * repeated int32 audio_tracks = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllAudioTracks(java.lang.Iterable values) { ensureAudioTracksIsMutable(); @@ -1755,11 +1777,11 @@ public Builder addAllAudioTracks(java.lang.Iterable * * *
-     * *Optional* For file formats, such as MXF or MKV, supporting multiple audio
+     * Optional. For file formats, such as MXF or MKV, supporting multiple audio
      * tracks, specify up to two tracks. Default: track 0.
      * 
* - * repeated int32 audio_tracks = 6; + * repeated int32 audio_tracks = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearAudioTracks() { audioTracks_ = emptyIntList(); @@ -1773,7 +1795,7 @@ public Builder clearAudioTracks() { * * *
-     * *Optional* If 'true', enables speaker detection for each recognized word in
+     * Optional. If 'true', enables speaker detection for each recognized word in
      * the top alternative of the recognition result using a speaker_tag provided
      * in the WordInfo.
      * Note: When this is true, we send all the words from the beginning of the
@@ -1782,7 +1804,7 @@ public Builder clearAudioTracks() {
      * identify the speakers in the conversation over time.
      * 
* - * bool enable_speaker_diarization = 7; + * bool enable_speaker_diarization = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public boolean getEnableSpeakerDiarization() { return enableSpeakerDiarization_; @@ -1791,7 +1813,7 @@ public boolean getEnableSpeakerDiarization() { * * *
-     * *Optional* If 'true', enables speaker detection for each recognized word in
+     * Optional. If 'true', enables speaker detection for each recognized word in
      * the top alternative of the recognition result using a speaker_tag provided
      * in the WordInfo.
      * Note: When this is true, we send all the words from the beginning of the
@@ -1800,7 +1822,7 @@ public boolean getEnableSpeakerDiarization() {
      * identify the speakers in the conversation over time.
      * 
* - * bool enable_speaker_diarization = 7; + * bool enable_speaker_diarization = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setEnableSpeakerDiarization(boolean value) { @@ -1812,7 +1834,7 @@ public Builder setEnableSpeakerDiarization(boolean value) { * * *
-     * *Optional* If 'true', enables speaker detection for each recognized word in
+     * Optional. If 'true', enables speaker detection for each recognized word in
      * the top alternative of the recognition result using a speaker_tag provided
      * in the WordInfo.
      * Note: When this is true, we send all the words from the beginning of the
@@ -1821,7 +1843,7 @@ public Builder setEnableSpeakerDiarization(boolean value) {
      * identify the speakers in the conversation over time.
      * 
* - * bool enable_speaker_diarization = 7; + * bool enable_speaker_diarization = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearEnableSpeakerDiarization() { @@ -1835,13 +1857,12 @@ public Builder clearEnableSpeakerDiarization() { * * *
-     * *Optional*
-     * If set, specifies the estimated number of speakers in the conversation.
-     * If not set, defaults to '2'.
-     * Ignored unless enable_speaker_diarization is set to true.
+     * Optional. If set, specifies the estimated number of speakers in the
+     * conversation. If not set, defaults to '2'. Ignored unless
+     * enable_speaker_diarization is set to true.
      * 
* - * int32 diarization_speaker_count = 8; + * int32 diarization_speaker_count = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public int getDiarizationSpeakerCount() { return diarizationSpeakerCount_; @@ -1850,13 +1871,12 @@ public int getDiarizationSpeakerCount() { * * *
-     * *Optional*
-     * If set, specifies the estimated number of speakers in the conversation.
-     * If not set, defaults to '2'.
-     * Ignored unless enable_speaker_diarization is set to true.
+     * Optional. If set, specifies the estimated number of speakers in the
+     * conversation. If not set, defaults to '2'. Ignored unless
+     * enable_speaker_diarization is set to true.
      * 
* - * int32 diarization_speaker_count = 8; + * int32 diarization_speaker_count = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setDiarizationSpeakerCount(int value) { @@ -1868,13 +1888,12 @@ public Builder setDiarizationSpeakerCount(int value) { * * *
-     * *Optional*
-     * If set, specifies the estimated number of speakers in the conversation.
-     * If not set, defaults to '2'.
-     * Ignored unless enable_speaker_diarization is set to true.
+     * Optional. If set, specifies the estimated number of speakers in the
+     * conversation. If not set, defaults to '2'. Ignored unless
+     * enable_speaker_diarization is set to true.
      * 
* - * int32 diarization_speaker_count = 8; + * int32 diarization_speaker_count = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearDiarizationSpeakerCount() { @@ -1888,12 +1907,12 @@ public Builder clearDiarizationSpeakerCount() { * * *
-     * *Optional* If `true`, the top result includes a list of words and the
+     * Optional. If `true`, the top result includes a list of words and the
      * confidence for those words. If `false`, no word-level confidence
      * information is returned. The default is `false`.
      * 
* - * bool enable_word_confidence = 9; + * bool enable_word_confidence = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public boolean getEnableWordConfidence() { return enableWordConfidence_; @@ -1902,12 +1921,12 @@ public boolean getEnableWordConfidence() { * * *
-     * *Optional* If `true`, the top result includes a list of words and the
+     * Optional. If `true`, the top result includes a list of words and the
      * confidence for those words. If `false`, no word-level confidence
      * information is returned. The default is `false`.
      * 
* - * bool enable_word_confidence = 9; + * bool enable_word_confidence = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setEnableWordConfidence(boolean value) { @@ -1919,12 +1938,12 @@ public Builder setEnableWordConfidence(boolean value) { * * *
-     * *Optional* If `true`, the top result includes a list of words and the
+     * Optional. If `true`, the top result includes a list of words and the
      * confidence for those words. If `false`, no word-level confidence
      * information is returned. The default is `false`.
      * 
* - * bool enable_word_confidence = 9; + * bool enable_word_confidence = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearEnableWordConfidence() { diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechTranscriptionConfigOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechTranscriptionConfigOrBuilder.java index 9b2941bfb..f52f167d3 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechTranscriptionConfigOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechTranscriptionConfigOrBuilder.java @@ -27,28 +27,28 @@ public interface SpeechTranscriptionConfigOrBuilder * * *
-   * *Required* The language of the supplied audio as a
+   * Required. *Required* The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
    * Example: "en-US".
    * See [Language Support](https://cloud.google.com/speech/docs/languages)
    * for a list of the currently supported language codes.
    * 
* - * string language_code = 1; + * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; */ java.lang.String getLanguageCode(); /** * * *
-   * *Required* The language of the supplied audio as a
+   * Required. *Required* The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
    * Example: "en-US".
    * See [Language Support](https://cloud.google.com/speech/docs/languages)
    * for a list of the currently supported language codes.
    * 
* - * string language_code = 1; + * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.ByteString getLanguageCodeBytes(); @@ -56,14 +56,14 @@ public interface SpeechTranscriptionConfigOrBuilder * * *
-   * *Optional* Maximum number of recognition hypotheses to be returned.
+   * Optional. Maximum number of recognition hypotheses to be returned.
    * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
    * within each `SpeechTranscription`. The server may return fewer than
    * `max_alternatives`. Valid values are `0`-`30`. A value of `0` or `1` will
    * return a maximum of one. If omitted, will return a maximum of one.
    * 
* - * int32 max_alternatives = 2; + * int32 max_alternatives = 2 [(.google.api.field_behavior) = OPTIONAL]; */ int getMaxAlternatives(); @@ -71,13 +71,13 @@ public interface SpeechTranscriptionConfigOrBuilder * * *
-   * *Optional* If set to `true`, the server will attempt to filter out
+   * Optional. If set to `true`, the server will attempt to filter out
    * profanities, replacing all but the initial character in each filtered word
    * with asterisks, e.g. "f***". If set to `false` or omitted, profanities
    * won't be filtered out.
    * 
* - * bool filter_profanity = 3; + * bool filter_profanity = 3 [(.google.api.field_behavior) = OPTIONAL]; */ boolean getFilterProfanity(); @@ -85,10 +85,11 @@ public interface SpeechTranscriptionConfigOrBuilder * * *
-   * *Optional* A means to provide context to assist the speech recognition.
+   * Optional. A means to provide context to assist the speech recognition.
    * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4; + * + * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ java.util.List @@ -97,10 +98,11 @@ public interface SpeechTranscriptionConfigOrBuilder * * *
-   * *Optional* A means to provide context to assist the speech recognition.
+   * Optional. A means to provide context to assist the speech recognition.
    * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4; + * + * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.cloud.videointelligence.v1p3beta1.SpeechContext getSpeechContexts(int index); @@ -108,10 +110,11 @@ public interface SpeechTranscriptionConfigOrBuilder * * *
-   * *Optional* A means to provide context to assist the speech recognition.
+   * Optional. A means to provide context to assist the speech recognition.
    * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4; + * + * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ int getSpeechContextsCount(); @@ -119,10 +122,11 @@ public interface SpeechTranscriptionConfigOrBuilder * * *
-   * *Optional* A means to provide context to assist the speech recognition.
+   * Optional. A means to provide context to assist the speech recognition.
    * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4; + * + * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ java.util.List @@ -131,10 +135,11 @@ public interface SpeechTranscriptionConfigOrBuilder * * *
-   * *Optional* A means to provide context to assist the speech recognition.
+   * Optional. A means to provide context to assist the speech recognition.
    * 
* - * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4; + * + * repeated .google.cloud.videointelligence.v1p3beta1.SpeechContext speech_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.cloud.videointelligence.v1p3beta1.SpeechContextOrBuilder getSpeechContextsOrBuilder( @@ -144,7 +149,7 @@ com.google.cloud.videointelligence.v1p3beta1.SpeechContextOrBuilder getSpeechCon * * *
-   * *Optional* If 'true', adds punctuation to recognition result hypotheses.
+   * Optional. If 'true', adds punctuation to recognition result hypotheses.
    * This feature is only available in select languages. Setting this for
    * requests in other languages has no effect at all. The default 'false' value
    * does not add punctuation to result hypotheses. NOTE: "This is currently
@@ -152,7 +157,7 @@ com.google.cloud.videointelligence.v1p3beta1.SpeechContextOrBuilder getSpeechCon
    * future this may be exclusively available as a premium feature."
    * 
* - * bool enable_automatic_punctuation = 5; + * bool enable_automatic_punctuation = 5 [(.google.api.field_behavior) = OPTIONAL]; */ boolean getEnableAutomaticPunctuation(); @@ -160,33 +165,33 @@ com.google.cloud.videointelligence.v1p3beta1.SpeechContextOrBuilder getSpeechCon * * *
-   * *Optional* For file formats, such as MXF or MKV, supporting multiple audio
+   * Optional. For file formats, such as MXF or MKV, supporting multiple audio
    * tracks, specify up to two tracks. Default: track 0.
    * 
* - * repeated int32 audio_tracks = 6; + * repeated int32 audio_tracks = 6 [(.google.api.field_behavior) = OPTIONAL]; */ java.util.List getAudioTracksList(); /** * * *
-   * *Optional* For file formats, such as MXF or MKV, supporting multiple audio
+   * Optional. For file formats, such as MXF or MKV, supporting multiple audio
    * tracks, specify up to two tracks. Default: track 0.
    * 
* - * repeated int32 audio_tracks = 6; + * repeated int32 audio_tracks = 6 [(.google.api.field_behavior) = OPTIONAL]; */ int getAudioTracksCount(); /** * * *
-   * *Optional* For file formats, such as MXF or MKV, supporting multiple audio
+   * Optional. For file formats, such as MXF or MKV, supporting multiple audio
    * tracks, specify up to two tracks. Default: track 0.
    * 
* - * repeated int32 audio_tracks = 6; + * repeated int32 audio_tracks = 6 [(.google.api.field_behavior) = OPTIONAL]; */ int getAudioTracks(int index); @@ -194,7 +199,7 @@ com.google.cloud.videointelligence.v1p3beta1.SpeechContextOrBuilder getSpeechCon * * *
-   * *Optional* If 'true', enables speaker detection for each recognized word in
+   * Optional. If 'true', enables speaker detection for each recognized word in
    * the top alternative of the recognition result using a speaker_tag provided
    * in the WordInfo.
    * Note: When this is true, we send all the words from the beginning of the
@@ -203,7 +208,7 @@ com.google.cloud.videointelligence.v1p3beta1.SpeechContextOrBuilder getSpeechCon
    * identify the speakers in the conversation over time.
    * 
* - * bool enable_speaker_diarization = 7; + * bool enable_speaker_diarization = 7 [(.google.api.field_behavior) = OPTIONAL]; */ boolean getEnableSpeakerDiarization(); @@ -211,13 +216,12 @@ com.google.cloud.videointelligence.v1p3beta1.SpeechContextOrBuilder getSpeechCon * * *
-   * *Optional*
-   * If set, specifies the estimated number of speakers in the conversation.
-   * If not set, defaults to '2'.
-   * Ignored unless enable_speaker_diarization is set to true.
+   * Optional. If set, specifies the estimated number of speakers in the
+   * conversation. If not set, defaults to '2'. Ignored unless
+   * enable_speaker_diarization is set to true.
    * 
* - * int32 diarization_speaker_count = 8; + * int32 diarization_speaker_count = 8 [(.google.api.field_behavior) = OPTIONAL]; */ int getDiarizationSpeakerCount(); @@ -225,12 +229,12 @@ com.google.cloud.videointelligence.v1p3beta1.SpeechContextOrBuilder getSpeechCon * * *
-   * *Optional* If `true`, the top result includes a list of words and the
+   * Optional. If `true`, the top result includes a list of words and the
    * confidence for those words. If `false`, no word-level confidence
    * information is returned. The default is `false`.
    * 
* - * bool enable_word_confidence = 9; + * bool enable_word_confidence = 9 [(.google.api.field_behavior) = OPTIONAL]; */ boolean getEnableWordConfidence(); } diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechTranscriptionOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechTranscriptionOrBuilder.java index 8a1618c87..1960c8a4c 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechTranscriptionOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechTranscriptionOrBuilder.java @@ -109,26 +109,24 @@ com.google.cloud.videointelligence.v1p3beta1.SpeechRecognitionAlternative getAlt * * *
-   * Output only. The
-   * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag of the
-   * language in this result. This language code was detected to have the most
-   * likelihood of being spoken in the audio.
+   * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
+   * language tag of the language in this result. This language code was
+   * detected to have the most likelihood of being spoken in the audio.
    * 
* - * string language_code = 2; + * string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ java.lang.String getLanguageCode(); /** * * *
-   * Output only. The
-   * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag of the
-   * language in this result. This language code was detected to have the most
-   * likelihood of being spoken in the audio.
+   * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
+   * language tag of the language in this result. This language code was
+   * detected to have the most likelihood of being spoken in the audio.
    * 
* - * string language_code = 2; + * string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.ByteString getLanguageCodeBytes(); } diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAutomlClassificationConfig.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAutomlClassificationConfig.java index 6c6214412..52cac5d9a 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAutomlClassificationConfig.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAutomlClassificationConfig.java @@ -22,7 +22,7 @@ * * *
- * Config for AUTOML_CLASSIFICATION in streaming mode.
+ * Config for STREAMING_AUTOML_CLASSIFICATION.
  * 
* * Protobuf type {@code @@ -327,7 +327,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Config for AUTOML_CLASSIFICATION in streaming mode.
+   * Config for STREAMING_AUTOML_CLASSIFICATION.
    * 
* * Protobuf type {@code diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAutomlObjectTrackingConfig.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAutomlObjectTrackingConfig.java index 080f1d674..fe0fd471c 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAutomlObjectTrackingConfig.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAutomlObjectTrackingConfig.java @@ -22,7 +22,7 @@ * * *
- * Config for AUTOML_OBJECT_TRACKING in streaming mode.
+ * Config for STREAMING_AUTOML_OBJECT_TRACKING.
  * 
* * Protobuf type {@code @@ -327,7 +327,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Config for AUTOML_OBJECT_TRACKING in streaming mode.
+   * Config for STREAMING_AUTOML_OBJECT_TRACKING.
    * 
* * Protobuf type {@code diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingExplicitContentDetectionConfig.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingExplicitContentDetectionConfig.java index 26963d857..0ea1cc232 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingExplicitContentDetectionConfig.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingExplicitContentDetectionConfig.java @@ -22,7 +22,7 @@ * * *
- * Config for EXPLICIT_CONTENT_DETECTION in streaming mode.
+ * Config for STREAMING_EXPLICIT_CONTENT_DETECTION.
  * 
* * Protobuf type {@code @@ -265,7 +265,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Config for EXPLICIT_CONTENT_DETECTION in streaming mode.
+   * Config for STREAMING_EXPLICIT_CONTENT_DETECTION.
    * 
* * Protobuf type {@code diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingLabelDetectionConfig.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingLabelDetectionConfig.java index c44696e4a..63408c7f4 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingLabelDetectionConfig.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingLabelDetectionConfig.java @@ -22,7 +22,7 @@ * * *
- * Config for LABEL_DETECTION in streaming mode.
+ * Config for STREAMING_LABEL_DETECTION.
  * 
* * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig} @@ -291,7 +291,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Config for LABEL_DETECTION in streaming mode.
+   * Config for STREAMING_LABEL_DETECTION.
    * 
* * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig} diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingShotChangeDetectionConfig.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingShotChangeDetectionConfig.java index f144e8913..781927609 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingShotChangeDetectionConfig.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingShotChangeDetectionConfig.java @@ -22,7 +22,7 @@ * * *
- * Config for SHOT_CHANGE_DETECTION in streaming mode.
+ * Config for STREAMING_SHOT_CHANGE_DETECTION.
  * 
* * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig} @@ -261,7 +261,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Config for SHOT_CHANGE_DETECTION in streaming mode.
+   * Config for STREAMING_SHOT_CHANGE_DETECTION.
    * 
* * Protobuf type {@code diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TimestampedObject.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TimestampedObject.java index 089f645bc..2201be9a8 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TimestampedObject.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TimestampedObject.java @@ -22,8 +22,7 @@ * * *
- * For tracking related features, such as LOGO_RECOGNITION, FACE_DETECTION,
- * CELEBRITY_RECOGNITION, PERSON_DETECTION.
+ * For tracking related features.
  * An object at time_offset with attributes, and located with
  * normalized_bounding_box.
  * 
@@ -254,7 +253,8 @@ public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() { * Optional. The attributes of the object in the bounding box. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public java.util.List @@ -268,7 +268,8 @@ public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() { * Optional. The attributes of the object in the bounding box. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public java.util.List< @@ -283,7 +284,8 @@ public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() { * Optional. The attributes of the object in the bounding box. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public int getAttributesCount() { @@ -296,7 +298,8 @@ public int getAttributesCount() { * Optional. The attributes of the object in the bounding box. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.videointelligence.v1p3beta1.DetectedAttribute getAttributes(int index) { @@ -309,7 +312,8 @@ public com.google.cloud.videointelligence.v1p3beta1.DetectedAttribute getAttribu * Optional. The attributes of the object in the bounding box. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.videointelligence.v1p3beta1.DetectedAttributeOrBuilder @@ -512,8 +516,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * For tracking related features, such as LOGO_RECOGNITION, FACE_DETECTION,
-   * CELEBRITY_RECOGNITION, PERSON_DETECTION.
+   * For tracking related features.
    * An object at time_offset with attributes, and located with
    * normalized_bounding_box.
    * 
@@ -1166,7 +1169,8 @@ private void ensureAttributesIsMutable() { * Optional. The attributes of the object in the bounding box. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public java.util.List @@ -1184,7 +1188,8 @@ private void ensureAttributesIsMutable() { * Optional. The attributes of the object in the bounding box. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public int getAttributesCount() { @@ -1201,7 +1206,8 @@ public int getAttributesCount() { * Optional. The attributes of the object in the bounding box. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.videointelligence.v1p3beta1.DetectedAttribute getAttributes(int index) { @@ -1218,7 +1224,8 @@ public com.google.cloud.videointelligence.v1p3beta1.DetectedAttribute getAttribu * Optional. The attributes of the object in the bounding box. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setAttributes( @@ -1242,7 +1249,8 @@ public Builder setAttributes( * Optional. The attributes of the object in the bounding box. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setAttributes( @@ -1264,7 +1272,8 @@ public Builder setAttributes( * Optional. The attributes of the object in the bounding box. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addAttributes( @@ -1288,7 +1297,8 @@ public Builder addAttributes( * Optional. The attributes of the object in the bounding box. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addAttributes( @@ -1312,7 +1322,8 @@ public Builder addAttributes( * Optional. The attributes of the object in the bounding box. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addAttributes( @@ -1333,7 +1344,8 @@ public Builder addAttributes( * Optional. The attributes of the object in the bounding box. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addAttributes( @@ -1355,7 +1367,8 @@ public Builder addAttributes( * Optional. The attributes of the object in the bounding box. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addAllAttributes( @@ -1377,7 +1390,8 @@ public Builder addAllAttributes( * Optional. The attributes of the object in the bounding box. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearAttributes() { @@ -1397,7 +1411,8 @@ public Builder clearAttributes() { * Optional. The attributes of the object in the bounding box. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder removeAttributes(int index) { @@ -1417,7 +1432,8 @@ public Builder removeAttributes(int index) { * Optional. The attributes of the object in the bounding box. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.videointelligence.v1p3beta1.DetectedAttribute.Builder @@ -1431,7 +1447,8 @@ public Builder removeAttributes(int index) { * Optional. The attributes of the object in the bounding box. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.videointelligence.v1p3beta1.DetectedAttributeOrBuilder @@ -1449,7 +1466,8 @@ public Builder removeAttributes(int index) { * Optional. The attributes of the object in the bounding box. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public java.util.List< @@ -1468,7 +1486,8 @@ public Builder removeAttributes(int index) { * Optional. The attributes of the object in the bounding box. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.videointelligence.v1p3beta1.DetectedAttribute.Builder @@ -1484,7 +1503,8 @@ public Builder removeAttributes(int index) { * Optional. The attributes of the object in the bounding box. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.videointelligence.v1p3beta1.DetectedAttribute.Builder @@ -1501,7 +1521,8 @@ public Builder removeAttributes(int index) { * Optional. The attributes of the object in the bounding box. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public java.util.List diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TimestampedObjectOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TimestampedObjectOrBuilder.java index 918c7b2d4..5db1d1ce9 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TimestampedObjectOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TimestampedObjectOrBuilder.java @@ -102,7 +102,8 @@ public interface TimestampedObjectOrBuilder * Optional. The attributes of the object in the bounding box. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ java.util.List @@ -114,7 +115,8 @@ public interface TimestampedObjectOrBuilder * Optional. The attributes of the object in the bounding box. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.cloud.videointelligence.v1p3beta1.DetectedAttribute getAttributes(int index); @@ -125,7 +127,8 @@ public interface TimestampedObjectOrBuilder * Optional. The attributes of the object in the bounding box. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ int getAttributesCount(); @@ -136,7 +139,8 @@ public interface TimestampedObjectOrBuilder * Optional. The attributes of the object in the bounding box. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ java.util.List @@ -148,7 +152,8 @@ public interface TimestampedObjectOrBuilder * Optional. The attributes of the object in the bounding box. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.cloud.videointelligence.v1p3beta1.DetectedAttributeOrBuilder getAttributesOrBuilder( diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/Track.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/Track.java index 369a97098..200a7843b 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/Track.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/Track.java @@ -287,7 +287,8 @@ public com.google.cloud.videointelligence.v1p3beta1.TimestampedObject getTimesta * Optional. Attributes in the track level. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public java.util.List @@ -301,7 +302,8 @@ public com.google.cloud.videointelligence.v1p3beta1.TimestampedObject getTimesta * Optional. Attributes in the track level. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public java.util.List< @@ -316,7 +318,8 @@ public com.google.cloud.videointelligence.v1p3beta1.TimestampedObject getTimesta * Optional. Attributes in the track level. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public int getAttributesCount() { @@ -329,7 +332,8 @@ public int getAttributesCount() { * Optional. Attributes in the track level. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.videointelligence.v1p3beta1.DetectedAttribute getAttributes(int index) { @@ -342,7 +346,8 @@ public com.google.cloud.videointelligence.v1p3beta1.DetectedAttribute getAttribu * Optional. Attributes in the track level. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.videointelligence.v1p3beta1.DetectedAttributeOrBuilder @@ -359,7 +364,7 @@ public com.google.cloud.videointelligence.v1p3beta1.DetectedAttribute getAttribu * Optional. The confidence score of the tracked object. * * - * float confidence = 4; + * float confidence = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public float getConfidence() { return confidence_; @@ -1441,7 +1446,8 @@ private void ensureAttributesIsMutable() { * Optional. Attributes in the track level. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public java.util.List @@ -1459,7 +1465,8 @@ private void ensureAttributesIsMutable() { * Optional. Attributes in the track level. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public int getAttributesCount() { @@ -1476,7 +1483,8 @@ public int getAttributesCount() { * Optional. Attributes in the track level. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.videointelligence.v1p3beta1.DetectedAttribute getAttributes(int index) { @@ -1493,7 +1501,8 @@ public com.google.cloud.videointelligence.v1p3beta1.DetectedAttribute getAttribu * Optional. Attributes in the track level. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setAttributes( @@ -1517,7 +1526,8 @@ public Builder setAttributes( * Optional. Attributes in the track level. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setAttributes( @@ -1539,7 +1549,8 @@ public Builder setAttributes( * Optional. Attributes in the track level. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addAttributes( @@ -1563,7 +1574,8 @@ public Builder addAttributes( * Optional. Attributes in the track level. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addAttributes( @@ -1587,7 +1599,8 @@ public Builder addAttributes( * Optional. Attributes in the track level. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addAttributes( @@ -1608,7 +1621,8 @@ public Builder addAttributes( * Optional. Attributes in the track level. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addAttributes( @@ -1630,7 +1644,8 @@ public Builder addAttributes( * Optional. Attributes in the track level. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addAllAttributes( @@ -1652,7 +1667,8 @@ public Builder addAllAttributes( * Optional. Attributes in the track level. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearAttributes() { @@ -1672,7 +1688,8 @@ public Builder clearAttributes() { * Optional. Attributes in the track level. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder removeAttributes(int index) { @@ -1692,7 +1709,8 @@ public Builder removeAttributes(int index) { * Optional. Attributes in the track level. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.videointelligence.v1p3beta1.DetectedAttribute.Builder @@ -1706,7 +1724,8 @@ public Builder removeAttributes(int index) { * Optional. Attributes in the track level. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.videointelligence.v1p3beta1.DetectedAttributeOrBuilder @@ -1724,7 +1743,8 @@ public Builder removeAttributes(int index) { * Optional. Attributes in the track level. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public java.util.List< @@ -1743,7 +1763,8 @@ public Builder removeAttributes(int index) { * Optional. Attributes in the track level. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.videointelligence.v1p3beta1.DetectedAttribute.Builder @@ -1759,7 +1780,8 @@ public Builder removeAttributes(int index) { * Optional. Attributes in the track level. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.videointelligence.v1p3beta1.DetectedAttribute.Builder @@ -1776,7 +1798,8 @@ public Builder removeAttributes(int index) { * Optional. Attributes in the track level. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public java.util.List @@ -1809,7 +1832,7 @@ public Builder removeAttributes(int index) { * Optional. The confidence score of the tracked object. * * - * float confidence = 4; + * float confidence = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public float getConfidence() { return confidence_; @@ -1821,7 +1844,7 @@ public float getConfidence() { * Optional. The confidence score of the tracked object. * * - * float confidence = 4; + * float confidence = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setConfidence(float value) { @@ -1836,7 +1859,7 @@ public Builder setConfidence(float value) { * Optional. The confidence score of the tracked object. * * - * float confidence = 4; + * float confidence = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearConfidence() { diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TrackOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TrackOrBuilder.java index 025f75cd2..0f629ec8f 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TrackOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TrackOrBuilder.java @@ -125,7 +125,8 @@ public interface TrackOrBuilder * Optional. Attributes in the track level. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ java.util.List @@ -137,7 +138,8 @@ public interface TrackOrBuilder * Optional. Attributes in the track level. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.cloud.videointelligence.v1p3beta1.DetectedAttribute getAttributes(int index); @@ -148,7 +150,8 @@ public interface TrackOrBuilder * Optional. Attributes in the track level. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ int getAttributesCount(); @@ -159,7 +162,8 @@ public interface TrackOrBuilder * Optional. Attributes in the track level. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ java.util.List @@ -171,7 +175,8 @@ public interface TrackOrBuilder * Optional. Attributes in the track level. * * - * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3; + * + * repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.cloud.videointelligence.v1p3beta1.DetectedAttributeOrBuilder getAttributesOrBuilder( @@ -184,7 +189,7 @@ com.google.cloud.videointelligence.v1p3beta1.DetectedAttributeOrBuilder getAttri * Optional. The confidence score of the tracked object. * * - * float confidence = 4; + * float confidence = 4 [(.google.api.field_behavior) = OPTIONAL]; */ float getConfidence(); } diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoAnnotationProgress.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoAnnotationProgress.java index 0b4f5241d..f58b4bca6 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoAnnotationProgress.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoAnnotationProgress.java @@ -39,6 +39,7 @@ private VideoAnnotationProgress(com.google.protobuf.GeneratedMessageV3.Builder + * Specifies which feature is being tracked if the request contains more than + * one features. + * + * + * .google.cloud.videointelligence.v1p3beta1.Feature feature = 5; + */ + public int getFeatureValue() { + return feature_; + } + /** + * + * + *
+   * Specifies which feature is being tracked if the request contains more than
+   * one features.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Feature feature = 5; + */ + public com.google.cloud.videointelligence.v1p3beta1.Feature getFeature() { + @SuppressWarnings("deprecation") + com.google.cloud.videointelligence.v1p3beta1.Feature result = + com.google.cloud.videointelligence.v1p3beta1.Feature.valueOf(feature_); + return result == null + ? com.google.cloud.videointelligence.v1p3beta1.Feature.UNRECOGNIZED + : result; + } + + public static final int SEGMENT_FIELD_NUMBER = 6; + private com.google.cloud.videointelligence.v1p3beta1.VideoSegment segment_; + /** + * + * + *
+   * Specifies which segment is being tracked if the request contains more than
+   * one segments.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 6; + */ + public boolean hasSegment() { + return segment_ != null; + } + /** + * + * + *
+   * Specifies which segment is being tracked if the request contains more than
+   * one segments.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 6; + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoSegment getSegment() { + return segment_ == null + ? com.google.cloud.videointelligence.v1p3beta1.VideoSegment.getDefaultInstance() + : segment_; + } + /** + * + * + *
+   * Specifies which segment is being tracked if the request contains more than
+   * one segments.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 6; + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder getSegmentOrBuilder() { + return getSegment(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -306,6 +409,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(4, getUpdateTime()); } + if (feature_ + != com.google.cloud.videointelligence.v1p3beta1.Feature.FEATURE_UNSPECIFIED.getNumber()) { + output.writeEnum(5, feature_); + } + if (segment_ != null) { + output.writeMessage(6, getSegment()); + } unknownFields.writeTo(output); } @@ -327,6 +437,13 @@ public int getSerializedSize() { if (updateTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); } + if (feature_ + != com.google.cloud.videointelligence.v1p3beta1.Feature.FEATURE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, feature_); + } + if (segment_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getSegment()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -353,6 +470,11 @@ public boolean equals(final java.lang.Object obj) { if (hasUpdateTime()) { if (!getUpdateTime().equals(other.getUpdateTime())) return false; } + if (feature_ != other.feature_) return false; + if (hasSegment() != other.hasSegment()) return false; + if (hasSegment()) { + if (!getSegment().equals(other.getSegment())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -376,6 +498,12 @@ public int hashCode() { hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getUpdateTime().hashCode(); } + hash = (37 * hash) + FEATURE_FIELD_NUMBER; + hash = (53 * hash) + feature_; + if (hasSegment()) { + hash = (37 * hash) + SEGMENT_FIELD_NUMBER; + hash = (53 * hash) + getSegment().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -540,6 +668,14 @@ public Builder clear() { updateTime_ = null; updateTimeBuilder_ = null; } + feature_ = 0; + + if (segmentBuilder_ == null) { + segment_ = null; + } else { + segment_ = null; + segmentBuilder_ = null; + } return this; } @@ -581,6 +717,12 @@ public com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress buil } else { result.updateTime_ = updateTimeBuilder_.build(); } + result.feature_ = feature_; + if (segmentBuilder_ == null) { + result.segment_ = segment_; + } else { + result.segment_ = segmentBuilder_.build(); + } onBuilt(); return result; } @@ -647,6 +789,12 @@ public Builder mergeFrom( if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } + if (other.feature_ != 0) { + setFeatureValue(other.getFeatureValue()); + } + if (other.hasSegment()) { + mergeSegment(other.getSegment()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1178,6 +1326,281 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return updateTimeBuilder_; } + private int feature_ = 0; + /** + * + * + *
+     * Specifies which feature is being tracked if the request contains more than
+     * one features.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Feature feature = 5; + */ + public int getFeatureValue() { + return feature_; + } + /** + * + * + *
+     * Specifies which feature is being tracked if the request contains more than
+     * one features.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Feature feature = 5; + */ + public Builder setFeatureValue(int value) { + feature_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Specifies which feature is being tracked if the request contains more than
+     * one features.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Feature feature = 5; + */ + public com.google.cloud.videointelligence.v1p3beta1.Feature getFeature() { + @SuppressWarnings("deprecation") + com.google.cloud.videointelligence.v1p3beta1.Feature result = + com.google.cloud.videointelligence.v1p3beta1.Feature.valueOf(feature_); + return result == null + ? com.google.cloud.videointelligence.v1p3beta1.Feature.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Specifies which feature is being tracked if the request contains more than
+     * one features.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Feature feature = 5; + */ + public Builder setFeature(com.google.cloud.videointelligence.v1p3beta1.Feature value) { + if (value == null) { + throw new NullPointerException(); + } + + feature_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Specifies which feature is being tracked if the request contains more than
+     * one features.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Feature feature = 5; + */ + public Builder clearFeature() { + + feature_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.videointelligence.v1p3beta1.VideoSegment segment_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.VideoSegment, + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder, + com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder> + segmentBuilder_; + /** + * + * + *
+     * Specifies which segment is being tracked if the request contains more than
+     * one segments.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 6; + */ + public boolean hasSegment() { + return segmentBuilder_ != null || segment_ != null; + } + /** + * + * + *
+     * Specifies which segment is being tracked if the request contains more than
+     * one segments.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 6; + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoSegment getSegment() { + if (segmentBuilder_ == null) { + return segment_ == null + ? com.google.cloud.videointelligence.v1p3beta1.VideoSegment.getDefaultInstance() + : segment_; + } else { + return segmentBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Specifies which segment is being tracked if the request contains more than
+     * one segments.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 6; + */ + public Builder setSegment(com.google.cloud.videointelligence.v1p3beta1.VideoSegment value) { + if (segmentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + segment_ = value; + onChanged(); + } else { + segmentBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Specifies which segment is being tracked if the request contains more than
+     * one segments.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 6; + */ + public Builder setSegment( + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder builderForValue) { + if (segmentBuilder_ == null) { + segment_ = builderForValue.build(); + onChanged(); + } else { + segmentBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Specifies which segment is being tracked if the request contains more than
+     * one segments.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 6; + */ + public Builder mergeSegment(com.google.cloud.videointelligence.v1p3beta1.VideoSegment value) { + if (segmentBuilder_ == null) { + if (segment_ != null) { + segment_ = + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.newBuilder(segment_) + .mergeFrom(value) + .buildPartial(); + } else { + segment_ = value; + } + onChanged(); + } else { + segmentBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Specifies which segment is being tracked if the request contains more than
+     * one segments.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 6; + */ + public Builder clearSegment() { + if (segmentBuilder_ == null) { + segment_ = null; + onChanged(); + } else { + segment_ = null; + segmentBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Specifies which segment is being tracked if the request contains more than
+     * one segments.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 6; + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder getSegmentBuilder() { + + onChanged(); + return getSegmentFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Specifies which segment is being tracked if the request contains more than
+     * one segments.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 6; + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder + getSegmentOrBuilder() { + if (segmentBuilder_ != null) { + return segmentBuilder_.getMessageOrBuilder(); + } else { + return segment_ == null + ? com.google.cloud.videointelligence.v1p3beta1.VideoSegment.getDefaultInstance() + : segment_; + } + } + /** + * + * + *
+     * Specifies which segment is being tracked if the request contains more than
+     * one segments.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.VideoSegment, + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder, + com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder> + getSegmentFieldBuilder() { + if (segmentBuilder_ == null) { + segmentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.VideoSegment, + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder, + com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder>( + getSegment(), getParentForChildren(), isClean()); + segment_ = null; + } + return segmentBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoAnnotationProgressOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoAnnotationProgressOrBuilder.java index 01b26cf5d..a428a4768 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoAnnotationProgressOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoAnnotationProgressOrBuilder.java @@ -119,4 +119,61 @@ public interface VideoAnnotationProgressOrBuilder * .google.protobuf.Timestamp update_time = 4; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Specifies which feature is being tracked if the request contains more than
+   * one features.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Feature feature = 5; + */ + int getFeatureValue(); + /** + * + * + *
+   * Specifies which feature is being tracked if the request contains more than
+   * one features.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.Feature feature = 5; + */ + com.google.cloud.videointelligence.v1p3beta1.Feature getFeature(); + + /** + * + * + *
+   * Specifies which segment is being tracked if the request contains more than
+   * one segments.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 6; + */ + boolean hasSegment(); + /** + * + * + *
+   * Specifies which segment is being tracked if the request contains more than
+   * one segments.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 6; + */ + com.google.cloud.videointelligence.v1p3beta1.VideoSegment getSegment(); + /** + * + * + *
+   * Specifies which segment is being tracked if the request contains more than
+   * one segments.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 6; + */ + com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder getSegmentOrBuilder(); } diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoAnnotationResults.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoAnnotationResults.java index b3b8bb3de..49b896773 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoAnnotationResults.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoAnnotationResults.java @@ -40,7 +40,9 @@ private VideoAnnotationResults(com.google.protobuf.GeneratedMessageV3.Builder private VideoAnnotationResults() { inputUri_ = ""; segmentLabelAnnotations_ = java.util.Collections.emptyList(); + segmentPresenceLabelAnnotations_ = java.util.Collections.emptyList(); shotLabelAnnotations_ = java.util.Collections.emptyList(); + shotPresenceLabelAnnotations_ = java.util.Collections.emptyList(); frameLabelAnnotations_ = java.util.Collections.emptyList(); shotAnnotations_ = java.util.Collections.emptyList(); speechTranscriptions_ = java.util.Collections.emptyList(); @@ -82,11 +84,11 @@ private VideoAnnotationResults( } case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { segmentLabelAnnotations_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation>(); - mutable_bitField0_ |= 0x00000002; + mutable_bitField0_ |= 0x00000004; } segmentLabelAnnotations_.add( input.readMessage( @@ -96,11 +98,11 @@ private VideoAnnotationResults( } case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { shotLabelAnnotations_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation>(); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000010; } shotLabelAnnotations_.add( input.readMessage( @@ -110,11 +112,11 @@ private VideoAnnotationResults( } case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { + if (!((mutable_bitField0_ & 0x00000040) != 0)) { frameLabelAnnotations_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation>(); - mutable_bitField0_ |= 0x00000008; + mutable_bitField0_ |= 0x00000040; } frameLabelAnnotations_.add( input.readMessage( @@ -124,11 +126,11 @@ private VideoAnnotationResults( } case 50: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { + if (!((mutable_bitField0_ & 0x00000080) != 0)) { shotAnnotations_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p3beta1.VideoSegment>(); - mutable_bitField0_ |= 0x00000010; + mutable_bitField0_ |= 0x00000080; } shotAnnotations_.add( input.readMessage( @@ -167,15 +169,32 @@ private VideoAnnotationResults( error_ = subBuilder.buildPartial(); } + break; + } + case 82: + { + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder subBuilder = null; + if (segment_ != null) { + subBuilder = segment_.toBuilder(); + } + segment_ = + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(segment_); + segment_ = subBuilder.buildPartial(); + } + break; } case 90: { - if (!((mutable_bitField0_ & 0x00000040) != 0)) { + if (!((mutable_bitField0_ & 0x00000200) != 0)) { speechTranscriptions_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p3beta1.SpeechTranscription>(); - mutable_bitField0_ |= 0x00000040; + mutable_bitField0_ |= 0x00000200; } speechTranscriptions_.add( input.readMessage( @@ -185,11 +204,11 @@ private VideoAnnotationResults( } case 98: { - if (!((mutable_bitField0_ & 0x00000080) != 0)) { + if (!((mutable_bitField0_ & 0x00000400) != 0)) { textAnnotations_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p3beta1.TextAnnotation>(); - mutable_bitField0_ |= 0x00000080; + mutable_bitField0_ |= 0x00000400; } textAnnotations_.add( input.readMessage( @@ -199,11 +218,11 @@ private VideoAnnotationResults( } case 114: { - if (!((mutable_bitField0_ & 0x00000100) != 0)) { + if (!((mutable_bitField0_ & 0x00000800) != 0)) { objectAnnotations_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation>(); - mutable_bitField0_ |= 0x00000100; + mutable_bitField0_ |= 0x00000800; } objectAnnotations_.add( input.readMessage( @@ -214,11 +233,11 @@ private VideoAnnotationResults( } case 154: { - if (!((mutable_bitField0_ & 0x00000200) != 0)) { + if (!((mutable_bitField0_ & 0x00001000) != 0)) { logoRecognitionAnnotations_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p3beta1.LogoRecognitionAnnotation>(); - mutable_bitField0_ |= 0x00000200; + mutable_bitField0_ |= 0x00001000; } logoRecognitionAnnotations_.add( input.readMessage( @@ -227,6 +246,53 @@ private VideoAnnotationResults( extensionRegistry)); break; } + case 170: + { + com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation.Builder + subBuilder = null; + if (celebrityRecognitionAnnotations_ != null) { + subBuilder = celebrityRecognitionAnnotations_.toBuilder(); + } + celebrityRecognitionAnnotations_ = + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(celebrityRecognitionAnnotations_); + celebrityRecognitionAnnotations_ = subBuilder.buildPartial(); + } + + break; + } + case 186: + { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + segmentPresenceLabelAnnotations_ = + new java.util.ArrayList< + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation>(); + mutable_bitField0_ |= 0x00000008; + } + segmentPresenceLabelAnnotations_.add( + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.parser(), + extensionRegistry)); + break; + } + case 194: + { + if (!((mutable_bitField0_ & 0x00000020) != 0)) { + shotPresenceLabelAnnotations_ = + new java.util.ArrayList< + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation>(); + mutable_bitField0_ |= 0x00000020; + } + shotPresenceLabelAnnotations_.add( + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.parser(), + extensionRegistry)); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -241,31 +307,39 @@ private VideoAnnotationResults( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { + if (((mutable_bitField0_ & 0x00000004) != 0)) { segmentLabelAnnotations_ = java.util.Collections.unmodifiableList(segmentLabelAnnotations_); } - if (((mutable_bitField0_ & 0x00000004) != 0)) { + if (((mutable_bitField0_ & 0x00000010) != 0)) { shotLabelAnnotations_ = java.util.Collections.unmodifiableList(shotLabelAnnotations_); } - if (((mutable_bitField0_ & 0x00000008) != 0)) { + if (((mutable_bitField0_ & 0x00000040) != 0)) { frameLabelAnnotations_ = java.util.Collections.unmodifiableList(frameLabelAnnotations_); } - if (((mutable_bitField0_ & 0x00000010) != 0)) { + if (((mutable_bitField0_ & 0x00000080) != 0)) { shotAnnotations_ = java.util.Collections.unmodifiableList(shotAnnotations_); } - if (((mutable_bitField0_ & 0x00000040) != 0)) { + if (((mutable_bitField0_ & 0x00000200) != 0)) { speechTranscriptions_ = java.util.Collections.unmodifiableList(speechTranscriptions_); } - if (((mutable_bitField0_ & 0x00000080) != 0)) { + if (((mutable_bitField0_ & 0x00000400) != 0)) { textAnnotations_ = java.util.Collections.unmodifiableList(textAnnotations_); } - if (((mutable_bitField0_ & 0x00000100) != 0)) { + if (((mutable_bitField0_ & 0x00000800) != 0)) { objectAnnotations_ = java.util.Collections.unmodifiableList(objectAnnotations_); } - if (((mutable_bitField0_ & 0x00000200) != 0)) { + if (((mutable_bitField0_ & 0x00001000) != 0)) { logoRecognitionAnnotations_ = java.util.Collections.unmodifiableList(logoRecognitionAnnotations_); } + if (((mutable_bitField0_ & 0x00000008) != 0)) { + segmentPresenceLabelAnnotations_ = + java.util.Collections.unmodifiableList(segmentPresenceLabelAnnotations_); + } + if (((mutable_bitField0_ & 0x00000020) != 0)) { + shotPresenceLabelAnnotations_ = + java.util.Collections.unmodifiableList(shotPresenceLabelAnnotations_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -332,6 +406,47 @@ public com.google.protobuf.ByteString getInputUriBytes() { } } + public static final int SEGMENT_FIELD_NUMBER = 10; + private com.google.cloud.videointelligence.v1p3beta1.VideoSegment segment_; + /** + * + * + *
+   * Video segment on which the annotation is run.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 10; + */ + public boolean hasSegment() { + return segment_ != null; + } + /** + * + * + *
+   * Video segment on which the annotation is run.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 10; + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoSegment getSegment() { + return segment_ == null + ? com.google.cloud.videointelligence.v1p3beta1.VideoSegment.getDefaultInstance() + : segment_; + } + /** + * + * + *
+   * Video segment on which the annotation is run.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 10; + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder getSegmentOrBuilder() { + return getSegment(); + } + public static final int SEGMENT_LABEL_ANNOTATIONS_FIELD_NUMBER = 2; private java.util.List segmentLabelAnnotations_; @@ -339,7 +454,7 @@ public com.google.protobuf.ByteString getInputUriBytes() { * * *
-   * Label annotations on video level or user specified segment level.
+   * Topical label annotations on video level or user specified segment level.
    * There is exactly one element for each unique label.
    * 
* @@ -355,7 +470,7 @@ public com.google.protobuf.ByteString getInputUriBytes() { * * *
-   * Label annotations on video level or user specified segment level.
+   * Topical label annotations on video level or user specified segment level.
    * There is exactly one element for each unique label.
    * 
* @@ -372,7 +487,7 @@ public com.google.protobuf.ByteString getInputUriBytes() { * * *
-   * Label annotations on video level or user specified segment level.
+   * Topical label annotations on video level or user specified segment level.
    * There is exactly one element for each unique label.
    * 
* @@ -387,7 +502,7 @@ public int getSegmentLabelAnnotationsCount() { * * *
-   * Label annotations on video level or user specified segment level.
+   * Topical label annotations on video level or user specified segment level.
    * There is exactly one element for each unique label.
    * 
* @@ -403,7 +518,7 @@ public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation getSegmentLa * * *
-   * Label annotations on video level or user specified segment level.
+   * Topical label annotations on video level or user specified segment level.
    * There is exactly one element for each unique label.
    * 
* @@ -416,6 +531,110 @@ public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation getSegmentLa return segmentLabelAnnotations_.get(index); } + public static final int SEGMENT_PRESENCE_LABEL_ANNOTATIONS_FIELD_NUMBER = 23; + private java.util.List + segmentPresenceLabelAnnotations_; + /** + * + * + *
+   * Presence label annotations on video level or user specified segment level.
+   * There is exactly one element for each unique label. Compared to the
+   * existing topical `segment_label_annotations`, this field presents more
+   * fine-grained, segment-level labels detected in video content and is made
+   * available only when the client sets `LabelDetectionConfig.model` to
+   * "builtin/latest" in the request.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_presence_label_annotations = 23; + * + */ + public java.util.List + getSegmentPresenceLabelAnnotationsList() { + return segmentPresenceLabelAnnotations_; + } + /** + * + * + *
+   * Presence label annotations on video level or user specified segment level.
+   * There is exactly one element for each unique label. Compared to the
+   * existing topical `segment_label_annotations`, this field presents more
+   * fine-grained, segment-level labels detected in video content and is made
+   * available only when the client sets `LabelDetectionConfig.model` to
+   * "builtin/latest" in the request.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_presence_label_annotations = 23; + * + */ + public java.util.List< + ? extends com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder> + getSegmentPresenceLabelAnnotationsOrBuilderList() { + return segmentPresenceLabelAnnotations_; + } + /** + * + * + *
+   * Presence label annotations on video level or user specified segment level.
+   * There is exactly one element for each unique label. Compared to the
+   * existing topical `segment_label_annotations`, this field presents more
+   * fine-grained, segment-level labels detected in video content and is made
+   * available only when the client sets `LabelDetectionConfig.model` to
+   * "builtin/latest" in the request.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_presence_label_annotations = 23; + * + */ + public int getSegmentPresenceLabelAnnotationsCount() { + return segmentPresenceLabelAnnotations_.size(); + } + /** + * + * + *
+   * Presence label annotations on video level or user specified segment level.
+   * There is exactly one element for each unique label. Compared to the
+   * existing topical `segment_label_annotations`, this field presents more
+   * fine-grained, segment-level labels detected in video content and is made
+   * available only when the client sets `LabelDetectionConfig.model` to
+   * "builtin/latest" in the request.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_presence_label_annotations = 23; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation + getSegmentPresenceLabelAnnotations(int index) { + return segmentPresenceLabelAnnotations_.get(index); + } + /** + * + * + *
+   * Presence label annotations on video level or user specified segment level.
+   * There is exactly one element for each unique label. Compared to the
+   * existing topical `segment_label_annotations`, this field presents more
+   * fine-grained, segment-level labels detected in video content and is made
+   * available only when the client sets `LabelDetectionConfig.model` to
+   * "builtin/latest" in the request.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_presence_label_annotations = 23; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder + getSegmentPresenceLabelAnnotationsOrBuilder(int index) { + return segmentPresenceLabelAnnotations_.get(index); + } + public static final int SHOT_LABEL_ANNOTATIONS_FIELD_NUMBER = 3; private java.util.List shotLabelAnnotations_; @@ -423,7 +642,7 @@ public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation getSegmentLa * * *
-   * Label annotations on shot level.
+   * Topical label annotations on shot level.
    * There is exactly one element for each unique label.
    * 
* @@ -439,7 +658,7 @@ public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation getSegmentLa * * *
-   * Label annotations on shot level.
+   * Topical label annotations on shot level.
    * There is exactly one element for each unique label.
    * 
* @@ -456,7 +675,7 @@ public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation getSegmentLa * * *
-   * Label annotations on shot level.
+   * Topical label annotations on shot level.
    * There is exactly one element for each unique label.
    * 
* @@ -471,7 +690,7 @@ public int getShotLabelAnnotationsCount() { * * *
-   * Label annotations on shot level.
+   * Topical label annotations on shot level.
    * There is exactly one element for each unique label.
    * 
* @@ -487,7 +706,7 @@ public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation getShotLabel * * *
-   * Label annotations on shot level.
+   * Topical label annotations on shot level.
    * There is exactly one element for each unique label.
    * 
* @@ -500,6 +719,105 @@ public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation getShotLabel return shotLabelAnnotations_.get(index); } + public static final int SHOT_PRESENCE_LABEL_ANNOTATIONS_FIELD_NUMBER = 24; + private java.util.List + shotPresenceLabelAnnotations_; + /** + * + * + *
+   * Presence label annotations on shot level. There is exactly one element for
+   * each unique label. Compared to the existing topical
+   * `shot_label_annotations`, this field presents more fine-grained, shot-level
+   * labels detected in video content and is made available only when the client
+   * sets `LabelDetectionConfig.model` to "builtin/latest" in the request.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_presence_label_annotations = 24; + * + */ + public java.util.List + getShotPresenceLabelAnnotationsList() { + return shotPresenceLabelAnnotations_; + } + /** + * + * + *
+   * Presence label annotations on shot level. There is exactly one element for
+   * each unique label. Compared to the existing topical
+   * `shot_label_annotations`, this field presents more fine-grained, shot-level
+   * labels detected in video content and is made available only when the client
+   * sets `LabelDetectionConfig.model` to "builtin/latest" in the request.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_presence_label_annotations = 24; + * + */ + public java.util.List< + ? extends com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder> + getShotPresenceLabelAnnotationsOrBuilderList() { + return shotPresenceLabelAnnotations_; + } + /** + * + * + *
+   * Presence label annotations on shot level. There is exactly one element for
+   * each unique label. Compared to the existing topical
+   * `shot_label_annotations`, this field presents more fine-grained, shot-level
+   * labels detected in video content and is made available only when the client
+   * sets `LabelDetectionConfig.model` to "builtin/latest" in the request.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_presence_label_annotations = 24; + * + */ + public int getShotPresenceLabelAnnotationsCount() { + return shotPresenceLabelAnnotations_.size(); + } + /** + * + * + *
+   * Presence label annotations on shot level. There is exactly one element for
+   * each unique label. Compared to the existing topical
+   * `shot_label_annotations`, this field presents more fine-grained, shot-level
+   * labels detected in video content and is made available only when the client
+   * sets `LabelDetectionConfig.model` to "builtin/latest" in the request.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_presence_label_annotations = 24; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation + getShotPresenceLabelAnnotations(int index) { + return shotPresenceLabelAnnotations_.get(index); + } + /** + * + * + *
+   * Presence label annotations on shot level. There is exactly one element for
+   * each unique label. Compared to the existing topical
+   * `shot_label_annotations`, this field presents more fine-grained, shot-level
+   * labels detected in video content and is made available only when the client
+   * sets `LabelDetectionConfig.model` to "builtin/latest" in the request.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_presence_label_annotations = 24; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder + getShotPresenceLabelAnnotationsOrBuilder(int index) { + return shotPresenceLabelAnnotations_.get(index); + } + public static final int FRAME_LABEL_ANNOTATIONS_FIELD_NUMBER = 4; private java.util.List frameLabelAnnotations_; @@ -1028,6 +1346,57 @@ public int getLogoRecognitionAnnotationsCount() { return logoRecognitionAnnotations_.get(index); } + public static final int CELEBRITY_RECOGNITION_ANNOTATIONS_FIELD_NUMBER = 21; + private com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation + celebrityRecognitionAnnotations_; + /** + * + * + *
+   * Celebrity recognition annotations.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation celebrity_recognition_annotations = 21; + * + */ + public boolean hasCelebrityRecognitionAnnotations() { + return celebrityRecognitionAnnotations_ != null; + } + /** + * + * + *
+   * Celebrity recognition annotations.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation celebrity_recognition_annotations = 21; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation + getCelebrityRecognitionAnnotations() { + return celebrityRecognitionAnnotations_ == null + ? com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation + .getDefaultInstance() + : celebrityRecognitionAnnotations_; + } + /** + * + * + *
+   * Celebrity recognition annotations.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation celebrity_recognition_annotations = 21; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotationOrBuilder + getCelebrityRecognitionAnnotationsOrBuilder() { + return getCelebrityRecognitionAnnotations(); + } + public static final int ERROR_FIELD_NUMBER = 9; private com.google.rpc.Status error_; /** @@ -1105,6 +1474,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (error_ != null) { output.writeMessage(9, getError()); } + if (segment_ != null) { + output.writeMessage(10, getSegment()); + } for (int i = 0; i < speechTranscriptions_.size(); i++) { output.writeMessage(11, speechTranscriptions_.get(i)); } @@ -1117,6 +1489,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < logoRecognitionAnnotations_.size(); i++) { output.writeMessage(19, logoRecognitionAnnotations_.get(i)); } + if (celebrityRecognitionAnnotations_ != null) { + output.writeMessage(21, getCelebrityRecognitionAnnotations()); + } + for (int i = 0; i < segmentPresenceLabelAnnotations_.size(); i++) { + output.writeMessage(23, segmentPresenceLabelAnnotations_.get(i)); + } + for (int i = 0; i < shotPresenceLabelAnnotations_.size(); i++) { + output.writeMessage(24, shotPresenceLabelAnnotations_.get(i)); + } unknownFields.writeTo(output); } @@ -1152,6 +1533,9 @@ public int getSerializedSize() { if (error_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getError()); } + if (segment_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getSegment()); + } for (int i = 0; i < speechTranscriptions_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -1169,11 +1553,26 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 19, logoRecognitionAnnotations_.get(i)); } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - + if (celebrityRecognitionAnnotations_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 21, getCelebrityRecognitionAnnotations()); + } + for (int i = 0; i < segmentPresenceLabelAnnotations_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 23, segmentPresenceLabelAnnotations_.get(i)); + } + for (int i = 0; i < shotPresenceLabelAnnotations_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 24, shotPresenceLabelAnnotations_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -1186,9 +1585,17 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults) obj; if (!getInputUri().equals(other.getInputUri())) return false; + if (hasSegment() != other.hasSegment()) return false; + if (hasSegment()) { + if (!getSegment().equals(other.getSegment())) return false; + } if (!getSegmentLabelAnnotationsList().equals(other.getSegmentLabelAnnotationsList())) return false; + if (!getSegmentPresenceLabelAnnotationsList() + .equals(other.getSegmentPresenceLabelAnnotationsList())) return false; if (!getShotLabelAnnotationsList().equals(other.getShotLabelAnnotationsList())) return false; + if (!getShotPresenceLabelAnnotationsList().equals(other.getShotPresenceLabelAnnotationsList())) + return false; if (!getFrameLabelAnnotationsList().equals(other.getFrameLabelAnnotationsList())) return false; if (!getShotAnnotationsList().equals(other.getShotAnnotationsList())) return false; if (hasExplicitAnnotation() != other.hasExplicitAnnotation()) return false; @@ -1200,6 +1607,12 @@ public boolean equals(final java.lang.Object obj) { if (!getObjectAnnotationsList().equals(other.getObjectAnnotationsList())) return false; if (!getLogoRecognitionAnnotationsList().equals(other.getLogoRecognitionAnnotationsList())) return false; + if (hasCelebrityRecognitionAnnotations() != other.hasCelebrityRecognitionAnnotations()) + return false; + if (hasCelebrityRecognitionAnnotations()) { + if (!getCelebrityRecognitionAnnotations().equals(other.getCelebrityRecognitionAnnotations())) + return false; + } if (hasError() != other.hasError()) return false; if (hasError()) { if (!getError().equals(other.getError())) return false; @@ -1217,14 +1630,26 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + INPUT_URI_FIELD_NUMBER; hash = (53 * hash) + getInputUri().hashCode(); + if (hasSegment()) { + hash = (37 * hash) + SEGMENT_FIELD_NUMBER; + hash = (53 * hash) + getSegment().hashCode(); + } if (getSegmentLabelAnnotationsCount() > 0) { hash = (37 * hash) + SEGMENT_LABEL_ANNOTATIONS_FIELD_NUMBER; hash = (53 * hash) + getSegmentLabelAnnotationsList().hashCode(); } + if (getSegmentPresenceLabelAnnotationsCount() > 0) { + hash = (37 * hash) + SEGMENT_PRESENCE_LABEL_ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + getSegmentPresenceLabelAnnotationsList().hashCode(); + } if (getShotLabelAnnotationsCount() > 0) { hash = (37 * hash) + SHOT_LABEL_ANNOTATIONS_FIELD_NUMBER; hash = (53 * hash) + getShotLabelAnnotationsList().hashCode(); } + if (getShotPresenceLabelAnnotationsCount() > 0) { + hash = (37 * hash) + SHOT_PRESENCE_LABEL_ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + getShotPresenceLabelAnnotationsList().hashCode(); + } if (getFrameLabelAnnotationsCount() > 0) { hash = (37 * hash) + FRAME_LABEL_ANNOTATIONS_FIELD_NUMBER; hash = (53 * hash) + getFrameLabelAnnotationsList().hashCode(); @@ -1253,6 +1678,10 @@ public int hashCode() { hash = (37 * hash) + LOGO_RECOGNITION_ANNOTATIONS_FIELD_NUMBER; hash = (53 * hash) + getLogoRecognitionAnnotationsList().hashCode(); } + if (hasCelebrityRecognitionAnnotations()) { + hash = (37 * hash) + CELEBRITY_RECOGNITION_ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + getCelebrityRecognitionAnnotations().hashCode(); + } if (hasError()) { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); @@ -1401,7 +1830,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSegmentLabelAnnotationsFieldBuilder(); + getSegmentPresenceLabelAnnotationsFieldBuilder(); getShotLabelAnnotationsFieldBuilder(); + getShotPresenceLabelAnnotationsFieldBuilder(); getFrameLabelAnnotationsFieldBuilder(); getShotAnnotationsFieldBuilder(); getSpeechTranscriptionsFieldBuilder(); @@ -1416,27 +1847,45 @@ public Builder clear() { super.clear(); inputUri_ = ""; + if (segmentBuilder_ == null) { + segment_ = null; + } else { + segment_ = null; + segmentBuilder_ = null; + } if (segmentLabelAnnotationsBuilder_ == null) { segmentLabelAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } else { segmentLabelAnnotationsBuilder_.clear(); } + if (segmentPresenceLabelAnnotationsBuilder_ == null) { + segmentPresenceLabelAnnotations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + segmentPresenceLabelAnnotationsBuilder_.clear(); + } if (shotLabelAnnotationsBuilder_ == null) { shotLabelAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000010); } else { shotLabelAnnotationsBuilder_.clear(); } + if (shotPresenceLabelAnnotationsBuilder_ == null) { + shotPresenceLabelAnnotations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + } else { + shotPresenceLabelAnnotationsBuilder_.clear(); + } if (frameLabelAnnotationsBuilder_ == null) { frameLabelAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000040); } else { frameLabelAnnotationsBuilder_.clear(); } if (shotAnnotationsBuilder_ == null) { shotAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000080); } else { shotAnnotationsBuilder_.clear(); } @@ -1448,28 +1897,34 @@ public Builder clear() { } if (speechTranscriptionsBuilder_ == null) { speechTranscriptions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000200); } else { speechTranscriptionsBuilder_.clear(); } if (textAnnotationsBuilder_ == null) { textAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000400); } else { textAnnotationsBuilder_.clear(); } if (objectAnnotationsBuilder_ == null) { objectAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000800); } else { objectAnnotationsBuilder_.clear(); } if (logoRecognitionAnnotationsBuilder_ == null) { logoRecognitionAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00001000); } else { logoRecognitionAnnotationsBuilder_.clear(); } + if (celebrityRecognitionAnnotationsBuilder_ == null) { + celebrityRecognitionAnnotations_ = null; + } else { + celebrityRecognitionAnnotations_ = null; + celebrityRecognitionAnnotationsBuilder_ = null; + } if (errorBuilder_ == null) { error_ = null; } else { @@ -1508,38 +1963,63 @@ public com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults build int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.inputUri_ = inputUri_; + if (segmentBuilder_ == null) { + result.segment_ = segment_; + } else { + result.segment_ = segmentBuilder_.build(); + } if (segmentLabelAnnotationsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { segmentLabelAnnotations_ = java.util.Collections.unmodifiableList(segmentLabelAnnotations_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } result.segmentLabelAnnotations_ = segmentLabelAnnotations_; } else { result.segmentLabelAnnotations_ = segmentLabelAnnotationsBuilder_.build(); } + if (segmentPresenceLabelAnnotationsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + segmentPresenceLabelAnnotations_ = + java.util.Collections.unmodifiableList(segmentPresenceLabelAnnotations_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.segmentPresenceLabelAnnotations_ = segmentPresenceLabelAnnotations_; + } else { + result.segmentPresenceLabelAnnotations_ = segmentPresenceLabelAnnotationsBuilder_.build(); + } if (shotLabelAnnotationsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { shotLabelAnnotations_ = java.util.Collections.unmodifiableList(shotLabelAnnotations_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000010); } result.shotLabelAnnotations_ = shotLabelAnnotations_; } else { result.shotLabelAnnotations_ = shotLabelAnnotationsBuilder_.build(); } + if (shotPresenceLabelAnnotationsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + shotPresenceLabelAnnotations_ = + java.util.Collections.unmodifiableList(shotPresenceLabelAnnotations_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.shotPresenceLabelAnnotations_ = shotPresenceLabelAnnotations_; + } else { + result.shotPresenceLabelAnnotations_ = shotPresenceLabelAnnotationsBuilder_.build(); + } if (frameLabelAnnotationsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { frameLabelAnnotations_ = java.util.Collections.unmodifiableList(frameLabelAnnotations_); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000040); } result.frameLabelAnnotations_ = frameLabelAnnotations_; } else { result.frameLabelAnnotations_ = frameLabelAnnotationsBuilder_.build(); } if (shotAnnotationsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { shotAnnotations_ = java.util.Collections.unmodifiableList(shotAnnotations_); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000080); } result.shotAnnotations_ = shotAnnotations_; } else { @@ -1551,42 +2031,47 @@ public com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults build result.explicitAnnotation_ = explicitAnnotationBuilder_.build(); } if (speechTranscriptionsBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { speechTranscriptions_ = java.util.Collections.unmodifiableList(speechTranscriptions_); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000200); } result.speechTranscriptions_ = speechTranscriptions_; } else { result.speechTranscriptions_ = speechTranscriptionsBuilder_.build(); } if (textAnnotationsBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { textAnnotations_ = java.util.Collections.unmodifiableList(textAnnotations_); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000400); } result.textAnnotations_ = textAnnotations_; } else { result.textAnnotations_ = textAnnotationsBuilder_.build(); } if (objectAnnotationsBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0)) { + if (((bitField0_ & 0x00000800) != 0)) { objectAnnotations_ = java.util.Collections.unmodifiableList(objectAnnotations_); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000800); } result.objectAnnotations_ = objectAnnotations_; } else { result.objectAnnotations_ = objectAnnotationsBuilder_.build(); } if (logoRecognitionAnnotationsBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0)) { + if (((bitField0_ & 0x00001000) != 0)) { logoRecognitionAnnotations_ = java.util.Collections.unmodifiableList(logoRecognitionAnnotations_); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00001000); } result.logoRecognitionAnnotations_ = logoRecognitionAnnotations_; } else { result.logoRecognitionAnnotations_ = logoRecognitionAnnotationsBuilder_.build(); } + if (celebrityRecognitionAnnotationsBuilder_ == null) { + result.celebrityRecognitionAnnotations_ = celebrityRecognitionAnnotations_; + } else { + result.celebrityRecognitionAnnotations_ = celebrityRecognitionAnnotationsBuilder_.build(); + } if (errorBuilder_ == null) { result.error_ = error_; } else { @@ -1650,11 +2135,14 @@ public Builder mergeFrom( inputUri_ = other.inputUri_; onChanged(); } + if (other.hasSegment()) { + mergeSegment(other.getSegment()); + } if (segmentLabelAnnotationsBuilder_ == null) { if (!other.segmentLabelAnnotations_.isEmpty()) { if (segmentLabelAnnotations_.isEmpty()) { segmentLabelAnnotations_ = other.segmentLabelAnnotations_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureSegmentLabelAnnotationsIsMutable(); segmentLabelAnnotations_.addAll(other.segmentLabelAnnotations_); @@ -1667,7 +2155,7 @@ public Builder mergeFrom( segmentLabelAnnotationsBuilder_.dispose(); segmentLabelAnnotationsBuilder_ = null; segmentLabelAnnotations_ = other.segmentLabelAnnotations_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); segmentLabelAnnotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSegmentLabelAnnotationsFieldBuilder() @@ -1677,11 +2165,39 @@ public Builder mergeFrom( } } } + if (segmentPresenceLabelAnnotationsBuilder_ == null) { + if (!other.segmentPresenceLabelAnnotations_.isEmpty()) { + if (segmentPresenceLabelAnnotations_.isEmpty()) { + segmentPresenceLabelAnnotations_ = other.segmentPresenceLabelAnnotations_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureSegmentPresenceLabelAnnotationsIsMutable(); + segmentPresenceLabelAnnotations_.addAll(other.segmentPresenceLabelAnnotations_); + } + onChanged(); + } + } else { + if (!other.segmentPresenceLabelAnnotations_.isEmpty()) { + if (segmentPresenceLabelAnnotationsBuilder_.isEmpty()) { + segmentPresenceLabelAnnotationsBuilder_.dispose(); + segmentPresenceLabelAnnotationsBuilder_ = null; + segmentPresenceLabelAnnotations_ = other.segmentPresenceLabelAnnotations_; + bitField0_ = (bitField0_ & ~0x00000008); + segmentPresenceLabelAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSegmentPresenceLabelAnnotationsFieldBuilder() + : null; + } else { + segmentPresenceLabelAnnotationsBuilder_.addAllMessages( + other.segmentPresenceLabelAnnotations_); + } + } + } if (shotLabelAnnotationsBuilder_ == null) { if (!other.shotLabelAnnotations_.isEmpty()) { if (shotLabelAnnotations_.isEmpty()) { shotLabelAnnotations_ = other.shotLabelAnnotations_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000010); } else { ensureShotLabelAnnotationsIsMutable(); shotLabelAnnotations_.addAll(other.shotLabelAnnotations_); @@ -1694,7 +2210,7 @@ public Builder mergeFrom( shotLabelAnnotationsBuilder_.dispose(); shotLabelAnnotationsBuilder_ = null; shotLabelAnnotations_ = other.shotLabelAnnotations_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000010); shotLabelAnnotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getShotLabelAnnotationsFieldBuilder() @@ -1704,11 +2220,39 @@ public Builder mergeFrom( } } } + if (shotPresenceLabelAnnotationsBuilder_ == null) { + if (!other.shotPresenceLabelAnnotations_.isEmpty()) { + if (shotPresenceLabelAnnotations_.isEmpty()) { + shotPresenceLabelAnnotations_ = other.shotPresenceLabelAnnotations_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureShotPresenceLabelAnnotationsIsMutable(); + shotPresenceLabelAnnotations_.addAll(other.shotPresenceLabelAnnotations_); + } + onChanged(); + } + } else { + if (!other.shotPresenceLabelAnnotations_.isEmpty()) { + if (shotPresenceLabelAnnotationsBuilder_.isEmpty()) { + shotPresenceLabelAnnotationsBuilder_.dispose(); + shotPresenceLabelAnnotationsBuilder_ = null; + shotPresenceLabelAnnotations_ = other.shotPresenceLabelAnnotations_; + bitField0_ = (bitField0_ & ~0x00000020); + shotPresenceLabelAnnotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getShotPresenceLabelAnnotationsFieldBuilder() + : null; + } else { + shotPresenceLabelAnnotationsBuilder_.addAllMessages( + other.shotPresenceLabelAnnotations_); + } + } + } if (frameLabelAnnotationsBuilder_ == null) { if (!other.frameLabelAnnotations_.isEmpty()) { if (frameLabelAnnotations_.isEmpty()) { frameLabelAnnotations_ = other.frameLabelAnnotations_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000040); } else { ensureFrameLabelAnnotationsIsMutable(); frameLabelAnnotations_.addAll(other.frameLabelAnnotations_); @@ -1721,7 +2265,7 @@ public Builder mergeFrom( frameLabelAnnotationsBuilder_.dispose(); frameLabelAnnotationsBuilder_ = null; frameLabelAnnotations_ = other.frameLabelAnnotations_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000040); frameLabelAnnotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFrameLabelAnnotationsFieldBuilder() @@ -1735,7 +2279,7 @@ public Builder mergeFrom( if (!other.shotAnnotations_.isEmpty()) { if (shotAnnotations_.isEmpty()) { shotAnnotations_ = other.shotAnnotations_; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000080); } else { ensureShotAnnotationsIsMutable(); shotAnnotations_.addAll(other.shotAnnotations_); @@ -1748,7 +2292,7 @@ public Builder mergeFrom( shotAnnotationsBuilder_.dispose(); shotAnnotationsBuilder_ = null; shotAnnotations_ = other.shotAnnotations_; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000080); shotAnnotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getShotAnnotationsFieldBuilder() @@ -1765,7 +2309,7 @@ public Builder mergeFrom( if (!other.speechTranscriptions_.isEmpty()) { if (speechTranscriptions_.isEmpty()) { speechTranscriptions_ = other.speechTranscriptions_; - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000200); } else { ensureSpeechTranscriptionsIsMutable(); speechTranscriptions_.addAll(other.speechTranscriptions_); @@ -1778,7 +2322,7 @@ public Builder mergeFrom( speechTranscriptionsBuilder_.dispose(); speechTranscriptionsBuilder_ = null; speechTranscriptions_ = other.speechTranscriptions_; - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000200); speechTranscriptionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSpeechTranscriptionsFieldBuilder() @@ -1792,7 +2336,7 @@ public Builder mergeFrom( if (!other.textAnnotations_.isEmpty()) { if (textAnnotations_.isEmpty()) { textAnnotations_ = other.textAnnotations_; - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000400); } else { ensureTextAnnotationsIsMutable(); textAnnotations_.addAll(other.textAnnotations_); @@ -1805,7 +2349,7 @@ public Builder mergeFrom( textAnnotationsBuilder_.dispose(); textAnnotationsBuilder_ = null; textAnnotations_ = other.textAnnotations_; - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000400); textAnnotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTextAnnotationsFieldBuilder() @@ -1819,7 +2363,7 @@ public Builder mergeFrom( if (!other.objectAnnotations_.isEmpty()) { if (objectAnnotations_.isEmpty()) { objectAnnotations_ = other.objectAnnotations_; - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000800); } else { ensureObjectAnnotationsIsMutable(); objectAnnotations_.addAll(other.objectAnnotations_); @@ -1832,7 +2376,7 @@ public Builder mergeFrom( objectAnnotationsBuilder_.dispose(); objectAnnotationsBuilder_ = null; objectAnnotations_ = other.objectAnnotations_; - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000800); objectAnnotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getObjectAnnotationsFieldBuilder() @@ -1846,7 +2390,7 @@ public Builder mergeFrom( if (!other.logoRecognitionAnnotations_.isEmpty()) { if (logoRecognitionAnnotations_.isEmpty()) { logoRecognitionAnnotations_ = other.logoRecognitionAnnotations_; - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00001000); } else { ensureLogoRecognitionAnnotationsIsMutable(); logoRecognitionAnnotations_.addAll(other.logoRecognitionAnnotations_); @@ -1859,7 +2403,7 @@ public Builder mergeFrom( logoRecognitionAnnotationsBuilder_.dispose(); logoRecognitionAnnotationsBuilder_ = null; logoRecognitionAnnotations_ = other.logoRecognitionAnnotations_; - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00001000); logoRecognitionAnnotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLogoRecognitionAnnotationsFieldBuilder() @@ -1869,6 +2413,9 @@ public Builder mergeFrom( } } } + if (other.hasCelebrityRecognitionAnnotations()) { + mergeCelebrityRecognitionAnnotations(other.getCelebrityRecognitionAnnotations()); + } if (other.hasError()) { mergeError(other.getError()); } @@ -2004,15 +2551,198 @@ public Builder setInputUriBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.videointelligence.v1p3beta1.VideoSegment segment_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.VideoSegment, + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder, + com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder> + segmentBuilder_; + /** + * + * + *
+     * Video segment on which the annotation is run.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 10; + */ + public boolean hasSegment() { + return segmentBuilder_ != null || segment_ != null; + } + /** + * + * + *
+     * Video segment on which the annotation is run.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 10; + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoSegment getSegment() { + if (segmentBuilder_ == null) { + return segment_ == null + ? com.google.cloud.videointelligence.v1p3beta1.VideoSegment.getDefaultInstance() + : segment_; + } else { + return segmentBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Video segment on which the annotation is run.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 10; + */ + public Builder setSegment(com.google.cloud.videointelligence.v1p3beta1.VideoSegment value) { + if (segmentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + segment_ = value; + onChanged(); + } else { + segmentBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Video segment on which the annotation is run.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 10; + */ + public Builder setSegment( + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder builderForValue) { + if (segmentBuilder_ == null) { + segment_ = builderForValue.build(); + onChanged(); + } else { + segmentBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Video segment on which the annotation is run.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 10; + */ + public Builder mergeSegment(com.google.cloud.videointelligence.v1p3beta1.VideoSegment value) { + if (segmentBuilder_ == null) { + if (segment_ != null) { + segment_ = + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.newBuilder(segment_) + .mergeFrom(value) + .buildPartial(); + } else { + segment_ = value; + } + onChanged(); + } else { + segmentBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Video segment on which the annotation is run.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 10; + */ + public Builder clearSegment() { + if (segmentBuilder_ == null) { + segment_ = null; + onChanged(); + } else { + segment_ = null; + segmentBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Video segment on which the annotation is run.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 10; + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder getSegmentBuilder() { + + onChanged(); + return getSegmentFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Video segment on which the annotation is run.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 10; + */ + public com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder + getSegmentOrBuilder() { + if (segmentBuilder_ != null) { + return segmentBuilder_.getMessageOrBuilder(); + } else { + return segment_ == null + ? com.google.cloud.videointelligence.v1p3beta1.VideoSegment.getDefaultInstance() + : segment_; + } + } + /** + * + * + *
+     * Video segment on which the annotation is run.
+     * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.VideoSegment, + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder, + com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder> + getSegmentFieldBuilder() { + if (segmentBuilder_ == null) { + segmentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.VideoSegment, + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder, + com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder>( + getSegment(), getParentForChildren(), isClean()); + segment_ = null; + } + return segmentBuilder_; + } + private java.util.List segmentLabelAnnotations_ = java.util.Collections.emptyList(); private void ensureSegmentLabelAnnotationsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { segmentLabelAnnotations_ = new java.util.ArrayList( segmentLabelAnnotations_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; } } @@ -2026,7 +2756,7 @@ private void ensureSegmentLabelAnnotationsIsMutable() { * * *
-     * Label annotations on video level or user specified segment level.
+     * Topical label annotations on video level or user specified segment level.
      * There is exactly one element for each unique label.
      * 
* @@ -2046,7 +2776,7 @@ private void ensureSegmentLabelAnnotationsIsMutable() { * * *
-     * Label annotations on video level or user specified segment level.
+     * Topical label annotations on video level or user specified segment level.
      * There is exactly one element for each unique label.
      * 
* @@ -2065,7 +2795,7 @@ public int getSegmentLabelAnnotationsCount() { * * *
-     * Label annotations on video level or user specified segment level.
+     * Topical label annotations on video level or user specified segment level.
      * There is exactly one element for each unique label.
      * 
* @@ -2085,7 +2815,7 @@ public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation getSegmentLa * * *
-     * Label annotations on video level or user specified segment level.
+     * Topical label annotations on video level or user specified segment level.
      * There is exactly one element for each unique label.
      * 
* @@ -2111,7 +2841,7 @@ public Builder setSegmentLabelAnnotations( * * *
-     * Label annotations on video level or user specified segment level.
+     * Topical label annotations on video level or user specified segment level.
      * There is exactly one element for each unique label.
      * 
* @@ -2135,7 +2865,7 @@ public Builder setSegmentLabelAnnotations( * * *
-     * Label annotations on video level or user specified segment level.
+     * Topical label annotations on video level or user specified segment level.
      * There is exactly one element for each unique label.
      * 
* @@ -2161,7 +2891,7 @@ public Builder addSegmentLabelAnnotations( * * *
-     * Label annotations on video level or user specified segment level.
+     * Topical label annotations on video level or user specified segment level.
      * There is exactly one element for each unique label.
      * 
* @@ -2187,7 +2917,7 @@ public Builder addSegmentLabelAnnotations( * * *
-     * Label annotations on video level or user specified segment level.
+     * Topical label annotations on video level or user specified segment level.
      * There is exactly one element for each unique label.
      * 
* @@ -2210,7 +2940,7 @@ public Builder addSegmentLabelAnnotations( * * *
-     * Label annotations on video level or user specified segment level.
+     * Topical label annotations on video level or user specified segment level.
      * There is exactly one element for each unique label.
      * 
* @@ -2234,7 +2964,7 @@ public Builder addSegmentLabelAnnotations( * * *
-     * Label annotations on video level or user specified segment level.
+     * Topical label annotations on video level or user specified segment level.
      * There is exactly one element for each unique label.
      * 
* @@ -2258,7 +2988,7 @@ public Builder addAllSegmentLabelAnnotations( * * *
-     * Label annotations on video level or user specified segment level.
+     * Topical label annotations on video level or user specified segment level.
      * There is exactly one element for each unique label.
      * 
* @@ -2269,7 +2999,7 @@ public Builder addAllSegmentLabelAnnotations( public Builder clearSegmentLabelAnnotations() { if (segmentLabelAnnotationsBuilder_ == null) { segmentLabelAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { segmentLabelAnnotationsBuilder_.clear(); @@ -2280,7 +3010,7 @@ public Builder clearSegmentLabelAnnotations() { * * *
-     * Label annotations on video level or user specified segment level.
+     * Topical label annotations on video level or user specified segment level.
      * There is exactly one element for each unique label.
      * 
* @@ -2302,7 +3032,7 @@ public Builder removeSegmentLabelAnnotations(int index) { * * *
-     * Label annotations on video level or user specified segment level.
+     * Topical label annotations on video level or user specified segment level.
      * There is exactly one element for each unique label.
      * 
* @@ -2318,7 +3048,7 @@ public Builder removeSegmentLabelAnnotations(int index) { * * *
-     * Label annotations on video level or user specified segment level.
+     * Topical label annotations on video level or user specified segment level.
      * There is exactly one element for each unique label.
      * 
* @@ -2338,7 +3068,7 @@ public Builder removeSegmentLabelAnnotations(int index) { * * *
-     * Label annotations on video level or user specified segment level.
+     * Topical label annotations on video level or user specified segment level.
      * There is exactly one element for each unique label.
      * 
* @@ -2359,7 +3089,7 @@ public Builder removeSegmentLabelAnnotations(int index) { * * *
-     * Label annotations on video level or user specified segment level.
+     * Topical label annotations on video level or user specified segment level.
      * There is exactly one element for each unique label.
      * 
* @@ -2377,7 +3107,7 @@ public Builder removeSegmentLabelAnnotations(int index) { * * *
-     * Label annotations on video level or user specified segment level.
+     * Topical label annotations on video level or user specified segment level.
      * There is exactly one element for each unique label.
      * 
* @@ -2396,7 +3126,7 @@ public Builder removeSegmentLabelAnnotations(int index) { * * *
-     * Label annotations on video level or user specified segment level.
+     * Topical label annotations on video level or user specified segment level.
      * There is exactly one element for each unique label.
      * 
* @@ -2421,7 +3151,7 @@ public Builder removeSegmentLabelAnnotations(int index) { com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder, com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder>( segmentLabelAnnotations_, - ((bitField0_ & 0x00000002) != 0), + ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); segmentLabelAnnotations_ = null; @@ -2430,28 +3160,687 @@ public Builder removeSegmentLabelAnnotations(int index) { } private java.util.List - shotLabelAnnotations_ = java.util.Collections.emptyList(); + segmentPresenceLabelAnnotations_ = java.util.Collections.emptyList(); - private void ensureShotLabelAnnotationsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - shotLabelAnnotations_ = + private void ensureSegmentPresenceLabelAnnotationsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + segmentPresenceLabelAnnotations_ = new java.util.ArrayList( - shotLabelAnnotations_); - bitField0_ |= 0x00000004; + segmentPresenceLabelAnnotations_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder> + segmentPresenceLabelAnnotationsBuilder_; + + /** + * + * + *
+     * Presence label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label. Compared to the
+     * existing topical `segment_label_annotations`, this field presents more
+     * fine-grained, segment-level labels detected in video content and is made
+     * available only when the client sets `LabelDetectionConfig.model` to
+     * "builtin/latest" in the request.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_presence_label_annotations = 23; + * + */ + public java.util.List + getSegmentPresenceLabelAnnotationsList() { + if (segmentPresenceLabelAnnotationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(segmentPresenceLabelAnnotations_); + } else { + return segmentPresenceLabelAnnotationsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Presence label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label. Compared to the
+     * existing topical `segment_label_annotations`, this field presents more
+     * fine-grained, segment-level labels detected in video content and is made
+     * available only when the client sets `LabelDetectionConfig.model` to
+     * "builtin/latest" in the request.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_presence_label_annotations = 23; + * + */ + public int getSegmentPresenceLabelAnnotationsCount() { + if (segmentPresenceLabelAnnotationsBuilder_ == null) { + return segmentPresenceLabelAnnotations_.size(); + } else { + return segmentPresenceLabelAnnotationsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Presence label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label. Compared to the
+     * existing topical `segment_label_annotations`, this field presents more
+     * fine-grained, segment-level labels detected in video content and is made
+     * available only when the client sets `LabelDetectionConfig.model` to
+     * "builtin/latest" in the request.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_presence_label_annotations = 23; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation + getSegmentPresenceLabelAnnotations(int index) { + if (segmentPresenceLabelAnnotationsBuilder_ == null) { + return segmentPresenceLabelAnnotations_.get(index); + } else { + return segmentPresenceLabelAnnotationsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Presence label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label. Compared to the
+     * existing topical `segment_label_annotations`, this field presents more
+     * fine-grained, segment-level labels detected in video content and is made
+     * available only when the client sets `LabelDetectionConfig.model` to
+     * "builtin/latest" in the request.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_presence_label_annotations = 23; + * + */ + public Builder setSegmentPresenceLabelAnnotations( + int index, com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation value) { + if (segmentPresenceLabelAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSegmentPresenceLabelAnnotationsIsMutable(); + segmentPresenceLabelAnnotations_.set(index, value); + onChanged(); + } else { + segmentPresenceLabelAnnotationsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Presence label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label. Compared to the
+     * existing topical `segment_label_annotations`, this field presents more
+     * fine-grained, segment-level labels detected in video content and is made
+     * available only when the client sets `LabelDetectionConfig.model` to
+     * "builtin/latest" in the request.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_presence_label_annotations = 23; + * + */ + public Builder setSegmentPresenceLabelAnnotations( + int index, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder builderForValue) { + if (segmentPresenceLabelAnnotationsBuilder_ == null) { + ensureSegmentPresenceLabelAnnotationsIsMutable(); + segmentPresenceLabelAnnotations_.set(index, builderForValue.build()); + onChanged(); + } else { + segmentPresenceLabelAnnotationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Presence label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label. Compared to the
+     * existing topical `segment_label_annotations`, this field presents more
+     * fine-grained, segment-level labels detected in video content and is made
+     * available only when the client sets `LabelDetectionConfig.model` to
+     * "builtin/latest" in the request.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_presence_label_annotations = 23; + * + */ + public Builder addSegmentPresenceLabelAnnotations( + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation value) { + if (segmentPresenceLabelAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSegmentPresenceLabelAnnotationsIsMutable(); + segmentPresenceLabelAnnotations_.add(value); + onChanged(); + } else { + segmentPresenceLabelAnnotationsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Presence label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label. Compared to the
+     * existing topical `segment_label_annotations`, this field presents more
+     * fine-grained, segment-level labels detected in video content and is made
+     * available only when the client sets `LabelDetectionConfig.model` to
+     * "builtin/latest" in the request.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_presence_label_annotations = 23; + * + */ + public Builder addSegmentPresenceLabelAnnotations( + int index, com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation value) { + if (segmentPresenceLabelAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSegmentPresenceLabelAnnotationsIsMutable(); + segmentPresenceLabelAnnotations_.add(index, value); + onChanged(); + } else { + segmentPresenceLabelAnnotationsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Presence label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label. Compared to the
+     * existing topical `segment_label_annotations`, this field presents more
+     * fine-grained, segment-level labels detected in video content and is made
+     * available only when the client sets `LabelDetectionConfig.model` to
+     * "builtin/latest" in the request.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_presence_label_annotations = 23; + * + */ + public Builder addSegmentPresenceLabelAnnotations( + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder builderForValue) { + if (segmentPresenceLabelAnnotationsBuilder_ == null) { + ensureSegmentPresenceLabelAnnotationsIsMutable(); + segmentPresenceLabelAnnotations_.add(builderForValue.build()); + onChanged(); + } else { + segmentPresenceLabelAnnotationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Presence label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label. Compared to the
+     * existing topical `segment_label_annotations`, this field presents more
+     * fine-grained, segment-level labels detected in video content and is made
+     * available only when the client sets `LabelDetectionConfig.model` to
+     * "builtin/latest" in the request.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_presence_label_annotations = 23; + * + */ + public Builder addSegmentPresenceLabelAnnotations( + int index, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder builderForValue) { + if (segmentPresenceLabelAnnotationsBuilder_ == null) { + ensureSegmentPresenceLabelAnnotationsIsMutable(); + segmentPresenceLabelAnnotations_.add(index, builderForValue.build()); + onChanged(); + } else { + segmentPresenceLabelAnnotationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Presence label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label. Compared to the
+     * existing topical `segment_label_annotations`, this field presents more
+     * fine-grained, segment-level labels detected in video content and is made
+     * available only when the client sets `LabelDetectionConfig.model` to
+     * "builtin/latest" in the request.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_presence_label_annotations = 23; + * + */ + public Builder addAllSegmentPresenceLabelAnnotations( + java.lang.Iterable + values) { + if (segmentPresenceLabelAnnotationsBuilder_ == null) { + ensureSegmentPresenceLabelAnnotationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, segmentPresenceLabelAnnotations_); + onChanged(); + } else { + segmentPresenceLabelAnnotationsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Presence label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label. Compared to the
+     * existing topical `segment_label_annotations`, this field presents more
+     * fine-grained, segment-level labels detected in video content and is made
+     * available only when the client sets `LabelDetectionConfig.model` to
+     * "builtin/latest" in the request.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_presence_label_annotations = 23; + * + */ + public Builder clearSegmentPresenceLabelAnnotations() { + if (segmentPresenceLabelAnnotationsBuilder_ == null) { + segmentPresenceLabelAnnotations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + segmentPresenceLabelAnnotationsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Presence label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label. Compared to the
+     * existing topical `segment_label_annotations`, this field presents more
+     * fine-grained, segment-level labels detected in video content and is made
+     * available only when the client sets `LabelDetectionConfig.model` to
+     * "builtin/latest" in the request.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_presence_label_annotations = 23; + * + */ + public Builder removeSegmentPresenceLabelAnnotations(int index) { + if (segmentPresenceLabelAnnotationsBuilder_ == null) { + ensureSegmentPresenceLabelAnnotationsIsMutable(); + segmentPresenceLabelAnnotations_.remove(index); + onChanged(); + } else { + segmentPresenceLabelAnnotationsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Presence label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label. Compared to the
+     * existing topical `segment_label_annotations`, this field presents more
+     * fine-grained, segment-level labels detected in video content and is made
+     * available only when the client sets `LabelDetectionConfig.model` to
+     * "builtin/latest" in the request.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_presence_label_annotations = 23; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder + getSegmentPresenceLabelAnnotationsBuilder(int index) { + return getSegmentPresenceLabelAnnotationsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Presence label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label. Compared to the
+     * existing topical `segment_label_annotations`, this field presents more
+     * fine-grained, segment-level labels detected in video content and is made
+     * available only when the client sets `LabelDetectionConfig.model` to
+     * "builtin/latest" in the request.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_presence_label_annotations = 23; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder + getSegmentPresenceLabelAnnotationsOrBuilder(int index) { + if (segmentPresenceLabelAnnotationsBuilder_ == null) { + return segmentPresenceLabelAnnotations_.get(index); + } else { + return segmentPresenceLabelAnnotationsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Presence label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label. Compared to the
+     * existing topical `segment_label_annotations`, this field presents more
+     * fine-grained, segment-level labels detected in video content and is made
+     * available only when the client sets `LabelDetectionConfig.model` to
+     * "builtin/latest" in the request.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_presence_label_annotations = 23; + * + */ + public java.util.List< + ? extends com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder> + getSegmentPresenceLabelAnnotationsOrBuilderList() { + if (segmentPresenceLabelAnnotationsBuilder_ != null) { + return segmentPresenceLabelAnnotationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(segmentPresenceLabelAnnotations_); + } + } + /** + * + * + *
+     * Presence label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label. Compared to the
+     * existing topical `segment_label_annotations`, this field presents more
+     * fine-grained, segment-level labels detected in video content and is made
+     * available only when the client sets `LabelDetectionConfig.model` to
+     * "builtin/latest" in the request.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_presence_label_annotations = 23; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder + addSegmentPresenceLabelAnnotationsBuilder() { + return getSegmentPresenceLabelAnnotationsFieldBuilder() + .addBuilder( + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.getDefaultInstance()); + } + /** + * + * + *
+     * Presence label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label. Compared to the
+     * existing topical `segment_label_annotations`, this field presents more
+     * fine-grained, segment-level labels detected in video content and is made
+     * available only when the client sets `LabelDetectionConfig.model` to
+     * "builtin/latest" in the request.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_presence_label_annotations = 23; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder + addSegmentPresenceLabelAnnotationsBuilder(int index) { + return getSegmentPresenceLabelAnnotationsFieldBuilder() + .addBuilder( + index, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.getDefaultInstance()); + } + /** + * + * + *
+     * Presence label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label. Compared to the
+     * existing topical `segment_label_annotations`, this field presents more
+     * fine-grained, segment-level labels detected in video content and is made
+     * available only when the client sets `LabelDetectionConfig.model` to
+     * "builtin/latest" in the request.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_presence_label_annotations = 23; + * + */ + public java.util.List + getSegmentPresenceLabelAnnotationsBuilderList() { + return getSegmentPresenceLabelAnnotationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder> + getSegmentPresenceLabelAnnotationsFieldBuilder() { + if (segmentPresenceLabelAnnotationsBuilder_ == null) { + segmentPresenceLabelAnnotationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder>( + segmentPresenceLabelAnnotations_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + segmentPresenceLabelAnnotations_ = null; + } + return segmentPresenceLabelAnnotationsBuilder_; + } + + private java.util.List + shotLabelAnnotations_ = java.util.Collections.emptyList(); + + private void ensureShotLabelAnnotationsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + shotLabelAnnotations_ = + new java.util.ArrayList( + shotLabelAnnotations_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder> + shotLabelAnnotationsBuilder_; + + /** + * + * + *
+     * Topical label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * + */ + public java.util.List + getShotLabelAnnotationsList() { + if (shotLabelAnnotationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(shotLabelAnnotations_); + } else { + return shotLabelAnnotationsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Topical label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * + */ + public int getShotLabelAnnotationsCount() { + if (shotLabelAnnotationsBuilder_ == null) { + return shotLabelAnnotations_.size(); + } else { + return shotLabelAnnotationsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Topical label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation getShotLabelAnnotations( + int index) { + if (shotLabelAnnotationsBuilder_ == null) { + return shotLabelAnnotations_.get(index); + } else { + return shotLabelAnnotationsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Topical label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * + */ + public Builder setShotLabelAnnotations( + int index, com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation value) { + if (shotLabelAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureShotLabelAnnotationsIsMutable(); + shotLabelAnnotations_.set(index, value); + onChanged(); + } else { + shotLabelAnnotationsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Topical label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * + */ + public Builder setShotLabelAnnotations( + int index, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder builderForValue) { + if (shotLabelAnnotationsBuilder_ == null) { + ensureShotLabelAnnotationsIsMutable(); + shotLabelAnnotations_.set(index, builderForValue.build()); + onChanged(); + } else { + shotLabelAnnotationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Topical label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * + */ + public Builder addShotLabelAnnotations( + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation value) { + if (shotLabelAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureShotLabelAnnotationsIsMutable(); + shotLabelAnnotations_.add(value); + onChanged(); + } else { + shotLabelAnnotationsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Topical label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * + */ + public Builder addShotLabelAnnotations( + int index, com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation value) { + if (shotLabelAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureShotLabelAnnotationsIsMutable(); + shotLabelAnnotations_.add(index, value); + onChanged(); + } else { + shotLabelAnnotationsBuilder_.addMessage(index, value); } + return this; } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation, - com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder, - com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder> - shotLabelAnnotationsBuilder_; - /** * * *
-     * Label annotations on shot level.
+     * Topical label annotations on shot level.
      * There is exactly one element for each unique label.
      * 
* @@ -2459,19 +3848,22 @@ private void ensureShotLabelAnnotationsIsMutable() { * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; *
*/ - public java.util.List - getShotLabelAnnotationsList() { + public Builder addShotLabelAnnotations( + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder builderForValue) { if (shotLabelAnnotationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(shotLabelAnnotations_); + ensureShotLabelAnnotationsIsMutable(); + shotLabelAnnotations_.add(builderForValue.build()); + onChanged(); } else { - return shotLabelAnnotationsBuilder_.getMessageList(); + shotLabelAnnotationsBuilder_.addMessage(builderForValue.build()); } + return this; } /** * * *
-     * Label annotations on shot level.
+     * Topical label annotations on shot level.
      * There is exactly one element for each unique label.
      * 
* @@ -2479,18 +3871,23 @@ private void ensureShotLabelAnnotationsIsMutable() { * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; *
*/ - public int getShotLabelAnnotationsCount() { + public Builder addShotLabelAnnotations( + int index, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder builderForValue) { if (shotLabelAnnotationsBuilder_ == null) { - return shotLabelAnnotations_.size(); + ensureShotLabelAnnotationsIsMutable(); + shotLabelAnnotations_.add(index, builderForValue.build()); + onChanged(); } else { - return shotLabelAnnotationsBuilder_.getCount(); + shotLabelAnnotationsBuilder_.addMessage(index, builderForValue.build()); } + return this; } /** * * *
-     * Label annotations on shot level.
+     * Topical label annotations on shot level.
      * There is exactly one element for each unique label.
      * 
* @@ -2498,19 +3895,103 @@ public int getShotLabelAnnotationsCount() { * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; *
*/ - public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation getShotLabelAnnotations( - int index) { + 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; + } + /** + * + * + *
+     * Topical label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * + */ + public Builder clearShotLabelAnnotations() { + if (shotLabelAnnotationsBuilder_ == null) { + shotLabelAnnotations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + shotLabelAnnotationsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Topical label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * + */ + public Builder removeShotLabelAnnotations(int index) { + if (shotLabelAnnotationsBuilder_ == null) { + ensureShotLabelAnnotationsIsMutable(); + shotLabelAnnotations_.remove(index); + onChanged(); + } else { + shotLabelAnnotationsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Topical label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder + getShotLabelAnnotationsBuilder(int index) { + return getShotLabelAnnotationsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Topical label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder + getShotLabelAnnotationsOrBuilder(int index) { if (shotLabelAnnotationsBuilder_ == null) { return shotLabelAnnotations_.get(index); } else { - return shotLabelAnnotationsBuilder_.getMessage(index); + return shotLabelAnnotationsBuilder_.getMessageOrBuilder(index); } } /** * * *
-     * Label annotations on shot level.
+     * Topical label annotations on shot level.
      * There is exactly one element for each unique label.
      * 
* @@ -2518,17 +3999,201 @@ public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation getShotLabel * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; *
*/ - public Builder setShotLabelAnnotations( - int index, com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation value) { + public java.util.List< + ? extends com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder> + getShotLabelAnnotationsOrBuilderList() { + if (shotLabelAnnotationsBuilder_ != null) { + return shotLabelAnnotationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(shotLabelAnnotations_); + } + } + /** + * + * + *
+     * Topical label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder + addShotLabelAnnotationsBuilder() { + return getShotLabelAnnotationsFieldBuilder() + .addBuilder( + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.getDefaultInstance()); + } + /** + * + * + *
+     * Topical label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder + addShotLabelAnnotationsBuilder(int index) { + return getShotLabelAnnotationsFieldBuilder() + .addBuilder( + index, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.getDefaultInstance()); + } + /** + * + * + *
+     * Topical label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * + */ + public java.util.List + getShotLabelAnnotationsBuilderList() { + return getShotLabelAnnotationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder> + getShotLabelAnnotationsFieldBuilder() { if (shotLabelAnnotationsBuilder_ == null) { + shotLabelAnnotationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder>( + shotLabelAnnotations_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + shotLabelAnnotations_ = null; + } + return shotLabelAnnotationsBuilder_; + } + + private java.util.List + shotPresenceLabelAnnotations_ = java.util.Collections.emptyList(); + + private void ensureShotPresenceLabelAnnotationsIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + shotPresenceLabelAnnotations_ = + new java.util.ArrayList( + shotPresenceLabelAnnotations_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder, + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder> + shotPresenceLabelAnnotationsBuilder_; + + /** + * + * + *
+     * Presence label annotations on shot level. There is exactly one element for
+     * each unique label. Compared to the existing topical
+     * `shot_label_annotations`, this field presents more fine-grained, shot-level
+     * labels detected in video content and is made available only when the client
+     * sets `LabelDetectionConfig.model` to "builtin/latest" in the request.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_presence_label_annotations = 24; + * + */ + public java.util.List + getShotPresenceLabelAnnotationsList() { + if (shotPresenceLabelAnnotationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(shotPresenceLabelAnnotations_); + } else { + return shotPresenceLabelAnnotationsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Presence label annotations on shot level. There is exactly one element for
+     * each unique label. Compared to the existing topical
+     * `shot_label_annotations`, this field presents more fine-grained, shot-level
+     * labels detected in video content and is made available only when the client
+     * sets `LabelDetectionConfig.model` to "builtin/latest" in the request.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_presence_label_annotations = 24; + * + */ + public int getShotPresenceLabelAnnotationsCount() { + if (shotPresenceLabelAnnotationsBuilder_ == null) { + return shotPresenceLabelAnnotations_.size(); + } else { + return shotPresenceLabelAnnotationsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Presence label annotations on shot level. There is exactly one element for
+     * each unique label. Compared to the existing topical
+     * `shot_label_annotations`, this field presents more fine-grained, shot-level
+     * labels detected in video content and is made available only when the client
+     * sets `LabelDetectionConfig.model` to "builtin/latest" in the request.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_presence_label_annotations = 24; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation + getShotPresenceLabelAnnotations(int index) { + if (shotPresenceLabelAnnotationsBuilder_ == null) { + return shotPresenceLabelAnnotations_.get(index); + } else { + return shotPresenceLabelAnnotationsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Presence label annotations on shot level. There is exactly one element for
+     * each unique label. Compared to the existing topical
+     * `shot_label_annotations`, this field presents more fine-grained, shot-level
+     * labels detected in video content and is made available only when the client
+     * sets `LabelDetectionConfig.model` to "builtin/latest" in the request.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_presence_label_annotations = 24; + * + */ + public Builder setShotPresenceLabelAnnotations( + int index, com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation value) { + if (shotPresenceLabelAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureShotLabelAnnotationsIsMutable(); - shotLabelAnnotations_.set(index, value); + ensureShotPresenceLabelAnnotationsIsMutable(); + shotPresenceLabelAnnotations_.set(index, value); onChanged(); } else { - shotLabelAnnotationsBuilder_.setMessage(index, value); + shotPresenceLabelAnnotationsBuilder_.setMessage(index, value); } return this; } @@ -2536,23 +4201,26 @@ public Builder setShotLabelAnnotations( * * *
-     * Label annotations on shot level.
-     * There is exactly one element for each unique label.
+     * Presence label annotations on shot level. There is exactly one element for
+     * each unique label. Compared to the existing topical
+     * `shot_label_annotations`, this field presents more fine-grained, shot-level
+     * labels detected in video content and is made available only when the client
+     * sets `LabelDetectionConfig.model` to "builtin/latest" in the request.
      * 
* * - * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_presence_label_annotations = 24; * */ - public Builder setShotLabelAnnotations( + public Builder setShotPresenceLabelAnnotations( int index, com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder builderForValue) { - if (shotLabelAnnotationsBuilder_ == null) { - ensureShotLabelAnnotationsIsMutable(); - shotLabelAnnotations_.set(index, builderForValue.build()); + if (shotPresenceLabelAnnotationsBuilder_ == null) { + ensureShotPresenceLabelAnnotationsIsMutable(); + shotPresenceLabelAnnotations_.set(index, builderForValue.build()); onChanged(); } else { - shotLabelAnnotationsBuilder_.setMessage(index, builderForValue.build()); + shotPresenceLabelAnnotationsBuilder_.setMessage(index, builderForValue.build()); } return this; } @@ -2560,25 +4228,28 @@ public Builder setShotLabelAnnotations( * * *
-     * Label annotations on shot level.
-     * There is exactly one element for each unique label.
+     * Presence label annotations on shot level. There is exactly one element for
+     * each unique label. Compared to the existing topical
+     * `shot_label_annotations`, this field presents more fine-grained, shot-level
+     * labels detected in video content and is made available only when the client
+     * sets `LabelDetectionConfig.model` to "builtin/latest" in the request.
      * 
* * - * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_presence_label_annotations = 24; * */ - public Builder addShotLabelAnnotations( + public Builder addShotPresenceLabelAnnotations( com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation value) { - if (shotLabelAnnotationsBuilder_ == null) { + if (shotPresenceLabelAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureShotLabelAnnotationsIsMutable(); - shotLabelAnnotations_.add(value); + ensureShotPresenceLabelAnnotationsIsMutable(); + shotPresenceLabelAnnotations_.add(value); onChanged(); } else { - shotLabelAnnotationsBuilder_.addMessage(value); + shotPresenceLabelAnnotationsBuilder_.addMessage(value); } return this; } @@ -2586,25 +4257,28 @@ public Builder addShotLabelAnnotations( * * *
-     * Label annotations on shot level.
-     * There is exactly one element for each unique label.
+     * Presence label annotations on shot level. There is exactly one element for
+     * each unique label. Compared to the existing topical
+     * `shot_label_annotations`, this field presents more fine-grained, shot-level
+     * labels detected in video content and is made available only when the client
+     * sets `LabelDetectionConfig.model` to "builtin/latest" in the request.
      * 
* * - * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_presence_label_annotations = 24; * */ - public Builder addShotLabelAnnotations( + public Builder addShotPresenceLabelAnnotations( int index, com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation value) { - if (shotLabelAnnotationsBuilder_ == null) { + if (shotPresenceLabelAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureShotLabelAnnotationsIsMutable(); - shotLabelAnnotations_.add(index, value); + ensureShotPresenceLabelAnnotationsIsMutable(); + shotPresenceLabelAnnotations_.add(index, value); onChanged(); } else { - shotLabelAnnotationsBuilder_.addMessage(index, value); + shotPresenceLabelAnnotationsBuilder_.addMessage(index, value); } return this; } @@ -2612,22 +4286,25 @@ public Builder addShotLabelAnnotations( * * *
-     * Label annotations on shot level.
-     * There is exactly one element for each unique label.
+     * Presence label annotations on shot level. There is exactly one element for
+     * each unique label. Compared to the existing topical
+     * `shot_label_annotations`, this field presents more fine-grained, shot-level
+     * labels detected in video content and is made available only when the client
+     * sets `LabelDetectionConfig.model` to "builtin/latest" in the request.
      * 
* * - * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_presence_label_annotations = 24; * */ - public Builder addShotLabelAnnotations( + public Builder addShotPresenceLabelAnnotations( com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder builderForValue) { - if (shotLabelAnnotationsBuilder_ == null) { - ensureShotLabelAnnotationsIsMutable(); - shotLabelAnnotations_.add(builderForValue.build()); + if (shotPresenceLabelAnnotationsBuilder_ == null) { + ensureShotPresenceLabelAnnotationsIsMutable(); + shotPresenceLabelAnnotations_.add(builderForValue.build()); onChanged(); } else { - shotLabelAnnotationsBuilder_.addMessage(builderForValue.build()); + shotPresenceLabelAnnotationsBuilder_.addMessage(builderForValue.build()); } return this; } @@ -2635,23 +4312,26 @@ public Builder addShotLabelAnnotations( * * *
-     * Label annotations on shot level.
-     * There is exactly one element for each unique label.
+     * Presence label annotations on shot level. There is exactly one element for
+     * each unique label. Compared to the existing topical
+     * `shot_label_annotations`, this field presents more fine-grained, shot-level
+     * labels detected in video content and is made available only when the client
+     * sets `LabelDetectionConfig.model` to "builtin/latest" in the request.
      * 
* * - * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_presence_label_annotations = 24; * */ - public Builder addShotLabelAnnotations( + public Builder addShotPresenceLabelAnnotations( int index, com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder builderForValue) { - if (shotLabelAnnotationsBuilder_ == null) { - ensureShotLabelAnnotationsIsMutable(); - shotLabelAnnotations_.add(index, builderForValue.build()); + if (shotPresenceLabelAnnotationsBuilder_ == null) { + ensureShotPresenceLabelAnnotationsIsMutable(); + shotPresenceLabelAnnotations_.add(index, builderForValue.build()); onChanged(); } else { - shotLabelAnnotationsBuilder_.addMessage(index, builderForValue.build()); + shotPresenceLabelAnnotationsBuilder_.addMessage(index, builderForValue.build()); } return this; } @@ -2659,23 +4339,27 @@ public Builder addShotLabelAnnotations( * * *
-     * Label annotations on shot level.
-     * There is exactly one element for each unique label.
+     * Presence label annotations on shot level. There is exactly one element for
+     * each unique label. Compared to the existing topical
+     * `shot_label_annotations`, this field presents more fine-grained, shot-level
+     * labels detected in video content and is made available only when the client
+     * sets `LabelDetectionConfig.model` to "builtin/latest" in the request.
      * 
* * - * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_presence_label_annotations = 24; * */ - public Builder addAllShotLabelAnnotations( + public Builder addAllShotPresenceLabelAnnotations( java.lang.Iterable values) { - if (shotLabelAnnotationsBuilder_ == null) { - ensureShotLabelAnnotationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, shotLabelAnnotations_); + if (shotPresenceLabelAnnotationsBuilder_ == null) { + ensureShotPresenceLabelAnnotationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, shotPresenceLabelAnnotations_); onChanged(); } else { - shotLabelAnnotationsBuilder_.addAllMessages(values); + shotPresenceLabelAnnotationsBuilder_.addAllMessages(values); } return this; } @@ -2683,21 +4367,24 @@ public Builder addAllShotLabelAnnotations( * * *
-     * Label annotations on shot level.
-     * There is exactly one element for each unique label.
+     * Presence label annotations on shot level. There is exactly one element for
+     * each unique label. Compared to the existing topical
+     * `shot_label_annotations`, this field presents more fine-grained, shot-level
+     * labels detected in video content and is made available only when the client
+     * sets `LabelDetectionConfig.model` to "builtin/latest" in the request.
      * 
* * - * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_presence_label_annotations = 24; * */ - public Builder clearShotLabelAnnotations() { - if (shotLabelAnnotationsBuilder_ == null) { - shotLabelAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + public Builder clearShotPresenceLabelAnnotations() { + if (shotPresenceLabelAnnotationsBuilder_ == null) { + shotPresenceLabelAnnotations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { - shotLabelAnnotationsBuilder_.clear(); + shotPresenceLabelAnnotationsBuilder_.clear(); } return this; } @@ -2705,21 +4392,24 @@ public Builder clearShotLabelAnnotations() { * * *
-     * Label annotations on shot level.
-     * There is exactly one element for each unique label.
+     * Presence label annotations on shot level. There is exactly one element for
+     * each unique label. Compared to the existing topical
+     * `shot_label_annotations`, this field presents more fine-grained, shot-level
+     * labels detected in video content and is made available only when the client
+     * sets `LabelDetectionConfig.model` to "builtin/latest" in the request.
      * 
* * - * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_presence_label_annotations = 24; * */ - public Builder removeShotLabelAnnotations(int index) { - if (shotLabelAnnotationsBuilder_ == null) { - ensureShotLabelAnnotationsIsMutable(); - shotLabelAnnotations_.remove(index); + public Builder removeShotPresenceLabelAnnotations(int index) { + if (shotPresenceLabelAnnotationsBuilder_ == null) { + ensureShotPresenceLabelAnnotationsIsMutable(); + shotPresenceLabelAnnotations_.remove(index); onChanged(); } else { - shotLabelAnnotationsBuilder_.remove(index); + shotPresenceLabelAnnotationsBuilder_.remove(index); } return this; } @@ -2727,74 +4417,86 @@ public Builder removeShotLabelAnnotations(int index) { * * *
-     * Label annotations on shot level.
-     * There is exactly one element for each unique label.
+     * Presence label annotations on shot level. There is exactly one element for
+     * each unique label. Compared to the existing topical
+     * `shot_label_annotations`, this field presents more fine-grained, shot-level
+     * labels detected in video content and is made available only when the client
+     * sets `LabelDetectionConfig.model` to "builtin/latest" in the request.
      * 
* * - * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_presence_label_annotations = 24; * */ public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder - getShotLabelAnnotationsBuilder(int index) { - return getShotLabelAnnotationsFieldBuilder().getBuilder(index); + getShotPresenceLabelAnnotationsBuilder(int index) { + return getShotPresenceLabelAnnotationsFieldBuilder().getBuilder(index); } /** * * *
-     * Label annotations on shot level.
-     * There is exactly one element for each unique label.
+     * Presence label annotations on shot level. There is exactly one element for
+     * each unique label. Compared to the existing topical
+     * `shot_label_annotations`, this field presents more fine-grained, shot-level
+     * labels detected in video content and is made available only when the client
+     * sets `LabelDetectionConfig.model` to "builtin/latest" in the request.
      * 
* * - * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_presence_label_annotations = 24; * */ public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder - getShotLabelAnnotationsOrBuilder(int index) { - if (shotLabelAnnotationsBuilder_ == null) { - return shotLabelAnnotations_.get(index); + getShotPresenceLabelAnnotationsOrBuilder(int index) { + if (shotPresenceLabelAnnotationsBuilder_ == null) { + return shotPresenceLabelAnnotations_.get(index); } else { - return shotLabelAnnotationsBuilder_.getMessageOrBuilder(index); + return shotPresenceLabelAnnotationsBuilder_.getMessageOrBuilder(index); } } /** * * *
-     * Label annotations on shot level.
-     * There is exactly one element for each unique label.
+     * Presence label annotations on shot level. There is exactly one element for
+     * each unique label. Compared to the existing topical
+     * `shot_label_annotations`, this field presents more fine-grained, shot-level
+     * labels detected in video content and is made available only when the client
+     * sets `LabelDetectionConfig.model` to "builtin/latest" in the request.
      * 
* * - * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_presence_label_annotations = 24; * */ public java.util.List< ? extends com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder> - getShotLabelAnnotationsOrBuilderList() { - if (shotLabelAnnotationsBuilder_ != null) { - return shotLabelAnnotationsBuilder_.getMessageOrBuilderList(); + getShotPresenceLabelAnnotationsOrBuilderList() { + if (shotPresenceLabelAnnotationsBuilder_ != null) { + return shotPresenceLabelAnnotationsBuilder_.getMessageOrBuilderList(); } else { - return java.util.Collections.unmodifiableList(shotLabelAnnotations_); + return java.util.Collections.unmodifiableList(shotPresenceLabelAnnotations_); } } /** * * *
-     * Label annotations on shot level.
-     * There is exactly one element for each unique label.
+     * Presence label annotations on shot level. There is exactly one element for
+     * each unique label. Compared to the existing topical
+     * `shot_label_annotations`, this field presents more fine-grained, shot-level
+     * labels detected in video content and is made available only when the client
+     * sets `LabelDetectionConfig.model` to "builtin/latest" in the request.
      * 
* * - * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_presence_label_annotations = 24; * */ public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder - addShotLabelAnnotationsBuilder() { - return getShotLabelAnnotationsFieldBuilder() + addShotPresenceLabelAnnotationsBuilder() { + return getShotPresenceLabelAnnotationsFieldBuilder() .addBuilder( com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.getDefaultInstance()); } @@ -2802,17 +4504,20 @@ public Builder removeShotLabelAnnotations(int index) { * * *
-     * Label annotations on shot level.
-     * There is exactly one element for each unique label.
+     * Presence label annotations on shot level. There is exactly one element for
+     * each unique label. Compared to the existing topical
+     * `shot_label_annotations`, this field presents more fine-grained, shot-level
+     * labels detected in video content and is made available only when the client
+     * sets `LabelDetectionConfig.model` to "builtin/latest" in the request.
      * 
* * - * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_presence_label_annotations = 24; * */ public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder - addShotLabelAnnotationsBuilder(int index) { - return getShotLabelAnnotationsFieldBuilder() + addShotPresenceLabelAnnotationsBuilder(int index) { + return getShotPresenceLabelAnnotationsFieldBuilder() .addBuilder( index, com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.getDefaultInstance()); @@ -2821,48 +4526,51 @@ public Builder removeShotLabelAnnotations(int index) { * * *
-     * Label annotations on shot level.
-     * There is exactly one element for each unique label.
+     * Presence label annotations on shot level. There is exactly one element for
+     * each unique label. Compared to the existing topical
+     * `shot_label_annotations`, this field presents more fine-grained, shot-level
+     * labels detected in video content and is made available only when the client
+     * sets `LabelDetectionConfig.model` to "builtin/latest" in the request.
      * 
* * - * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_label_annotations = 3; + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_presence_label_annotations = 24; * */ public java.util.List - getShotLabelAnnotationsBuilderList() { - return getShotLabelAnnotationsFieldBuilder().getBuilderList(); + getShotPresenceLabelAnnotationsBuilderList() { + return getShotPresenceLabelAnnotationsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation, com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder, com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder> - getShotLabelAnnotationsFieldBuilder() { - if (shotLabelAnnotationsBuilder_ == null) { - shotLabelAnnotationsBuilder_ = + getShotPresenceLabelAnnotationsFieldBuilder() { + if (shotPresenceLabelAnnotationsBuilder_ == null) { + shotPresenceLabelAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation, com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder, com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder>( - shotLabelAnnotations_, - ((bitField0_ & 0x00000004) != 0), + shotPresenceLabelAnnotations_, + ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); - shotLabelAnnotations_ = null; + shotPresenceLabelAnnotations_ = null; } - return shotLabelAnnotationsBuilder_; + return shotPresenceLabelAnnotationsBuilder_; } private java.util.List frameLabelAnnotations_ = java.util.Collections.emptyList(); private void ensureFrameLabelAnnotationsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { + if (!((bitField0_ & 0x00000040) != 0)) { frameLabelAnnotations_ = new java.util.ArrayList( frameLabelAnnotations_); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000040; } } @@ -3119,7 +4827,7 @@ public Builder addAllFrameLabelAnnotations( public Builder clearFrameLabelAnnotations() { if (frameLabelAnnotationsBuilder_ == null) { frameLabelAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { frameLabelAnnotationsBuilder_.clear(); @@ -3271,7 +4979,7 @@ public Builder removeFrameLabelAnnotations(int index) { com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder, com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder>( frameLabelAnnotations_, - ((bitField0_ & 0x00000008) != 0), + ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); frameLabelAnnotations_ = null; @@ -3283,11 +4991,11 @@ public Builder removeFrameLabelAnnotations(int index) { shotAnnotations_ = java.util.Collections.emptyList(); private void ensureShotAnnotationsIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { + if (!((bitField0_ & 0x00000080) != 0)) { shotAnnotations_ = new java.util.ArrayList( shotAnnotations_); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000080; } } @@ -3521,7 +5229,7 @@ public Builder addAllShotAnnotations( public Builder clearShotAnnotations() { if (shotAnnotationsBuilder_ == null) { shotAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { shotAnnotationsBuilder_.clear(); @@ -3659,7 +5367,7 @@ public Builder removeShotAnnotations(int index) { com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder, com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder>( shotAnnotations_, - ((bitField0_ & 0x00000010) != 0), + ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); shotAnnotations_ = null; @@ -3881,12 +5589,12 @@ public Builder clearExplicitAnnotation() { speechTranscriptions_ = java.util.Collections.emptyList(); private void ensureSpeechTranscriptionsIsMutable() { - if (!((bitField0_ & 0x00000040) != 0)) { + if (!((bitField0_ & 0x00000200) != 0)) { speechTranscriptions_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p3beta1.SpeechTranscription>( speechTranscriptions_); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000200; } } @@ -4133,7 +5841,7 @@ public Builder addAllSpeechTranscriptions( public Builder clearSpeechTranscriptions() { if (speechTranscriptionsBuilder_ == null) { speechTranscriptions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); } else { speechTranscriptionsBuilder_.clear(); @@ -4280,7 +5988,7 @@ public Builder removeSpeechTranscriptions(int index) { com.google.cloud.videointelligence.v1p3beta1.SpeechTranscription.Builder, com.google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionOrBuilder>( speechTranscriptions_, - ((bitField0_ & 0x00000040) != 0), + ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean()); speechTranscriptions_ = null; @@ -4292,11 +6000,11 @@ public Builder removeSpeechTranscriptions(int index) { textAnnotations_ = java.util.Collections.emptyList(); private void ensureTextAnnotationsIsMutable() { - if (!((bitField0_ & 0x00000080) != 0)) { + if (!((bitField0_ & 0x00000400) != 0)) { textAnnotations_ = new java.util.ArrayList( textAnnotations_); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000400; } } @@ -4564,7 +6272,7 @@ public Builder addAllTextAnnotations( public Builder clearTextAnnotations() { if (textAnnotationsBuilder_ == null) { textAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); } else { textAnnotationsBuilder_.clear(); @@ -4723,7 +6431,7 @@ public Builder removeTextAnnotations(int index) { com.google.cloud.videointelligence.v1p3beta1.TextAnnotation.Builder, com.google.cloud.videointelligence.v1p3beta1.TextAnnotationOrBuilder>( textAnnotations_, - ((bitField0_ & 0x00000080) != 0), + ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean()); textAnnotations_ = null; @@ -4735,12 +6443,12 @@ public Builder removeTextAnnotations(int index) { objectAnnotations_ = java.util.Collections.emptyList(); private void ensureObjectAnnotationsIsMutable() { - if (!((bitField0_ & 0x00000100) != 0)) { + if (!((bitField0_ & 0x00000800) != 0)) { objectAnnotations_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation>( objectAnnotations_); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000800; } } @@ -4990,7 +6698,7 @@ public Builder addAllObjectAnnotations( public Builder clearObjectAnnotations() { if (objectAnnotationsBuilder_ == null) { objectAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); } else { objectAnnotationsBuilder_.clear(); @@ -5139,7 +6847,7 @@ public Builder removeObjectAnnotations(int index) { com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation.Builder, com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotationOrBuilder>( objectAnnotations_, - ((bitField0_ & 0x00000100) != 0), + ((bitField0_ & 0x00000800) != 0), getParentForChildren(), isClean()); objectAnnotations_ = null; @@ -5151,12 +6859,12 @@ public Builder removeObjectAnnotations(int index) { logoRecognitionAnnotations_ = java.util.Collections.emptyList(); private void ensureLogoRecognitionAnnotationsIsMutable() { - if (!((bitField0_ & 0x00000200) != 0)) { + if (!((bitField0_ & 0x00001000) != 0)) { logoRecognitionAnnotations_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p3beta1.LogoRecognitionAnnotation>( logoRecognitionAnnotations_); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00001000; } } @@ -5406,7 +7114,7 @@ public Builder addAllLogoRecognitionAnnotations( public Builder clearLogoRecognitionAnnotations() { if (logoRecognitionAnnotationsBuilder_ == null) { logoRecognitionAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); } else { logoRecognitionAnnotationsBuilder_.clear(); @@ -5555,7 +7263,7 @@ public Builder removeLogoRecognitionAnnotations(int index) { com.google.cloud.videointelligence.v1p3beta1.LogoRecognitionAnnotation.Builder, com.google.cloud.videointelligence.v1p3beta1.LogoRecognitionAnnotationOrBuilder>( logoRecognitionAnnotations_, - ((bitField0_ & 0x00000200) != 0), + ((bitField0_ & 0x00001000) != 0), getParentForChildren(), isClean()); logoRecognitionAnnotations_ = null; @@ -5563,6 +7271,218 @@ public Builder removeLogoRecognitionAnnotations(int index) { return logoRecognitionAnnotationsBuilder_; } + private com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation + celebrityRecognitionAnnotations_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation, + com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation.Builder, + com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotationOrBuilder> + celebrityRecognitionAnnotationsBuilder_; + /** + * + * + *
+     * Celebrity recognition annotations.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation celebrity_recognition_annotations = 21; + * + */ + public boolean hasCelebrityRecognitionAnnotations() { + return celebrityRecognitionAnnotationsBuilder_ != null + || celebrityRecognitionAnnotations_ != null; + } + /** + * + * + *
+     * Celebrity recognition annotations.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation celebrity_recognition_annotations = 21; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation + getCelebrityRecognitionAnnotations() { + if (celebrityRecognitionAnnotationsBuilder_ == null) { + return celebrityRecognitionAnnotations_ == null + ? com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation + .getDefaultInstance() + : celebrityRecognitionAnnotations_; + } else { + return celebrityRecognitionAnnotationsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Celebrity recognition annotations.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation celebrity_recognition_annotations = 21; + * + */ + public Builder setCelebrityRecognitionAnnotations( + com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation value) { + if (celebrityRecognitionAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + celebrityRecognitionAnnotations_ = value; + onChanged(); + } else { + celebrityRecognitionAnnotationsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Celebrity recognition annotations.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation celebrity_recognition_annotations = 21; + * + */ + public Builder setCelebrityRecognitionAnnotations( + com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation.Builder + builderForValue) { + if (celebrityRecognitionAnnotationsBuilder_ == null) { + celebrityRecognitionAnnotations_ = builderForValue.build(); + onChanged(); + } else { + celebrityRecognitionAnnotationsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Celebrity recognition annotations.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation celebrity_recognition_annotations = 21; + * + */ + public Builder mergeCelebrityRecognitionAnnotations( + com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation value) { + if (celebrityRecognitionAnnotationsBuilder_ == null) { + if (celebrityRecognitionAnnotations_ != null) { + celebrityRecognitionAnnotations_ = + com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation + .newBuilder(celebrityRecognitionAnnotations_) + .mergeFrom(value) + .buildPartial(); + } else { + celebrityRecognitionAnnotations_ = value; + } + onChanged(); + } else { + celebrityRecognitionAnnotationsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Celebrity recognition annotations.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation celebrity_recognition_annotations = 21; + * + */ + public Builder clearCelebrityRecognitionAnnotations() { + if (celebrityRecognitionAnnotationsBuilder_ == null) { + celebrityRecognitionAnnotations_ = null; + onChanged(); + } else { + celebrityRecognitionAnnotations_ = null; + celebrityRecognitionAnnotationsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Celebrity recognition annotations.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation celebrity_recognition_annotations = 21; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation.Builder + getCelebrityRecognitionAnnotationsBuilder() { + + onChanged(); + return getCelebrityRecognitionAnnotationsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Celebrity recognition annotations.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation celebrity_recognition_annotations = 21; + * + */ + public com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotationOrBuilder + getCelebrityRecognitionAnnotationsOrBuilder() { + if (celebrityRecognitionAnnotationsBuilder_ != null) { + return celebrityRecognitionAnnotationsBuilder_.getMessageOrBuilder(); + } else { + return celebrityRecognitionAnnotations_ == null + ? com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation + .getDefaultInstance() + : celebrityRecognitionAnnotations_; + } + } + /** + * + * + *
+     * Celebrity recognition annotations.
+     * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation celebrity_recognition_annotations = 21; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation, + com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation.Builder, + com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotationOrBuilder> + getCelebrityRecognitionAnnotationsFieldBuilder() { + if (celebrityRecognitionAnnotationsBuilder_ == null) { + celebrityRecognitionAnnotationsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation, + com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation.Builder, + com.google.cloud.videointelligence.v1p3beta1 + .CelebrityRecognitionAnnotationOrBuilder>( + getCelebrityRecognitionAnnotations(), getParentForChildren(), isClean()); + celebrityRecognitionAnnotations_ = null; + } + return celebrityRecognitionAnnotationsBuilder_; + } + private com.google.rpc.Status error_; private com.google.protobuf.SingleFieldBuilderV3< com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoAnnotationResultsOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoAnnotationResultsOrBuilder.java index fad4a310a..c192c6fc7 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoAnnotationResultsOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoAnnotationResultsOrBuilder.java @@ -50,7 +50,38 @@ public interface VideoAnnotationResultsOrBuilder * * *
-   * Label annotations on video level or user specified segment level.
+   * Video segment on which the annotation is run.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 10; + */ + boolean hasSegment(); + /** + * + * + *
+   * Video segment on which the annotation is run.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 10; + */ + com.google.cloud.videointelligence.v1p3beta1.VideoSegment getSegment(); + /** + * + * + *
+   * Video segment on which the annotation is run.
+   * 
+ * + * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 10; + */ + com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder getSegmentOrBuilder(); + + /** + * + * + *
+   * Topical label annotations on video level or user specified segment level.
    * There is exactly one element for each unique label.
    * 
* @@ -64,7 +95,7 @@ public interface VideoAnnotationResultsOrBuilder * * *
-   * Label annotations on video level or user specified segment level.
+   * Topical label annotations on video level or user specified segment level.
    * There is exactly one element for each unique label.
    * 
* @@ -78,7 +109,7 @@ com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation getSegmentLabelAnno * * *
-   * Label annotations on video level or user specified segment level.
+   * Topical label annotations on video level or user specified segment level.
    * There is exactly one element for each unique label.
    * 
* @@ -91,7 +122,7 @@ com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation getSegmentLabelAnno * * *
-   * Label annotations on video level or user specified segment level.
+   * Topical label annotations on video level or user specified segment level.
    * There is exactly one element for each unique label.
    * 
* @@ -105,7 +136,7 @@ com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation getSegmentLabelAnno * * *
-   * Label annotations on video level or user specified segment level.
+   * Topical label annotations on video level or user specified segment level.
    * There is exactly one element for each unique label.
    * 
* @@ -120,7 +151,97 @@ com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation getSegmentLabelAnno * * *
-   * Label annotations on shot level.
+   * Presence label annotations on video level or user specified segment level.
+   * There is exactly one element for each unique label. Compared to the
+   * existing topical `segment_label_annotations`, this field presents more
+   * fine-grained, segment-level labels detected in video content and is made
+   * available only when the client sets `LabelDetectionConfig.model` to
+   * "builtin/latest" in the request.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_presence_label_annotations = 23; + * + */ + java.util.List + getSegmentPresenceLabelAnnotationsList(); + /** + * + * + *
+   * Presence label annotations on video level or user specified segment level.
+   * There is exactly one element for each unique label. Compared to the
+   * existing topical `segment_label_annotations`, this field presents more
+   * fine-grained, segment-level labels detected in video content and is made
+   * available only when the client sets `LabelDetectionConfig.model` to
+   * "builtin/latest" in the request.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_presence_label_annotations = 23; + * + */ + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation getSegmentPresenceLabelAnnotations( + int index); + /** + * + * + *
+   * Presence label annotations on video level or user specified segment level.
+   * There is exactly one element for each unique label. Compared to the
+   * existing topical `segment_label_annotations`, this field presents more
+   * fine-grained, segment-level labels detected in video content and is made
+   * available only when the client sets `LabelDetectionConfig.model` to
+   * "builtin/latest" in the request.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_presence_label_annotations = 23; + * + */ + int getSegmentPresenceLabelAnnotationsCount(); + /** + * + * + *
+   * Presence label annotations on video level or user specified segment level.
+   * There is exactly one element for each unique label. Compared to the
+   * existing topical `segment_label_annotations`, this field presents more
+   * fine-grained, segment-level labels detected in video content and is made
+   * available only when the client sets `LabelDetectionConfig.model` to
+   * "builtin/latest" in the request.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_presence_label_annotations = 23; + * + */ + java.util.List + getSegmentPresenceLabelAnnotationsOrBuilderList(); + /** + * + * + *
+   * Presence label annotations on video level or user specified segment level.
+   * There is exactly one element for each unique label. Compared to the
+   * existing topical `segment_label_annotations`, this field presents more
+   * fine-grained, segment-level labels detected in video content and is made
+   * available only when the client sets `LabelDetectionConfig.model` to
+   * "builtin/latest" in the request.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation segment_presence_label_annotations = 23; + * + */ + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder + getSegmentPresenceLabelAnnotationsOrBuilder(int index); + + /** + * + * + *
+   * Topical label annotations on shot level.
    * There is exactly one element for each unique label.
    * 
* @@ -134,7 +255,7 @@ com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation getSegmentLabelAnno * * *
-   * Label annotations on shot level.
+   * Topical label annotations on shot level.
    * There is exactly one element for each unique label.
    * 
* @@ -147,7 +268,7 @@ com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation getSegmentLabelAnno * * *
-   * Label annotations on shot level.
+   * Topical label annotations on shot level.
    * There is exactly one element for each unique label.
    * 
* @@ -160,7 +281,7 @@ com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation getSegmentLabelAnno * * *
-   * Label annotations on shot level.
+   * Topical label annotations on shot level.
    * There is exactly one element for each unique label.
    * 
* @@ -174,7 +295,7 @@ com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation getSegmentLabelAnno * * *
-   * Label annotations on shot level.
+   * Topical label annotations on shot level.
    * There is exactly one element for each unique label.
    * 
* @@ -185,6 +306,91 @@ com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation getSegmentLabelAnno com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder getShotLabelAnnotationsOrBuilder(int index); + /** + * + * + *
+   * Presence label annotations on shot level. There is exactly one element for
+   * each unique label. Compared to the existing topical
+   * `shot_label_annotations`, this field presents more fine-grained, shot-level
+   * labels detected in video content and is made available only when the client
+   * sets `LabelDetectionConfig.model` to "builtin/latest" in the request.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_presence_label_annotations = 24; + * + */ + java.util.List + getShotPresenceLabelAnnotationsList(); + /** + * + * + *
+   * Presence label annotations on shot level. There is exactly one element for
+   * each unique label. Compared to the existing topical
+   * `shot_label_annotations`, this field presents more fine-grained, shot-level
+   * labels detected in video content and is made available only when the client
+   * sets `LabelDetectionConfig.model` to "builtin/latest" in the request.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_presence_label_annotations = 24; + * + */ + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation getShotPresenceLabelAnnotations( + int index); + /** + * + * + *
+   * Presence label annotations on shot level. There is exactly one element for
+   * each unique label. Compared to the existing topical
+   * `shot_label_annotations`, this field presents more fine-grained, shot-level
+   * labels detected in video content and is made available only when the client
+   * sets `LabelDetectionConfig.model` to "builtin/latest" in the request.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_presence_label_annotations = 24; + * + */ + int getShotPresenceLabelAnnotationsCount(); + /** + * + * + *
+   * Presence label annotations on shot level. There is exactly one element for
+   * each unique label. Compared to the existing topical
+   * `shot_label_annotations`, this field presents more fine-grained, shot-level
+   * labels detected in video content and is made available only when the client
+   * sets `LabelDetectionConfig.model` to "builtin/latest" in the request.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_presence_label_annotations = 24; + * + */ + java.util.List + getShotPresenceLabelAnnotationsOrBuilderList(); + /** + * + * + *
+   * Presence label annotations on shot level. There is exactly one element for
+   * each unique label. Compared to the existing topical
+   * `shot_label_annotations`, this field presents more fine-grained, shot-level
+   * labels detected in video content and is made available only when the client
+   * sets `LabelDetectionConfig.model` to "builtin/latest" in the request.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation shot_presence_label_annotations = 24; + * + */ + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder + getShotPresenceLabelAnnotationsOrBuilder(int index); + /** * * @@ -618,6 +824,45 @@ com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation getObjectA com.google.cloud.videointelligence.v1p3beta1.LogoRecognitionAnnotationOrBuilder getLogoRecognitionAnnotationsOrBuilder(int index); + /** + * + * + *
+   * Celebrity recognition annotations.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation celebrity_recognition_annotations = 21; + * + */ + boolean hasCelebrityRecognitionAnnotations(); + /** + * + * + *
+   * Celebrity recognition annotations.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation celebrity_recognition_annotations = 21; + * + */ + com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation + getCelebrityRecognitionAnnotations(); + /** + * + * + *
+   * Celebrity recognition annotations.
+   * 
+ * + * + * .google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation celebrity_recognition_annotations = 21; + * + */ + com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotationOrBuilder + getCelebrityRecognitionAnnotationsOrBuilder(); + /** * * diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoIntelligenceServiceProto.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoIntelligenceServiceProto.java index 466f630f9..4dd0a0ec8 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoIntelligenceServiceProto.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoIntelligenceServiceProto.java @@ -99,6 +99,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_videointelligence_v1p3beta1_DetectedAttribute_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_videointelligence_v1p3beta1_DetectedAttribute_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p3beta1_Celebrity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p3beta1_Celebrity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p3beta1_CelebrityTrack_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p3beta1_CelebrityTrack_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p3beta1_CelebrityTrack_RecognizedCelebrity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p3beta1_CelebrityTrack_RecognizedCelebrity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_videointelligence_v1p3beta1_CelebrityRecognitionAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_videointelligence_v1p3beta1_CelebrityRecognitionAnnotation_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_videointelligence_v1p3beta1_VideoAnnotationResults_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -223,260 +239,295 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\nAgoogle/cloud/videointelligence/v1p3bet" + "a1/video_intelligence.proto\022(google.clou" + "d.videointelligence.v1p3beta1\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.v1p3beta1.Featu" - + "re\022M\n\rvideo_context\030\003 \001(\01326.google.cloud" - + ".videointelligence.v1p3beta1.VideoContex" - + "t\022\022\n\noutput_uri\030\004 \001(\t\022\023\n\013location_id\030\005 \001" - + "(\t\"\300\005\n\014VideoContext\022H\n\010segments\030\001 \003(\01326." + + "i/annotations.proto\032\027google/api/client.p" + + "roto\032\037google/api/field_behavior.proto\032#g" + + "oogle/longrunning/operations.proto\032\036goog" + + "le/protobuf/duration.proto\032\037google/proto" + + "buf/timestamp.proto\032\027google/rpc/status.p" + + "roto\"\214\002\n\024AnnotateVideoRequest\022\021\n\tinput_u" + + "ri\030\001 \001(\t\022\025\n\rinput_content\030\006 \001(\014\022H\n\010featu" + + "res\030\002 \003(\01621.google.cloud.videointelligen" + + "ce.v1p3beta1.FeatureB\003\340A\002\022M\n\rvideo_conte" + + "xt\030\003 \001(\01326.google.cloud.videointelligenc" + + "e.v1p3beta1.VideoContext\022\027\n\noutput_uri\030\004" + + " \001(\tB\003\340A\001\022\030\n\013location_id\030\005 \001(\tB\003\340A\001\"\300\005\n\014" + + "VideoContext\022H\n\010segments\030\001 \003(\01326.google." + + "cloud.videointelligence.v1p3beta1.VideoS" + + "egment\022^\n\026label_detection_config\030\002 \001(\0132>" + + ".google.cloud.videointelligence.v1p3beta" + + "1.LabelDetectionConfig\022i\n\034shot_change_de" + + "tection_config\030\003 \001(\0132C.google.cloud.vide" + + "ointelligence.v1p3beta1.ShotChangeDetect" + + "ionConfig\022s\n!explicit_content_detection_" + + "config\030\004 \001(\0132H.google.cloud.videointelli" + + "gence.v1p3beta1.ExplicitContentDetection" + + "Config\022h\n\033speech_transcription_config\030\006 " + + "\001(\0132C.google.cloud.videointelligence.v1p" + + "3beta1.SpeechTranscriptionConfig\022\\\n\025text" + + "_detection_config\030\010 \001(\0132=.google.cloud.v" + + "ideointelligence.v1p3beta1.TextDetection" + + "Config\022^\n\026object_tracking_config\030\r \001(\0132>" + + ".google.cloud.videointelligence.v1p3beta" + + "1.ObjectTrackingConfig\"\344\001\n\024LabelDetectio" + + "nConfig\022Z\n\024label_detection_mode\030\001 \001(\0162<." + "google.cloud.videointelligence.v1p3beta1" - + ".VideoSegment\022^\n\026label_detection_config\030" - + "\002 \001(\0132>.google.cloud.videointelligence.v" - + "1p3beta1.LabelDetectionConfig\022i\n\034shot_ch" - + "ange_detection_config\030\003 \001(\0132C.google.clo" - + "ud.videointelligence.v1p3beta1.ShotChang" - + "eDetectionConfig\022s\n!explicit_content_det" - + "ection_config\030\004 \001(\0132H.google.cloud.video" - + "intelligence.v1p3beta1.ExplicitContentDe" - + "tectionConfig\022h\n\033speech_transcription_co" - + "nfig\030\006 \001(\0132C.google.cloud.videointellige" - + "nce.v1p3beta1.SpeechTranscriptionConfig\022" - + "\\\n\025text_detection_config\030\010 \001(\0132=.google." - + "cloud.videointelligence.v1p3beta1.TextDe" - + "tectionConfig\022^\n\026object_tracking_config\030" - + "\r \001(\0132>.google.cloud.videointelligence.v" - + "1p3beta1.ObjectTrackingConfig\"\344\001\n\024LabelD" - + "etectionConfig\022Z\n\024label_detection_mode\030\001" - + " \001(\0162<.google.cloud.videointelligence.v1" - + "p3beta1.LabelDetectionMode\022\031\n\021stationary" - + "_camera\030\002 \001(\010\022\r\n\005model\030\003 \001(\t\022\"\n\032frame_co" - + "nfidence_threshold\030\004 \001(\002\022\"\n\032video_confid" - + "ence_threshold\030\005 \001(\002\"*\n\031ShotChangeDetect" - + "ionConfig\022\r\n\005model\030\001 \001(\t\"%\n\024ObjectTracki" - + "ngConfig\022\r\n\005model\030\001 \001(\t\"/\n\036ExplicitConte" - + "ntDetectionConfig\022\r\n\005model\030\001 \001(\t\"<\n\023Text" - + "DetectionConfig\022\026\n\016language_hints\030\001 \003(\t\022" - + "\r\n\005model\030\002 \001(\t\"x\n\014VideoSegment\0224\n\021start_" - + "time_offset\030\001 \001(\0132\031.google.protobuf.Dura" - + "tion\0222\n\017end_time_offset\030\002 \001(\0132\031.google.p" - + "rotobuf.Duration\"k\n\014LabelSegment\022G\n\007segm" - + "ent\030\001 \001(\01326.google.cloud.videointelligen" - + "ce.v1p3beta1.VideoSegment\022\022\n\nconfidence\030" - + "\002 \001(\002\"P\n\nLabelFrame\022.\n\013time_offset\030\001 \001(\013" - + "2\031.google.protobuf.Duration\022\022\n\nconfidenc" - + "e\030\002 \001(\002\"G\n\006Entity\022\021\n\tentity_id\030\001 \001(\t\022\023\n\013" - + "description\030\002 \001(\t\022\025\n\rlanguage_code\030\003 \001(\t" - + "\"\260\002\n\017LabelAnnotation\022@\n\006entity\030\001 \001(\01320.g" - + "oogle.cloud.videointelligence.v1p3beta1." - + "Entity\022K\n\021category_entities\030\002 \003(\01320.goog" - + "le.cloud.videointelligence.v1p3beta1.Ent" - + "ity\022H\n\010segments\030\003 \003(\01326.google.cloud.vid" - + "eointelligence.v1p3beta1.LabelSegment\022D\n" - + "\006frames\030\004 \003(\01324.google.cloud.videointell" - + "igence.v1p3beta1.LabelFrame\"\234\001\n\024Explicit" - + "ContentFrame\022.\n\013time_offset\030\001 \001(\0132\031.goog" - + "le.protobuf.Duration\022T\n\026pornography_like" - + "lihood\030\002 \001(\01624.google.cloud.videointelli" - + "gence.v1p3beta1.Likelihood\"k\n\031ExplicitCo" - + "ntentAnnotation\022N\n\006frames\030\001 \003(\0132>.google" - + ".cloud.videointelligence.v1p3beta1.Expli" - + "citContentFrame\"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\006bottom\030\004 \001(\002\"\366\001\n\021TimestampedObject" - + "\022`\n\027normalized_bounding_box\030\001 \001(\0132?.goog" - + "le.cloud.videointelligence.v1p3beta1.Nor" - + "malizedBoundingBox\022.\n\013time_offset\030\002 \001(\0132" - + "\031.google.protobuf.Duration\022O\n\nattributes" - + "\030\003 \003(\0132;.google.cloud.videointelligence." - + "v1p3beta1.DetectedAttribute\"\217\002\n\005Track\022G\n" - + "\007segment\030\001 \001(\01326.google.cloud.videointel" - + "ligence.v1p3beta1.VideoSegment\022X\n\023timest" - + "amped_objects\030\002 \003(\0132;.google.cloud.video" - + "intelligence.v1p3beta1.TimestampedObject" - + "\022O\n\nattributes\030\003 \003(\0132;.google.cloud.vide" - + "ointelligence.v1p3beta1.DetectedAttribut" - + "e\022\022\n\nconfidence\030\004 \001(\002\"D\n\021DetectedAttribu" - + "te\022\014\n\004name\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\022\r\n\005" - + "value\030\003 \001(\t\"\224\007\n\026VideoAnnotationResults\022\021" - + "\n\tinput_uri\030\001 \001(\t\022\\\n\031segment_label_annot" - + "ations\030\002 \003(\01329.google.cloud.videointelli" - + "gence.v1p3beta1.LabelAnnotation\022Y\n\026shot_" - + "label_annotations\030\003 \003(\01329.google.cloud.v" - + "ideointelligence.v1p3beta1.LabelAnnotati" - + "on\022Z\n\027frame_label_annotations\030\004 \003(\01329.go" - + "ogle.cloud.videointelligence.v1p3beta1.L" - + "abelAnnotation\022P\n\020shot_annotations\030\006 \003(\013" - + "26.google.cloud.videointelligence.v1p3be" - + "ta1.VideoSegment\022`\n\023explicit_annotation\030" - + "\007 \001(\0132C.google.cloud.videointelligence.v" - + "1p3beta1.ExplicitContentAnnotation\022\\\n\025sp" - + "eech_transcriptions\030\013 \003(\0132=.google.cloud" - + ".videointelligence.v1p3beta1.SpeechTrans" - + "cription\022R\n\020text_annotations\030\014 \003(\01328.goo" - + "gle.cloud.videointelligence.v1p3beta1.Te" - + "xtAnnotation\022^\n\022object_annotations\030\016 \003(\013" - + "2B.google.cloud.videointelligence.v1p3be" - + "ta1.ObjectTrackingAnnotation\022i\n\034logo_rec" - + "ognition_annotations\030\023 \003(\0132C.google.clou" - + "d.videointelligence.v1p3beta1.LogoRecogn" - + "itionAnnotation\022!\n\005error\030\t \001(\0132\022.google." - + "rpc.Status\"u\n\025AnnotateVideoResponse\022\\\n\022a" - + "nnotation_results\030\001 \003(\0132@.google.cloud.v" - + "ideointelligence.v1p3beta1.VideoAnnotati" - + "onResults\"\247\001\n\027VideoAnnotationProgress\022\021\n" - + "\tinput_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" - + ".Timestamp\022/\n\013update_time\030\004 \001(\0132\032.google" - + ".protobuf.Timestamp\"w\n\025AnnotateVideoProg" - + "ress\022^\n\023annotation_progress\030\001 \003(\0132A.goog" - + "le.cloud.videointelligence.v1p3beta1.Vid" - + "eoAnnotationProgress\"\333\002\n\031SpeechTranscrip" - + "tionConfig\022\025\n\rlanguage_code\030\001 \001(\t\022\030\n\020max" - + "_alternatives\030\002 \001(\005\022\030\n\020filter_profanity\030" - + "\003 \001(\010\022P\n\017speech_contexts\030\004 \003(\01327.google." - + "cloud.videointelligence.v1p3beta1.Speech" - + "Context\022$\n\034enable_automatic_punctuation\030" - + "\005 \001(\010\022\024\n\014audio_tracks\030\006 \003(\005\022\"\n\032enable_sp" - + "eaker_diarization\030\007 \001(\010\022!\n\031diarization_s" - + "peaker_count\030\010 \001(\005\022\036\n\026enable_word_confid" - + "ence\030\t \001(\010\" \n\rSpeechContext\022\017\n\007phrases\030\001" - + " \003(\t\"\212\001\n\023SpeechTranscription\022\\\n\014alternat" - + "ives\030\001 \003(\0132F.google.cloud.videointellige" - + "nce.v1p3beta1.SpeechRecognitionAlternati" - + "ve\022\025\n\rlanguage_code\030\002 \001(\t\"\211\001\n\034SpeechReco" - + "gnitionAlternative\022\022\n\ntranscript\030\001 \001(\t\022\022" - + "\n\nconfidence\030\002 \001(\002\022A\n\005words\030\003 \003(\01322.goog" - + "le.cloud.videointelligence.v1p3beta1.Wor" - + "dInfo\"\235\001\n\010WordInfo\022-\n\nstart_time\030\001 \001(\0132\031" - + ".google.protobuf.Duration\022+\n\010end_time\030\002 " - + "\001(\0132\031.google.protobuf.Duration\022\014\n\004word\030\003" - + " \001(\t\022\022\n\nconfidence\030\004 \001(\002\022\023\n\013speaker_tag\030" - + "\005 \001(\005\"(\n\020NormalizedVertex\022\t\n\001x\030\001 \001(\002\022\t\n\001" - + "y\030\002 \001(\002\"f\n\026NormalizedBoundingPoly\022L\n\010ver" - + "tices\030\001 \003(\0132:.google.cloud.videointellig" - + "ence.v1p3beta1.NormalizedVertex\"\257\001\n\013Text" - + "Segment\022G\n\007segment\030\001 \001(\01326.google.cloud." - + "videointelligence.v1p3beta1.VideoSegment" - + "\022\022\n\nconfidence\030\002 \001(\002\022C\n\006frames\030\003 \003(\01323.g" - + "oogle.cloud.videointelligence.v1p3beta1." - + "TextFrame\"\233\001\n\tTextFrame\022^\n\024rotated_bound" - + "ing_box\030\001 \001(\0132@.google.cloud.videointell" - + "igence.v1p3beta1.NormalizedBoundingPoly\022" - + ".\n\013time_offset\030\002 \001(\0132\031.google.protobuf.D" - + "uration\"g\n\016TextAnnotation\022\014\n\004text\030\001 \001(\t\022" - + "G\n\010segments\030\002 \003(\01325.google.cloud.videoin" - + "telligence.v1p3beta1.TextSegment\"\247\001\n\023Obj" - + "ectTrackingFrame\022`\n\027normalized_bounding_" - + "box\030\001 \001(\0132?.google.cloud.videointelligen" - + "ce.v1p3beta1.NormalizedBoundingBox\022.\n\013ti" - + "me_offset\030\002 \001(\0132\031.google.protobuf.Durati" - + "on\"\254\002\n\030ObjectTrackingAnnotation\022@\n\006entit" - + "y\030\001 \001(\01320.google.cloud.videointelligence" - + ".v1p3beta1.Entity\022\022\n\nconfidence\030\004 \001(\002\022M\n" - + "\006frames\030\002 \003(\0132=.google.cloud.videointell" - + "igence.v1p3beta1.ObjectTrackingFrame\022I\n\007" - + "segment\030\003 \001(\01326.google.cloud.videointell" - + "igence.v1p3beta1.VideoSegmentH\000\022\022\n\010track" - + "_id\030\005 \001(\003H\000B\014\n\ntrack_info\"\350\001\n\031LogoRecogn" - + "itionAnnotation\022@\n\006entity\030\001 \001(\01320.google" - + ".cloud.videointelligence.v1p3beta1.Entit" - + "y\022?\n\006tracks\030\002 \003(\0132/.google.cloud.videoin" - + "telligence.v1p3beta1.Track\022H\n\010segments\030\003" - + " \003(\01326.google.cloud.videointelligence.v1" - + "p3beta1.VideoSegment\"\245\001\n\035StreamingAnnota" - + "teVideoRequest\022V\n\014video_config\030\001 \001(\0132>.g" - + "oogle.cloud.videointelligence.v1p3beta1." - + "StreamingVideoConfigH\000\022\027\n\rinput_content\030" - + "\002 \001(\014H\000B\023\n\021streaming_request\"\312\001\n\036Streami" - + "ngAnnotateVideoResponse\022!\n\005error\030\001 \001(\0132\022" - + ".google.rpc.Status\022e\n\022annotation_results" - + "\030\002 \001(\0132I.google.cloud.videointelligence." - + "v1p3beta1.StreamingVideoAnnotationResult" - + "s\022\036\n\026annotation_results_uri\030\003 \001(\t\"9\n#Str" - + "eamingAutomlClassificationConfig\022\022\n\nmode" - + "l_name\030\001 \001(\t\"9\n#StreamingAutomlObjectTra" - + "ckingConfig\022\022\n\nmodel_name\030\001 \001(\t\")\n\'Strea" - + "mingExplicitContentDetectionConfig\":\n\035St" - + "reamingLabelDetectionConfig\022\031\n\021stationar" - + "y_camera\030\001 \001(\010\"\037\n\035StreamingObjectTrackin" - + "gConfig\"$\n\"StreamingShotChangeDetectionC" - + "onfig\"o\n\026StreamingStorageConfig\022(\n enabl" - + "e_storage_annotation_result\030\001 \001(\010\022+\n#ann" - + "otation_result_storage_directory\030\003 \001(\t\"\213" - + "\003\n\037StreamingVideoAnnotationResults\022P\n\020sh" - + "ot_annotations\030\001 \003(\01326.google.cloud.vide" - + "ointelligence.v1p3beta1.VideoSegment\022T\n\021" + + ".LabelDetectionMode\022\031\n\021stationary_camera" + + "\030\002 \001(\010\022\r\n\005model\030\003 \001(\t\022\"\n\032frame_confidenc" + + "e_threshold\030\004 \001(\002\022\"\n\032video_confidence_th" + + "reshold\030\005 \001(\002\"*\n\031ShotChangeDetectionConf" + + "ig\022\r\n\005model\030\001 \001(\t\"%\n\024ObjectTrackingConfi" + + "g\022\r\n\005model\030\001 \001(\t\"/\n\036ExplicitContentDetec" + + "tionConfig\022\r\n\005model\030\001 \001(\t\"<\n\023TextDetecti" + + "onConfig\022\026\n\016language_hints\030\001 \003(\t\022\r\n\005mode" + + "l\030\002 \001(\t\"x\n\014VideoSegment\0224\n\021start_time_of" + + "fset\030\001 \001(\0132\031.google.protobuf.Duration\0222\n" + + "\017end_time_offset\030\002 \001(\0132\031.google.protobuf" + + ".Duration\"k\n\014LabelSegment\022G\n\007segment\030\001 \001" + + "(\01326.google.cloud.videointelligence.v1p3" + + "beta1.VideoSegment\022\022\n\nconfidence\030\002 \001(\002\"P" + + "\n\nLabelFrame\022.\n\013time_offset\030\001 \001(\0132\031.goog" + + "le.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\013descrip" + + "tion\030\002 \001(\t\022\025\n\rlanguage_code\030\003 \001(\t\"\260\002\n\017La" + + "belAnnotation\022@\n\006entity\030\001 \001(\01320.google.c" + + "loud.videointelligence.v1p3beta1.Entity\022" + + "K\n\021category_entities\030\002 \003(\01320.google.clou" + + "d.videointelligence.v1p3beta1.Entity\022H\n\010" + + "segments\030\003 \003(\01326.google.cloud.videointel" + + "ligence.v1p3beta1.LabelSegment\022D\n\006frames" + + "\030\004 \003(\01324.google.cloud.videointelligence." + + "v1p3beta1.LabelFrame\"\234\001\n\024ExplicitContent" + + "Frame\022.\n\013time_offset\030\001 \001(\0132\031.google.prot" + + "obuf.Duration\022T\n\026pornography_likelihood\030" + + "\002 \001(\01624.google.cloud.videointelligence.v" + + "1p3beta1.Likelihood\"k\n\031ExplicitContentAn" + + "notation\022N\n\006frames\030\001 \003(\0132>.google.cloud." + + "videointelligence.v1p3beta1.ExplicitCont" + + "entFrame\"Q\n\025NormalizedBoundingBox\022\014\n\004lef" + + "t\030\001 \001(\002\022\013\n\003top\030\002 \001(\002\022\r\n\005right\030\003 \001(\002\022\016\n\006b" + + "ottom\030\004 \001(\002\"\373\001\n\021TimestampedObject\022`\n\027nor" + + "malized_bounding_box\030\001 \001(\0132?.google.clou" + + "d.videointelligence.v1p3beta1.Normalized" + + "BoundingBox\022.\n\013time_offset\030\002 \001(\0132\031.googl" + + "e.protobuf.Duration\022T\n\nattributes\030\003 \003(\0132" + + ";.google.cloud.videointelligence.v1p3bet" + + "a1.DetectedAttributeB\003\340A\001\"\231\002\n\005Track\022G\n\007s" + + "egment\030\001 \001(\01326.google.cloud.videointelli" + + "gence.v1p3beta1.VideoSegment\022X\n\023timestam" + + "ped_objects\030\002 \003(\0132;.google.cloud.videoin" + + "telligence.v1p3beta1.TimestampedObject\022T" + + "\n\nattributes\030\003 \003(\0132;.google.cloud.videoi" + + "ntelligence.v1p3beta1.DetectedAttributeB" + + "\003\340A\001\022\027\n\nconfidence\030\004 \001(\002B\003\340A\001\"D\n\021Detecte" + + "dAttribute\022\014\n\004name\030\001 \001(\t\022\022\n\nconfidence\030\002" + + " \001(\002\022\r\n\005value\030\003 \001(\t\"D\n\tCelebrity\022\014\n\004name" + + "\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022\023\n\013descript" + + "ion\030\003 \001(\t\"\253\002\n\016CelebrityTrack\022a\n\013celebrit" + + "ies\030\001 \003(\0132L.google.cloud.videointelligen" + + "ce.v1p3beta1.CelebrityTrack.RecognizedCe" + + "lebrity\022C\n\nface_track\030\003 \001(\0132/.google.clo" + + "ud.videointelligence.v1p3beta1.Track\032q\n\023" + + "RecognizedCelebrity\022F\n\tcelebrity\030\001 \001(\01323" + + ".google.cloud.videointelligence.v1p3beta" + + "1.Celebrity\022\022\n\nconfidence\030\002 \001(\002\"t\n\036Celeb" + + "rityRecognitionAnnotation\022R\n\020celebrity_t" + + "racks\030\001 \003(\01328.google.cloud.videointellig" + + "ence.v1p3beta1.CelebrityTrack\"\235\n\n\026VideoA" + + "nnotationResults\022\021\n\tinput_uri\030\001 \001(\t\022G\n\007s" + + "egment\030\n \001(\01326.google.cloud.videointelli" + + "gence.v1p3beta1.VideoSegment\022\\\n\031segment_" + "label_annotations\030\002 \003(\01329.google.cloud.v" + "ideointelligence.v1p3beta1.LabelAnnotati" - + "on\022`\n\023explicit_annotation\030\003 \001(\0132C.google" - + ".cloud.videointelligence.v1p3beta1.Expli" - + "citContentAnnotation\022^\n\022object_annotatio" - + "ns\030\004 \003(\0132B.google.cloud.videointelligenc" - + "e.v1p3beta1.ObjectTrackingAnnotation\"\214\007\n" - + "\024StreamingVideoConfig\022K\n\007feature\030\001 \001(\0162:" + + "on\022e\n\"segment_presence_label_annotations" + + "\030\027 \003(\01329.google.cloud.videointelligence." + + "v1p3beta1.LabelAnnotation\022Y\n\026shot_label_" + + "annotations\030\003 \003(\01329.google.cloud.videoin" + + "telligence.v1p3beta1.LabelAnnotation\022b\n\037" + + "shot_presence_label_annotations\030\030 \003(\01329." + + "google.cloud.videointelligence.v1p3beta1" + + ".LabelAnnotation\022Z\n\027frame_label_annotati" + + "ons\030\004 \003(\01329.google.cloud.videointelligen" + + "ce.v1p3beta1.LabelAnnotation\022P\n\020shot_ann" + + "otations\030\006 \003(\01326.google.cloud.videointel" + + "ligence.v1p3beta1.VideoSegment\022`\n\023explic" + + "it_annotation\030\007 \001(\0132C.google.cloud.video" + + "intelligence.v1p3beta1.ExplicitContentAn" + + "notation\022\\\n\025speech_transcriptions\030\013 \003(\0132" + + "=.google.cloud.videointelligence.v1p3bet" + + "a1.SpeechTranscription\022R\n\020text_annotatio" + + "ns\030\014 \003(\01328.google.cloud.videointelligenc" + + "e.v1p3beta1.TextAnnotation\022^\n\022object_ann" + + "otations\030\016 \003(\0132B.google.cloud.videointel" + + "ligence.v1p3beta1.ObjectTrackingAnnotati" + + "on\022i\n\034logo_recognition_annotations\030\023 \003(\013" + + "2C.google.cloud.videointelligence.v1p3be" + + "ta1.LogoRecognitionAnnotation\022s\n!celebri" + + "ty_recognition_annotations\030\025 \001(\0132H.googl" + + "e.cloud.videointelligence.v1p3beta1.Cele" + + "brityRecognitionAnnotation\022!\n\005error\030\t \001(" + + "\0132\022.google.rpc.Status\"u\n\025AnnotateVideoRe" + + "sponse\022\\\n\022annotation_results\030\001 \003(\0132@.goo" + + "gle.cloud.videointelligence.v1p3beta1.Vi" + + "deoAnnotationResults\"\264\002\n\027VideoAnnotation" + + "Progress\022\021\n\tinput_uri\030\001 \001(\t\022\030\n\020progress_" + + "percent\030\002 \001(\005\022.\n\nstart_time\030\003 \001(\0132\032.goog" + + "le.protobuf.Timestamp\022/\n\013update_time\030\004 \001" + + "(\0132\032.google.protobuf.Timestamp\022B\n\007featur" + + "e\030\005 \001(\01621.google.cloud.videointelligence" + + ".v1p3beta1.Feature\022G\n\007segment\030\006 \001(\01326.go" + + "ogle.cloud.videointelligence.v1p3beta1.V" + + "ideoSegment\"w\n\025AnnotateVideoProgress\022^\n\023" + + "annotation_progress\030\001 \003(\0132A.google.cloud" + + ".videointelligence.v1p3beta1.VideoAnnota" + + "tionProgress\"\210\003\n\031SpeechTranscriptionConf" + + "ig\022\032\n\rlanguage_code\030\001 \001(\tB\003\340A\002\022\035\n\020max_al" + + "ternatives\030\002 \001(\005B\003\340A\001\022\035\n\020filter_profanit" + + "y\030\003 \001(\010B\003\340A\001\022U\n\017speech_contexts\030\004 \003(\01327." + + "google.cloud.videointelligence.v1p3beta1" + + ".SpeechContextB\003\340A\001\022)\n\034enable_automatic_" + + "punctuation\030\005 \001(\010B\003\340A\001\022\031\n\014audio_tracks\030\006" + + " \003(\005B\003\340A\001\022\'\n\032enable_speaker_diarization\030" + + "\007 \001(\010B\003\340A\001\022&\n\031diarization_speaker_count\030" + + "\010 \001(\005B\003\340A\001\022#\n\026enable_word_confidence\030\t \001" + + "(\010B\003\340A\001\"%\n\rSpeechContext\022\024\n\007phrases\030\001 \003(" + + "\tB\003\340A\001\"\217\001\n\023SpeechTranscription\022\\\n\014altern" + + "atives\030\001 \003(\0132F.google.cloud.videointelli" + + "gence.v1p3beta1.SpeechRecognitionAlterna" + + "tive\022\032\n\rlanguage_code\030\002 \001(\tB\003\340A\003\"\223\001\n\034Spe" + + "echRecognitionAlternative\022\022\n\ntranscript\030" + + "\001 \001(\t\022\027\n\nconfidence\030\002 \001(\002B\003\340A\003\022F\n\005words\030" + + "\003 \003(\01322.google.cloud.videointelligence.v" + + "1p3beta1.WordInfoB\003\340A\003\"\247\001\n\010WordInfo\022-\n\ns" + + "tart_time\030\001 \001(\0132\031.google.protobuf.Durati" + + "on\022+\n\010end_time\030\002 \001(\0132\031.google.protobuf.D" + + "uration\022\014\n\004word\030\003 \001(\t\022\027\n\nconfidence\030\004 \001(" + + "\002B\003\340A\003\022\030\n\013speaker_tag\030\005 \001(\005B\003\340A\003\"(\n\020Norm" + + "alizedVertex\022\t\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\"f\n\026No" + + "rmalizedBoundingPoly\022L\n\010vertices\030\001 \003(\0132:" + ".google.cloud.videointelligence.v1p3beta" - + "1.StreamingFeature\022t\n\034shot_change_detect" - + "ion_config\030\002 \001(\0132L.google.cloud.videoint" - + "elligence.v1p3beta1.StreamingShotChangeD" - + "etectionConfigH\000\022i\n\026label_detection_conf" - + "ig\030\003 \001(\0132G.google.cloud.videointelligenc" - + "e.v1p3beta1.StreamingLabelDetectionConfi" - + "gH\000\022~\n!explicit_content_detection_config" - + "\030\004 \001(\0132Q.google.cloud.videointelligence." - + "v1p3beta1.StreamingExplicitContentDetect" - + "ionConfigH\000\022i\n\026object_tracking_config\030\005 " - + "\001(\0132G.google.cloud.videointelligence.v1p" - + "3beta1.StreamingObjectTrackingConfigH\000\022u" - + "\n\034automl_classification_config\030\025 \001(\0132M.g" - + "oogle.cloud.videointelligence.v1p3beta1." - + "StreamingAutomlClassificationConfigH\000\022v\n" - + "\035automl_object_tracking_config\030\026 \001(\0132M.g" + + "1.NormalizedVertex\"\257\001\n\013TextSegment\022G\n\007se" + + "gment\030\001 \001(\01326.google.cloud.videointellig" + + "ence.v1p3beta1.VideoSegment\022\022\n\nconfidenc" + + "e\030\002 \001(\002\022C\n\006frames\030\003 \003(\01323.google.cloud.v" + + "ideointelligence.v1p3beta1.TextFrame\"\233\001\n" + + "\tTextFrame\022^\n\024rotated_bounding_box\030\001 \001(\013" + + "2@.google.cloud.videointelligence.v1p3be" + + "ta1.NormalizedBoundingPoly\022.\n\013time_offse" + + "t\030\002 \001(\0132\031.google.protobuf.Duration\"g\n\016Te" + + "xtAnnotation\022\014\n\004text\030\001 \001(\t\022G\n\010segments\030\002" + + " \003(\01325.google.cloud.videointelligence.v1" + + "p3beta1.TextSegment\"\247\001\n\023ObjectTrackingFr" + + "ame\022`\n\027normalized_bounding_box\030\001 \001(\0132?.g" + "oogle.cloud.videointelligence.v1p3beta1." - + "StreamingAutomlObjectTrackingConfigH\000\022X\n" - + "\016storage_config\030\036 \001(\0132@.google.cloud.vid" - + "eointelligence.v1p3beta1.StreamingStorag" - + "eConfigB\022\n\020streaming_config*\313\001\n\007Feature\022" - + "\027\n\023FEATURE_UNSPECIFIED\020\000\022\023\n\017LABEL_DETECT" - + "ION\020\001\022\031\n\025SHOT_CHANGE_DETECTION\020\002\022\036\n\032EXPL" - + "ICIT_CONTENT_DETECTION\020\003\022\030\n\024SPEECH_TRANS" - + "CRIPTION\020\006\022\022\n\016TEXT_DETECTION\020\007\022\023\n\017OBJECT" - + "_TRACKING\020\t\022\024\n\020LOGO_RECOGNITION\020\014*r\n\022Lab" - + "elDetectionMode\022$\n LABEL_DETECTION_MODE_" - + "UNSPECIFIED\020\000\022\r\n\tSHOT_MODE\020\001\022\016\n\nFRAME_MO" - + "DE\020\002\022\027\n\023SHOT_AND_FRAME_MODE\020\003*t\n\nLikelih" - + "ood\022\032\n\026LIKELIHOOD_UNSPECIFIED\020\000\022\021\n\rVERY_" - + "UNLIKELY\020\001\022\014\n\010UNLIKELY\020\002\022\014\n\010POSSIBLE\020\003\022\n" - + "\n\006LIKELY\020\004\022\017\n\013VERY_LIKELY\020\005*\215\002\n\020Streamin" - + "gFeature\022!\n\035STREAMING_FEATURE_UNSPECIFIE" - + "D\020\000\022\035\n\031STREAMING_LABEL_DETECTION\020\001\022#\n\037ST" - + "REAMING_SHOT_CHANGE_DETECTION\020\002\022(\n$STREA" - + "MING_EXPLICIT_CONTENT_DETECTION\020\003\022\035\n\031STR" - + "EAMING_OBJECT_TRACKING\020\004\022#\n\037STREAMING_AU" - + "TOML_CLASSIFICATION\020\025\022$\n STREAMING_AUTOM" - + "L_OBJECT_TRACKING\020\0262\262\001\n\030VideoIntelligenc" - + "eService\022\225\001\n\rAnnotateVideo\022>.google.clou" - + "d.videointelligence.v1p3beta1.AnnotateVi" - + "deoRequest\032\035.google.longrunning.Operatio" - + "n\"%\202\323\344\223\002\037\"\032/v1p3beta1/videos:annotate:\001*" - + "2\325\001\n!StreamingVideoIntelligenceService\022\257" - + "\001\n\026StreamingAnnotateVideo\022G.google.cloud" - + ".videointelligence.v1p3beta1.StreamingAn" - + "notateVideoRequest\032H.google.cloud.videoi" - + "ntelligence.v1p3beta1.StreamingAnnotateV" - + "ideoResponse(\0010\001B\256\002\n,com.google.cloud.vi" - + "deointelligence.v1p3beta1B\035VideoIntellig" - + "enceServiceProtoP\001ZYgoogle.golang.org/ge" - + "nproto/googleapis/cloud/videointelligenc" - + "e/v1p3beta1;videointelligence\252\002(Google.C" - + "loud.VideoIntelligence.V1P3Beta1\312\002(Googl" - + "e\\Cloud\\VideoIntelligence\\V1p3beta1\352\002+Go" - + "ogle::Cloud::VideoIntelligence::V1p3beta" - + "1b\006proto3" + + "NormalizedBoundingBox\022.\n\013time_offset\030\002 \001" + + "(\0132\031.google.protobuf.Duration\"\254\002\n\030Object" + + "TrackingAnnotation\022@\n\006entity\030\001 \001(\01320.goo" + + "gle.cloud.videointelligence.v1p3beta1.En" + + "tity\022\022\n\nconfidence\030\004 \001(\002\022M\n\006frames\030\002 \003(\013" + + "2=.google.cloud.videointelligence.v1p3be" + + "ta1.ObjectTrackingFrame\022I\n\007segment\030\003 \001(\013" + + "26.google.cloud.videointelligence.v1p3be" + + "ta1.VideoSegmentH\000\022\022\n\010track_id\030\005 \001(\003H\000B\014" + + "\n\ntrack_info\"\350\001\n\031LogoRecognitionAnnotati" + + "on\022@\n\006entity\030\001 \001(\01320.google.cloud.videoi" + + "ntelligence.v1p3beta1.Entity\022?\n\006tracks\030\002" + + " \003(\0132/.google.cloud.videointelligence.v1" + + "p3beta1.Track\022H\n\010segments\030\003 \003(\01326.google" + + ".cloud.videointelligence.v1p3beta1.Video" + + "Segment\"\245\001\n\035StreamingAnnotateVideoReques" + + "t\022V\n\014video_config\030\001 \001(\0132>.google.cloud.v" + + "ideointelligence.v1p3beta1.StreamingVide" + + "oConfigH\000\022\027\n\rinput_content\030\002 \001(\014H\000B\023\n\021st" + + "reaming_request\"\312\001\n\036StreamingAnnotateVid" + + "eoResponse\022!\n\005error\030\001 \001(\0132\022.google.rpc.S" + + "tatus\022e\n\022annotation_results\030\002 \001(\0132I.goog" + + "le.cloud.videointelligence.v1p3beta1.Str" + + "eamingVideoAnnotationResults\022\036\n\026annotati" + + "on_results_uri\030\003 \001(\t\"9\n#StreamingAutomlC" + + "lassificationConfig\022\022\n\nmodel_name\030\001 \001(\t\"" + + "9\n#StreamingAutomlObjectTrackingConfig\022\022" + + "\n\nmodel_name\030\001 \001(\t\")\n\'StreamingExplicitC" + + "ontentDetectionConfig\":\n\035StreamingLabelD" + + "etectionConfig\022\031\n\021stationary_camera\030\001 \001(" + + "\010\"\037\n\035StreamingObjectTrackingConfig\"$\n\"St" + + "reamingShotChangeDetectionConfig\"o\n\026Stre" + + "amingStorageConfig\022(\n enable_storage_ann" + + "otation_result\030\001 \001(\010\022+\n#annotation_resul" + + "t_storage_directory\030\003 \001(\t\"\213\003\n\037StreamingV" + + "ideoAnnotationResults\022P\n\020shot_annotation" + + "s\030\001 \003(\01326.google.cloud.videointelligence" + + ".v1p3beta1.VideoSegment\022T\n\021label_annotat" + + "ions\030\002 \003(\01329.google.cloud.videointellige" + + "nce.v1p3beta1.LabelAnnotation\022`\n\023explici" + + "t_annotation\030\003 \001(\0132C.google.cloud.videoi" + + "ntelligence.v1p3beta1.ExplicitContentAnn" + + "otation\022^\n\022object_annotations\030\004 \003(\0132B.go" + + "ogle.cloud.videointelligence.v1p3beta1.O" + + "bjectTrackingAnnotation\"\214\007\n\024StreamingVid" + + "eoConfig\022K\n\007feature\030\001 \001(\0162:.google.cloud" + + ".videointelligence.v1p3beta1.StreamingFe" + + "ature\022t\n\034shot_change_detection_config\030\002 " + + "\001(\0132L.google.cloud.videointelligence.v1p" + + "3beta1.StreamingShotChangeDetectionConfi" + + "gH\000\022i\n\026label_detection_config\030\003 \001(\0132G.go" + + "ogle.cloud.videointelligence.v1p3beta1.S" + + "treamingLabelDetectionConfigH\000\022~\n!explic" + + "it_content_detection_config\030\004 \001(\0132Q.goog" + + "le.cloud.videointelligence.v1p3beta1.Str" + + "eamingExplicitContentDetectionConfigH\000\022i" + + "\n\026object_tracking_config\030\005 \001(\0132G.google." + + "cloud.videointelligence.v1p3beta1.Stream" + + "ingObjectTrackingConfigH\000\022u\n\034automl_clas" + + "sification_config\030\025 \001(\0132M.google.cloud.v" + + "ideointelligence.v1p3beta1.StreamingAuto" + + "mlClassificationConfigH\000\022v\n\035automl_objec" + + "t_tracking_config\030\026 \001(\0132M.google.cloud.v" + + "ideointelligence.v1p3beta1.StreamingAuto" + + "mlObjectTrackingConfigH\000\022X\n\016storage_conf" + + "ig\030\036 \001(\0132@.google.cloud.videointelligenc" + + "e.v1p3beta1.StreamingStorageConfigB\022\n\020st" + + "reaming_config*\346\001\n\007Feature\022\027\n\023FEATURE_UN" + + "SPECIFIED\020\000\022\023\n\017LABEL_DETECTION\020\001\022\031\n\025SHOT" + + "_CHANGE_DETECTION\020\002\022\036\n\032EXPLICIT_CONTENT_" + + "DETECTION\020\003\022\030\n\024SPEECH_TRANSCRIPTION\020\006\022\022\n" + + "\016TEXT_DETECTION\020\007\022\023\n\017OBJECT_TRACKING\020\t\022\024" + + "\n\020LOGO_RECOGNITION\020\014\022\031\n\025CELEBRITY_RECOGN" + + "ITION\020\r*r\n\022LabelDetectionMode\022$\n LABEL_D" + + "ETECTION_MODE_UNSPECIFIED\020\000\022\r\n\tSHOT_MODE" + + "\020\001\022\016\n\nFRAME_MODE\020\002\022\027\n\023SHOT_AND_FRAME_MOD" + + "E\020\003*t\n\nLikelihood\022\032\n\026LIKELIHOOD_UNSPECIF" + + "IED\020\000\022\021\n\rVERY_UNLIKELY\020\001\022\014\n\010UNLIKELY\020\002\022\014" + + "\n\010POSSIBLE\020\003\022\n\n\006LIKELY\020\004\022\017\n\013VERY_LIKELY\020" + + "\005*\215\002\n\020StreamingFeature\022!\n\035STREAMING_FEAT" + + "URE_UNSPECIFIED\020\000\022\035\n\031STREAMING_LABEL_DET" + + "ECTION\020\001\022#\n\037STREAMING_SHOT_CHANGE_DETECT" + + "ION\020\002\022(\n$STREAMING_EXPLICIT_CONTENT_DETE" + + "CTION\020\003\022\035\n\031STREAMING_OBJECT_TRACKING\020\004\022#" + + "\n\037STREAMING_AUTOML_CLASSIFICATION\020\025\022$\n S" + + "TREAMING_AUTOML_OBJECT_TRACKING\020\0262\316\002\n\030Vi" + + "deoIntelligenceService\022\333\001\n\rAnnotateVideo" + + "\022>.google.cloud.videointelligence.v1p3be" + + "ta1.AnnotateVideoRequest\032\035.google.longru" + + "nning.Operation\"k\202\323\344\223\002\037\"\032/v1p3beta1/vide" + + "os:annotate:\001*\332A\022input_uri,features\312A.\n\025" + + "AnnotateVideoResponse\022\025AnnotateVideoProg" + + "ress\032T\312A videointelligence.googleapis.co" + + "m\322A.https://www.googleapis.com/auth/clou" + + "d-platform2\255\002\n!StreamingVideoIntelligenc" + + "eService\022\261\001\n\026StreamingAnnotateVideo\022G.go" + + "ogle.cloud.videointelligence.v1p3beta1.S" + + "treamingAnnotateVideoRequest\032H.google.cl" + + "oud.videointelligence.v1p3beta1.Streamin" + + "gAnnotateVideoResponse\"\000(\0010\001\032T\312A videoin" + + "telligence.googleapis.com\322A.https://www." + + "googleapis.com/auth/cloud-platformB\200\002\n,c" + + "om.google.cloud.videointelligence.v1p3be" + + "ta1B\035VideoIntelligenceServiceProtoP\001ZYgo" + + "ogle.golang.org/genproto/googleapis/clou" + + "d/videointelligence/v1p3beta1;videointel" + + "ligence\252\002(Google.Cloud.VideoIntelligence" + + ".V1P3Beta1\312\002(Google\\Cloud\\VideoIntellige" + + "nce\\V1p3beta1b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -490,6 +541,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), @@ -650,15 +703,52 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "Name", "Confidence", "Value", }); - internal_static_google_cloud_videointelligence_v1p3beta1_VideoAnnotationResults_descriptor = + internal_static_google_cloud_videointelligence_v1p3beta1_Celebrity_descriptor = getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_videointelligence_v1p3beta1_Celebrity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p3beta1_Celebrity_descriptor, + new java.lang.String[] { + "Name", "DisplayName", "Description", + }); + internal_static_google_cloud_videointelligence_v1p3beta1_CelebrityTrack_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_videointelligence_v1p3beta1_CelebrityTrack_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p3beta1_CelebrityTrack_descriptor, + new java.lang.String[] { + "Celebrities", "FaceTrack", + }); + internal_static_google_cloud_videointelligence_v1p3beta1_CelebrityTrack_RecognizedCelebrity_descriptor = + internal_static_google_cloud_videointelligence_v1p3beta1_CelebrityTrack_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_videointelligence_v1p3beta1_CelebrityTrack_RecognizedCelebrity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p3beta1_CelebrityTrack_RecognizedCelebrity_descriptor, + new java.lang.String[] { + "Celebrity", "Confidence", + }); + internal_static_google_cloud_videointelligence_v1p3beta1_CelebrityRecognitionAnnotation_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_videointelligence_v1p3beta1_CelebrityRecognitionAnnotation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_videointelligence_v1p3beta1_CelebrityRecognitionAnnotation_descriptor, + new java.lang.String[] { + "CelebrityTracks", + }); + internal_static_google_cloud_videointelligence_v1p3beta1_VideoAnnotationResults_descriptor = + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_videointelligence_v1p3beta1_VideoAnnotationResults_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_videointelligence_v1p3beta1_VideoAnnotationResults_descriptor, new java.lang.String[] { "InputUri", + "Segment", "SegmentLabelAnnotations", + "SegmentPresenceLabelAnnotations", "ShotLabelAnnotations", + "ShotPresenceLabelAnnotations", "FrameLabelAnnotations", "ShotAnnotations", "ExplicitAnnotation", @@ -666,10 +756,11 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "TextAnnotations", "ObjectAnnotations", "LogoRecognitionAnnotations", + "CelebrityRecognitionAnnotations", "Error", }); internal_static_google_cloud_videointelligence_v1p3beta1_AnnotateVideoResponse_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_videointelligence_v1p3beta1_AnnotateVideoResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_videointelligence_v1p3beta1_AnnotateVideoResponse_descriptor, @@ -677,15 +768,15 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "AnnotationResults", }); internal_static_google_cloud_videointelligence_v1p3beta1_VideoAnnotationProgress_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_videointelligence_v1p3beta1_VideoAnnotationProgress_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_videointelligence_v1p3beta1_VideoAnnotationProgress_descriptor, new java.lang.String[] { - "InputUri", "ProgressPercent", "StartTime", "UpdateTime", + "InputUri", "ProgressPercent", "StartTime", "UpdateTime", "Feature", "Segment", }); internal_static_google_cloud_videointelligence_v1p3beta1_AnnotateVideoProgress_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_videointelligence_v1p3beta1_AnnotateVideoProgress_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_videointelligence_v1p3beta1_AnnotateVideoProgress_descriptor, @@ -693,7 +784,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "AnnotationProgress", }); internal_static_google_cloud_videointelligence_v1p3beta1_SpeechTranscriptionConfig_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_videointelligence_v1p3beta1_SpeechTranscriptionConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_videointelligence_v1p3beta1_SpeechTranscriptionConfig_descriptor, @@ -709,7 +800,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "EnableWordConfidence", }); internal_static_google_cloud_videointelligence_v1p3beta1_SpeechContext_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_videointelligence_v1p3beta1_SpeechContext_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_videointelligence_v1p3beta1_SpeechContext_descriptor, @@ -717,7 +808,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Phrases", }); internal_static_google_cloud_videointelligence_v1p3beta1_SpeechTranscription_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_videointelligence_v1p3beta1_SpeechTranscription_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_videointelligence_v1p3beta1_SpeechTranscription_descriptor, @@ -725,7 +816,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Alternatives", "LanguageCode", }); internal_static_google_cloud_videointelligence_v1p3beta1_SpeechRecognitionAlternative_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(28); internal_static_google_cloud_videointelligence_v1p3beta1_SpeechRecognitionAlternative_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_videointelligence_v1p3beta1_SpeechRecognitionAlternative_descriptor, @@ -733,7 +824,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Transcript", "Confidence", "Words", }); internal_static_google_cloud_videointelligence_v1p3beta1_WordInfo_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(29); internal_static_google_cloud_videointelligence_v1p3beta1_WordInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_videointelligence_v1p3beta1_WordInfo_descriptor, @@ -741,7 +832,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "StartTime", "EndTime", "Word", "Confidence", "SpeakerTag", }); internal_static_google_cloud_videointelligence_v1p3beta1_NormalizedVertex_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(30); internal_static_google_cloud_videointelligence_v1p3beta1_NormalizedVertex_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_videointelligence_v1p3beta1_NormalizedVertex_descriptor, @@ -749,7 +840,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "X", "Y", }); internal_static_google_cloud_videointelligence_v1p3beta1_NormalizedBoundingPoly_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(31); internal_static_google_cloud_videointelligence_v1p3beta1_NormalizedBoundingPoly_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_videointelligence_v1p3beta1_NormalizedBoundingPoly_descriptor, @@ -757,7 +848,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Vertices", }); internal_static_google_cloud_videointelligence_v1p3beta1_TextSegment_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(32); internal_static_google_cloud_videointelligence_v1p3beta1_TextSegment_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_videointelligence_v1p3beta1_TextSegment_descriptor, @@ -765,7 +856,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Segment", "Confidence", "Frames", }); internal_static_google_cloud_videointelligence_v1p3beta1_TextFrame_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(33); internal_static_google_cloud_videointelligence_v1p3beta1_TextFrame_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_videointelligence_v1p3beta1_TextFrame_descriptor, @@ -773,7 +864,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "RotatedBoundingBox", "TimeOffset", }); internal_static_google_cloud_videointelligence_v1p3beta1_TextAnnotation_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(34); internal_static_google_cloud_videointelligence_v1p3beta1_TextAnnotation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_videointelligence_v1p3beta1_TextAnnotation_descriptor, @@ -781,7 +872,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Text", "Segments", }); internal_static_google_cloud_videointelligence_v1p3beta1_ObjectTrackingFrame_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(35); internal_static_google_cloud_videointelligence_v1p3beta1_ObjectTrackingFrame_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_videointelligence_v1p3beta1_ObjectTrackingFrame_descriptor, @@ -789,7 +880,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "NormalizedBoundingBox", "TimeOffset", }); internal_static_google_cloud_videointelligence_v1p3beta1_ObjectTrackingAnnotation_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(36); internal_static_google_cloud_videointelligence_v1p3beta1_ObjectTrackingAnnotation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_videointelligence_v1p3beta1_ObjectTrackingAnnotation_descriptor, @@ -797,7 +888,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Entity", "Confidence", "Frames", "Segment", "TrackId", "TrackInfo", }); internal_static_google_cloud_videointelligence_v1p3beta1_LogoRecognitionAnnotation_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(37); internal_static_google_cloud_videointelligence_v1p3beta1_LogoRecognitionAnnotation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_videointelligence_v1p3beta1_LogoRecognitionAnnotation_descriptor, @@ -805,7 +896,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Entity", "Tracks", "Segments", }); internal_static_google_cloud_videointelligence_v1p3beta1_StreamingAnnotateVideoRequest_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(38); internal_static_google_cloud_videointelligence_v1p3beta1_StreamingAnnotateVideoRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_videointelligence_v1p3beta1_StreamingAnnotateVideoRequest_descriptor, @@ -813,7 +904,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "VideoConfig", "InputContent", "StreamingRequest", }); internal_static_google_cloud_videointelligence_v1p3beta1_StreamingAnnotateVideoResponse_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(39); internal_static_google_cloud_videointelligence_v1p3beta1_StreamingAnnotateVideoResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_videointelligence_v1p3beta1_StreamingAnnotateVideoResponse_descriptor, @@ -821,7 +912,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Error", "AnnotationResults", "AnnotationResultsUri", }); internal_static_google_cloud_videointelligence_v1p3beta1_StreamingAutomlClassificationConfig_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(40); internal_static_google_cloud_videointelligence_v1p3beta1_StreamingAutomlClassificationConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_videointelligence_v1p3beta1_StreamingAutomlClassificationConfig_descriptor, @@ -829,7 +920,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "ModelName", }); internal_static_google_cloud_videointelligence_v1p3beta1_StreamingAutomlObjectTrackingConfig_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(41); internal_static_google_cloud_videointelligence_v1p3beta1_StreamingAutomlObjectTrackingConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_videointelligence_v1p3beta1_StreamingAutomlObjectTrackingConfig_descriptor, @@ -837,13 +928,13 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "ModelName", }); internal_static_google_cloud_videointelligence_v1p3beta1_StreamingExplicitContentDetectionConfig_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(42); internal_static_google_cloud_videointelligence_v1p3beta1_StreamingExplicitContentDetectionConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_videointelligence_v1p3beta1_StreamingExplicitContentDetectionConfig_descriptor, new java.lang.String[] {}); internal_static_google_cloud_videointelligence_v1p3beta1_StreamingLabelDetectionConfig_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(43); internal_static_google_cloud_videointelligence_v1p3beta1_StreamingLabelDetectionConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_videointelligence_v1p3beta1_StreamingLabelDetectionConfig_descriptor, @@ -851,19 +942,19 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "StationaryCamera", }); internal_static_google_cloud_videointelligence_v1p3beta1_StreamingObjectTrackingConfig_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageTypes().get(44); internal_static_google_cloud_videointelligence_v1p3beta1_StreamingObjectTrackingConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_videointelligence_v1p3beta1_StreamingObjectTrackingConfig_descriptor, new java.lang.String[] {}); internal_static_google_cloud_videointelligence_v1p3beta1_StreamingShotChangeDetectionConfig_descriptor = - getDescriptor().getMessageTypes().get(42); + getDescriptor().getMessageTypes().get(45); internal_static_google_cloud_videointelligence_v1p3beta1_StreamingShotChangeDetectionConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_videointelligence_v1p3beta1_StreamingShotChangeDetectionConfig_descriptor, new java.lang.String[] {}); internal_static_google_cloud_videointelligence_v1p3beta1_StreamingStorageConfig_descriptor = - getDescriptor().getMessageTypes().get(43); + getDescriptor().getMessageTypes().get(46); internal_static_google_cloud_videointelligence_v1p3beta1_StreamingStorageConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_videointelligence_v1p3beta1_StreamingStorageConfig_descriptor, @@ -871,7 +962,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "EnableStorageAnnotationResult", "AnnotationResultStorageDirectory", }); internal_static_google_cloud_videointelligence_v1p3beta1_StreamingVideoAnnotationResults_descriptor = - getDescriptor().getMessageTypes().get(44); + getDescriptor().getMessageTypes().get(47); internal_static_google_cloud_videointelligence_v1p3beta1_StreamingVideoAnnotationResults_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_videointelligence_v1p3beta1_StreamingVideoAnnotationResults_descriptor, @@ -879,7 +970,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "ShotAnnotations", "LabelAnnotations", "ExplicitAnnotation", "ObjectAnnotations", }); internal_static_google_cloud_videointelligence_v1p3beta1_StreamingVideoConfig_descriptor = - getDescriptor().getMessageTypes().get(45); + getDescriptor().getMessageTypes().get(48); internal_static_google_cloud_videointelligence_v1p3beta1_StreamingVideoConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_videointelligence_v1p3beta1_StreamingVideoConfig_descriptor, @@ -896,10 +987,17 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.longrunning.OperationsProto.operationInfo); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/WordInfo.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/WordInfo.java index a88792213..cefe50bbb 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/WordInfo.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/WordInfo.java @@ -301,7 +301,7 @@ public com.google.protobuf.ByteString getWordBytes() { * The default of 0.0 is a sentinel value indicating `confidence` was not set. * * - * float confidence = 4; + * float confidence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public float getConfidence() { return confidence_; @@ -319,7 +319,7 @@ public float getConfidence() { * and is only set if speaker diarization is enabled. * * - * int32 speaker_tag = 5; + * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getSpeakerTag() { return speakerTag_; @@ -1244,7 +1244,7 @@ public Builder setWordBytes(com.google.protobuf.ByteString value) { * The default of 0.0 is a sentinel value indicating `confidence` was not set. * * - * float confidence = 4; + * float confidence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public float getConfidence() { return confidence_; @@ -1261,7 +1261,7 @@ public float getConfidence() { * The default of 0.0 is a sentinel value indicating `confidence` was not set. * * - * float confidence = 4; + * float confidence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setConfidence(float value) { @@ -1281,7 +1281,7 @@ public Builder setConfidence(float value) { * The default of 0.0 is a sentinel value indicating `confidence` was not set. * * - * float confidence = 4; + * float confidence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearConfidence() { @@ -1301,7 +1301,7 @@ public Builder clearConfidence() { * and is only set if speaker diarization is enabled. * * - * int32 speaker_tag = 5; + * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getSpeakerTag() { return speakerTag_; @@ -1316,7 +1316,7 @@ public int getSpeakerTag() { * and is only set if speaker diarization is enabled. * * - * int32 speaker_tag = 5; + * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setSpeakerTag(int value) { @@ -1334,7 +1334,7 @@ public Builder setSpeakerTag(int value) { * and is only set if speaker diarization is enabled. * * - * int32 speaker_tag = 5; + * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearSpeakerTag() { diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/WordInfoOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/WordInfoOrBuilder.java index 9cd2e558c..66d2bcb1a 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/WordInfoOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/WordInfoOrBuilder.java @@ -136,7 +136,7 @@ public interface WordInfoOrBuilder * The default of 0.0 is a sentinel value indicating `confidence` was not set. * * - * float confidence = 4; + * float confidence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ float getConfidence(); @@ -150,7 +150,7 @@ public interface WordInfoOrBuilder * and is only set if speaker diarization is enabled. * * - * int32 speaker_tag = 5; + * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getSpeakerTag(); } diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/proto/google/cloud/videointelligence/v1p3beta1/video_intelligence.proto b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/proto/google/cloud/videointelligence/v1p3beta1/video_intelligence.proto index e37726e0b..1203b3152 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/proto/google/cloud/videointelligence/v1p3beta1/video_intelligence.proto +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/proto/google/cloud/videointelligence/v1p3beta1/video_intelligence.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC. +// Copyright 2019 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -18,6 +18,8 @@ syntax = "proto3"; package google.cloud.videointelligence.v1p3beta1; import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; @@ -29,10 +31,13 @@ option java_multiple_files = true; option java_outer_classname = "VideoIntelligenceServiceProto"; option java_package = "com.google.cloud.videointelligence.v1p3beta1"; option php_namespace = "Google\\Cloud\\VideoIntelligence\\V1p3beta1"; -option ruby_package = "Google::Cloud::VideoIntelligence::V1p3beta1"; // Service that implements Google Cloud Video Intelligence API. service VideoIntelligenceService { + option (google.api.default_host) = "videointelligence.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + // Performs asynchronous video annotation. Progress and results can be // retrieved through the `google.longrunning.Operations` interface. // `Operation.metadata` contains `AnnotateVideoProgress` (progress). @@ -43,16 +48,25 @@ service VideoIntelligenceService { post: "/v1p3beta1/videos:annotate" body: "*" }; + option (google.api.method_signature) = "input_uri,features"; + option (google.longrunning.operation_info) = { + response_type: "AnnotateVideoResponse" + metadata_type: "AnnotateVideoProgress" + }; } } -// Service that implements Google Cloud Video Intelligence Streaming API. +// Service that implements streaming Google Cloud Video Intelligence API. service StreamingVideoIntelligenceService { + option (google.api.default_host) = "videointelligence.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + // Performs video annotation with bidirectional streaming: emitting results // while sending video/audio bytes. // This method is only available via the gRPC API (not REST). rpc StreamingAnnotateVideo(stream StreamingAnnotateVideoRequest) - returns (stream StreamingAnnotateVideoResponse); + returns (stream StreamingAnnotateVideoResponse) {} } // Video annotation request. @@ -74,24 +88,24 @@ message AnnotateVideoRequest { // If set, `input_uri` should be unset. bytes input_content = 6; - // Requested video annotation features. - repeated Feature features = 2; + // Required. Requested video annotation features. + repeated Feature features = 2 [(google.api.field_behavior) = REQUIRED]; // Additional video context and/or feature-specific parameters. VideoContext video_context = 3; - // Optional location where the output (in JSON format) should be stored. + // 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; + string output_uri = 4 [(google.api.field_behavior) = OPTIONAL]; - // Optional cloud region where annotation should take place. Supported cloud + // 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; + string location_id = 5 [(google.api.field_behavior) = OPTIONAL]; } // Video context and/or feature-specific parameters. @@ -290,8 +304,7 @@ message NormalizedBoundingBox { float bottom = 4; } -// For tracking related features, such as LOGO_RECOGNITION, FACE_DETECTION, -// CELEBRITY_RECOGNITION, PERSON_DETECTION. +// For tracking related features. // An object at time_offset with attributes, and located with // normalized_bounding_box. message TimestampedObject { @@ -303,7 +316,8 @@ message TimestampedObject { google.protobuf.Duration time_offset = 2; // Optional. The attributes of the object in the bounding box. - repeated DetectedAttribute attributes = 3; + repeated DetectedAttribute attributes = 3 + [(google.api.field_behavior) = OPTIONAL]; } // A track of an object instance. @@ -315,10 +329,11 @@ message Track { repeated TimestampedObject timestamped_objects = 2; // Optional. Attributes in the track level. - repeated DetectedAttribute attributes = 3; + repeated DetectedAttribute attributes = 3 + [(google.api.field_behavior) = OPTIONAL]; // Optional. The confidence score of the tracked object. - float confidence = 4; + float confidence = 4 [(google.api.field_behavior) = OPTIONAL]; } // A generic detected attribute represented by name in string format. @@ -335,20 +350,80 @@ message DetectedAttribute { string value = 3; } +// Celebrity definition. +message Celebrity { + // The resource name of the celebrity. Have the format + // `video-intelligence/kg-mid` indicates a celebrity from preloaded gallery. + // kg-mid is the id in Google knowledge graph, which is unique for the + // celebrity. + string name = 1; + + // The celebrity name. + string display_name = 2; + + // Textual description of additional information about the celebrity, if + // applicable. + string description = 3; +} + +// The annotation result of a celebrity face track. RecognizedCelebrity field +// could be empty if the face track does not have any matched celebrities. +message CelebrityTrack { + // The recognized celebrity with confidence score. + message RecognizedCelebrity { + // The recognized celebrity. + Celebrity celebrity = 1; + + // Recognition confidence. Range [0, 1]. + float confidence = 2; + } + + // Top N match of the celebrities for the face in this track. + repeated RecognizedCelebrity celebrities = 1; + + // A track of a person's face. + Track face_track = 3; +} + +// Celebrity recognition annotation per video. +message CelebrityRecognitionAnnotation { + // The tracks detected from the input video, including recognized celebrities + // and other detected faces in the video. + repeated CelebrityTrack celebrity_tracks = 1; +} + // 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. + // Video segment on which the annotation is run. + VideoSegment segment = 10; + + // Topical 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. + // Presence label annotations on video level or user specified segment level. + // There is exactly one element for each unique label. Compared to the + // existing topical `segment_label_annotations`, this field presents more + // fine-grained, segment-level labels detected in video content and is made + // available only when the client sets `LabelDetectionConfig.model` to + // "builtin/latest" in the request. + repeated LabelAnnotation segment_presence_label_annotations = 23; + + // Topical label annotations on shot level. // There is exactly one element for each unique label. repeated LabelAnnotation shot_label_annotations = 3; + // Presence label annotations on shot level. There is exactly one element for + // each unique label. Compared to the existing topical + // `shot_label_annotations`, this field presents more fine-grained, shot-level + // labels detected in video content and is made available only when the client + // sets `LabelDetectionConfig.model` to "builtin/latest" in the request. + repeated LabelAnnotation shot_presence_label_annotations = 24; + // Label annotations on frame level. // There is exactly one element for each unique label. repeated LabelAnnotation frame_label_annotations = 4; @@ -373,6 +448,9 @@ message VideoAnnotationResults { // Annotations for list of logos detected, tracked and recognized in video. repeated LogoRecognitionAnnotation logo_recognition_annotations = 19; + // Celebrity recognition annotations. + CelebrityRecognitionAnnotation celebrity_recognition_annotations = 21; + // If set, indicates an error. Note that for a single `AnnotateVideoRequest` // some videos may succeed and some may fail. google.rpc.Status error = 9; @@ -401,6 +479,14 @@ message VideoAnnotationProgress { // Time of the most recent update. google.protobuf.Timestamp update_time = 4; + + // Specifies which feature is being tracked if the request contains more than + // one features. + Feature feature = 5; + + // Specifies which segment is being tracked if the request contains more than + // one segments. + VideoSegment segment = 6; } // Video annotation progress. Included in the `metadata` @@ -413,72 +499,73 @@ message AnnotateVideoProgress { // Config for SPEECH_TRANSCRIPTION. message SpeechTranscriptionConfig { - // *Required* The language of the supplied audio as a + // Required. *Required* The language of the supplied audio as a // [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. // Example: "en-US". // See [Language Support](https://cloud.google.com/speech/docs/languages) // for a list of the currently supported language codes. - string language_code = 1; + string language_code = 1 [(google.api.field_behavior) = REQUIRED]; - // *Optional* Maximum number of recognition hypotheses to be returned. + // Optional. Maximum number of recognition hypotheses to be returned. // Specifically, the maximum number of `SpeechRecognitionAlternative` messages // within each `SpeechTranscription`. The server may return fewer than // `max_alternatives`. Valid values are `0`-`30`. A value of `0` or `1` will // return a maximum of one. If omitted, will return a maximum of one. - int32 max_alternatives = 2; + int32 max_alternatives = 2 [(google.api.field_behavior) = OPTIONAL]; - // *Optional* If set to `true`, the server will attempt to filter out + // Optional. If set to `true`, the server will attempt to filter out // profanities, replacing all but the initial character in each filtered word // with asterisks, e.g. "f***". If set to `false` or omitted, profanities // won't be filtered out. - bool filter_profanity = 3; + bool filter_profanity = 3 [(google.api.field_behavior) = OPTIONAL]; - // *Optional* A means to provide context to assist the speech recognition. - repeated SpeechContext speech_contexts = 4; + // Optional. A means to provide context to assist the speech recognition. + repeated SpeechContext speech_contexts = 4 + [(google.api.field_behavior) = OPTIONAL]; - // *Optional* If 'true', adds punctuation to recognition result hypotheses. + // Optional. If 'true', adds punctuation to recognition result hypotheses. // This feature is only available in select languages. Setting this for // requests in other languages has no effect at all. The default 'false' value // does not add punctuation to result hypotheses. NOTE: "This is currently // offered as an experimental service, complimentary to all users. In the // future this may be exclusively available as a premium feature." - bool enable_automatic_punctuation = 5; + bool enable_automatic_punctuation = 5 + [(google.api.field_behavior) = OPTIONAL]; - // *Optional* For file formats, such as MXF or MKV, supporting multiple audio + // Optional. For file formats, such as MXF or MKV, supporting multiple audio // tracks, specify up to two tracks. Default: track 0. - repeated int32 audio_tracks = 6; + repeated int32 audio_tracks = 6 [(google.api.field_behavior) = OPTIONAL]; - // *Optional* If 'true', enables speaker detection for each recognized word in + // Optional. If 'true', enables speaker detection for each recognized word in // the top alternative of the recognition result using a speaker_tag provided // in the WordInfo. // Note: When this is true, we send all the words from the beginning of the // audio for the top alternative in every consecutive responses. // This is done in order to improve our speaker tags as our models learn to // identify the speakers in the conversation over time. - bool enable_speaker_diarization = 7; + bool enable_speaker_diarization = 7 [(google.api.field_behavior) = OPTIONAL]; - // *Optional* - // If set, specifies the estimated number of speakers in the conversation. - // If not set, defaults to '2'. - // Ignored unless enable_speaker_diarization is set to true. - int32 diarization_speaker_count = 8; + // Optional. If set, specifies the estimated number of speakers in the + // conversation. If not set, defaults to '2'. Ignored unless + // enable_speaker_diarization is set to true. + int32 diarization_speaker_count = 8 [(google.api.field_behavior) = OPTIONAL]; - // *Optional* If `true`, the top result includes a list of words and the + // Optional. If `true`, the top result includes a list of words and the // confidence for those words. If `false`, no word-level confidence // information is returned. The default is `false`. - bool enable_word_confidence = 9; + bool enable_word_confidence = 9 [(google.api.field_behavior) = OPTIONAL]; } // Provides "hints" to the speech recognizer to favor specific words and phrases // in the results. message SpeechContext { - // *Optional* A list of strings containing words and phrases "hints" so that + // Optional. A list of strings containing words and phrases "hints" so that // the speech recognition is more likely to recognize them. This can be used // to improve the accuracy for specific words and phrases, for example, if // specific commands are typically spoken by the user. This can also be used // to add additional words to the vocabulary of the recognizer. See // [usage limits](https://cloud.google.com/speech/limits#content). - repeated string phrases = 1; + repeated string phrases = 1 [(google.api.field_behavior) = OPTIONAL]; } // A speech recognition result corresponding to a portion of the audio. @@ -489,11 +576,10 @@ message SpeechTranscription { // ranked by the recognizer. repeated SpeechRecognitionAlternative alternatives = 1; - // Output only. The - // [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag of the - // language in this result. This language code was detected to have the most - // likelihood of being spoken in the audio. - string language_code = 2; + // Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) + // language tag of the language in this result. This language code was + // detected to have the most likelihood of being spoken in the audio. + string language_code = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Alternative hypotheses (a.k.a. n-best list). @@ -501,16 +587,18 @@ message SpeechRecognitionAlternative { // Transcript text representing the words that the user spoke. string transcript = 1; - // The confidence estimate between 0.0 and 1.0. A higher number + // Output only. The confidence estimate between 0.0 and 1.0. A higher number // indicates an estimated greater likelihood that the recognized words are - // correct. This field is typically provided only for the top hypothesis, and - // only for `is_final=true` results. Clients should not rely on the - // `confidence` field as it is not guaranteed to be accurate or consistent. + // correct. This field is set only for the top alternative. + // This field is not guaranteed to be accurate and users should not rely on it + // to be always provided. // The default of 0.0 is a sentinel value indicating `confidence` was not set. - float confidence = 2; + float confidence = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - // A list of word-specific information for each recognized word. - repeated WordInfo words = 3; + // Output only. A list of word-specific information for each recognized word. + // Note: When `enable_speaker_diarization` is true, you will see all the words + // from the beginning of the audio. + repeated WordInfo words = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Word-specific information for recognized words. Word information is only @@ -538,13 +626,13 @@ message WordInfo { // This field is not guaranteed to be accurate and users should not rely on it // to be always provided. // The default of 0.0 is a sentinel value indicating `confidence` was not set. - float confidence = 4; + float confidence = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. A distinct integer value is assigned for every speaker within // the audio. This field specifies which one of those speakers was detected to // have spoken this word. Value ranges from 1 up to diarization_speaker_count, // and is only set if speaker diarization is enabled. - int32 speaker_tag = 5; + int32 speaker_tag = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; } // A vertex represents a 2D point in the image. @@ -645,6 +733,7 @@ message ObjectTrackingAnnotation { // Non-streaming batch mode ONLY. // Each object track corresponds to one video segment where it appears. VideoSegment segment = 3; + // Streaming mode ONLY. // In streaming mode, we do not know the end time of a tracked object // before it is completed. Hence, there is no VideoSegment info returned. @@ -712,26 +801,24 @@ message StreamingAnnotateVideoResponse { string annotation_results_uri = 3; } -// Config for AUTOML_CLASSIFICATION in streaming mode. +// Config for STREAMING_AUTOML_CLASSIFICATION. message StreamingAutomlClassificationConfig { // Resource name of AutoML model. // Format: `projects/{project_id}/locations/{location_id}/models/{model_id}` string model_name = 1; } -// Config for AUTOML_OBJECT_TRACKING in streaming mode. +// Config for STREAMING_AUTOML_OBJECT_TRACKING. message StreamingAutomlObjectTrackingConfig { // Resource name of AutoML model. // Format: `projects/{project_id}/locations/{location_id}/models/{model_id}` string model_name = 1; } -// Config for EXPLICIT_CONTENT_DETECTION in streaming mode. -message StreamingExplicitContentDetectionConfig { - // No customized config support. -} +// Config for STREAMING_EXPLICIT_CONTENT_DETECTION. +message StreamingExplicitContentDetectionConfig {} -// Config for LABEL_DETECTION in streaming mode. +// Config for STREAMING_LABEL_DETECTION. message StreamingLabelDetectionConfig { // Whether the video has been captured from a stationary (i.e. non-moving) // camera. When set to true, might improve detection accuracy for moving @@ -740,14 +827,10 @@ message StreamingLabelDetectionConfig { } // Config for STREAMING_OBJECT_TRACKING. -message StreamingObjectTrackingConfig { - // No customized config support. -} +message StreamingObjectTrackingConfig {} -// Config for SHOT_CHANGE_DETECTION in streaming mode. -message StreamingShotChangeDetectionConfig { - // No customized config support. -} +// Config for STREAMING_SHOT_CHANGE_DETECTION. +message StreamingShotChangeDetectionConfig {} // Config for streaming storage option. message StreamingStorageConfig { @@ -840,6 +923,9 @@ enum Feature { // Logo detection, tracking, and recognition. LOGO_RECOGNITION = 12; + + // Celebrity recognition. + CELEBRITY_RECOGNITION = 13; } // Label detection mode. @@ -882,16 +968,22 @@ enum Likelihood { enum StreamingFeature { // Unspecified. STREAMING_FEATURE_UNSPECIFIED = 0; + // Label detection. Detect objects, such as dog or flower. STREAMING_LABEL_DETECTION = 1; + // Shot change detection. STREAMING_SHOT_CHANGE_DETECTION = 2; + // Explicit content detection. STREAMING_EXPLICIT_CONTENT_DETECTION = 3; + // Object detection and tracking. STREAMING_OBJECT_TRACKING = 4; + // Video classification based on AutoML model. STREAMING_AUTOML_CLASSIFICATION = 21; + // Object detection and tracking based on AutoML model. STREAMING_AUTOML_OBJECT_TRACKING = 22; } diff --git a/samples/src/main/java/com/google/cloud/examples/videointelligence/v1p3beta1/VideoDetectLogoBeta.java b/samples/src/main/java/com/google/cloud/examples/videointelligence/v1p3beta1/VideoDetectLogoBeta.java new file mode 100644 index 000000000..045433b0e --- /dev/null +++ b/samples/src/main/java/com/google/cloud/examples/videointelligence/v1p3beta1/VideoDetectLogoBeta.java @@ -0,0 +1,187 @@ +/* + * Copyright 2019 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. + */ +// DO NOT EDIT! This is a generated sample ("LongRunningRequestAsync", "video_detect_logo_beta") +// sample-metadata: +// title: +// description: Performs asynchronous video annotation for logo recognition from inline video +// content. +// usage: gradle run +// -PmainClass=com.google.cloud.examples.videointelligence.v1p3beta1.VideoDetectLogoBeta +// [--args='[--local_file_path "resources/googlework_short.mp4"]'] + +package com.google.cloud.examples.videointelligence.v1p3beta1; + +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress; +import com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest; +import com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse; +import com.google.cloud.videointelligence.v1p3beta1.DetectedAttribute; +import com.google.cloud.videointelligence.v1p3beta1.Entity; +import com.google.cloud.videointelligence.v1p3beta1.Feature; +import com.google.cloud.videointelligence.v1p3beta1.LogoRecognitionAnnotation; +import com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox; +import com.google.cloud.videointelligence.v1p3beta1.TimestampedObject; +import com.google.cloud.videointelligence.v1p3beta1.Track; +import com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults; +import com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceClient; +import com.google.cloud.videointelligence.v1p3beta1.VideoSegment; +import com.google.protobuf.ByteString; +import com.google.protobuf.Duration; +import java.nio.file.Files; +import java.nio.file.Path; +import java.nio.file.Paths; +import java.util.Arrays; +import java.util.List; +import org.apache.commons.cli.CommandLine; +import org.apache.commons.cli.DefaultParser; +import org.apache.commons.cli.Option; +import org.apache.commons.cli.Options; + +public class VideoDetectLogoBeta { + // [START video_detect_logo_beta] + /* + * Please include the following imports to run this sample. + * + * import com.google.api.gax.longrunning.OperationFuture; + * import com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress; + * import com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest; + * import com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse; + * import com.google.cloud.videointelligence.v1p3beta1.DetectedAttribute; + * import com.google.cloud.videointelligence.v1p3beta1.Entity; + * import com.google.cloud.videointelligence.v1p3beta1.Feature; + * import com.google.cloud.videointelligence.v1p3beta1.LogoRecognitionAnnotation; + * import com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox; + * import com.google.cloud.videointelligence.v1p3beta1.TimestampedObject; + * import com.google.cloud.videointelligence.v1p3beta1.Track; + * import com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults; + * import com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceClient; + * import com.google.cloud.videointelligence.v1p3beta1.VideoSegment; + * import com.google.protobuf.ByteString; + * import com.google.protobuf.Duration; + * import java.nio.file.Files; + * import java.nio.file.Path; + * import java.nio.file.Paths; + * import java.util.Arrays; + * import java.util.List; + */ + + /** + * Performs asynchronous video annotation for logo recognition from inline video content. + * + * @param localFilePath Path to local video file, e.g. /path/video.mp4 + */ + public static void sampleAnnotateVideo(String localFilePath) { + try (VideoIntelligenceServiceClient videoIntelligenceServiceClient = + VideoIntelligenceServiceClient.create()) { + // localFilePath = "resources/googlework_short.mp4"; + Path path = Paths.get(localFilePath); + byte[] data = Files.readAllBytes(path); + ByteString inputContent = ByteString.copyFrom(data); + Feature featuresElement = Feature.LOGO_RECOGNITION; + List features = Arrays.asList(featuresElement); + AnnotateVideoRequest request = + AnnotateVideoRequest.newBuilder() + .setInputContent(inputContent) + .addAllFeatures(features) + .build(); + OperationFuture future = + videoIntelligenceServiceClient.annotateVideoAsync(request); + + System.out.println("Waiting for operation to complete..."); + AnnotateVideoResponse response = future.get(); + // Get the first response, since we sent only one video. + VideoAnnotationResults annotationResult = response.getAnnotationResultsList().get(0); + // Annotations for list of logos detected, tracked and recognized in video. + for (LogoRecognitionAnnotation logoRecognitionAnnotation : + annotationResult.getLogoRecognitionAnnotationsList()) { + Entity entity = logoRecognitionAnnotation.getEntity(); + // Opaque entity ID. Some IDs may be available in [Google Knowledge Graph Search + // API](https://developers.google.com/knowledge-graph/). + System.out.printf("Entity Id : %s\n", entity.getEntityId()); + // Textual description, e.g. `Google`. + System.out.printf("Description : %s\n", entity.getDescription()); + // All logo tracks where the recognized logo appears. Each track corresponds to one logo + // instance appearing in consecutive frames. + for (Track track : logoRecognitionAnnotation.getTracksList()) { + // Video segment of a track. + VideoSegment segment = track.getSegment(); + Duration segmentStartTimeOffset = segment.getStartTimeOffset(); + System.out.printf( + "\n\tStart Time Offset : %s.%s\n", + segmentStartTimeOffset.getSeconds(), segmentStartTimeOffset.getNanos()); + Duration segmentEndTimeOffset = segment.getEndTimeOffset(); + System.out.printf( + "\tEnd Time Offset : %s.%s\n", + segmentEndTimeOffset.getSeconds(), segmentEndTimeOffset.getNanos()); + System.out.printf("\tConfidence : %s\n", track.getConfidence()); + // The object with timestamp and attributes per frame in the track. + for (TimestampedObject timestampedObject : track.getTimestampedObjectsList()) { + // Normalized Bounding box in a frame, where the object is located. + NormalizedBoundingBox normalizedBoundingBox = + timestampedObject.getNormalizedBoundingBox(); + System.out.printf("\n\t\tLeft : %s\n", normalizedBoundingBox.getLeft()); + System.out.printf("\t\tTop : %s\n", normalizedBoundingBox.getTop()); + System.out.printf("\t\tRight : %s\n", normalizedBoundingBox.getRight()); + System.out.printf("\t\tBottom : %s\n", normalizedBoundingBox.getBottom()); + // Optional. The attributes of the object in the bounding box. + for (DetectedAttribute attribute : timestampedObject.getAttributesList()) { + System.out.printf("\n\t\t\tName : %s\n", attribute.getName()); + System.out.printf("\t\t\tConfidence : %s\n", attribute.getConfidence()); + System.out.printf("\t\t\tValue : %s\n", attribute.getValue()); + } + } + // Optional. Attributes in the track level. + for (DetectedAttribute trackAttribute : track.getAttributesList()) { + System.out.printf("\n\t\tName : %s\n", trackAttribute.getName()); + System.out.printf("\t\tConfidence : %s\n", trackAttribute.getConfidence()); + System.out.printf("\t\tValue : %s\n", trackAttribute.getValue()); + } + } + // All video segments where the recognized logo appears. There might be multiple instances + // of the same logo class appearing in one VideoSegment. + for (VideoSegment logoRecognitionAnnotationSegment : + logoRecognitionAnnotation.getSegmentsList()) { + Duration logoRecognitionAnnotationSegmentStartTimeOffset = + logoRecognitionAnnotationSegment.getStartTimeOffset(); + System.out.printf( + "\n\tStart Time Offset : %s.%s\n", + logoRecognitionAnnotationSegmentStartTimeOffset.getSeconds(), + logoRecognitionAnnotationSegmentStartTimeOffset.getNanos()); + Duration logoRecognitionAnnotationSegmentEndTimeOffset = + logoRecognitionAnnotationSegment.getEndTimeOffset(); + System.out.printf( + "\tEnd Time Offset : %s.%s\n", + logoRecognitionAnnotationSegmentEndTimeOffset.getSeconds(), + logoRecognitionAnnotationSegmentEndTimeOffset.getNanos()); + } + } + } catch (Exception exception) { + System.err.println("Failed to create the client due to: " + exception); + } + } + // [END video_detect_logo_beta] + + public static void main(String[] args) throws Exception { + Options options = new Options(); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("local_file_path").build()); + + CommandLine cl = (new DefaultParser()).parse(options, args); + String localFilePath = cl.getOptionValue("local_file_path", "resources/googlework_short.mp4"); + + sampleAnnotateVideo(localFilePath); + } +} diff --git a/samples/src/main/java/com/google/cloud/examples/videointelligence/v1p3beta1/VideoDetectLogoGcsBeta.java b/samples/src/main/java/com/google/cloud/examples/videointelligence/v1p3beta1/VideoDetectLogoGcsBeta.java new file mode 100644 index 000000000..aa1fc400d --- /dev/null +++ b/samples/src/main/java/com/google/cloud/examples/videointelligence/v1p3beta1/VideoDetectLogoGcsBeta.java @@ -0,0 +1,158 @@ +/* + * Copyright 2019 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. + */ +// DO NOT EDIT! This is a generated sample ("LongRunningRequestAsync", +// "video_detect_logo_gcs_beta") +// sample-metadata: +// title: +// description: Performs asynchronous video annotation for logo recognition on a file hosted in +// GCS. +// usage: gradle run +// -PmainClass=com.google.cloud.examples.videointelligence.v1p3beta1.VideoDetectLogoGcsBeta + +package com.google.cloud.examples.videointelligence.v1p3beta1; + +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress; +import com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest; +import com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse; +import com.google.cloud.videointelligence.v1p3beta1.DetectedAttribute; +import com.google.cloud.videointelligence.v1p3beta1.Entity; +import com.google.cloud.videointelligence.v1p3beta1.Feature; +import com.google.cloud.videointelligence.v1p3beta1.LogoRecognitionAnnotation; +import com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox; +import com.google.cloud.videointelligence.v1p3beta1.TimestampedObject; +import com.google.cloud.videointelligence.v1p3beta1.Track; +import com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults; +import com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceClient; +import com.google.cloud.videointelligence.v1p3beta1.VideoSegment; +import com.google.protobuf.Duration; +import java.util.Arrays; +import java.util.List; + +public class VideoDetectLogoGcsBeta { + // [START video_detect_logo_gcs_beta] + /* + * Please include the following imports to run this sample. + * + * import com.google.api.gax.longrunning.OperationFuture; + * import com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress; + * import com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest; + * import com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse; + * import com.google.cloud.videointelligence.v1p3beta1.DetectedAttribute; + * import com.google.cloud.videointelligence.v1p3beta1.Entity; + * import com.google.cloud.videointelligence.v1p3beta1.Feature; + * import com.google.cloud.videointelligence.v1p3beta1.LogoRecognitionAnnotation; + * import com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox; + * import com.google.cloud.videointelligence.v1p3beta1.TimestampedObject; + * import com.google.cloud.videointelligence.v1p3beta1.Track; + * import com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults; + * import com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceClient; + * import com.google.cloud.videointelligence.v1p3beta1.VideoSegment; + * import com.google.protobuf.Duration; + * import java.util.Arrays; + * import java.util.List; + */ + + /** Performs asynchronous video annotation for logo recognition on a file hosted in GCS. */ + public static void sampleAnnotateVideo() { + try (VideoIntelligenceServiceClient videoIntelligenceServiceClient = + VideoIntelligenceServiceClient.create()) { + String inputUri = "gs://cloud-samples-data/video/googlework_short.mp4"; + Feature featuresElement = Feature.LOGO_RECOGNITION; + List features = Arrays.asList(featuresElement); + AnnotateVideoRequest request = + AnnotateVideoRequest.newBuilder().setInputUri(inputUri).addAllFeatures(features).build(); + OperationFuture future = + videoIntelligenceServiceClient.annotateVideoAsync(request); + + System.out.println("Waiting for operation to complete..."); + AnnotateVideoResponse response = future.get(); + // Get the first response, since we sent only one video. + VideoAnnotationResults annotationResult = response.getAnnotationResultsList().get(0); + // Annotations for list of logos detected, tracked and recognized in video. + for (LogoRecognitionAnnotation logoRecognitionAnnotation : + annotationResult.getLogoRecognitionAnnotationsList()) { + Entity entity = logoRecognitionAnnotation.getEntity(); + // Opaque entity ID. Some IDs may be available in [Google Knowledge Graph Search + // API](https://developers.google.com/knowledge-graph/). + System.out.printf("Entity Id : %s\n", entity.getEntityId()); + // Textual description, e.g. `Google`. + System.out.printf("Description : %s\n", entity.getDescription()); + // All logo tracks where the recognized logo appears. Each track corresponds to one logo + // instance appearing in consecutive frames. + for (Track track : logoRecognitionAnnotation.getTracksList()) { + // Video segment of a track. + VideoSegment segment = track.getSegment(); + Duration segmentStartTimeOffset = segment.getStartTimeOffset(); + System.out.printf( + "\n\tStart Time Offset : %s.%s\n", + segmentStartTimeOffset.getSeconds(), segmentStartTimeOffset.getNanos()); + Duration segmentEndTimeOffset = segment.getEndTimeOffset(); + System.out.printf( + "\tEnd Time Offset : %s.%s\n", + segmentEndTimeOffset.getSeconds(), segmentEndTimeOffset.getNanos()); + System.out.printf("\tConfidence : %s\n", track.getConfidence()); + // The object with timestamp and attributes per frame in the track. + for (TimestampedObject timestampedObject : track.getTimestampedObjectsList()) { + // Normalized Bounding box in a frame, where the object is located. + NormalizedBoundingBox normalizedBoundingBox = + timestampedObject.getNormalizedBoundingBox(); + System.out.printf("\n\t\tLeft : %s\n", normalizedBoundingBox.getLeft()); + System.out.printf("\t\tTop : %s\n", normalizedBoundingBox.getTop()); + System.out.printf("\t\tRight : %s\n", normalizedBoundingBox.getRight()); + System.out.printf("\t\tBottom : %s\n", normalizedBoundingBox.getBottom()); + // Optional. The attributes of the object in the bounding box. + for (DetectedAttribute attribute : timestampedObject.getAttributesList()) { + System.out.printf("\n\t\t\tName : %s\n", attribute.getName()); + System.out.printf("\t\t\tConfidence : %s\n", attribute.getConfidence()); + System.out.printf("\t\t\tValue : %s\n", attribute.getValue()); + } + } + // Optional. Attributes in the track level. + for (DetectedAttribute trackAttribute : track.getAttributesList()) { + System.out.printf("\n\t\tName : %s\n", trackAttribute.getName()); + System.out.printf("\t\tConfidence : %s\n", trackAttribute.getConfidence()); + System.out.printf("\t\tValue : %s\n", trackAttribute.getValue()); + } + } + // All video segments where the recognized logo appears. There might be multiple instances + // of the same logo class appearing in one VideoSegment. + for (VideoSegment logoRecognitionAnnotationSegment : + logoRecognitionAnnotation.getSegmentsList()) { + Duration logoRecognitionAnnotationSegmentStartTimeOffset = + logoRecognitionAnnotationSegment.getStartTimeOffset(); + System.out.printf( + "\n\tStart Time Offset : %s.%s\n", + logoRecognitionAnnotationSegmentStartTimeOffset.getSeconds(), + logoRecognitionAnnotationSegmentStartTimeOffset.getNanos()); + Duration logoRecognitionAnnotationSegmentEndTimeOffset = + logoRecognitionAnnotationSegment.getEndTimeOffset(); + System.out.printf( + "\tEnd Time Offset : %s.%s\n", + logoRecognitionAnnotationSegmentEndTimeOffset.getSeconds(), + logoRecognitionAnnotationSegmentEndTimeOffset.getNanos()); + } + } + } catch (Exception exception) { + System.err.println("Failed to create the client due to: " + exception); + } + } + // [END video_detect_logo_gcs_beta] + + public static void main(String[] args) { + sampleAnnotateVideo(); + } +} diff --git a/synth.metadata b/synth.metadata index 378a13c68..afc9de8c5 100644 --- a/synth.metadata +++ b/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-10-19T07:58:24.433373Z", + "updateTime": "2019-11-13T08:59:51.682092Z", "sources": [ { "generator": { "name": "artman", - "version": "0.40.1", - "dockerImage": "googleapis/artman@sha256:168646efbffe41e8f8fa86a60fa0d5724fab67fa37f35082cf6cfc85cedce3c7" + "version": "0.41.1", + "dockerImage": "googleapis/artman@sha256:545c758c76c3f779037aa259023ec3d1ef2d57d2c8cd00a222cb187d63ceac5e" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "0e9a6d15fcb944ed40921ba0aad2082ee1bc7edd", - "internalRef": "275543900" + "sha": "88bbf96b90089994ed16208a0f38cdd07f743742", + "internalRef": "280134477" } }, {