From edff030565cc080134eeda434104eaa0abdefbff Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Wed, 7 Aug 2019 01:03:45 -0700 Subject: [PATCH] Regenerate video-intelligence client --- .../v1/VideoAnnotationResults.java | 1734 ++++++++++++++--- .../v1/VideoAnnotationResultsOrBuilder.java | 149 ++ .../v1/VideoIntelligenceServiceProto.java | 211 +- .../v1/video_intelligence.proto | 10 + .../synth.metadata | 6 +- 5 files changed, 1743 insertions(+), 367 deletions(-) diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoAnnotationResults.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoAnnotationResults.java index 44d1e0a6904b..753bdf6e845a 100644 --- a/google-api-grpc/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoAnnotationResults.java +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoAnnotationResults.java @@ -25,7 +25,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(); faceAnnotations_ = java.util.Collections.emptyList(); shotAnnotations_ = java.util.Collections.emptyList(); @@ -81,11 +83,11 @@ private VideoAnnotationResults( } case 26: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { shotLabelAnnotations_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1.LabelAnnotation>(); - mutable_bitField0_ |= 0x00000008; + mutable_bitField0_ |= 0x00000010; } shotLabelAnnotations_.add( input.readMessage( @@ -95,11 +97,11 @@ private VideoAnnotationResults( } case 34: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { + if (!((mutable_bitField0_ & 0x00000040) != 0)) { frameLabelAnnotations_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1.LabelAnnotation>(); - mutable_bitField0_ |= 0x00000010; + mutable_bitField0_ |= 0x00000040; } frameLabelAnnotations_.add( input.readMessage( @@ -109,10 +111,10 @@ private VideoAnnotationResults( } case 42: { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { + if (!((mutable_bitField0_ & 0x00000080) != 0)) { faceAnnotations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000020; + mutable_bitField0_ |= 0x00000080; } faceAnnotations_.add( input.readMessage( @@ -122,10 +124,10 @@ private VideoAnnotationResults( } case 50: { - if (!((mutable_bitField0_ & 0x00000040) != 0)) { + if (!((mutable_bitField0_ & 0x00000100) != 0)) { shotAnnotations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000040; + mutable_bitField0_ |= 0x00000100; } shotAnnotations_.add( input.readMessage( @@ -184,11 +186,11 @@ private VideoAnnotationResults( } case 90: { - if (!((mutable_bitField0_ & 0x00000100) != 0)) { + if (!((mutable_bitField0_ & 0x00000400) != 0)) { speechTranscriptions_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1.SpeechTranscription>(); - mutable_bitField0_ |= 0x00000100; + mutable_bitField0_ |= 0x00000400; } speechTranscriptions_.add( input.readMessage( @@ -198,10 +200,10 @@ private VideoAnnotationResults( } case 98: { - if (!((mutable_bitField0_ & 0x00000200) != 0)) { + if (!((mutable_bitField0_ & 0x00000800) != 0)) { textAnnotations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000200; + mutable_bitField0_ |= 0x00000800; } textAnnotations_.add( input.readMessage( @@ -211,11 +213,11 @@ private VideoAnnotationResults( } case 114: { - if (!((mutable_bitField0_ & 0x00000400) != 0)) { + if (!((mutable_bitField0_ & 0x00001000) != 0)) { objectAnnotations_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1.ObjectTrackingAnnotation>(); - mutable_bitField0_ |= 0x00000400; + mutable_bitField0_ |= 0x00001000; } objectAnnotations_.add( input.readMessage( @@ -223,6 +225,34 @@ private VideoAnnotationResults( extensionRegistry)); break; } + case 186: + { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + segmentPresenceLabelAnnotations_ = + new java.util.ArrayList< + com.google.cloud.videointelligence.v1.LabelAnnotation>(); + mutable_bitField0_ |= 0x00000008; + } + segmentPresenceLabelAnnotations_.add( + input.readMessage( + com.google.cloud.videointelligence.v1.LabelAnnotation.parser(), + extensionRegistry)); + break; + } + case 194: + { + if (!((mutable_bitField0_ & 0x00000020) != 0)) { + shotPresenceLabelAnnotations_ = + new java.util.ArrayList< + com.google.cloud.videointelligence.v1.LabelAnnotation>(); + mutable_bitField0_ |= 0x00000020; + } + shotPresenceLabelAnnotations_.add( + input.readMessage( + com.google.cloud.videointelligence.v1.LabelAnnotation.parser(), + extensionRegistry)); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -240,27 +270,35 @@ private VideoAnnotationResults( if (((mutable_bitField0_ & 0x00000004) != 0)) { segmentLabelAnnotations_ = java.util.Collections.unmodifiableList(segmentLabelAnnotations_); } - if (((mutable_bitField0_ & 0x00000008) != 0)) { + if (((mutable_bitField0_ & 0x00000010) != 0)) { shotLabelAnnotations_ = java.util.Collections.unmodifiableList(shotLabelAnnotations_); } - if (((mutable_bitField0_ & 0x00000010) != 0)) { + if (((mutable_bitField0_ & 0x00000040) != 0)) { frameLabelAnnotations_ = java.util.Collections.unmodifiableList(frameLabelAnnotations_); } - if (((mutable_bitField0_ & 0x00000020) != 0)) { + if (((mutable_bitField0_ & 0x00000080) != 0)) { faceAnnotations_ = java.util.Collections.unmodifiableList(faceAnnotations_); } - if (((mutable_bitField0_ & 0x00000040) != 0)) { + if (((mutable_bitField0_ & 0x00000100) != 0)) { shotAnnotations_ = java.util.Collections.unmodifiableList(shotAnnotations_); } - if (((mutable_bitField0_ & 0x00000100) != 0)) { + if (((mutable_bitField0_ & 0x00000400) != 0)) { speechTranscriptions_ = java.util.Collections.unmodifiableList(speechTranscriptions_); } - if (((mutable_bitField0_ & 0x00000200) != 0)) { + if (((mutable_bitField0_ & 0x00000800) != 0)) { textAnnotations_ = java.util.Collections.unmodifiableList(textAnnotations_); } - if (((mutable_bitField0_ & 0x00000400) != 0)) { + if (((mutable_bitField0_ & 0x00001000) != 0)) { objectAnnotations_ = java.util.Collections.unmodifiableList(objectAnnotations_); } + 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(); } @@ -451,6 +489,94 @@ public com.google.cloud.videointelligence.v1.LabelAnnotation getSegmentLabelAnno 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. This will eventually
+   * get publicly exposed and the restriction will be removed.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.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. This will eventually
+   * get publicly exposed and the restriction will be removed.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LabelAnnotation segment_presence_label_annotations = 23; + * + */ + public java.util.List + getSegmentPresenceLabelAnnotationsOrBuilderList() { + return segmentPresenceLabelAnnotations_; + } + /** + * + * + *
+   * Presence label annotations on video level or user specified segment level.
+   * There is exactly one element for each unique label. This will eventually
+   * get publicly exposed and the restriction will be removed.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.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. This will eventually
+   * get publicly exposed and the restriction will be removed.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LabelAnnotation segment_presence_label_annotations = 23; + * + */ + public com.google.cloud.videointelligence.v1.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. This will eventually
+   * get publicly exposed and the restriction will be removed.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LabelAnnotation segment_presence_label_annotations = 23; + * + */ + public com.google.cloud.videointelligence.v1.LabelAnnotationOrBuilder + getSegmentPresenceLabelAnnotationsOrBuilder(int index) { + return segmentPresenceLabelAnnotations_.get(index); + } + public static final int SHOT_LABEL_ANNOTATIONS_FIELD_NUMBER = 3; private java.util.List shotLabelAnnotations_; @@ -528,6 +654,94 @@ public com.google.cloud.videointelligence.v1.LabelAnnotation getShotLabelAnnotat 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. This will eventually get publicly exposed and the
+   * restriction will be removed.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.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. This will eventually get publicly exposed and the
+   * restriction will be removed.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_presence_label_annotations = 24; + * + */ + public java.util.List + getShotPresenceLabelAnnotationsOrBuilderList() { + return shotPresenceLabelAnnotations_; + } + /** + * + * + *
+   * Presence label annotations on shot level. There is exactly one element for
+   * each unique label. This will eventually get publicly exposed and the
+   * restriction will be removed.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.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. This will eventually get publicly exposed and the
+   * restriction will be removed.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_presence_label_annotations = 24; + * + */ + public com.google.cloud.videointelligence.v1.LabelAnnotation getShotPresenceLabelAnnotations( + int index) { + return shotPresenceLabelAnnotations_.get(index); + } + /** + * + * + *
+   * Presence label annotations on shot level. There is exactly one element for
+   * each unique label. This will eventually get publicly exposed and the
+   * restriction will be removed.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_presence_label_annotations = 24; + * + */ + public com.google.cloud.videointelligence.v1.LabelAnnotationOrBuilder + getShotPresenceLabelAnnotationsOrBuilder(int index) { + return shotPresenceLabelAnnotations_.get(index); + } + public static final int FRAME_LABEL_ANNOTATIONS_FIELD_NUMBER = 4; private java.util.List frameLabelAnnotations_; @@ -1108,6 +1322,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < objectAnnotations_.size(); i++) { output.writeMessage(14, objectAnnotations_.get(i)); } + 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); } @@ -1161,6 +1381,16 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, objectAnnotations_.get(i)); } + 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; @@ -1184,7 +1414,11 @@ public boolean equals(final java.lang.Object obj) { } 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 (!getFaceAnnotationsList().equals(other.getFaceAnnotationsList())) return false; if (!getShotAnnotationsList().equals(other.getShotAnnotationsList())) return false; @@ -1220,10 +1454,18 @@ public int hashCode() { 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(); @@ -1398,7 +1640,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSegmentLabelAnnotationsFieldBuilder(); + getSegmentPresenceLabelAnnotationsFieldBuilder(); getShotLabelAnnotationsFieldBuilder(); + getShotPresenceLabelAnnotationsFieldBuilder(); getFrameLabelAnnotationsFieldBuilder(); getFaceAnnotationsFieldBuilder(); getShotAnnotationsFieldBuilder(); @@ -1425,27 +1669,39 @@ public Builder clear() { } 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_ & ~0x00000008); + 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_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000040); } else { frameLabelAnnotationsBuilder_.clear(); } if (faceAnnotationsBuilder_ == null) { faceAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000080); } else { faceAnnotationsBuilder_.clear(); } if (shotAnnotationsBuilder_ == null) { shotAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000100); } else { shotAnnotationsBuilder_.clear(); } @@ -1457,19 +1713,19 @@ public Builder clear() { } if (speechTranscriptionsBuilder_ == null) { speechTranscriptions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000400); } else { speechTranscriptionsBuilder_.clear(); } if (textAnnotationsBuilder_ == null) { textAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000800); } else { textAnnotationsBuilder_.clear(); } if (objectAnnotationsBuilder_ == null) { objectAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00001000); } else { objectAnnotationsBuilder_.clear(); } @@ -1525,37 +1781,57 @@ public com.google.cloud.videointelligence.v1.VideoAnnotationResults buildPartial } else { result.segmentLabelAnnotations_ = segmentLabelAnnotationsBuilder_.build(); } - if (shotLabelAnnotationsBuilder_ == null) { + if (segmentPresenceLabelAnnotationsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { - shotLabelAnnotations_ = java.util.Collections.unmodifiableList(shotLabelAnnotations_); + segmentPresenceLabelAnnotations_ = + java.util.Collections.unmodifiableList(segmentPresenceLabelAnnotations_); bitField0_ = (bitField0_ & ~0x00000008); } + result.segmentPresenceLabelAnnotations_ = segmentPresenceLabelAnnotations_; + } else { + result.segmentPresenceLabelAnnotations_ = segmentPresenceLabelAnnotationsBuilder_.build(); + } + if (shotLabelAnnotationsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + shotLabelAnnotations_ = java.util.Collections.unmodifiableList(shotLabelAnnotations_); + 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_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { frameLabelAnnotations_ = java.util.Collections.unmodifiableList(frameLabelAnnotations_); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000040); } result.frameLabelAnnotations_ = frameLabelAnnotations_; } else { result.frameLabelAnnotations_ = frameLabelAnnotationsBuilder_.build(); } if (faceAnnotationsBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { faceAnnotations_ = java.util.Collections.unmodifiableList(faceAnnotations_); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000080); } result.faceAnnotations_ = faceAnnotations_; } else { result.faceAnnotations_ = faceAnnotationsBuilder_.build(); } if (shotAnnotationsBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { shotAnnotations_ = java.util.Collections.unmodifiableList(shotAnnotations_); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000100); } result.shotAnnotations_ = shotAnnotations_; } else { @@ -1567,27 +1843,27 @@ public com.google.cloud.videointelligence.v1.VideoAnnotationResults buildPartial result.explicitAnnotation_ = explicitAnnotationBuilder_.build(); } if (speechTranscriptionsBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { speechTranscriptions_ = java.util.Collections.unmodifiableList(speechTranscriptions_); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000400); } result.speechTranscriptions_ = speechTranscriptions_; } else { result.speechTranscriptions_ = speechTranscriptionsBuilder_.build(); } if (textAnnotationsBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0)) { + if (((bitField0_ & 0x00000800) != 0)) { textAnnotations_ = java.util.Collections.unmodifiableList(textAnnotations_); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000800); } result.textAnnotations_ = textAnnotations_; } else { result.textAnnotations_ = textAnnotationsBuilder_.build(); } if (objectAnnotationsBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0)) { + if (((bitField0_ & 0x00001000) != 0)) { objectAnnotations_ = java.util.Collections.unmodifiableList(objectAnnotations_); - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00001000); } result.objectAnnotations_ = objectAnnotations_; } else { @@ -1684,11 +1960,39 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1.VideoAnnotationRe } } } + 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_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); } else { ensureShotLabelAnnotationsIsMutable(); shotLabelAnnotations_.addAll(other.shotLabelAnnotations_); @@ -1701,7 +2005,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1.VideoAnnotationRe shotLabelAnnotationsBuilder_.dispose(); shotLabelAnnotationsBuilder_ = null; shotLabelAnnotations_ = other.shotLabelAnnotations_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); shotLabelAnnotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getShotLabelAnnotationsFieldBuilder() @@ -1711,24 +2015,52 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1.VideoAnnotationRe } } } - if (frameLabelAnnotationsBuilder_ == null) { - if (!other.frameLabelAnnotations_.isEmpty()) { - if (frameLabelAnnotations_.isEmpty()) { - frameLabelAnnotations_ = other.frameLabelAnnotations_; - bitField0_ = (bitField0_ & ~0x00000010); + if (shotPresenceLabelAnnotationsBuilder_ == null) { + if (!other.shotPresenceLabelAnnotations_.isEmpty()) { + if (shotPresenceLabelAnnotations_.isEmpty()) { + shotPresenceLabelAnnotations_ = other.shotPresenceLabelAnnotations_; + bitField0_ = (bitField0_ & ~0x00000020); } else { - ensureFrameLabelAnnotationsIsMutable(); - frameLabelAnnotations_.addAll(other.frameLabelAnnotations_); + ensureShotPresenceLabelAnnotationsIsMutable(); + shotPresenceLabelAnnotations_.addAll(other.shotPresenceLabelAnnotations_); } onChanged(); } } else { - if (!other.frameLabelAnnotations_.isEmpty()) { - if (frameLabelAnnotationsBuilder_.isEmpty()) { - frameLabelAnnotationsBuilder_.dispose(); - frameLabelAnnotationsBuilder_ = null; - frameLabelAnnotations_ = other.frameLabelAnnotations_; - bitField0_ = (bitField0_ & ~0x00000010); + 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_ & ~0x00000040); + } else { + ensureFrameLabelAnnotationsIsMutable(); + frameLabelAnnotations_.addAll(other.frameLabelAnnotations_); + } + onChanged(); + } + } else { + if (!other.frameLabelAnnotations_.isEmpty()) { + if (frameLabelAnnotationsBuilder_.isEmpty()) { + frameLabelAnnotationsBuilder_.dispose(); + frameLabelAnnotationsBuilder_ = null; + frameLabelAnnotations_ = other.frameLabelAnnotations_; + bitField0_ = (bitField0_ & ~0x00000040); frameLabelAnnotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFrameLabelAnnotationsFieldBuilder() @@ -1742,7 +2074,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1.VideoAnnotationRe if (!other.faceAnnotations_.isEmpty()) { if (faceAnnotations_.isEmpty()) { faceAnnotations_ = other.faceAnnotations_; - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000080); } else { ensureFaceAnnotationsIsMutable(); faceAnnotations_.addAll(other.faceAnnotations_); @@ -1755,7 +2087,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1.VideoAnnotationRe faceAnnotationsBuilder_.dispose(); faceAnnotationsBuilder_ = null; faceAnnotations_ = other.faceAnnotations_; - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000080); faceAnnotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFaceAnnotationsFieldBuilder() @@ -1769,7 +2101,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1.VideoAnnotationRe if (!other.shotAnnotations_.isEmpty()) { if (shotAnnotations_.isEmpty()) { shotAnnotations_ = other.shotAnnotations_; - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000100); } else { ensureShotAnnotationsIsMutable(); shotAnnotations_.addAll(other.shotAnnotations_); @@ -1782,7 +2114,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1.VideoAnnotationRe shotAnnotationsBuilder_.dispose(); shotAnnotationsBuilder_ = null; shotAnnotations_ = other.shotAnnotations_; - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000100); shotAnnotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getShotAnnotationsFieldBuilder() @@ -1799,7 +2131,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1.VideoAnnotationRe if (!other.speechTranscriptions_.isEmpty()) { if (speechTranscriptions_.isEmpty()) { speechTranscriptions_ = other.speechTranscriptions_; - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000400); } else { ensureSpeechTranscriptionsIsMutable(); speechTranscriptions_.addAll(other.speechTranscriptions_); @@ -1812,7 +2144,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1.VideoAnnotationRe speechTranscriptionsBuilder_.dispose(); speechTranscriptionsBuilder_ = null; speechTranscriptions_ = other.speechTranscriptions_; - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000400); speechTranscriptionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSpeechTranscriptionsFieldBuilder() @@ -1826,7 +2158,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1.VideoAnnotationRe if (!other.textAnnotations_.isEmpty()) { if (textAnnotations_.isEmpty()) { textAnnotations_ = other.textAnnotations_; - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000800); } else { ensureTextAnnotationsIsMutable(); textAnnotations_.addAll(other.textAnnotations_); @@ -1839,7 +2171,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1.VideoAnnotationRe textAnnotationsBuilder_.dispose(); textAnnotationsBuilder_ = null; textAnnotations_ = other.textAnnotations_; - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000800); textAnnotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTextAnnotationsFieldBuilder() @@ -1853,7 +2185,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1.VideoAnnotationRe if (!other.objectAnnotations_.isEmpty()) { if (objectAnnotations_.isEmpty()) { objectAnnotations_ = other.objectAnnotations_; - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00001000); } else { ensureObjectAnnotationsIsMutable(); objectAnnotations_.addAll(other.objectAnnotations_); @@ -1866,7 +2198,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1.VideoAnnotationRe objectAnnotationsBuilder_.dispose(); objectAnnotationsBuilder_ = null; objectAnnotations_ = other.objectAnnotations_; - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00001000); objectAnnotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getObjectAnnotationsFieldBuilder() @@ -2517,61 +2849,903 @@ public Builder removeSegmentLabelAnnotations(int index) { if (segmentLabelAnnotationsBuilder_ == null) { return segmentLabelAnnotations_.get(index); } else { - return segmentLabelAnnotationsBuilder_.getMessageOrBuilder(index); + return segmentLabelAnnotationsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Topical label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LabelAnnotation segment_label_annotations = 2; + * + */ + public java.util.List + getSegmentLabelAnnotationsOrBuilderList() { + if (segmentLabelAnnotationsBuilder_ != null) { + return segmentLabelAnnotationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(segmentLabelAnnotations_); + } + } + /** + * + * + *
+     * Topical label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LabelAnnotation segment_label_annotations = 2; + * + */ + public com.google.cloud.videointelligence.v1.LabelAnnotation.Builder + addSegmentLabelAnnotationsBuilder() { + return getSegmentLabelAnnotationsFieldBuilder() + .addBuilder(com.google.cloud.videointelligence.v1.LabelAnnotation.getDefaultInstance()); + } + /** + * + * + *
+     * Topical label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LabelAnnotation segment_label_annotations = 2; + * + */ + public com.google.cloud.videointelligence.v1.LabelAnnotation.Builder + addSegmentLabelAnnotationsBuilder(int index) { + return getSegmentLabelAnnotationsFieldBuilder() + .addBuilder( + index, com.google.cloud.videointelligence.v1.LabelAnnotation.getDefaultInstance()); + } + /** + * + * + *
+     * Topical label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LabelAnnotation segment_label_annotations = 2; + * + */ + public java.util.List + getSegmentLabelAnnotationsBuilderList() { + return getSegmentLabelAnnotationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1.LabelAnnotation, + com.google.cloud.videointelligence.v1.LabelAnnotation.Builder, + com.google.cloud.videointelligence.v1.LabelAnnotationOrBuilder> + getSegmentLabelAnnotationsFieldBuilder() { + if (segmentLabelAnnotationsBuilder_ == null) { + segmentLabelAnnotationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1.LabelAnnotation, + com.google.cloud.videointelligence.v1.LabelAnnotation.Builder, + com.google.cloud.videointelligence.v1.LabelAnnotationOrBuilder>( + segmentLabelAnnotations_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + segmentLabelAnnotations_ = null; + } + return segmentLabelAnnotationsBuilder_; + } + + private java.util.List + segmentPresenceLabelAnnotations_ = java.util.Collections.emptyList(); + + private void ensureSegmentPresenceLabelAnnotationsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + segmentPresenceLabelAnnotations_ = + new java.util.ArrayList( + segmentPresenceLabelAnnotations_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1.LabelAnnotation, + com.google.cloud.videointelligence.v1.LabelAnnotation.Builder, + com.google.cloud.videointelligence.v1.LabelAnnotationOrBuilder> + segmentPresenceLabelAnnotationsBuilder_; + + /** + * + * + *
+     * Presence label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label. This will eventually
+     * get publicly exposed and the restriction will be removed.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.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. This will eventually
+     * get publicly exposed and the restriction will be removed.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.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. This will eventually
+     * get publicly exposed and the restriction will be removed.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LabelAnnotation segment_presence_label_annotations = 23; + * + */ + public com.google.cloud.videointelligence.v1.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. This will eventually
+     * get publicly exposed and the restriction will be removed.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LabelAnnotation segment_presence_label_annotations = 23; + * + */ + public Builder setSegmentPresenceLabelAnnotations( + int index, com.google.cloud.videointelligence.v1.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. This will eventually
+     * get publicly exposed and the restriction will be removed.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LabelAnnotation segment_presence_label_annotations = 23; + * + */ + public Builder setSegmentPresenceLabelAnnotations( + int index, com.google.cloud.videointelligence.v1.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. This will eventually
+     * get publicly exposed and the restriction will be removed.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LabelAnnotation segment_presence_label_annotations = 23; + * + */ + public Builder addSegmentPresenceLabelAnnotations( + com.google.cloud.videointelligence.v1.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. This will eventually
+     * get publicly exposed and the restriction will be removed.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LabelAnnotation segment_presence_label_annotations = 23; + * + */ + public Builder addSegmentPresenceLabelAnnotations( + int index, com.google.cloud.videointelligence.v1.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. This will eventually
+     * get publicly exposed and the restriction will be removed.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LabelAnnotation segment_presence_label_annotations = 23; + * + */ + public Builder addSegmentPresenceLabelAnnotations( + com.google.cloud.videointelligence.v1.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. This will eventually
+     * get publicly exposed and the restriction will be removed.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LabelAnnotation segment_presence_label_annotations = 23; + * + */ + public Builder addSegmentPresenceLabelAnnotations( + int index, com.google.cloud.videointelligence.v1.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. This will eventually
+     * get publicly exposed and the restriction will be removed.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.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. This will eventually
+     * get publicly exposed and the restriction will be removed.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.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. This will eventually
+     * get publicly exposed and the restriction will be removed.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.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. This will eventually
+     * get publicly exposed and the restriction will be removed.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LabelAnnotation segment_presence_label_annotations = 23; + * + */ + public com.google.cloud.videointelligence.v1.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. This will eventually
+     * get publicly exposed and the restriction will be removed.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LabelAnnotation segment_presence_label_annotations = 23; + * + */ + public com.google.cloud.videointelligence.v1.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. This will eventually
+     * get publicly exposed and the restriction will be removed.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LabelAnnotation segment_presence_label_annotations = 23; + * + */ + public java.util.List + 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. This will eventually
+     * get publicly exposed and the restriction will be removed.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LabelAnnotation segment_presence_label_annotations = 23; + * + */ + public com.google.cloud.videointelligence.v1.LabelAnnotation.Builder + addSegmentPresenceLabelAnnotationsBuilder() { + return getSegmentPresenceLabelAnnotationsFieldBuilder() + .addBuilder(com.google.cloud.videointelligence.v1.LabelAnnotation.getDefaultInstance()); + } + /** + * + * + *
+     * Presence label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label. This will eventually
+     * get publicly exposed and the restriction will be removed.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LabelAnnotation segment_presence_label_annotations = 23; + * + */ + public com.google.cloud.videointelligence.v1.LabelAnnotation.Builder + addSegmentPresenceLabelAnnotationsBuilder(int index) { + return getSegmentPresenceLabelAnnotationsFieldBuilder() + .addBuilder( + index, com.google.cloud.videointelligence.v1.LabelAnnotation.getDefaultInstance()); + } + /** + * + * + *
+     * Presence label annotations on video level or user specified segment level.
+     * There is exactly one element for each unique label. This will eventually
+     * get publicly exposed and the restriction will be removed.
+     * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LabelAnnotation segment_presence_label_annotations = 23; + * + */ + public java.util.List + getSegmentPresenceLabelAnnotationsBuilderList() { + return getSegmentPresenceLabelAnnotationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1.LabelAnnotation, + com.google.cloud.videointelligence.v1.LabelAnnotation.Builder, + com.google.cloud.videointelligence.v1.LabelAnnotationOrBuilder> + getSegmentPresenceLabelAnnotationsFieldBuilder() { + if (segmentPresenceLabelAnnotationsBuilder_ == null) { + segmentPresenceLabelAnnotationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.videointelligence.v1.LabelAnnotation, + com.google.cloud.videointelligence.v1.LabelAnnotation.Builder, + com.google.cloud.videointelligence.v1.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.v1.LabelAnnotation, + com.google.cloud.videointelligence.v1.LabelAnnotation.Builder, + com.google.cloud.videointelligence.v1.LabelAnnotationOrBuilder> + shotLabelAnnotationsBuilder_; + + /** + * + * + *
+     * Topical label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.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.v1.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.v1.LabelAnnotation shot_label_annotations = 3; + * + */ + public com.google.cloud.videointelligence.v1.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.v1.LabelAnnotation shot_label_annotations = 3; + * + */ + public Builder setShotLabelAnnotations( + int index, com.google.cloud.videointelligence.v1.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.v1.LabelAnnotation shot_label_annotations = 3; + * + */ + public Builder setShotLabelAnnotations( + int index, com.google.cloud.videointelligence.v1.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.v1.LabelAnnotation shot_label_annotations = 3; + * + */ + public Builder addShotLabelAnnotations( + com.google.cloud.videointelligence.v1.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.v1.LabelAnnotation shot_label_annotations = 3; + * + */ + public Builder addShotLabelAnnotations( + int index, com.google.cloud.videointelligence.v1.LabelAnnotation value) { + if (shotLabelAnnotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureShotLabelAnnotationsIsMutable(); + shotLabelAnnotations_.add(index, value); + onChanged(); + } else { + shotLabelAnnotationsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Topical label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_label_annotations = 3; + * + */ + public Builder addShotLabelAnnotations( + com.google.cloud.videointelligence.v1.LabelAnnotation.Builder builderForValue) { + if (shotLabelAnnotationsBuilder_ == null) { + ensureShotLabelAnnotationsIsMutable(); + shotLabelAnnotations_.add(builderForValue.build()); + onChanged(); + } else { + shotLabelAnnotationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Topical label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_label_annotations = 3; + * + */ + public Builder addShotLabelAnnotations( + int index, com.google.cloud.videointelligence.v1.LabelAnnotation.Builder builderForValue) { + if (shotLabelAnnotationsBuilder_ == null) { + ensureShotLabelAnnotationsIsMutable(); + shotLabelAnnotations_.add(index, builderForValue.build()); + onChanged(); + } else { + shotLabelAnnotationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Topical label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_label_annotations = 3; + * + */ + public Builder addAllShotLabelAnnotations( + java.lang.Iterable + values) { + if (shotLabelAnnotationsBuilder_ == null) { + ensureShotLabelAnnotationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, shotLabelAnnotations_); + onChanged(); + } else { + shotLabelAnnotationsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Topical label annotations on shot level.
+     * There is exactly one element for each unique label.
+     * 
+ * + * repeated .google.cloud.videointelligence.v1.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.v1.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.v1.LabelAnnotation shot_label_annotations = 3; + * + */ + public com.google.cloud.videointelligence.v1.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.v1.LabelAnnotation shot_label_annotations = 3; + * + */ + public com.google.cloud.videointelligence.v1.LabelAnnotationOrBuilder + getShotLabelAnnotationsOrBuilder(int index) { + if (shotLabelAnnotationsBuilder_ == null) { + return shotLabelAnnotations_.get(index); + } else { + return shotLabelAnnotationsBuilder_.getMessageOrBuilder(index); } } /** * * *
-     * Topical label annotations on video level or user specified segment level.
+     * Topical label annotations on shot level.
      * There is exactly one element for each unique label.
      * 
* - * - * repeated .google.cloud.videointelligence.v1.LabelAnnotation segment_label_annotations = 2; + * repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_label_annotations = 3; * */ public java.util.List - getSegmentLabelAnnotationsOrBuilderList() { - if (segmentLabelAnnotationsBuilder_ != null) { - return segmentLabelAnnotationsBuilder_.getMessageOrBuilderList(); + getShotLabelAnnotationsOrBuilderList() { + if (shotLabelAnnotationsBuilder_ != null) { + return shotLabelAnnotationsBuilder_.getMessageOrBuilderList(); } else { - return java.util.Collections.unmodifiableList(segmentLabelAnnotations_); + return java.util.Collections.unmodifiableList(shotLabelAnnotations_); } } /** * * *
-     * Topical label annotations on video level or user specified segment level.
+     * Topical label annotations on shot level.
      * There is exactly one element for each unique label.
      * 
* - * - * repeated .google.cloud.videointelligence.v1.LabelAnnotation segment_label_annotations = 2; + * repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_label_annotations = 3; * */ public com.google.cloud.videointelligence.v1.LabelAnnotation.Builder - addSegmentLabelAnnotationsBuilder() { - return getSegmentLabelAnnotationsFieldBuilder() + addShotLabelAnnotationsBuilder() { + return getShotLabelAnnotationsFieldBuilder() .addBuilder(com.google.cloud.videointelligence.v1.LabelAnnotation.getDefaultInstance()); } /** * * *
-     * Topical label annotations on video level or user specified segment level.
+     * Topical label annotations on shot level.
      * There is exactly one element for each unique label.
      * 
* - * - * repeated .google.cloud.videointelligence.v1.LabelAnnotation segment_label_annotations = 2; + * repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_label_annotations = 3; * */ public com.google.cloud.videointelligence.v1.LabelAnnotation.Builder - addSegmentLabelAnnotationsBuilder(int index) { - return getSegmentLabelAnnotationsFieldBuilder() + addShotLabelAnnotationsBuilder(int index) { + return getShotLabelAnnotationsFieldBuilder() .addBuilder( index, com.google.cloud.videointelligence.v1.LabelAnnotation.getDefaultInstance()); } @@ -2579,48 +3753,47 @@ public Builder removeSegmentLabelAnnotations(int index) { * * *
-     * Topical label annotations on video level or user specified segment level.
+     * Topical label annotations on shot level.
      * There is exactly one element for each unique label.
      * 
* - * - * repeated .google.cloud.videointelligence.v1.LabelAnnotation segment_label_annotations = 2; + * repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_label_annotations = 3; * */ public java.util.List - getSegmentLabelAnnotationsBuilderList() { - return getSegmentLabelAnnotationsFieldBuilder().getBuilderList(); + getShotLabelAnnotationsBuilderList() { + return getShotLabelAnnotationsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.videointelligence.v1.LabelAnnotation, com.google.cloud.videointelligence.v1.LabelAnnotation.Builder, com.google.cloud.videointelligence.v1.LabelAnnotationOrBuilder> - getSegmentLabelAnnotationsFieldBuilder() { - if (segmentLabelAnnotationsBuilder_ == null) { - segmentLabelAnnotationsBuilder_ = + getShotLabelAnnotationsFieldBuilder() { + if (shotLabelAnnotationsBuilder_ == null) { + shotLabelAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.videointelligence.v1.LabelAnnotation, com.google.cloud.videointelligence.v1.LabelAnnotation.Builder, com.google.cloud.videointelligence.v1.LabelAnnotationOrBuilder>( - segmentLabelAnnotations_, - ((bitField0_ & 0x00000004) != 0), + shotLabelAnnotations_, + ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); - segmentLabelAnnotations_ = null; + shotLabelAnnotations_ = null; } - return segmentLabelAnnotationsBuilder_; + return shotLabelAnnotationsBuilder_; } private java.util.List - shotLabelAnnotations_ = java.util.Collections.emptyList(); + shotPresenceLabelAnnotations_ = java.util.Collections.emptyList(); - private void ensureShotLabelAnnotationsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - shotLabelAnnotations_ = + private void ensureShotPresenceLabelAnnotationsIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + shotPresenceLabelAnnotations_ = new java.util.ArrayList( - shotLabelAnnotations_); - bitField0_ |= 0x00000008; + shotPresenceLabelAnnotations_); + bitField0_ |= 0x00000020; } } @@ -2628,86 +3801,94 @@ private void ensureShotLabelAnnotationsIsMutable() { com.google.cloud.videointelligence.v1.LabelAnnotation, com.google.cloud.videointelligence.v1.LabelAnnotation.Builder, com.google.cloud.videointelligence.v1.LabelAnnotationOrBuilder> - shotLabelAnnotationsBuilder_; + shotPresenceLabelAnnotationsBuilder_; /** * * *
-     * Topical 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. This will eventually get publicly exposed and the
+     * restriction will be removed.
      * 
* - * repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_label_annotations = 3; + * + * repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_presence_label_annotations = 24; * */ public java.util.List - getShotLabelAnnotationsList() { - if (shotLabelAnnotationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(shotLabelAnnotations_); + getShotPresenceLabelAnnotationsList() { + if (shotPresenceLabelAnnotationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(shotPresenceLabelAnnotations_); } else { - return shotLabelAnnotationsBuilder_.getMessageList(); + return shotPresenceLabelAnnotationsBuilder_.getMessageList(); } } /** * * *
-     * Topical 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. This will eventually get publicly exposed and the
+     * restriction will be removed.
      * 
* - * repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_label_annotations = 3; + * + * repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_presence_label_annotations = 24; * */ - public int getShotLabelAnnotationsCount() { - if (shotLabelAnnotationsBuilder_ == null) { - return shotLabelAnnotations_.size(); + public int getShotPresenceLabelAnnotationsCount() { + if (shotPresenceLabelAnnotationsBuilder_ == null) { + return shotPresenceLabelAnnotations_.size(); } else { - return shotLabelAnnotationsBuilder_.getCount(); + return shotPresenceLabelAnnotationsBuilder_.getCount(); } } /** * * *
-     * Topical 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. This will eventually get publicly exposed and the
+     * restriction will be removed.
      * 
* - * repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_label_annotations = 3; + * + * repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_presence_label_annotations = 24; * */ - public com.google.cloud.videointelligence.v1.LabelAnnotation getShotLabelAnnotations( + public com.google.cloud.videointelligence.v1.LabelAnnotation getShotPresenceLabelAnnotations( int index) { - if (shotLabelAnnotationsBuilder_ == null) { - return shotLabelAnnotations_.get(index); + if (shotPresenceLabelAnnotationsBuilder_ == null) { + return shotPresenceLabelAnnotations_.get(index); } else { - return shotLabelAnnotationsBuilder_.getMessage(index); + return shotPresenceLabelAnnotationsBuilder_.getMessage(index); } } /** * * *
-     * Topical 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. This will eventually get publicly exposed and the
+     * restriction will be removed.
      * 
* - * repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_label_annotations = 3; + * + * repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_presence_label_annotations = 24; * */ - public Builder setShotLabelAnnotations( + public Builder setShotPresenceLabelAnnotations( int index, com.google.cloud.videointelligence.v1.LabelAnnotation value) { - if (shotLabelAnnotationsBuilder_ == null) { + 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; } @@ -2715,21 +3896,23 @@ public Builder setShotLabelAnnotations( * * *
-     * Topical 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. This will eventually get publicly exposed and the
+     * restriction will be removed.
      * 
* - * repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_label_annotations = 3; + * + * repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_presence_label_annotations = 24; * */ - public Builder setShotLabelAnnotations( + public Builder setShotPresenceLabelAnnotations( int index, com.google.cloud.videointelligence.v1.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; } @@ -2737,24 +3920,26 @@ public Builder setShotLabelAnnotations( * * *
-     * Topical 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. This will eventually get publicly exposed and the
+     * restriction will be removed.
      * 
* - * repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_label_annotations = 3; + * + * repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_presence_label_annotations = 24; * */ - public Builder addShotLabelAnnotations( + public Builder addShotPresenceLabelAnnotations( com.google.cloud.videointelligence.v1.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; } @@ -2762,24 +3947,26 @@ public Builder addShotLabelAnnotations( * * *
-     * Topical 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. This will eventually get publicly exposed and the
+     * restriction will be removed.
      * 
* - * repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_label_annotations = 3; + * + * repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_presence_label_annotations = 24; * */ - public Builder addShotLabelAnnotations( + public Builder addShotPresenceLabelAnnotations( int index, com.google.cloud.videointelligence.v1.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; } @@ -2787,21 +3974,23 @@ public Builder addShotLabelAnnotations( * * *
-     * Topical 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. This will eventually get publicly exposed and the
+     * restriction will be removed.
      * 
* - * repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_label_annotations = 3; + * + * repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_presence_label_annotations = 24; * */ - public Builder addShotLabelAnnotations( + public Builder addShotPresenceLabelAnnotations( com.google.cloud.videointelligence.v1.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; } @@ -2809,21 +3998,23 @@ public Builder addShotLabelAnnotations( * * *
-     * Topical 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. This will eventually get publicly exposed and the
+     * restriction will be removed.
      * 
* - * repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_label_annotations = 3; + * + * repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_presence_label_annotations = 24; * */ - public Builder addShotLabelAnnotations( + public Builder addShotPresenceLabelAnnotations( int index, com.google.cloud.videointelligence.v1.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; } @@ -2831,22 +4022,25 @@ public Builder addShotLabelAnnotations( * * *
-     * Topical 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. This will eventually get publicly exposed and the
+     * restriction will be removed.
      * 
* - * repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_label_annotations = 3; + * + * repeated .google.cloud.videointelligence.v1.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; } @@ -2854,20 +4048,22 @@ public Builder addAllShotLabelAnnotations( * * *
-     * Topical 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. This will eventually get publicly exposed and the
+     * restriction will be removed.
      * 
* - * repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_label_annotations = 3; + * + * repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_presence_label_annotations = 24; * */ - public Builder clearShotLabelAnnotations() { - if (shotLabelAnnotationsBuilder_ == null) { - shotLabelAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + public Builder clearShotPresenceLabelAnnotations() { + if (shotPresenceLabelAnnotationsBuilder_ == null) { + shotPresenceLabelAnnotations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { - shotLabelAnnotationsBuilder_.clear(); + shotPresenceLabelAnnotationsBuilder_.clear(); } return this; } @@ -2875,20 +4071,22 @@ public Builder clearShotLabelAnnotations() { * * *
-     * Topical 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. This will eventually get publicly exposed and the
+     * restriction will be removed.
      * 
* - * repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_label_annotations = 3; + * + * repeated .google.cloud.videointelligence.v1.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; } @@ -2896,85 +4094,95 @@ public Builder removeShotLabelAnnotations(int index) { * * *
-     * Topical 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. This will eventually get publicly exposed and the
+     * restriction will be removed.
      * 
* - * repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_label_annotations = 3; + * + * repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_presence_label_annotations = 24; * */ public com.google.cloud.videointelligence.v1.LabelAnnotation.Builder - getShotLabelAnnotationsBuilder(int index) { - return getShotLabelAnnotationsFieldBuilder().getBuilder(index); + getShotPresenceLabelAnnotationsBuilder(int index) { + return getShotPresenceLabelAnnotationsFieldBuilder().getBuilder(index); } /** * * *
-     * Topical 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. This will eventually get publicly exposed and the
+     * restriction will be removed.
      * 
* - * repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_label_annotations = 3; + * + * repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_presence_label_annotations = 24; * */ public com.google.cloud.videointelligence.v1.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); } } /** * * *
-     * Topical 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. This will eventually get publicly exposed and the
+     * restriction will be removed.
      * 
* - * repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_label_annotations = 3; + * + * repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_presence_label_annotations = 24; * */ public java.util.List - 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_); } } /** * * *
-     * Topical 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. This will eventually get publicly exposed and the
+     * restriction will be removed.
      * 
* - * repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_label_annotations = 3; + * + * repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_presence_label_annotations = 24; * */ public com.google.cloud.videointelligence.v1.LabelAnnotation.Builder - addShotLabelAnnotationsBuilder() { - return getShotLabelAnnotationsFieldBuilder() + addShotPresenceLabelAnnotationsBuilder() { + return getShotPresenceLabelAnnotationsFieldBuilder() .addBuilder(com.google.cloud.videointelligence.v1.LabelAnnotation.getDefaultInstance()); } /** * * *
-     * Topical 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. This will eventually get publicly exposed and the
+     * restriction will be removed.
      * 
* - * repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_label_annotations = 3; + * + * repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_presence_label_annotations = 24; * */ public com.google.cloud.videointelligence.v1.LabelAnnotation.Builder - addShotLabelAnnotationsBuilder(int index) { - return getShotLabelAnnotationsFieldBuilder() + addShotPresenceLabelAnnotationsBuilder(int index) { + return getShotPresenceLabelAnnotationsFieldBuilder() .addBuilder( index, com.google.cloud.videointelligence.v1.LabelAnnotation.getDefaultInstance()); } @@ -2982,47 +4190,49 @@ public Builder removeShotLabelAnnotations(int index) { * * *
-     * Topical 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. This will eventually get publicly exposed and the
+     * restriction will be removed.
      * 
* - * repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_label_annotations = 3; + * + * repeated .google.cloud.videointelligence.v1.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.v1.LabelAnnotation, com.google.cloud.videointelligence.v1.LabelAnnotation.Builder, com.google.cloud.videointelligence.v1.LabelAnnotationOrBuilder> - getShotLabelAnnotationsFieldBuilder() { - if (shotLabelAnnotationsBuilder_ == null) { - shotLabelAnnotationsBuilder_ = + getShotPresenceLabelAnnotationsFieldBuilder() { + if (shotPresenceLabelAnnotationsBuilder_ == null) { + shotPresenceLabelAnnotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.videointelligence.v1.LabelAnnotation, com.google.cloud.videointelligence.v1.LabelAnnotation.Builder, com.google.cloud.videointelligence.v1.LabelAnnotationOrBuilder>( - shotLabelAnnotations_, - ((bitField0_ & 0x00000008) != 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_ & 0x00000010) != 0)) { + if (!((bitField0_ & 0x00000040) != 0)) { frameLabelAnnotations_ = new java.util.ArrayList( frameLabelAnnotations_); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; } } @@ -3277,7 +4487,7 @@ public Builder addAllFrameLabelAnnotations( public Builder clearFrameLabelAnnotations() { if (frameLabelAnnotationsBuilder_ == null) { frameLabelAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { frameLabelAnnotationsBuilder_.clear(); @@ -3426,7 +4636,7 @@ public Builder removeFrameLabelAnnotations(int index) { com.google.cloud.videointelligence.v1.LabelAnnotation.Builder, com.google.cloud.videointelligence.v1.LabelAnnotationOrBuilder>( frameLabelAnnotations_, - ((bitField0_ & 0x00000010) != 0), + ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); frameLabelAnnotations_ = null; @@ -3438,11 +4648,11 @@ public Builder removeFrameLabelAnnotations(int index) { java.util.Collections.emptyList(); private void ensureFaceAnnotationsIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { + if (!((bitField0_ & 0x00000080) != 0)) { faceAnnotations_ = new java.util.ArrayList( faceAnnotations_); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; } } @@ -3661,7 +4871,7 @@ public Builder addAllFaceAnnotations( public Builder clearFaceAnnotations() { if (faceAnnotationsBuilder_ == null) { faceAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { faceAnnotationsBuilder_.clear(); @@ -3789,7 +4999,7 @@ public com.google.cloud.videointelligence.v1.FaceAnnotation.Builder addFaceAnnot com.google.cloud.videointelligence.v1.FaceAnnotation.Builder, com.google.cloud.videointelligence.v1.FaceAnnotationOrBuilder>( faceAnnotations_, - ((bitField0_ & 0x00000020) != 0), + ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); faceAnnotations_ = null; @@ -3801,11 +5011,11 @@ public com.google.cloud.videointelligence.v1.FaceAnnotation.Builder addFaceAnnot java.util.Collections.emptyList(); private void ensureShotAnnotationsIsMutable() { - if (!((bitField0_ & 0x00000040) != 0)) { + if (!((bitField0_ & 0x00000100) != 0)) { shotAnnotations_ = new java.util.ArrayList( shotAnnotations_); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; } } @@ -4024,7 +5234,7 @@ public Builder addAllShotAnnotations( public Builder clearShotAnnotations() { if (shotAnnotationsBuilder_ == null) { shotAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); } else { shotAnnotationsBuilder_.clear(); @@ -4151,7 +5361,7 @@ public com.google.cloud.videointelligence.v1.VideoSegment.Builder addShotAnnotat com.google.cloud.videointelligence.v1.VideoSegment.Builder, com.google.cloud.videointelligence.v1.VideoSegmentOrBuilder>( shotAnnotations_, - ((bitField0_ & 0x00000040) != 0), + ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean()); shotAnnotations_ = null; @@ -4359,11 +5569,11 @@ public Builder clearExplicitAnnotation() { speechTranscriptions_ = java.util.Collections.emptyList(); private void ensureSpeechTranscriptionsIsMutable() { - if (!((bitField0_ & 0x00000100) != 0)) { + if (!((bitField0_ & 0x00000400) != 0)) { speechTranscriptions_ = new java.util.ArrayList( speechTranscriptions_); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; } } @@ -4609,7 +5819,7 @@ public Builder addAllSpeechTranscriptions( public Builder clearSpeechTranscriptions() { if (speechTranscriptionsBuilder_ == null) { speechTranscriptions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); } else { speechTranscriptionsBuilder_.clear(); @@ -4754,7 +5964,7 @@ public Builder removeSpeechTranscriptions(int index) { com.google.cloud.videointelligence.v1.SpeechTranscription.Builder, com.google.cloud.videointelligence.v1.SpeechTranscriptionOrBuilder>( speechTranscriptions_, - ((bitField0_ & 0x00000100) != 0), + ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean()); speechTranscriptions_ = null; @@ -4766,11 +5976,11 @@ public Builder removeSpeechTranscriptions(int index) { java.util.Collections.emptyList(); private void ensureTextAnnotationsIsMutable() { - if (!((bitField0_ & 0x00000200) != 0)) { + if (!((bitField0_ & 0x00000800) != 0)) { textAnnotations_ = new java.util.ArrayList( textAnnotations_); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; } } @@ -5022,7 +6232,7 @@ public Builder addAllTextAnnotations( public Builder clearTextAnnotations() { if (textAnnotationsBuilder_ == null) { textAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); } else { textAnnotationsBuilder_.clear(); @@ -5171,7 +6381,7 @@ public com.google.cloud.videointelligence.v1.TextAnnotation.Builder addTextAnnot com.google.cloud.videointelligence.v1.TextAnnotation.Builder, com.google.cloud.videointelligence.v1.TextAnnotationOrBuilder>( textAnnotations_, - ((bitField0_ & 0x00000200) != 0), + ((bitField0_ & 0x00000800) != 0), getParentForChildren(), isClean()); textAnnotations_ = null; @@ -5183,11 +6393,11 @@ public com.google.cloud.videointelligence.v1.TextAnnotation.Builder addTextAnnot objectAnnotations_ = java.util.Collections.emptyList(); private void ensureObjectAnnotationsIsMutable() { - if (!((bitField0_ & 0x00000400) != 0)) { + if (!((bitField0_ & 0x00001000) != 0)) { objectAnnotations_ = new java.util.ArrayList( objectAnnotations_); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; } } @@ -5433,7 +6643,7 @@ public Builder addAllObjectAnnotations( public Builder clearObjectAnnotations() { if (objectAnnotationsBuilder_ == null) { objectAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); } else { objectAnnotationsBuilder_.clear(); @@ -5578,7 +6788,7 @@ public Builder removeObjectAnnotations(int index) { com.google.cloud.videointelligence.v1.ObjectTrackingAnnotation.Builder, com.google.cloud.videointelligence.v1.ObjectTrackingAnnotationOrBuilder>( objectAnnotations_, - ((bitField0_ & 0x00000400) != 0), + ((bitField0_ & 0x00001000) != 0), getParentForChildren(), isClean()); objectAnnotations_ = null; diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoAnnotationResultsOrBuilder.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoAnnotationResultsOrBuilder.java index 88a93e000223..f633c63a21ed 100644 --- a/google-api-grpc/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoAnnotationResultsOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoAnnotationResultsOrBuilder.java @@ -131,6 +131,81 @@ public interface VideoAnnotationResultsOrBuilder com.google.cloud.videointelligence.v1.LabelAnnotationOrBuilder getSegmentLabelAnnotationsOrBuilder(int index); + /** + * + * + *
+   * Presence label annotations on video level or user specified segment level.
+   * There is exactly one element for each unique label. This will eventually
+   * get publicly exposed and the restriction will be removed.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.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. This will eventually
+   * get publicly exposed and the restriction will be removed.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LabelAnnotation segment_presence_label_annotations = 23; + * + */ + com.google.cloud.videointelligence.v1.LabelAnnotation getSegmentPresenceLabelAnnotations( + int index); + /** + * + * + *
+   * Presence label annotations on video level or user specified segment level.
+   * There is exactly one element for each unique label. This will eventually
+   * get publicly exposed and the restriction will be removed.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.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. This will eventually
+   * get publicly exposed and the restriction will be removed.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.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. This will eventually
+   * get publicly exposed and the restriction will be removed.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LabelAnnotation segment_presence_label_annotations = 23; + * + */ + com.google.cloud.videointelligence.v1.LabelAnnotationOrBuilder + getSegmentPresenceLabelAnnotationsOrBuilder(int index); + /** * * @@ -195,6 +270,80 @@ public interface VideoAnnotationResultsOrBuilder com.google.cloud.videointelligence.v1.LabelAnnotationOrBuilder getShotLabelAnnotationsOrBuilder( int index); + /** + * + * + *
+   * Presence label annotations on shot level. There is exactly one element for
+   * each unique label. This will eventually get publicly exposed and the
+   * restriction will be removed.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.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. This will eventually get publicly exposed and the
+   * restriction will be removed.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_presence_label_annotations = 24; + * + */ + com.google.cloud.videointelligence.v1.LabelAnnotation getShotPresenceLabelAnnotations(int index); + /** + * + * + *
+   * Presence label annotations on shot level. There is exactly one element for
+   * each unique label. This will eventually get publicly exposed and the
+   * restriction will be removed.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_presence_label_annotations = 24; + * + */ + int getShotPresenceLabelAnnotationsCount(); + /** + * + * + *
+   * Presence label annotations on shot level. There is exactly one element for
+   * each unique label. This will eventually get publicly exposed and the
+   * restriction will be removed.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.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. This will eventually get publicly exposed and the
+   * restriction will be removed.
+   * 
+ * + * + * repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_presence_label_annotations = 24; + * + */ + com.google.cloud.videointelligence.v1.LabelAnnotationOrBuilder + getShotPresenceLabelAnnotationsOrBuilder(int index); + /** * * diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoIntelligenceServiceProto.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoIntelligenceServiceProto.java index 141c943b3a14..bd9a3bdd2c7d 100644 --- a/google-api-grpc/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoIntelligenceServiceProto.java +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoIntelligenceServiceProto.java @@ -239,112 +239,117 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "on\022\021\n\tthumbnail\030\001 \001(\014\022@\n\010segments\030\002 \003(\0132" + "..google.cloud.videointelligence.v1.Face" + "Segment\022<\n\006frames\030\003 \003(\0132,.google.cloud.v" - + "ideointelligence.v1.FaceFrame\"\200\007\n\026VideoA" + + "ideointelligence.v1.FaceFrame\"\275\010\n\026VideoA" + "nnotationResults\022\021\n\tinput_uri\030\001 \001(\t\022@\n\007s" + "egment\030\n \001(\0132/.google.cloud.videointelli" + "gence.v1.VideoSegment\022U\n\031segment_label_a" + "nnotations\030\002 \003(\01322.google.cloud.videoint" - + "elligence.v1.LabelAnnotation\022R\n\026shot_lab" - + "el_annotations\030\003 \003(\01322.google.cloud.vide" - + "ointelligence.v1.LabelAnnotation\022S\n\027fram" - + "e_label_annotations\030\004 \003(\01322.google.cloud" - + ".videointelligence.v1.LabelAnnotation\022K\n" - + "\020face_annotations\030\005 \003(\01321.google.cloud.v" - + "ideointelligence.v1.FaceAnnotation\022I\n\020sh" - + "ot_annotations\030\006 \003(\0132/.google.cloud.vide" - + "ointelligence.v1.VideoSegment\022Y\n\023explici" - + "t_annotation\030\007 \001(\0132<.google.cloud.videoi" - + "ntelligence.v1.ExplicitContentAnnotation" - + "\022U\n\025speech_transcriptions\030\013 \003(\01326.google" - + ".cloud.videointelligence.v1.SpeechTransc" - + "ription\022K\n\020text_annotations\030\014 \003(\01321.goog" - + "le.cloud.videointelligence.v1.TextAnnota" - + "tion\022W\n\022object_annotations\030\016 \003(\0132;.googl" - + "e.cloud.videointelligence.v1.ObjectTrack" - + "ingAnnotation\022!\n\005error\030\t \001(\0132\022.google.rp" - + "c.Status\"n\n\025AnnotateVideoResponse\022U\n\022ann" - + "otation_results\030\001 \003(\01329.google.cloud.vid" - + "eointelligence.v1.VideoAnnotationResults" - + "\"\246\002\n\027VideoAnnotationProgress\022\021\n\tinput_ur" - + "i\030\001 \001(\t\022\030\n\020progress_percent\030\002 \001(\005\022.\n\nsta" - + "rt_time\030\003 \001(\0132\032.google.protobuf.Timestam" - + "p\022/\n\013update_time\030\004 \001(\0132\032.google.protobuf" - + ".Timestamp\022;\n\007feature\030\005 \001(\0162*.google.clo" - + "ud.videointelligence.v1.Feature\022@\n\007segme" - + "nt\030\006 \001(\0132/.google.cloud.videointelligenc" - + "e.v1.VideoSegment\"p\n\025AnnotateVideoProgre" - + "ss\022W\n\023annotation_progress\030\001 \003(\0132:.google" - + ".cloud.videointelligence.v1.VideoAnnotat" - + "ionProgress\"\324\002\n\031SpeechTranscriptionConfi" - + "g\022\025\n\rlanguage_code\030\001 \001(\t\022\030\n\020max_alternat" - + "ives\030\002 \001(\005\022\030\n\020filter_profanity\030\003 \001(\010\022I\n\017" - + "speech_contexts\030\004 \003(\01320.google.cloud.vid" - + "eointelligence.v1.SpeechContext\022$\n\034enabl" - + "e_automatic_punctuation\030\005 \001(\010\022\024\n\014audio_t" - + "racks\030\006 \003(\005\022\"\n\032enable_speaker_diarizatio" - + "n\030\007 \001(\010\022!\n\031diarization_speaker_count\030\010 \001" - + "(\005\022\036\n\026enable_word_confidence\030\t \001(\010\" \n\rSp" - + "eechContext\022\017\n\007phrases\030\001 \003(\t\"\203\001\n\023SpeechT" - + "ranscription\022U\n\014alternatives\030\001 \003(\0132?.goo" - + "gle.cloud.videointelligence.v1.SpeechRec" - + "ognitionAlternative\022\025\n\rlanguage_code\030\002 \001" - + "(\t\"\202\001\n\034SpeechRecognitionAlternative\022\022\n\nt" - + "ranscript\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\022:\n\005w" - + "ords\030\003 \003(\0132+.google.cloud.videointellige" - + "nce.v1.WordInfo\"\235\001\n\010WordInfo\022-\n\nstart_ti" - + "me\030\001 \001(\0132\031.google.protobuf.Duration\022+\n\010e" - + "nd_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\013sp" - + "eaker_tag\030\005 \001(\005\"(\n\020NormalizedVertex\022\t\n\001x" - + "\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\"_\n\026NormalizedBoundingP" - + "oly\022E\n\010vertices\030\001 \003(\01323.google.cloud.vid" - + "eointelligence.v1.NormalizedVertex\"\241\001\n\013T" - + "extSegment\022@\n\007segment\030\001 \001(\0132/.google.clo" - + "ud.videointelligence.v1.VideoSegment\022\022\n\n" - + "confidence\030\002 \001(\002\022<\n\006frames\030\003 \003(\0132,.googl" - + "e.cloud.videointelligence.v1.TextFrame\"\224" - + "\001\n\tTextFrame\022W\n\024rotated_bounding_box\030\001 \001" - + "(\01329.google.cloud.videointelligence.v1.N" - + "ormalizedBoundingPoly\022.\n\013time_offset\030\002 \001" - + "(\0132\031.google.protobuf.Duration\"`\n\016TextAnn" - + "otation\022\014\n\004text\030\001 \001(\t\022@\n\010segments\030\002 \003(\0132" - + "..google.cloud.videointelligence.v1.Text" - + "Segment\"\240\001\n\023ObjectTrackingFrame\022Y\n\027norma" - + "lized_bounding_box\030\001 \001(\01328.google.cloud." - + "videointelligence.v1.NormalizedBoundingB" - + "ox\022.\n\013time_offset\030\002 \001(\0132\031.google.protobu" - + "f.Duration\"\227\002\n\030ObjectTrackingAnnotation\022" - + "B\n\007segment\030\003 \001(\0132/.google.cloud.videoint" - + "elligence.v1.VideoSegmentH\000\022\022\n\010track_id\030" - + "\005 \001(\003H\000\0229\n\006entity\030\001 \001(\0132).google.cloud.v" - + "ideointelligence.v1.Entity\022\022\n\nconfidence" - + "\030\004 \001(\002\022F\n\006frames\030\002 \003(\01326.google.cloud.vi" - + "deointelligence.v1.ObjectTrackingFrameB\014" - + "\n\ntrack_info*\311\001\n\007Feature\022\027\n\023FEATURE_UNSP" - + "ECIFIED\020\000\022\023\n\017LABEL_DETECTION\020\001\022\031\n\025SHOT_C" - + "HANGE_DETECTION\020\002\022\036\n\032EXPLICIT_CONTENT_DE" - + "TECTION\020\003\022\022\n\016FACE_DETECTION\020\004\022\030\n\024SPEECH_" - + "TRANSCRIPTION\020\006\022\022\n\016TEXT_DETECTION\020\007\022\023\n\017O" - + "BJECT_TRACKING\020\t*r\n\022LabelDetectionMode\022$" - + "\n LABEL_DETECTION_MODE_UNSPECIFIED\020\000\022\r\n\t" - + "SHOT_MODE\020\001\022\016\n\nFRAME_MODE\020\002\022\027\n\023SHOT_AND_" - + "FRAME_MODE\020\003*t\n\nLikelihood\022\032\n\026LIKELIHOOD" - + "_UNSPECIFIED\020\000\022\021\n\rVERY_UNLIKELY\020\001\022\014\n\010UNL" - + "IKELY\020\002\022\014\n\010POSSIBLE\020\003\022\n\n\006LIKELY\020\004\022\017\n\013VER" - + "Y_LIKELY\020\0052\372\001\n\030VideoIntelligenceService\022" - + "\207\001\n\rAnnotateVideo\0227.google.cloud.videoin" - + "telligence.v1.AnnotateVideoRequest\032\035.goo" - + "gle.longrunning.Operation\"\036\202\323\344\223\002\030\"\023/v1/v" - + "ideos:annotate:\001*\032T\312A videointelligence." - + "googleapis.com\322A.https://www.googleapis." - + "com/auth/cloud-platformB\213\002\n%com.google.c" - + "loud.videointelligence.v1B\035VideoIntellig" - + "enceServiceProtoP\001ZRgoogle.golang.org/ge" - + "nproto/googleapis/cloud/videointelligenc" - + "e/v1;videointelligence\252\002!Google.Cloud.Vi" - + "deoIntelligence.V1\312\002!Google\\Cloud\\VideoI" - + "ntelligence\\V1\352\002$Google::Cloud::VideoInt" - + "elligence::V1b\006proto3" + + "elligence.v1.LabelAnnotation\022^\n\"segment_" + + "presence_label_annotations\030\027 \003(\01322.googl" + + "e.cloud.videointelligence.v1.LabelAnnota" + + "tion\022R\n\026shot_label_annotations\030\003 \003(\01322.g" + + "oogle.cloud.videointelligence.v1.LabelAn" + + "notation\022[\n\037shot_presence_label_annotati" + + "ons\030\030 \003(\01322.google.cloud.videointelligen" + + "ce.v1.LabelAnnotation\022S\n\027frame_label_ann" + + "otations\030\004 \003(\01322.google.cloud.videointel" + + "ligence.v1.LabelAnnotation\022K\n\020face_annot" + + "ations\030\005 \003(\01321.google.cloud.videointelli" + + "gence.v1.FaceAnnotation\022I\n\020shot_annotati" + + "ons\030\006 \003(\0132/.google.cloud.videointelligen" + + "ce.v1.VideoSegment\022Y\n\023explicit_annotatio" + + "n\030\007 \001(\0132<.google.cloud.videointelligence" + + ".v1.ExplicitContentAnnotation\022U\n\025speech_" + + "transcriptions\030\013 \003(\01326.google.cloud.vide" + + "ointelligence.v1.SpeechTranscription\022K\n\020" + + "text_annotations\030\014 \003(\01321.google.cloud.vi" + + "deointelligence.v1.TextAnnotation\022W\n\022obj" + + "ect_annotations\030\016 \003(\0132;.google.cloud.vid" + + "eointelligence.v1.ObjectTrackingAnnotati" + + "on\022!\n\005error\030\t \001(\0132\022.google.rpc.Status\"n\n" + + "\025AnnotateVideoResponse\022U\n\022annotation_res" + + "ults\030\001 \003(\01329.google.cloud.videointellige" + + "nce.v1.VideoAnnotationResults\"\246\002\n\027VideoA" + + "nnotationProgress\022\021\n\tinput_uri\030\001 \001(\t\022\030\n\020" + + "progress_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\022" + + ";\n\007feature\030\005 \001(\0162*.google.cloud.videoint" + + "elligence.v1.Feature\022@\n\007segment\030\006 \001(\0132/." + + "google.cloud.videointelligence.v1.VideoS" + + "egment\"p\n\025AnnotateVideoProgress\022W\n\023annot" + + "ation_progress\030\001 \003(\0132:.google.cloud.vide" + + "ointelligence.v1.VideoAnnotationProgress" + + "\"\324\002\n\031SpeechTranscriptionConfig\022\025\n\rlangua" + + "ge_code\030\001 \001(\t\022\030\n\020max_alternatives\030\002 \001(\005\022" + + "\030\n\020filter_profanity\030\003 \001(\010\022I\n\017speech_cont" + + "exts\030\004 \003(\01320.google.cloud.videointellige" + + "nce.v1.SpeechContext\022$\n\034enable_automatic" + + "_punctuation\030\005 \001(\010\022\024\n\014audio_tracks\030\006 \003(\005" + + "\022\"\n\032enable_speaker_diarization\030\007 \001(\010\022!\n\031" + + "diarization_speaker_count\030\010 \001(\005\022\036\n\026enabl" + + "e_word_confidence\030\t \001(\010\" \n\rSpeechContext" + + "\022\017\n\007phrases\030\001 \003(\t\"\203\001\n\023SpeechTranscriptio" + + "n\022U\n\014alternatives\030\001 \003(\0132?.google.cloud.v" + + "ideointelligence.v1.SpeechRecognitionAlt" + + "ernative\022\025\n\rlanguage_code\030\002 \001(\t\"\202\001\n\034Spee" + + "chRecognitionAlternative\022\022\n\ntranscript\030\001" + + " \001(\t\022\022\n\nconfidence\030\002 \001(\002\022:\n\005words\030\003 \003(\0132" + + "+.google.cloud.videointelligence.v1.Word" + + "Info\"\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\001y" + + "\030\002 \001(\002\"_\n\026NormalizedBoundingPoly\022E\n\010vert" + + "ices\030\001 \003(\01323.google.cloud.videointellige" + + "nce.v1.NormalizedVertex\"\241\001\n\013TextSegment\022" + + "@\n\007segment\030\001 \001(\0132/.google.cloud.videoint" + + "elligence.v1.VideoSegment\022\022\n\nconfidence\030" + + "\002 \001(\002\022<\n\006frames\030\003 \003(\0132,.google.cloud.vid" + + "eointelligence.v1.TextFrame\"\224\001\n\tTextFram" + + "e\022W\n\024rotated_bounding_box\030\001 \001(\01329.google" + + ".cloud.videointelligence.v1.NormalizedBo" + + "undingPoly\022.\n\013time_offset\030\002 \001(\0132\031.google" + + ".protobuf.Duration\"`\n\016TextAnnotation\022\014\n\004" + + "text\030\001 \001(\t\022@\n\010segments\030\002 \003(\0132..google.cl" + + "oud.videointelligence.v1.TextSegment\"\240\001\n" + + "\023ObjectTrackingFrame\022Y\n\027normalized_bound" + + "ing_box\030\001 \001(\01328.google.cloud.videointell" + + "igence.v1.NormalizedBoundingBox\022.\n\013time_" + + "offset\030\002 \001(\0132\031.google.protobuf.Duration\"" + + "\227\002\n\030ObjectTrackingAnnotation\022B\n\007segment\030" + + "\003 \001(\0132/.google.cloud.videointelligence.v" + + "1.VideoSegmentH\000\022\022\n\010track_id\030\005 \001(\003H\000\0229\n\006" + + "entity\030\001 \001(\0132).google.cloud.videointelli" + + "gence.v1.Entity\022\022\n\nconfidence\030\004 \001(\002\022F\n\006f" + + "rames\030\002 \003(\01326.google.cloud.videointellig" + + "ence.v1.ObjectTrackingFrameB\014\n\ntrack_inf" + + "o*\311\001\n\007Feature\022\027\n\023FEATURE_UNSPECIFIED\020\000\022\023" + + "\n\017LABEL_DETECTION\020\001\022\031\n\025SHOT_CHANGE_DETEC" + + "TION\020\002\022\036\n\032EXPLICIT_CONTENT_DETECTION\020\003\022\022" + + "\n\016FACE_DETECTION\020\004\022\030\n\024SPEECH_TRANSCRIPTI" + + "ON\020\006\022\022\n\016TEXT_DETECTION\020\007\022\023\n\017OBJECT_TRACK" + + "ING\020\t*r\n\022LabelDetectionMode\022$\n LABEL_DET" + + "ECTION_MODE_UNSPECIFIED\020\000\022\r\n\tSHOT_MODE\020\001" + + "\022\016\n\nFRAME_MODE\020\002\022\027\n\023SHOT_AND_FRAME_MODE\020" + + "\003*t\n\nLikelihood\022\032\n\026LIKELIHOOD_UNSPECIFIE" + + "D\020\000\022\021\n\rVERY_UNLIKELY\020\001\022\014\n\010UNLIKELY\020\002\022\014\n\010" + + "POSSIBLE\020\003\022\n\n\006LIKELY\020\004\022\017\n\013VERY_LIKELY\020\0052" + + "\372\001\n\030VideoIntelligenceService\022\207\001\n\rAnnotat" + + "eVideo\0227.google.cloud.videointelligence." + + "v1.AnnotateVideoRequest\032\035.google.longrun" + + "ning.Operation\"\036\202\323\344\223\002\030\"\023/v1/videos:annot" + + "ate:\001*\032T\312A videointelligence.googleapis." + + "com\322A.https://www.googleapis.com/auth/cl" + + "oud-platformB\213\002\n%com.google.cloud.videoi" + + "ntelligence.v1B\035VideoIntelligenceService" + + "ProtoP\001ZRgoogle.golang.org/genproto/goog" + + "leapis/cloud/videointelligence/v1;videoi" + + "ntelligence\252\002!Google.Cloud.VideoIntellig" + + "ence.V1\312\002!Google\\Cloud\\VideoIntelligence" + + "\\V1\352\002$Google::Cloud::VideoIntelligence::" + + "V1b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -537,7 +542,9 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "InputUri", "Segment", "SegmentLabelAnnotations", + "SegmentPresenceLabelAnnotations", "ShotLabelAnnotations", + "ShotPresenceLabelAnnotations", "FrameLabelAnnotations", "FaceAnnotations", "ShotAnnotations", diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1/src/main/proto/google/cloud/videointelligence/v1/video_intelligence.proto b/google-api-grpc/proto-google-cloud-video-intelligence-v1/src/main/proto/google/cloud/videointelligence/v1/video_intelligence.proto index c15351d913ae..4c7a0ad131a2 100644 --- a/google-api-grpc/proto-google-cloud-video-intelligence-v1/src/main/proto/google/cloud/videointelligence/v1/video_intelligence.proto +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1/src/main/proto/google/cloud/videointelligence/v1/video_intelligence.proto @@ -343,10 +343,20 @@ message VideoAnnotationResults { // There is exactly one element for each unique label. repeated LabelAnnotation segment_label_annotations = 2; + // Presence label annotations on video level or user specified segment level. + // There is exactly one element for each unique label. This will eventually + // get publicly exposed and the restriction will be removed. + 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. This will eventually get publicly exposed and the + // restriction will be removed. + 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; diff --git a/google-cloud-clients/google-cloud-video-intelligence/synth.metadata b/google-cloud-clients/google-cloud-video-intelligence/synth.metadata index 4ea276bc64a0..56cb6dc2e931 100644 --- a/google-cloud-clients/google-cloud-video-intelligence/synth.metadata +++ b/google-cloud-clients/google-cloud-video-intelligence/synth.metadata @@ -1,5 +1,5 @@ { - "updateTime": "2019-08-06T08:02:21.901098Z", + "updateTime": "2019-08-07T08:03:45.605698Z", "sources": [ { "generator": { @@ -12,8 +12,8 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "e699b0cba64ffddfae39633417180f1f65875896", - "internalRef": "261759677" + "sha": "6d29882872298c8bfbaef33bd69bfca275c4d2eb", + "internalRef": "262019251" } } ],