From fdc1bb5d136d36aa3919a56557e62c1b8d24220f Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 18 Dec 2019 14:51:37 -0800 Subject: [PATCH] docs(regen): updated javadocs from protoc update (#34) --- .../v1/AnnotateVideoProgress.java | 6 + .../v1/AnnotateVideoRequest.java | 144 ++++++++- .../v1/AnnotateVideoRequestOrBuilder.java | 30 ++ .../v1/AnnotateVideoResponse.java | 6 + .../cloud/videointelligence/v1/Entity.java | 55 +++- .../videointelligence/v1/EntityOrBuilder.java | 12 + .../v1/ExplicitContentAnnotation.java | 6 + .../v1/ExplicitContentDetectionConfig.java | 23 +- ...plicitContentDetectionConfigOrBuilder.java | 4 + .../v1/ExplicitContentFrame.java | 31 +- .../v1/ExplicitContentFrameOrBuilder.java | 8 + .../videointelligence/v1/FaceAnnotation.java | 66 ++-- .../v1/FaceAnnotationOrBuilder.java | 2 + .../v1/FaceDetectionConfig.java | 32 +- .../v1/FaceDetectionConfigOrBuilder.java | 6 + .../cloud/videointelligence/v1/FaceFrame.java | 17 +- .../v1/FaceFrameOrBuilder.java | 4 + .../videointelligence/v1/FaceSegment.java | 15 +- .../v1/FaceSegmentOrBuilder.java | 4 + .../cloud/videointelligence/v1/Feature.java | 10 +- .../videointelligence/v1/LabelAnnotation.java | 89 +++--- .../v1/LabelAnnotationOrBuilder.java | 4 + .../v1/LabelDetectionConfig.java | 66 +++- .../v1/LabelDetectionConfigOrBuilder.java | 14 + .../v1/LabelDetectionMode.java | 10 +- .../videointelligence/v1/LabelFrame.java | 24 +- .../v1/LabelFrameOrBuilder.java | 6 + .../videointelligence/v1/LabelSegment.java | 24 +- .../v1/LabelSegmentOrBuilder.java | 6 + .../videointelligence/v1/Likelihood.java | 10 +- .../v1/NormalizedBoundingBox.java | 43 ++- .../v1/NormalizedBoundingBoxOrBuilder.java | 8 + .../v1/NormalizedBoundingPoly.java | 6 + .../v1/NormalizedVertex.java | 25 +- .../v1/NormalizedVertexOrBuilder.java | 4 + .../v1/ObjectTrackingAnnotation.java | 78 ++++- .../v1/ObjectTrackingAnnotationOrBuilder.java | 12 + .../v1/ObjectTrackingConfig.java | 23 +- .../v1/ObjectTrackingConfigOrBuilder.java | 4 + .../v1/ObjectTrackingFrame.java | 23 +- .../v1/ObjectTrackingFrameOrBuilder.java | 8 + .../v1/ShotChangeDetectionConfig.java | 23 +- .../ShotChangeDetectionConfigOrBuilder.java | 4 + .../videointelligence/v1/SpeechContext.java | 41 +++ .../v1/SpeechContextOrBuilder.java | 10 + .../v1/SpeechRecognitionAlternative.java | 58 +++- ...SpeechRecognitionAlternativeOrBuilder.java | 6 + .../v1/SpeechTranscription.java | 25 +- .../v1/SpeechTranscriptionConfig.java | 155 +++++++-- .../SpeechTranscriptionConfigOrBuilder.java | 23 ++ .../v1/SpeechTranscriptionOrBuilder.java | 4 + .../videointelligence/v1/TextAnnotation.java | 49 ++- .../v1/TextAnnotationOrBuilder.java | 4 + .../v1/TextDetectionConfig.java | 60 +++- .../v1/TextDetectionConfigOrBuilder.java | 14 + .../cloud/videointelligence/v1/TextFrame.java | 23 +- .../v1/TextFrameOrBuilder.java | 8 + .../videointelligence/v1/TextSegment.java | 50 ++- .../v1/TextSegmentOrBuilder.java | 6 + .../v1/VideoAnnotationProgress.java | 72 ++++- .../v1/VideoAnnotationProgressOrBuilder.java | 22 ++ .../v1/VideoAnnotationResults.java | 289 +++++++++-------- .../v1/VideoAnnotationResultsOrBuilder.java | 16 + .../videointelligence/v1/VideoContext.java | 65 +++- .../v1/VideoContextOrBuilder.java | 28 ++ .../v1/VideoIntelligenceServiceProto.java | 32 +- .../videointelligence/v1/VideoSegment.java | 23 +- .../v1/VideoSegmentOrBuilder.java | 8 + .../cloud/videointelligence/v1/WordInfo.java | 57 +++- .../v1/WordInfoOrBuilder.java | 16 + .../v1beta2/AnnotateVideoProgress.java | 6 + .../v1beta2/AnnotateVideoRequest.java | 144 ++++++++- .../AnnotateVideoRequestOrBuilder.java | 30 ++ .../v1beta2/AnnotateVideoResponse.java | 6 + .../videointelligence/v1beta2/Entity.java | 55 +++- .../v1beta2/EntityOrBuilder.java | 12 + .../v1beta2/ExplicitContentAnnotation.java | 6 + .../ExplicitContentDetectionConfig.java | 23 +- ...plicitContentDetectionConfigOrBuilder.java | 4 + .../v1beta2/ExplicitContentFrame.java | 31 +- .../ExplicitContentFrameOrBuilder.java | 8 + .../v1beta2/FaceAnnotation.java | 66 ++-- .../v1beta2/FaceAnnotationOrBuilder.java | 2 + .../v1beta2/FaceDetectionConfig.java | 32 +- .../v1beta2/FaceDetectionConfigOrBuilder.java | 6 + .../videointelligence/v1beta2/FaceFrame.java | 17 +- .../v1beta2/FaceFrameOrBuilder.java | 4 + .../v1beta2/FaceSegment.java | 15 +- .../v1beta2/FaceSegmentOrBuilder.java | 4 + .../videointelligence/v1beta2/Feature.java | 10 +- .../v1beta2/LabelAnnotation.java | 89 +++--- .../v1beta2/LabelAnnotationOrBuilder.java | 4 + .../v1beta2/LabelDetectionConfig.java | 48 ++- .../LabelDetectionConfigOrBuilder.java | 10 + .../v1beta2/LabelDetectionMode.java | 10 +- .../videointelligence/v1beta2/LabelFrame.java | 24 +- .../v1beta2/LabelFrameOrBuilder.java | 6 + .../v1beta2/LabelSegment.java | 24 +- .../v1beta2/LabelSegmentOrBuilder.java | 6 + .../videointelligence/v1beta2/Likelihood.java | 10 +- .../v1beta2/NormalizedBoundingBox.java | 43 ++- .../NormalizedBoundingBoxOrBuilder.java | 8 + .../v1beta2/ShotChangeDetectionConfig.java | 23 +- .../ShotChangeDetectionConfigOrBuilder.java | 4 + .../v1beta2/VideoAnnotationProgress.java | 48 ++- .../VideoAnnotationProgressOrBuilder.java | 14 + .../v1beta2/VideoAnnotationResults.java | 161 ++++++---- .../VideoAnnotationResultsOrBuilder.java | 12 + .../v1beta2/VideoContext.java | 41 ++- .../v1beta2/VideoContextOrBuilder.java | 16 + .../VideoIntelligenceServiceProto.java | 28 +- .../v1beta2/VideoSegment.java | 23 +- .../v1beta2/VideoSegmentOrBuilder.java | 8 + .../v1p1beta1/AnnotateVideoProgress.java | 6 + .../v1p1beta1/AnnotateVideoRequest.java | 144 ++++++++- .../AnnotateVideoRequestOrBuilder.java | 30 ++ .../v1p1beta1/AnnotateVideoResponse.java | 6 + .../videointelligence/v1p1beta1/Entity.java | 55 +++- .../v1p1beta1/EntityOrBuilder.java | 12 + .../v1p1beta1/ExplicitContentAnnotation.java | 6 + .../ExplicitContentDetectionConfig.java | 23 +- ...plicitContentDetectionConfigOrBuilder.java | 4 + .../v1p1beta1/ExplicitContentFrame.java | 31 +- .../ExplicitContentFrameOrBuilder.java | 8 + .../videointelligence/v1p1beta1/Feature.java | 10 +- .../v1p1beta1/LabelAnnotation.java | 89 +++--- .../v1p1beta1/LabelAnnotationOrBuilder.java | 4 + .../v1p1beta1/LabelDetectionConfig.java | 48 ++- .../LabelDetectionConfigOrBuilder.java | 10 + .../v1p1beta1/LabelDetectionMode.java | 10 +- .../v1p1beta1/LabelFrame.java | 24 +- .../v1p1beta1/LabelFrameOrBuilder.java | 6 + .../v1p1beta1/LabelSegment.java | 24 +- .../v1p1beta1/LabelSegmentOrBuilder.java | 6 + .../v1p1beta1/Likelihood.java | 10 +- .../v1p1beta1/ShotChangeDetectionConfig.java | 23 +- .../ShotChangeDetectionConfigOrBuilder.java | 4 + .../v1p1beta1/SpeechContext.java | 41 +++ .../v1p1beta1/SpeechContextOrBuilder.java | 10 + .../SpeechRecognitionAlternative.java | 58 +++- ...SpeechRecognitionAlternativeOrBuilder.java | 6 + .../v1p1beta1/SpeechTranscription.java | 6 + .../v1p1beta1/SpeechTranscriptionConfig.java | 128 ++++++-- .../SpeechTranscriptionConfigOrBuilder.java | 17 + .../v1p1beta1/VideoAnnotationProgress.java | 48 ++- .../VideoAnnotationProgressOrBuilder.java | 14 + .../v1p1beta1/VideoAnnotationResults.java | 161 ++++++---- .../VideoAnnotationResultsOrBuilder.java | 12 + .../v1p1beta1/VideoContext.java | 41 ++- .../v1p1beta1/VideoContextOrBuilder.java | 16 + .../VideoIntelligenceServiceProto.java | 28 +- .../v1p1beta1/VideoSegment.java | 23 +- .../v1p1beta1/VideoSegmentOrBuilder.java | 8 + .../videointelligence/v1p1beta1/WordInfo.java | 39 ++- .../v1p1beta1/WordInfoOrBuilder.java | 12 + .../v1p2beta1/AnnotateVideoProgress.java | 6 + .../v1p2beta1/AnnotateVideoRequest.java | 144 ++++++++- .../AnnotateVideoRequestOrBuilder.java | 30 ++ .../v1p2beta1/AnnotateVideoResponse.java | 6 + .../videointelligence/v1p2beta1/Entity.java | 55 +++- .../v1p2beta1/EntityOrBuilder.java | 12 + .../v1p2beta1/ExplicitContentAnnotation.java | 6 + .../ExplicitContentDetectionConfig.java | 23 +- ...plicitContentDetectionConfigOrBuilder.java | 4 + .../v1p2beta1/ExplicitContentFrame.java | 31 +- .../ExplicitContentFrameOrBuilder.java | 8 + .../videointelligence/v1p2beta1/Feature.java | 10 +- .../v1p2beta1/LabelAnnotation.java | 89 +++--- .../v1p2beta1/LabelAnnotationOrBuilder.java | 4 + .../v1p2beta1/LabelDetectionConfig.java | 48 ++- .../LabelDetectionConfigOrBuilder.java | 10 + .../v1p2beta1/LabelDetectionMode.java | 10 +- .../v1p2beta1/LabelFrame.java | 24 +- .../v1p2beta1/LabelFrameOrBuilder.java | 6 + .../v1p2beta1/LabelSegment.java | 24 +- .../v1p2beta1/LabelSegmentOrBuilder.java | 6 + .../v1p2beta1/Likelihood.java | 10 +- .../v1p2beta1/NormalizedBoundingBox.java | 43 ++- .../NormalizedBoundingBoxOrBuilder.java | 8 + .../v1p2beta1/NormalizedBoundingPoly.java | 6 + .../v1p2beta1/NormalizedVertex.java | 25 +- .../v1p2beta1/NormalizedVertexOrBuilder.java | 4 + .../v1p2beta1/ObjectTrackingAnnotation.java | 58 +++- .../ObjectTrackingAnnotationOrBuilder.java | 10 + .../v1p2beta1/ObjectTrackingFrame.java | 23 +- .../ObjectTrackingFrameOrBuilder.java | 8 + .../v1p2beta1/ShotChangeDetectionConfig.java | 23 +- .../ShotChangeDetectionConfigOrBuilder.java | 4 + .../v1p2beta1/TextAnnotation.java | 49 ++- .../v1p2beta1/TextAnnotationOrBuilder.java | 4 + .../v1p2beta1/TextDetectionConfig.java | 41 +++ .../TextDetectionConfigOrBuilder.java | 10 + .../v1p2beta1/TextFrame.java | 23 +- .../v1p2beta1/TextFrameOrBuilder.java | 8 + .../v1p2beta1/TextSegment.java | 50 ++- .../v1p2beta1/TextSegmentOrBuilder.java | 6 + .../v1p2beta1/VideoAnnotationProgress.java | 48 ++- .../VideoAnnotationProgressOrBuilder.java | 14 + .../v1p2beta1/VideoAnnotationResults.java | 185 ++++++----- .../VideoAnnotationResultsOrBuilder.java | 12 + .../v1p2beta1/VideoContext.java | 41 ++- .../v1p2beta1/VideoContextOrBuilder.java | 16 + .../VideoIntelligenceServiceProto.java | 28 +- .../v1p2beta1/VideoSegment.java | 23 +- .../v1p2beta1/VideoSegmentOrBuilder.java | 8 + .../v1p3beta1/AnnotateVideoProgress.java | 6 + .../v1p3beta1/AnnotateVideoRequest.java | 144 ++++++++- .../AnnotateVideoRequestOrBuilder.java | 30 ++ .../v1p3beta1/AnnotateVideoResponse.java | 6 + .../v1p3beta1/Celebrity.java | 55 +++- .../v1p3beta1/CelebrityOrBuilder.java | 12 + .../CelebrityRecognitionAnnotation.java | 6 + .../v1p3beta1/CelebrityTrack.java | 47 ++- .../v1p3beta1/CelebrityTrackOrBuilder.java | 4 + .../v1p3beta1/DetectedAttribute.java | 48 ++- .../v1p3beta1/DetectedAttributeOrBuilder.java | 10 + .../videointelligence/v1p3beta1/Entity.java | 55 +++- .../v1p3beta1/EntityOrBuilder.java | 12 + .../v1p3beta1/ExplicitContentAnnotation.java | 6 + .../ExplicitContentDetectionConfig.java | 23 +- ...plicitContentDetectionConfigOrBuilder.java | 4 + .../v1p3beta1/ExplicitContentFrame.java | 31 +- .../ExplicitContentFrameOrBuilder.java | 8 + .../videointelligence/v1p3beta1/Feature.java | 10 +- .../v1p3beta1/LabelAnnotation.java | 89 +++--- .../v1p3beta1/LabelAnnotationOrBuilder.java | 4 + .../v1p3beta1/LabelDetectionConfig.java | 66 +++- .../LabelDetectionConfigOrBuilder.java | 14 + .../v1p3beta1/LabelDetectionMode.java | 10 +- .../v1p3beta1/LabelFrame.java | 24 +- .../v1p3beta1/LabelFrameOrBuilder.java | 6 + .../v1p3beta1/LabelSegment.java | 24 +- .../v1p3beta1/LabelSegmentOrBuilder.java | 6 + .../v1p3beta1/Likelihood.java | 10 +- .../v1p3beta1/LogoRecognitionAnnotation.java | 65 ++-- .../LogoRecognitionAnnotationOrBuilder.java | 4 + .../v1p3beta1/NormalizedBoundingBox.java | 43 ++- .../NormalizedBoundingBoxOrBuilder.java | 8 + .../v1p3beta1/NormalizedBoundingPoly.java | 6 + .../v1p3beta1/NormalizedVertex.java | 25 +- .../v1p3beta1/NormalizedVertexOrBuilder.java | 4 + .../v1p3beta1/ObjectTrackingAnnotation.java | 78 ++++- .../ObjectTrackingAnnotationOrBuilder.java | 12 + .../v1p3beta1/ObjectTrackingConfig.java | 23 +- .../ObjectTrackingConfigOrBuilder.java | 4 + .../v1p3beta1/ObjectTrackingFrame.java | 23 +- .../ObjectTrackingFrameOrBuilder.java | 8 + .../v1p3beta1/ShotChangeDetectionConfig.java | 23 +- .../ShotChangeDetectionConfigOrBuilder.java | 4 + .../v1p3beta1/SpeechContext.java | 41 +++ .../v1p3beta1/SpeechContextOrBuilder.java | 10 + .../SpeechRecognitionAlternative.java | 58 +++- ...SpeechRecognitionAlternativeOrBuilder.java | 6 + .../v1p3beta1/SpeechTranscription.java | 25 +- .../v1p3beta1/SpeechTranscriptionConfig.java | 155 +++++++-- .../SpeechTranscriptionConfigOrBuilder.java | 23 ++ .../SpeechTranscriptionOrBuilder.java | 4 + .../StreamingAnnotateVideoRequest.java | 35 ++- ...treamingAnnotateVideoRequestOrBuilder.java | 6 + .../StreamingAnnotateVideoResponse.java | 39 ++- ...reamingAnnotateVideoResponseOrBuilder.java | 12 + .../StreamingAutomlClassificationConfig.java | 23 +- ...ngAutomlClassificationConfigOrBuilder.java | 4 + .../StreamingAutomlObjectTrackingConfig.java | 23 +- ...ngAutomlObjectTrackingConfigOrBuilder.java | 4 + ...reamingExplicitContentDetectionConfig.java | 6 + .../v1p3beta1/StreamingFeature.java | 10 +- .../StreamingLabelDetectionConfig.java | 16 +- ...treamingLabelDetectionConfigOrBuilder.java | 2 + .../StreamingObjectTrackingConfig.java | 6 + .../StreamingShotChangeDetectionConfig.java | 6 + .../v1p3beta1/StreamingStorageConfig.java | 32 +- .../StreamingStorageConfigOrBuilder.java | 6 + .../StreamingVideoAnnotationResults.java | 41 ++- ...eamingVideoAnnotationResultsOrBuilder.java | 4 + .../v1p3beta1/StreamingVideoConfig.java | 90 +++++- .../StreamingVideoConfigOrBuilder.java | 32 ++ .../v1p3beta1/TextAnnotation.java | 49 ++- .../v1p3beta1/TextAnnotationOrBuilder.java | 4 + .../v1p3beta1/TextDetectionConfig.java | 60 +++- .../TextDetectionConfigOrBuilder.java | 14 + .../v1p3beta1/TextFrame.java | 23 +- .../v1p3beta1/TextFrameOrBuilder.java | 8 + .../v1p3beta1/TextSegment.java | 50 ++- .../v1p3beta1/TextSegmentOrBuilder.java | 6 + .../v1p3beta1/TimestampedObject.java | 49 ++- .../v1p3beta1/TimestampedObjectOrBuilder.java | 8 + .../videointelligence/v1p3beta1/Track.java | 74 +++-- .../v1p3beta1/TrackOrBuilder.java | 6 + .../v1p3beta1/VideoAnnotationProgress.java | 72 ++++- .../VideoAnnotationProgressOrBuilder.java | 22 ++ .../v1p3beta1/VideoAnnotationResults.java | 297 ++++++++++-------- .../VideoAnnotationResultsOrBuilder.java | 20 ++ .../v1p3beta1/VideoContext.java | 57 +++- .../v1p3beta1/VideoContextOrBuilder.java | 24 ++ .../VideoIntelligenceServiceProto.java | 32 +- .../v1p3beta1/VideoSegment.java | 23 +- .../v1p3beta1/VideoSegmentOrBuilder.java | 8 + .../videointelligence/v1p3beta1/WordInfo.java | 57 +++- .../v1p3beta1/WordInfoOrBuilder.java | 16 + synth.metadata | 10 +- 301 files changed, 7358 insertions(+), 1355 deletions(-) diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/AnnotateVideoProgress.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/AnnotateVideoProgress.java index 8e317353a..56d87ee14 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/AnnotateVideoProgress.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/AnnotateVideoProgress.java @@ -43,6 +43,12 @@ private AnnotateVideoProgress() { annotationProgress_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AnnotateVideoProgress(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/AnnotateVideoRequest.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/AnnotateVideoRequest.java index 761a2e54d..b0ce304a4 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/AnnotateVideoRequest.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/AnnotateVideoRequest.java @@ -45,6 +45,12 @@ private AnnotateVideoRequest() { locationId_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AnnotateVideoRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -79,9 +85,9 @@ private AnnotateVideoRequest( case 16: { int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { features_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000001; } features_.add(rawValue); break; @@ -92,9 +98,9 @@ private AnnotateVideoRequest( int oldLimit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { features_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000001; } features_.add(rawValue); } @@ -151,7 +157,7 @@ private AnnotateVideoRequest( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { features_ = java.util.Collections.unmodifiableList(features_); } this.unknownFields = unknownFields.build(); @@ -174,7 +180,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.videointelligence.v1.AnnotateVideoRequest.Builder.class); } - private int bitField0_; public static final int INPUT_URI_FIELD_NUMBER = 1; private volatile java.lang.Object inputUri_; /** @@ -194,6 +199,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string input_uri = 1; + * + * @return The inputUri. */ public java.lang.String getInputUri() { java.lang.Object ref = inputUri_; @@ -223,6 +230,8 @@ public java.lang.String getInputUri() { * * * string input_uri = 1; + * + * @return The bytes for inputUri. */ public com.google.protobuf.ByteString getInputUriBytes() { java.lang.Object ref = inputUri_; @@ -248,6 +257,8 @@ public com.google.protobuf.ByteString getInputUriBytes() { * * * bytes input_content = 6; + * + * @return The inputContent. */ public com.google.protobuf.ByteString getInputContent() { return inputContent_; @@ -279,6 +290,8 @@ public com.google.cloud.videointelligence.v1.Feature convert(java.lang.Integer f * * repeated .google.cloud.videointelligence.v1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return A list containing the features. */ public java.util.List getFeaturesList() { return new com.google.protobuf.Internal.ListAdapter< @@ -295,6 +308,8 @@ public java.util.List getFeatures * * repeated .google.cloud.videointelligence.v1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param value The features to add. */ public int getFeaturesCount() { return features_.size(); @@ -309,6 +324,9 @@ public int getFeaturesCount() { * * repeated .google.cloud.videointelligence.v1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param index The index of the element to return. + * @return The features at the given index. */ public com.google.cloud.videointelligence.v1.Feature getFeatures(int index) { return features_converter_.convert(features_.get(index)); @@ -323,6 +341,8 @@ public com.google.cloud.videointelligence.v1.Feature getFeatures(int index) { * * repeated .google.cloud.videointelligence.v1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return A list containing the enum numeric values on the wire for features. */ public java.util.List getFeaturesValueList() { return features_; @@ -337,6 +357,9 @@ public java.util.List getFeaturesValueList() { * * repeated .google.cloud.videointelligence.v1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of features at the given index. */ public int getFeaturesValue(int index) { return features_.get(index); @@ -354,6 +377,8 @@ public int getFeaturesValue(int index) { * * * .google.cloud.videointelligence.v1.VideoContext video_context = 3; + * + * @return Whether the videoContext field is set. */ public boolean hasVideoContext() { return videoContext_ != null; @@ -366,6 +391,8 @@ public boolean hasVideoContext() { * * * .google.cloud.videointelligence.v1.VideoContext video_context = 3; + * + * @return The videoContext. */ public com.google.cloud.videointelligence.v1.VideoContext getVideoContext() { return videoContext_ == null @@ -400,6 +427,8 @@ public com.google.cloud.videointelligence.v1.VideoContextOrBuilder getVideoConte * * * string output_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The outputUri. */ public java.lang.String getOutputUri() { java.lang.Object ref = outputUri_; @@ -425,6 +454,8 @@ public java.lang.String getOutputUri() { * * * string output_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for outputUri. */ public com.google.protobuf.ByteString getOutputUriBytes() { java.lang.Object ref = outputUri_; @@ -450,6 +481,8 @@ public com.google.protobuf.ByteString getOutputUriBytes() { * * * string location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The locationId. */ public java.lang.String getLocationId() { java.lang.Object ref = locationId_; @@ -472,6 +505,8 @@ public java.lang.String getLocationId() { * * * string location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for locationId. */ public com.google.protobuf.ByteString getLocationIdBytes() { java.lang.Object ref = locationId_; @@ -761,7 +796,7 @@ public Builder clear() { inputContent_ = com.google.protobuf.ByteString.EMPTY; features_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); if (videoContextBuilder_ == null) { videoContext_ = null; } else { @@ -800,12 +835,11 @@ public com.google.cloud.videointelligence.v1.AnnotateVideoRequest buildPartial() com.google.cloud.videointelligence.v1.AnnotateVideoRequest result = new com.google.cloud.videointelligence.v1.AnnotateVideoRequest(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.inputUri_ = inputUri_; result.inputContent_ = inputContent_; - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { features_ = java.util.Collections.unmodifiableList(features_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } result.features_ = features_; if (videoContextBuilder_ == null) { @@ -815,7 +849,6 @@ public com.google.cloud.videointelligence.v1.AnnotateVideoRequest buildPartial() } result.outputUri_ = outputUri_; result.locationId_ = locationId_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -876,7 +909,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1.AnnotateVideoRequ if (!other.features_.isEmpty()) { if (features_.isEmpty()) { features_ = other.features_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureFeaturesIsMutable(); features_.addAll(other.features_); @@ -944,6 +977,8 @@ public Builder mergeFrom( * * * string input_uri = 1; + * + * @return The inputUri. */ public java.lang.String getInputUri() { java.lang.Object ref = inputUri_; @@ -973,6 +1008,8 @@ public java.lang.String getInputUri() { * * * string input_uri = 1; + * + * @return The bytes for inputUri. */ public com.google.protobuf.ByteString getInputUriBytes() { java.lang.Object ref = inputUri_; @@ -1002,6 +1039,9 @@ public com.google.protobuf.ByteString getInputUriBytes() { * * * string input_uri = 1; + * + * @param value The inputUri to set. + * @return This builder for chaining. */ public Builder setInputUri(java.lang.String value) { if (value == null) { @@ -1029,6 +1069,8 @@ public Builder setInputUri(java.lang.String value) { * * * string input_uri = 1; + * + * @return This builder for chaining. */ public Builder clearInputUri() { @@ -1053,6 +1095,9 @@ public Builder clearInputUri() { * * * string input_uri = 1; + * + * @param value The bytes for inputUri to set. + * @return This builder for chaining. */ public Builder setInputUriBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1076,6 +1121,8 @@ public Builder setInputUriBytes(com.google.protobuf.ByteString value) { * * * bytes input_content = 6; + * + * @return The inputContent. */ public com.google.protobuf.ByteString getInputContent() { return inputContent_; @@ -1090,6 +1137,9 @@ public com.google.protobuf.ByteString getInputContent() { * * * bytes input_content = 6; + * + * @param value The inputContent to set. + * @return This builder for chaining. */ public Builder setInputContent(com.google.protobuf.ByteString value) { if (value == null) { @@ -1110,6 +1160,8 @@ public Builder setInputContent(com.google.protobuf.ByteString value) { * * * bytes input_content = 6; + * + * @return This builder for chaining. */ public Builder clearInputContent() { @@ -1121,9 +1173,9 @@ public Builder clearInputContent() { private java.util.List features_ = java.util.Collections.emptyList(); private void ensureFeaturesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { features_ = new java.util.ArrayList(features_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; } } /** @@ -1136,6 +1188,8 @@ private void ensureFeaturesIsMutable() { * * repeated .google.cloud.videointelligence.v1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return A list containing the features. */ public java.util.List getFeaturesList() { return new com.google.protobuf.Internal.ListAdapter< @@ -1152,6 +1206,8 @@ public java.util.List getFeatures * * repeated .google.cloud.videointelligence.v1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return The count of features. */ public int getFeaturesCount() { return features_.size(); @@ -1166,6 +1222,9 @@ public int getFeaturesCount() { * * repeated .google.cloud.videointelligence.v1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param index The index of the element to return. + * @return The features at the given index. */ public com.google.cloud.videointelligence.v1.Feature getFeatures(int index) { return features_converter_.convert(features_.get(index)); @@ -1180,6 +1239,10 @@ public com.google.cloud.videointelligence.v1.Feature getFeatures(int index) { * * repeated .google.cloud.videointelligence.v1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param index The index to set the value at. + * @param value The features to set. + * @return This builder for chaining. */ public Builder setFeatures(int index, com.google.cloud.videointelligence.v1.Feature value) { if (value == null) { @@ -1200,6 +1263,9 @@ public Builder setFeatures(int index, com.google.cloud.videointelligence.v1.Feat * * repeated .google.cloud.videointelligence.v1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param value The features to add. + * @return This builder for chaining. */ public Builder addFeatures(com.google.cloud.videointelligence.v1.Feature value) { if (value == null) { @@ -1220,6 +1286,9 @@ public Builder addFeatures(com.google.cloud.videointelligence.v1.Feature value) * * repeated .google.cloud.videointelligence.v1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param values The features to add. + * @return This builder for chaining. */ public Builder addAllFeatures( java.lang.Iterable values) { @@ -1240,10 +1309,12 @@ public Builder addAllFeatures( * * repeated .google.cloud.videointelligence.v1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return This builder for chaining. */ public Builder clearFeatures() { features_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1257,6 +1328,8 @@ public Builder clearFeatures() { * * repeated .google.cloud.videointelligence.v1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return A list containing the enum numeric values on the wire for features. */ public java.util.List getFeaturesValueList() { return java.util.Collections.unmodifiableList(features_); @@ -1271,6 +1344,9 @@ public java.util.List getFeaturesValueList() { * * repeated .google.cloud.videointelligence.v1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of features at the given index. */ public int getFeaturesValue(int index) { return features_.get(index); @@ -1285,6 +1361,10 @@ public int getFeaturesValue(int index) { * * repeated .google.cloud.videointelligence.v1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of features at the given index. + * @return This builder for chaining. */ public Builder setFeaturesValue(int index, int value) { ensureFeaturesIsMutable(); @@ -1302,6 +1382,9 @@ public Builder setFeaturesValue(int index, int value) { * * repeated .google.cloud.videointelligence.v1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param value The enum numeric value on the wire for features to add. + * @return This builder for chaining. */ public Builder addFeaturesValue(int value) { ensureFeaturesIsMutable(); @@ -1319,6 +1402,9 @@ public Builder addFeaturesValue(int value) { * * repeated .google.cloud.videointelligence.v1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param values The enum numeric values on the wire for features to add. + * @return This builder for chaining. */ public Builder addAllFeaturesValue(java.lang.Iterable values) { ensureFeaturesIsMutable(); @@ -1343,6 +1429,8 @@ public Builder addAllFeaturesValue(java.lang.Iterable values) * * * .google.cloud.videointelligence.v1.VideoContext video_context = 3; + * + * @return Whether the videoContext field is set. */ public boolean hasVideoContext() { return videoContextBuilder_ != null || videoContext_ != null; @@ -1355,6 +1443,8 @@ public boolean hasVideoContext() { * * * .google.cloud.videointelligence.v1.VideoContext video_context = 3; + * + * @return The videoContext. */ public com.google.cloud.videointelligence.v1.VideoContext getVideoContext() { if (videoContextBuilder_ == null) { @@ -1525,6 +1615,8 @@ public com.google.cloud.videointelligence.v1.VideoContextOrBuilder getVideoConte * * * string output_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The outputUri. */ public java.lang.String getOutputUri() { java.lang.Object ref = outputUri_; @@ -1550,6 +1642,8 @@ public java.lang.String getOutputUri() { * * * string output_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for outputUri. */ public com.google.protobuf.ByteString getOutputUriBytes() { java.lang.Object ref = outputUri_; @@ -1575,6 +1669,9 @@ public com.google.protobuf.ByteString getOutputUriBytes() { * * * string output_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The outputUri to set. + * @return This builder for chaining. */ public Builder setOutputUri(java.lang.String value) { if (value == null) { @@ -1598,6 +1695,8 @@ public Builder setOutputUri(java.lang.String value) { * * * string output_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. */ public Builder clearOutputUri() { @@ -1618,6 +1717,9 @@ public Builder clearOutputUri() { * * * string output_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for outputUri to set. + * @return This builder for chaining. */ public Builder setOutputUriBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1641,6 +1743,8 @@ public Builder setOutputUriBytes(com.google.protobuf.ByteString value) { * * * string location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The locationId. */ public java.lang.String getLocationId() { java.lang.Object ref = locationId_; @@ -1663,6 +1767,8 @@ public java.lang.String getLocationId() { * * * string location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for locationId. */ public com.google.protobuf.ByteString getLocationIdBytes() { java.lang.Object ref = locationId_; @@ -1685,6 +1791,9 @@ public com.google.protobuf.ByteString getLocationIdBytes() { * * * string location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The locationId to set. + * @return This builder for chaining. */ public Builder setLocationId(java.lang.String value) { if (value == null) { @@ -1705,6 +1814,8 @@ public Builder setLocationId(java.lang.String value) { * * * string location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. */ public Builder clearLocationId() { @@ -1722,6 +1833,9 @@ public Builder clearLocationId() { * * * string location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for locationId to set. + * @return This builder for chaining. */ public Builder setLocationIdBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/AnnotateVideoRequestOrBuilder.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/AnnotateVideoRequestOrBuilder.java index 647c4b6aa..fe1e7e99d 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/AnnotateVideoRequestOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/AnnotateVideoRequestOrBuilder.java @@ -40,6 +40,8 @@ public interface AnnotateVideoRequestOrBuilder * * * string input_uri = 1; + * + * @return The inputUri. */ java.lang.String getInputUri(); /** @@ -59,6 +61,8 @@ public interface AnnotateVideoRequestOrBuilder * * * string input_uri = 1; + * + * @return The bytes for inputUri. */ com.google.protobuf.ByteString getInputUriBytes(); @@ -72,6 +76,8 @@ public interface AnnotateVideoRequestOrBuilder * * * bytes input_content = 6; + * + * @return The inputContent. */ com.google.protobuf.ByteString getInputContent(); @@ -85,6 +91,8 @@ public interface AnnotateVideoRequestOrBuilder * * repeated .google.cloud.videointelligence.v1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return A list containing the features. */ java.util.List getFeaturesList(); /** @@ -97,6 +105,8 @@ public interface AnnotateVideoRequestOrBuilder * * repeated .google.cloud.videointelligence.v1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return The count of features. */ int getFeaturesCount(); /** @@ -109,6 +119,9 @@ public interface AnnotateVideoRequestOrBuilder * * repeated .google.cloud.videointelligence.v1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param index The index of the element to return. + * @return The features at the given index. */ com.google.cloud.videointelligence.v1.Feature getFeatures(int index); /** @@ -121,6 +134,8 @@ public interface AnnotateVideoRequestOrBuilder * * repeated .google.cloud.videointelligence.v1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return A list containing the enum numeric values on the wire for features. */ java.util.List getFeaturesValueList(); /** @@ -133,6 +148,9 @@ public interface AnnotateVideoRequestOrBuilder * * repeated .google.cloud.videointelligence.v1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of features at the given index. */ int getFeaturesValue(int index); @@ -144,6 +162,8 @@ public interface AnnotateVideoRequestOrBuilder * * * .google.cloud.videointelligence.v1.VideoContext video_context = 3; + * + * @return Whether the videoContext field is set. */ boolean hasVideoContext(); /** @@ -154,6 +174,8 @@ public interface AnnotateVideoRequestOrBuilder * * * .google.cloud.videointelligence.v1.VideoContext video_context = 3; + * + * @return The videoContext. */ com.google.cloud.videointelligence.v1.VideoContext getVideoContext(); /** @@ -180,6 +202,8 @@ public interface AnnotateVideoRequestOrBuilder * * * string output_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The outputUri. */ java.lang.String getOutputUri(); /** @@ -195,6 +219,8 @@ public interface AnnotateVideoRequestOrBuilder * * * string output_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for outputUri. */ com.google.protobuf.ByteString getOutputUriBytes(); @@ -208,6 +234,8 @@ public interface AnnotateVideoRequestOrBuilder * * * string location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The locationId. */ java.lang.String getLocationId(); /** @@ -220,6 +248,8 @@ public interface AnnotateVideoRequestOrBuilder * * * string location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for locationId. */ com.google.protobuf.ByteString getLocationIdBytes(); } diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/AnnotateVideoResponse.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/AnnotateVideoResponse.java index 06a138266..2b7ff33a4 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/AnnotateVideoResponse.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/AnnotateVideoResponse.java @@ -43,6 +43,12 @@ private AnnotateVideoResponse() { annotationResults_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AnnotateVideoResponse(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/Entity.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/Entity.java index 6194b9a30..b5c735544 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/Entity.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/Entity.java @@ -43,6 +43,12 @@ private Entity() { languageCode_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Entity(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -56,7 +62,6 @@ private Entity( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -134,6 +139,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string entity_id = 1; + * + * @return The entityId. */ public java.lang.String getEntityId() { java.lang.Object ref = entityId_; @@ -156,6 +163,8 @@ public java.lang.String getEntityId() { * * * string entity_id = 1; + * + * @return The bytes for entityId. */ public com.google.protobuf.ByteString getEntityIdBytes() { java.lang.Object ref = entityId_; @@ -179,6 +188,8 @@ public com.google.protobuf.ByteString getEntityIdBytes() { * * * string description = 2; + * + * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; @@ -199,6 +210,8 @@ public java.lang.String getDescription() { * * * string description = 2; + * + * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; @@ -222,6 +235,8 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * * string language_code = 3; + * + * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; @@ -242,6 +257,8 @@ public java.lang.String getLanguageCode() { * * * string language_code = 3; + * + * @return The bytes for languageCode. */ public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; @@ -614,6 +631,8 @@ public Builder mergeFrom( * * * string entity_id = 1; + * + * @return The entityId. */ public java.lang.String getEntityId() { java.lang.Object ref = entityId_; @@ -636,6 +655,8 @@ public java.lang.String getEntityId() { * * * string entity_id = 1; + * + * @return The bytes for entityId. */ public com.google.protobuf.ByteString getEntityIdBytes() { java.lang.Object ref = entityId_; @@ -658,6 +679,9 @@ public com.google.protobuf.ByteString getEntityIdBytes() { * * * string entity_id = 1; + * + * @param value The entityId to set. + * @return This builder for chaining. */ public Builder setEntityId(java.lang.String value) { if (value == null) { @@ -678,6 +702,8 @@ public Builder setEntityId(java.lang.String value) { * * * string entity_id = 1; + * + * @return This builder for chaining. */ public Builder clearEntityId() { @@ -695,6 +721,9 @@ public Builder clearEntityId() { * * * string entity_id = 1; + * + * @param value The bytes for entityId to set. + * @return This builder for chaining. */ public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -716,6 +745,8 @@ public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { * * * string description = 2; + * + * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; @@ -736,6 +767,8 @@ public java.lang.String getDescription() { * * * string description = 2; + * + * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; @@ -756,6 +789,9 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * * string description = 2; + * + * @param value The description to set. + * @return This builder for chaining. */ public Builder setDescription(java.lang.String value) { if (value == null) { @@ -774,6 +810,8 @@ public Builder setDescription(java.lang.String value) { * * * string description = 2; + * + * @return This builder for chaining. */ public Builder clearDescription() { @@ -789,6 +827,9 @@ public Builder clearDescription() { * * * string description = 2; + * + * @param value The bytes for description to set. + * @return This builder for chaining. */ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -810,6 +851,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * * * string language_code = 3; + * + * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; @@ -830,6 +873,8 @@ public java.lang.String getLanguageCode() { * * * string language_code = 3; + * + * @return The bytes for languageCode. */ public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; @@ -850,6 +895,9 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { * * * string language_code = 3; + * + * @param value The languageCode to set. + * @return This builder for chaining. */ public Builder setLanguageCode(java.lang.String value) { if (value == null) { @@ -868,6 +916,8 @@ public Builder setLanguageCode(java.lang.String value) { * * * string language_code = 3; + * + * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -883,6 +933,9 @@ public Builder clearLanguageCode() { * * * string language_code = 3; + * + * @param value The bytes for languageCode to set. + * @return This builder for chaining. */ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/EntityOrBuilder.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/EntityOrBuilder.java index e6b11bab9..211e22c31 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/EntityOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/EntityOrBuilder.java @@ -33,6 +33,8 @@ public interface EntityOrBuilder * * * string entity_id = 1; + * + * @return The entityId. */ java.lang.String getEntityId(); /** @@ -45,6 +47,8 @@ public interface EntityOrBuilder * * * string entity_id = 1; + * + * @return The bytes for entityId. */ com.google.protobuf.ByteString getEntityIdBytes(); @@ -56,6 +60,8 @@ public interface EntityOrBuilder * * * string description = 2; + * + * @return The description. */ java.lang.String getDescription(); /** @@ -66,6 +72,8 @@ public interface EntityOrBuilder * * * string description = 2; + * + * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); @@ -77,6 +85,8 @@ public interface EntityOrBuilder * * * string language_code = 3; + * + * @return The languageCode. */ java.lang.String getLanguageCode(); /** @@ -87,6 +97,8 @@ public interface EntityOrBuilder * * * string language_code = 3; + * + * @return The bytes for languageCode. */ com.google.protobuf.ByteString getLanguageCodeBytes(); } diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/ExplicitContentAnnotation.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/ExplicitContentAnnotation.java index 3a6e587a4..fa1366706 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/ExplicitContentAnnotation.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/ExplicitContentAnnotation.java @@ -43,6 +43,12 @@ private ExplicitContentAnnotation() { frames_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExplicitContentAnnotation(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/ExplicitContentDetectionConfig.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/ExplicitContentDetectionConfig.java index 9d461b33b..af9f422a2 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/ExplicitContentDetectionConfig.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/ExplicitContentDetectionConfig.java @@ -42,6 +42,12 @@ private ExplicitContentDetectionConfig() { model_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExplicitContentDetectionConfig(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -55,7 +61,6 @@ private ExplicitContentDetectionConfig( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -119,6 +124,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string model = 1; + * + * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; @@ -141,6 +148,8 @@ public java.lang.String getModel() { * * * string model = 1; + * + * @return The bytes for model. */ public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; @@ -492,6 +501,8 @@ public Builder mergeFrom( * * * string model = 1; + * + * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; @@ -514,6 +525,8 @@ public java.lang.String getModel() { * * * string model = 1; + * + * @return The bytes for model. */ public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; @@ -536,6 +549,9 @@ public com.google.protobuf.ByteString getModelBytes() { * * * string model = 1; + * + * @param value The model to set. + * @return This builder for chaining. */ public Builder setModel(java.lang.String value) { if (value == null) { @@ -556,6 +572,8 @@ public Builder setModel(java.lang.String value) { * * * string model = 1; + * + * @return This builder for chaining. */ public Builder clearModel() { @@ -573,6 +591,9 @@ public Builder clearModel() { * * * string model = 1; + * + * @param value The bytes for model to set. + * @return This builder for chaining. */ public Builder setModelBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/ExplicitContentDetectionConfigOrBuilder.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/ExplicitContentDetectionConfigOrBuilder.java index 43c4556be..c33fa3de1 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/ExplicitContentDetectionConfigOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/ExplicitContentDetectionConfigOrBuilder.java @@ -33,6 +33,8 @@ public interface ExplicitContentDetectionConfigOrBuilder * * * string model = 1; + * + * @return The model. */ java.lang.String getModel(); /** @@ -45,6 +47,8 @@ public interface ExplicitContentDetectionConfigOrBuilder * * * string model = 1; + * + * @return The bytes for model. */ com.google.protobuf.ByteString getModelBytes(); } diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/ExplicitContentFrame.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/ExplicitContentFrame.java index 408162ca5..ac10b1489 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/ExplicitContentFrame.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/ExplicitContentFrame.java @@ -41,6 +41,12 @@ private ExplicitContentFrame() { pornographyLikelihood_ = 0; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExplicitContentFrame(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private ExplicitContentFrame( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -132,6 +137,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.protobuf.Duration time_offset = 1; + * + * @return Whether the timeOffset field is set. */ public boolean hasTimeOffset() { return timeOffset_ != null; @@ -145,6 +152,8 @@ public boolean hasTimeOffset() { * * * .google.protobuf.Duration time_offset = 1; + * + * @return The timeOffset. */ public com.google.protobuf.Duration getTimeOffset() { return timeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeOffset_; @@ -173,6 +182,8 @@ public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() { * * * .google.cloud.videointelligence.v1.Likelihood pornography_likelihood = 2; + * + * @return The enum numeric value on the wire for pornographyLikelihood. */ public int getPornographyLikelihoodValue() { return pornographyLikelihood_; @@ -185,6 +196,8 @@ public int getPornographyLikelihoodValue() { * * * .google.cloud.videointelligence.v1.Likelihood pornography_likelihood = 2; + * + * @return The pornographyLikelihood. */ public com.google.cloud.videointelligence.v1.Likelihood getPornographyLikelihood() { @SuppressWarnings("deprecation") @@ -556,6 +569,8 @@ public Builder mergeFrom( * * * .google.protobuf.Duration time_offset = 1; + * + * @return Whether the timeOffset field is set. */ public boolean hasTimeOffset() { return timeOffsetBuilder_ != null || timeOffset_ != null; @@ -569,6 +584,8 @@ public boolean hasTimeOffset() { * * * .google.protobuf.Duration time_offset = 1; + * + * @return The timeOffset. */ public com.google.protobuf.Duration getTimeOffset() { if (timeOffsetBuilder_ == null) { @@ -738,6 +755,8 @@ public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() { * * * .google.cloud.videointelligence.v1.Likelihood pornography_likelihood = 2; + * + * @return The enum numeric value on the wire for pornographyLikelihood. */ public int getPornographyLikelihoodValue() { return pornographyLikelihood_; @@ -750,6 +769,9 @@ public int getPornographyLikelihoodValue() { * * * .google.cloud.videointelligence.v1.Likelihood pornography_likelihood = 2; + * + * @param value The enum numeric value on the wire for pornographyLikelihood to set. + * @return This builder for chaining. */ public Builder setPornographyLikelihoodValue(int value) { pornographyLikelihood_ = value; @@ -764,6 +786,8 @@ public Builder setPornographyLikelihoodValue(int value) { * * * .google.cloud.videointelligence.v1.Likelihood pornography_likelihood = 2; + * + * @return The pornographyLikelihood. */ public com.google.cloud.videointelligence.v1.Likelihood getPornographyLikelihood() { @SuppressWarnings("deprecation") @@ -781,6 +805,9 @@ public com.google.cloud.videointelligence.v1.Likelihood getPornographyLikelihood * * * .google.cloud.videointelligence.v1.Likelihood pornography_likelihood = 2; + * + * @param value The pornographyLikelihood to set. + * @return This builder for chaining. */ public Builder setPornographyLikelihood( com.google.cloud.videointelligence.v1.Likelihood value) { @@ -800,6 +827,8 @@ public Builder setPornographyLikelihood( * * * .google.cloud.videointelligence.v1.Likelihood pornography_likelihood = 2; + * + * @return This builder for chaining. */ public Builder clearPornographyLikelihood() { diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/ExplicitContentFrameOrBuilder.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/ExplicitContentFrameOrBuilder.java index 2b72b6d9a..244cf6723 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/ExplicitContentFrameOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/ExplicitContentFrameOrBuilder.java @@ -32,6 +32,8 @@ public interface ExplicitContentFrameOrBuilder * * * .google.protobuf.Duration time_offset = 1; + * + * @return Whether the timeOffset field is set. */ boolean hasTimeOffset(); /** @@ -43,6 +45,8 @@ public interface ExplicitContentFrameOrBuilder * * * .google.protobuf.Duration time_offset = 1; + * + * @return The timeOffset. */ com.google.protobuf.Duration getTimeOffset(); /** @@ -65,6 +69,8 @@ public interface ExplicitContentFrameOrBuilder * * * .google.cloud.videointelligence.v1.Likelihood pornography_likelihood = 2; + * + * @return The enum numeric value on the wire for pornographyLikelihood. */ int getPornographyLikelihoodValue(); /** @@ -75,6 +81,8 @@ public interface ExplicitContentFrameOrBuilder * * * .google.cloud.videointelligence.v1.Likelihood pornography_likelihood = 2; + * + * @return The pornographyLikelihood. */ com.google.cloud.videointelligence.v1.Likelihood getPornographyLikelihood(); } diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/FaceAnnotation.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/FaceAnnotation.java index 5c24739dd..30f1d9287 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/FaceAnnotation.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/FaceAnnotation.java @@ -43,6 +43,12 @@ private FaceAnnotation() { frames_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FaceAnnotation(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -74,10 +80,10 @@ private FaceAnnotation( } case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { segments_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + mutable_bitField0_ |= 0x00000001; } segments_.add( input.readMessage( @@ -87,10 +93,10 @@ private FaceAnnotation( } case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { frames_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000002; } frames_.add( input.readMessage( @@ -111,10 +117,10 @@ private FaceAnnotation( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { segments_ = java.util.Collections.unmodifiableList(segments_); } - if (((mutable_bitField0_ & 0x00000004) != 0)) { + if (((mutable_bitField0_ & 0x00000002) != 0)) { frames_ = java.util.Collections.unmodifiableList(frames_); } this.unknownFields = unknownFields.build(); @@ -137,7 +143,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.videointelligence.v1.FaceAnnotation.Builder.class); } - private int bitField0_; public static final int THUMBNAIL_FIELD_NUMBER = 1; private com.google.protobuf.ByteString thumbnail_; /** @@ -148,6 +153,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * bytes thumbnail = 1; + * + * @return The thumbnail. */ public com.google.protobuf.ByteString getThumbnail() { return thumbnail_; @@ -515,13 +522,13 @@ public Builder clear() { if (segmentsBuilder_ == null) { segments_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } else { segmentsBuilder_.clear(); } if (framesBuilder_ == null) { frames_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); } else { framesBuilder_.clear(); } @@ -553,27 +560,25 @@ public com.google.cloud.videointelligence.v1.FaceAnnotation buildPartial() { com.google.cloud.videointelligence.v1.FaceAnnotation result = new com.google.cloud.videointelligence.v1.FaceAnnotation(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.thumbnail_ = thumbnail_; if (segmentsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { segments_ = java.util.Collections.unmodifiableList(segments_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } result.segments_ = segments_; } else { result.segments_ = segmentsBuilder_.build(); } if (framesBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { frames_ = java.util.Collections.unmodifiableList(frames_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); } result.frames_ = frames_; } else { result.frames_ = framesBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -631,7 +636,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1.FaceAnnotation ot if (!other.segments_.isEmpty()) { if (segments_.isEmpty()) { segments_ = other.segments_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSegmentsIsMutable(); segments_.addAll(other.segments_); @@ -644,7 +649,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1.FaceAnnotation ot segmentsBuilder_.dispose(); segmentsBuilder_ = null; segments_ = other.segments_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); segmentsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSegmentsFieldBuilder() @@ -658,7 +663,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1.FaceAnnotation ot if (!other.frames_.isEmpty()) { if (frames_.isEmpty()) { frames_ = other.frames_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureFramesIsMutable(); frames_.addAll(other.frames_); @@ -671,7 +676,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1.FaceAnnotation ot framesBuilder_.dispose(); framesBuilder_ = null; frames_ = other.frames_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); framesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFramesFieldBuilder() @@ -722,6 +727,8 @@ public Builder mergeFrom( * * * bytes thumbnail = 1; + * + * @return The thumbnail. */ public com.google.protobuf.ByteString getThumbnail() { return thumbnail_; @@ -734,6 +741,9 @@ public com.google.protobuf.ByteString getThumbnail() { * * * bytes thumbnail = 1; + * + * @param value The thumbnail to set. + * @return This builder for chaining. */ public Builder setThumbnail(com.google.protobuf.ByteString value) { if (value == null) { @@ -752,6 +762,8 @@ public Builder setThumbnail(com.google.protobuf.ByteString value) { * * * bytes thumbnail = 1; + * + * @return This builder for chaining. */ public Builder clearThumbnail() { @@ -764,10 +776,10 @@ public Builder clearThumbnail() { java.util.Collections.emptyList(); private void ensureSegmentsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { segments_ = new java.util.ArrayList(segments_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } @@ -983,7 +995,7 @@ public Builder addAllSegments( public Builder clearSegments() { if (segmentsBuilder_ == null) { segments_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { segmentsBuilder_.clear(); @@ -1107,7 +1119,7 @@ public com.google.cloud.videointelligence.v1.FaceSegment.Builder addSegmentsBuil com.google.cloud.videointelligence.v1.FaceSegment, com.google.cloud.videointelligence.v1.FaceSegment.Builder, com.google.cloud.videointelligence.v1.FaceSegmentOrBuilder>( - segments_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + segments_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); segments_ = null; } return segmentsBuilder_; @@ -1117,9 +1129,9 @@ public com.google.cloud.videointelligence.v1.FaceSegment.Builder addSegmentsBuil java.util.Collections.emptyList(); private void ensureFramesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { frames_ = new java.util.ArrayList(frames_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; } } @@ -1335,7 +1347,7 @@ public Builder addAllFrames( public Builder clearFrames() { if (framesBuilder_ == null) { frames_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { framesBuilder_.clear(); @@ -1457,7 +1469,7 @@ public com.google.cloud.videointelligence.v1.FaceFrame.Builder addFramesBuilder( com.google.cloud.videointelligence.v1.FaceFrame, com.google.cloud.videointelligence.v1.FaceFrame.Builder, com.google.cloud.videointelligence.v1.FaceFrameOrBuilder>( - frames_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + frames_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); frames_ = null; } return framesBuilder_; diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/FaceAnnotationOrBuilder.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/FaceAnnotationOrBuilder.java index f59c3a52d..cbf4cdcc5 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/FaceAnnotationOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/FaceAnnotationOrBuilder.java @@ -31,6 +31,8 @@ public interface FaceAnnotationOrBuilder * * * bytes thumbnail = 1; + * + * @return The thumbnail. */ com.google.protobuf.ByteString getThumbnail(); diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/FaceDetectionConfig.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/FaceDetectionConfig.java index 7ac9d324d..1808577c8 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/FaceDetectionConfig.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/FaceDetectionConfig.java @@ -41,6 +41,12 @@ private FaceDetectionConfig() { model_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FaceDetectionConfig(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private FaceDetectionConfig( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -123,6 +128,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string model = 1; + * + * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; @@ -145,6 +152,8 @@ public java.lang.String getModel() { * * * string model = 1; + * + * @return The bytes for model. */ public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; @@ -168,6 +177,8 @@ public com.google.protobuf.ByteString getModelBytes() { * * * bool include_bounding_boxes = 2; + * + * @return The includeBoundingBoxes. */ public boolean getIncludeBoundingBoxes() { return includeBoundingBoxes_; @@ -518,6 +529,8 @@ public Builder mergeFrom( * * * string model = 1; + * + * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; @@ -540,6 +553,8 @@ public java.lang.String getModel() { * * * string model = 1; + * + * @return The bytes for model. */ public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; @@ -562,6 +577,9 @@ public com.google.protobuf.ByteString getModelBytes() { * * * string model = 1; + * + * @param value The model to set. + * @return This builder for chaining. */ public Builder setModel(java.lang.String value) { if (value == null) { @@ -582,6 +600,8 @@ public Builder setModel(java.lang.String value) { * * * string model = 1; + * + * @return This builder for chaining. */ public Builder clearModel() { @@ -599,6 +619,9 @@ public Builder clearModel() { * * * string model = 1; + * + * @param value The bytes for model to set. + * @return This builder for chaining. */ public Builder setModelBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -620,6 +643,8 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { * * * bool include_bounding_boxes = 2; + * + * @return The includeBoundingBoxes. */ public boolean getIncludeBoundingBoxes() { return includeBoundingBoxes_; @@ -632,6 +657,9 @@ public boolean getIncludeBoundingBoxes() { * * * bool include_bounding_boxes = 2; + * + * @param value The includeBoundingBoxes to set. + * @return This builder for chaining. */ public Builder setIncludeBoundingBoxes(boolean value) { @@ -647,6 +675,8 @@ public Builder setIncludeBoundingBoxes(boolean value) { * * * bool include_bounding_boxes = 2; + * + * @return This builder for chaining. */ public Builder clearIncludeBoundingBoxes() { diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/FaceDetectionConfigOrBuilder.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/FaceDetectionConfigOrBuilder.java index c1c031eba..56ce50a5f 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/FaceDetectionConfigOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/FaceDetectionConfigOrBuilder.java @@ -33,6 +33,8 @@ public interface FaceDetectionConfigOrBuilder * * * string model = 1; + * + * @return The model. */ java.lang.String getModel(); /** @@ -45,6 +47,8 @@ public interface FaceDetectionConfigOrBuilder * * * string model = 1; + * + * @return The bytes for model. */ com.google.protobuf.ByteString getModelBytes(); @@ -56,6 +60,8 @@ public interface FaceDetectionConfigOrBuilder * * * bool include_bounding_boxes = 2; + * + * @return The includeBoundingBoxes. */ boolean getIncludeBoundingBoxes(); } diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/FaceFrame.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/FaceFrame.java index 5c5992035..3dfd5fb5a 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/FaceFrame.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/FaceFrame.java @@ -41,6 +41,12 @@ private FaceFrame() { normalizedBoundingBoxes_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FaceFrame(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -131,7 +137,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.videointelligence.v1.FaceFrame.Builder.class); } - private int bitField0_; public static final int NORMALIZED_BOUNDING_BOXES_FIELD_NUMBER = 1; private java.util.List normalizedBoundingBoxes_; @@ -232,6 +237,8 @@ public com.google.cloud.videointelligence.v1.NormalizedBoundingBox getNormalized * * * .google.protobuf.Duration time_offset = 2; + * + * @return Whether the timeOffset field is set. */ public boolean hasTimeOffset() { return timeOffset_ != null; @@ -245,6 +252,8 @@ public boolean hasTimeOffset() { * * * .google.protobuf.Duration time_offset = 2; + * + * @return The timeOffset. */ public com.google.protobuf.Duration getTimeOffset() { return timeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeOffset_; @@ -528,7 +537,6 @@ public com.google.cloud.videointelligence.v1.FaceFrame buildPartial() { com.google.cloud.videointelligence.v1.FaceFrame result = new com.google.cloud.videointelligence.v1.FaceFrame(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (normalizedBoundingBoxesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { normalizedBoundingBoxes_ = @@ -544,7 +552,6 @@ public com.google.cloud.videointelligence.v1.FaceFrame buildPartial() { } else { result.timeOffset_ = timeOffsetBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -1114,6 +1121,8 @@ public Builder removeNormalizedBoundingBoxes(int index) { * * * .google.protobuf.Duration time_offset = 2; + * + * @return Whether the timeOffset field is set. */ public boolean hasTimeOffset() { return timeOffsetBuilder_ != null || timeOffset_ != null; @@ -1127,6 +1136,8 @@ public boolean hasTimeOffset() { * * * .google.protobuf.Duration time_offset = 2; + * + * @return The timeOffset. */ public com.google.protobuf.Duration getTimeOffset() { if (timeOffsetBuilder_ == null) { diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/FaceFrameOrBuilder.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/FaceFrameOrBuilder.java index 4f5010c2f..7464cb1f4 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/FaceFrameOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/FaceFrameOrBuilder.java @@ -106,6 +106,8 @@ public interface FaceFrameOrBuilder * * * .google.protobuf.Duration time_offset = 2; + * + * @return Whether the timeOffset field is set. */ boolean hasTimeOffset(); /** @@ -117,6 +119,8 @@ public interface FaceFrameOrBuilder * * * .google.protobuf.Duration time_offset = 2; + * + * @return The timeOffset. */ com.google.protobuf.Duration getTimeOffset(); /** diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/FaceSegment.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/FaceSegment.java index 414b057e6..ac060f10f 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/FaceSegment.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/FaceSegment.java @@ -39,6 +39,12 @@ private FaceSegment(com.google.protobuf.GeneratedMessageV3.Builder builder) { private FaceSegment() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FaceSegment(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -52,7 +58,6 @@ private FaceSegment( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -124,6 +129,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.cloud.videointelligence.v1.VideoSegment segment = 1; + * + * @return Whether the segment field is set. */ public boolean hasSegment() { return segment_ != null; @@ -136,6 +143,8 @@ public boolean hasSegment() { * * * .google.cloud.videointelligence.v1.VideoSegment segment = 1; + * + * @return The segment. */ public com.google.cloud.videointelligence.v1.VideoSegment getSegment() { return segment_ == null @@ -499,6 +508,8 @@ public Builder mergeFrom( * * * .google.cloud.videointelligence.v1.VideoSegment segment = 1; + * + * @return Whether the segment field is set. */ public boolean hasSegment() { return segmentBuilder_ != null || segment_ != null; @@ -511,6 +522,8 @@ public boolean hasSegment() { * * * .google.cloud.videointelligence.v1.VideoSegment segment = 1; + * + * @return The segment. */ public com.google.cloud.videointelligence.v1.VideoSegment getSegment() { if (segmentBuilder_ == null) { diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/FaceSegmentOrBuilder.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/FaceSegmentOrBuilder.java index ce04fdd30..ae0279293 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/FaceSegmentOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/FaceSegmentOrBuilder.java @@ -31,6 +31,8 @@ public interface FaceSegmentOrBuilder * * * .google.cloud.videointelligence.v1.VideoSegment segment = 1; + * + * @return Whether the segment field is set. */ boolean hasSegment(); /** @@ -41,6 +43,8 @@ public interface FaceSegmentOrBuilder * * * .google.cloud.videointelligence.v1.VideoSegment segment = 1; + * + * @return The segment. */ com.google.cloud.videointelligence.v1.VideoSegment getSegment(); /** diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/Feature.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/Feature.java index 04d658e61..e61820da6 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/Feature.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/Feature.java @@ -200,12 +200,20 @@ public final int getNumber() { return value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ @java.lang.Deprecated public static Feature valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Feature forNumber(int value) { switch (value) { case 0: diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/LabelAnnotation.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/LabelAnnotation.java index a2b572925..e29843f5c 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/LabelAnnotation.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/LabelAnnotation.java @@ -43,6 +43,12 @@ private LabelAnnotation() { frames_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LabelAnnotation(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -85,10 +91,10 @@ private LabelAnnotation( } case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { categoryEntities_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + mutable_bitField0_ |= 0x00000001; } categoryEntities_.add( input.readMessage( @@ -97,10 +103,10 @@ private LabelAnnotation( } case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { segments_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000002; } segments_.add( input.readMessage( @@ -110,10 +116,10 @@ private LabelAnnotation( } case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { frames_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; + mutable_bitField0_ |= 0x00000004; } frames_.add( input.readMessage( @@ -135,13 +141,13 @@ private LabelAnnotation( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { categoryEntities_ = java.util.Collections.unmodifiableList(categoryEntities_); } - if (((mutable_bitField0_ & 0x00000004) != 0)) { + if (((mutable_bitField0_ & 0x00000002) != 0)) { segments_ = java.util.Collections.unmodifiableList(segments_); } - if (((mutable_bitField0_ & 0x00000008) != 0)) { + if (((mutable_bitField0_ & 0x00000004) != 0)) { frames_ = java.util.Collections.unmodifiableList(frames_); } this.unknownFields = unknownFields.build(); @@ -164,7 +170,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.videointelligence.v1.LabelAnnotation.Builder.class); } - private int bitField0_; public static final int ENTITY_FIELD_NUMBER = 1; private com.google.cloud.videointelligence.v1.Entity entity_; /** @@ -175,6 +180,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.cloud.videointelligence.v1.Entity entity = 1; + * + * @return Whether the entity field is set. */ public boolean hasEntity() { return entity_ != null; @@ -187,6 +194,8 @@ public boolean hasEntity() { * * * .google.cloud.videointelligence.v1.Entity entity = 1; + * + * @return The entity. */ public com.google.cloud.videointelligence.v1.Entity getEntity() { return entity_ == null @@ -670,19 +679,19 @@ public Builder clear() { } if (categoryEntitiesBuilder_ == null) { categoryEntities_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } else { categoryEntitiesBuilder_.clear(); } if (segmentsBuilder_ == null) { segments_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); } else { segmentsBuilder_.clear(); } if (framesBuilder_ == null) { frames_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); } else { framesBuilder_.clear(); } @@ -714,40 +723,38 @@ public com.google.cloud.videointelligence.v1.LabelAnnotation buildPartial() { com.google.cloud.videointelligence.v1.LabelAnnotation result = new com.google.cloud.videointelligence.v1.LabelAnnotation(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (entityBuilder_ == null) { result.entity_ = entity_; } else { result.entity_ = entityBuilder_.build(); } if (categoryEntitiesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { categoryEntities_ = java.util.Collections.unmodifiableList(categoryEntities_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } result.categoryEntities_ = categoryEntities_; } else { result.categoryEntities_ = categoryEntitiesBuilder_.build(); } if (segmentsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { segments_ = java.util.Collections.unmodifiableList(segments_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); } result.segments_ = segments_; } else { result.segments_ = segmentsBuilder_.build(); } if (framesBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { frames_ = java.util.Collections.unmodifiableList(frames_); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); } result.frames_ = frames_; } else { result.frames_ = framesBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -805,7 +812,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1.LabelAnnotation o if (!other.categoryEntities_.isEmpty()) { if (categoryEntities_.isEmpty()) { categoryEntities_ = other.categoryEntities_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureCategoryEntitiesIsMutable(); categoryEntities_.addAll(other.categoryEntities_); @@ -818,7 +825,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1.LabelAnnotation o categoryEntitiesBuilder_.dispose(); categoryEntitiesBuilder_ = null; categoryEntities_ = other.categoryEntities_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); categoryEntitiesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCategoryEntitiesFieldBuilder() @@ -832,7 +839,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1.LabelAnnotation o if (!other.segments_.isEmpty()) { if (segments_.isEmpty()) { segments_ = other.segments_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureSegmentsIsMutable(); segments_.addAll(other.segments_); @@ -845,7 +852,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1.LabelAnnotation o segmentsBuilder_.dispose(); segmentsBuilder_ = null; segments_ = other.segments_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); segmentsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSegmentsFieldBuilder() @@ -859,7 +866,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1.LabelAnnotation o if (!other.frames_.isEmpty()) { if (frames_.isEmpty()) { frames_ = other.frames_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureFramesIsMutable(); frames_.addAll(other.frames_); @@ -872,7 +879,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1.LabelAnnotation o framesBuilder_.dispose(); framesBuilder_ = null; frames_ = other.frames_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); framesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFramesFieldBuilder() @@ -928,6 +935,8 @@ public Builder mergeFrom( * * * .google.cloud.videointelligence.v1.Entity entity = 1; + * + * @return Whether the entity field is set. */ public boolean hasEntity() { return entityBuilder_ != null || entity_ != null; @@ -940,6 +949,8 @@ public boolean hasEntity() { * * * .google.cloud.videointelligence.v1.Entity entity = 1; + * + * @return The entity. */ public com.google.cloud.videointelligence.v1.Entity getEntity() { if (entityBuilder_ == null) { @@ -1099,11 +1110,11 @@ public com.google.cloud.videointelligence.v1.EntityOrBuilder getEntityOrBuilder( java.util.Collections.emptyList(); private void ensureCategoryEntitiesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { categoryEntities_ = new java.util.ArrayList( categoryEntities_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } @@ -1354,7 +1365,7 @@ public Builder addAllCategoryEntities( public Builder clearCategoryEntities() { if (categoryEntitiesBuilder_ == null) { categoryEntities_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { categoryEntitiesBuilder_.clear(); @@ -1501,7 +1512,7 @@ public com.google.cloud.videointelligence.v1.Entity.Builder addCategoryEntitiesB com.google.cloud.videointelligence.v1.Entity.Builder, com.google.cloud.videointelligence.v1.EntityOrBuilder>( categoryEntities_, - ((bitField0_ & 0x00000002) != 0), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); categoryEntities_ = null; @@ -1513,10 +1524,10 @@ public com.google.cloud.videointelligence.v1.Entity.Builder addCategoryEntitiesB java.util.Collections.emptyList(); private void ensureSegmentsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { segments_ = new java.util.ArrayList(segments_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; } } @@ -1734,7 +1745,7 @@ public Builder addAllSegments( public Builder clearSegments() { if (segmentsBuilder_ == null) { segments_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { segmentsBuilder_.clear(); @@ -1860,7 +1871,7 @@ public com.google.cloud.videointelligence.v1.LabelSegment.Builder addSegmentsBui com.google.cloud.videointelligence.v1.LabelSegment, com.google.cloud.videointelligence.v1.LabelSegment.Builder, com.google.cloud.videointelligence.v1.LabelSegmentOrBuilder>( - segments_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + segments_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); segments_ = null; } return segmentsBuilder_; @@ -1870,10 +1881,10 @@ public com.google.cloud.videointelligence.v1.LabelSegment.Builder addSegmentsBui java.util.Collections.emptyList(); private void ensureFramesIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { frames_ = new java.util.ArrayList(frames_); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; } } @@ -2089,7 +2100,7 @@ public Builder addAllFrames( public Builder clearFrames() { if (framesBuilder_ == null) { frames_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { framesBuilder_.clear(); @@ -2211,7 +2222,7 @@ public com.google.cloud.videointelligence.v1.LabelFrame.Builder addFramesBuilder com.google.cloud.videointelligence.v1.LabelFrame, com.google.cloud.videointelligence.v1.LabelFrame.Builder, com.google.cloud.videointelligence.v1.LabelFrameOrBuilder>( - frames_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + frames_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); frames_ = null; } return framesBuilder_; diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/LabelAnnotationOrBuilder.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/LabelAnnotationOrBuilder.java index 2d56bebce..9cb8b9a9e 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/LabelAnnotationOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/LabelAnnotationOrBuilder.java @@ -31,6 +31,8 @@ public interface LabelAnnotationOrBuilder * * * .google.cloud.videointelligence.v1.Entity entity = 1; + * + * @return Whether the entity field is set. */ boolean hasEntity(); /** @@ -41,6 +43,8 @@ public interface LabelAnnotationOrBuilder * * * .google.cloud.videointelligence.v1.Entity entity = 1; + * + * @return The entity. */ com.google.cloud.videointelligence.v1.Entity getEntity(); /** diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/LabelDetectionConfig.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/LabelDetectionConfig.java index ae1f9c27f..d2e32883f 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/LabelDetectionConfig.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/LabelDetectionConfig.java @@ -42,6 +42,12 @@ private LabelDetectionConfig() { model_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LabelDetectionConfig(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -55,7 +61,6 @@ private LabelDetectionConfig( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -141,6 +146,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.cloud.videointelligence.v1.LabelDetectionMode label_detection_mode = 1; + * + * @return The enum numeric value on the wire for labelDetectionMode. */ public int getLabelDetectionModeValue() { return labelDetectionMode_; @@ -155,6 +162,8 @@ public int getLabelDetectionModeValue() { * * * .google.cloud.videointelligence.v1.LabelDetectionMode label_detection_mode = 1; + * + * @return The labelDetectionMode. */ public com.google.cloud.videointelligence.v1.LabelDetectionMode getLabelDetectionMode() { @SuppressWarnings("deprecation") @@ -177,6 +186,8 @@ public com.google.cloud.videointelligence.v1.LabelDetectionMode getLabelDetectio * * * bool stationary_camera = 2; + * + * @return The stationaryCamera. */ public boolean getStationaryCamera() { return stationaryCamera_; @@ -194,6 +205,8 @@ public boolean getStationaryCamera() { * * * string model = 3; + * + * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; @@ -216,6 +229,8 @@ public java.lang.String getModel() { * * * string model = 3; + * + * @return The bytes for model. */ public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; @@ -244,6 +259,8 @@ public com.google.protobuf.ByteString getModelBytes() { * * * float frame_confidence_threshold = 4; + * + * @return The frameConfidenceThreshold. */ public float getFrameConfidenceThreshold() { return frameConfidenceThreshold_; @@ -264,6 +281,8 @@ public float getFrameConfidenceThreshold() { * * * float video_confidence_threshold = 5; + * + * @return The videoConfidenceThreshold. */ public float getVideoConfidenceThreshold() { return videoConfidenceThreshold_; @@ -665,6 +684,8 @@ public Builder mergeFrom( * * * .google.cloud.videointelligence.v1.LabelDetectionMode label_detection_mode = 1; + * + * @return The enum numeric value on the wire for labelDetectionMode. */ public int getLabelDetectionModeValue() { return labelDetectionMode_; @@ -679,6 +700,9 @@ public int getLabelDetectionModeValue() { * * * .google.cloud.videointelligence.v1.LabelDetectionMode label_detection_mode = 1; + * + * @param value The enum numeric value on the wire for labelDetectionMode to set. + * @return This builder for chaining. */ public Builder setLabelDetectionModeValue(int value) { labelDetectionMode_ = value; @@ -695,6 +719,8 @@ public Builder setLabelDetectionModeValue(int value) { * * * .google.cloud.videointelligence.v1.LabelDetectionMode label_detection_mode = 1; + * + * @return The labelDetectionMode. */ public com.google.cloud.videointelligence.v1.LabelDetectionMode getLabelDetectionMode() { @SuppressWarnings("deprecation") @@ -714,6 +740,9 @@ public com.google.cloud.videointelligence.v1.LabelDetectionMode getLabelDetectio * * * .google.cloud.videointelligence.v1.LabelDetectionMode label_detection_mode = 1; + * + * @param value The labelDetectionMode to set. + * @return This builder for chaining. */ public Builder setLabelDetectionMode( com.google.cloud.videointelligence.v1.LabelDetectionMode value) { @@ -735,6 +764,8 @@ public Builder setLabelDetectionMode( * * * .google.cloud.videointelligence.v1.LabelDetectionMode label_detection_mode = 1; + * + * @return This builder for chaining. */ public Builder clearLabelDetectionMode() { @@ -754,6 +785,8 @@ public Builder clearLabelDetectionMode() { * * * bool stationary_camera = 2; + * + * @return The stationaryCamera. */ public boolean getStationaryCamera() { return stationaryCamera_; @@ -768,6 +801,9 @@ public boolean getStationaryCamera() { * * * bool stationary_camera = 2; + * + * @param value The stationaryCamera to set. + * @return This builder for chaining. */ public Builder setStationaryCamera(boolean value) { @@ -785,6 +821,8 @@ public Builder setStationaryCamera(boolean value) { * * * bool stationary_camera = 2; + * + * @return This builder for chaining. */ public Builder clearStationaryCamera() { @@ -804,6 +842,8 @@ public Builder clearStationaryCamera() { * * * string model = 3; + * + * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; @@ -826,6 +866,8 @@ public java.lang.String getModel() { * * * string model = 3; + * + * @return The bytes for model. */ public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; @@ -848,6 +890,9 @@ public com.google.protobuf.ByteString getModelBytes() { * * * string model = 3; + * + * @param value The model to set. + * @return This builder for chaining. */ public Builder setModel(java.lang.String value) { if (value == null) { @@ -868,6 +913,8 @@ public Builder setModel(java.lang.String value) { * * * string model = 3; + * + * @return This builder for chaining. */ public Builder clearModel() { @@ -885,6 +932,9 @@ public Builder clearModel() { * * * string model = 3; + * + * @param value The bytes for model to set. + * @return This builder for chaining. */ public Builder setModelBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -911,6 +961,8 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { * * * float frame_confidence_threshold = 4; + * + * @return The frameConfidenceThreshold. */ public float getFrameConfidenceThreshold() { return frameConfidenceThreshold_; @@ -928,6 +980,9 @@ public float getFrameConfidenceThreshold() { * * * float frame_confidence_threshold = 4; + * + * @param value The frameConfidenceThreshold to set. + * @return This builder for chaining. */ public Builder setFrameConfidenceThreshold(float value) { @@ -948,6 +1003,8 @@ public Builder setFrameConfidenceThreshold(float value) { * * * float frame_confidence_threshold = 4; + * + * @return This builder for chaining. */ public Builder clearFrameConfidenceThreshold() { @@ -970,6 +1027,8 @@ public Builder clearFrameConfidenceThreshold() { * * * float video_confidence_threshold = 5; + * + * @return The videoConfidenceThreshold. */ public float getVideoConfidenceThreshold() { return videoConfidenceThreshold_; @@ -987,6 +1046,9 @@ public float getVideoConfidenceThreshold() { * * * float video_confidence_threshold = 5; + * + * @param value The videoConfidenceThreshold to set. + * @return This builder for chaining. */ public Builder setVideoConfidenceThreshold(float value) { @@ -1007,6 +1069,8 @@ public Builder setVideoConfidenceThreshold(float value) { * * * float video_confidence_threshold = 5; + * + * @return This builder for chaining. */ public Builder clearVideoConfidenceThreshold() { diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/LabelDetectionConfigOrBuilder.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/LabelDetectionConfigOrBuilder.java index 32a050cd1..f4f9a0be0 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/LabelDetectionConfigOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/LabelDetectionConfigOrBuilder.java @@ -33,6 +33,8 @@ public interface LabelDetectionConfigOrBuilder * * * .google.cloud.videointelligence.v1.LabelDetectionMode label_detection_mode = 1; + * + * @return The enum numeric value on the wire for labelDetectionMode. */ int getLabelDetectionModeValue(); /** @@ -45,6 +47,8 @@ public interface LabelDetectionConfigOrBuilder * * * .google.cloud.videointelligence.v1.LabelDetectionMode label_detection_mode = 1; + * + * @return The labelDetectionMode. */ com.google.cloud.videointelligence.v1.LabelDetectionMode getLabelDetectionMode(); @@ -58,6 +62,8 @@ public interface LabelDetectionConfigOrBuilder * * * bool stationary_camera = 2; + * + * @return The stationaryCamera. */ boolean getStationaryCamera(); @@ -71,6 +77,8 @@ public interface LabelDetectionConfigOrBuilder * * * string model = 3; + * + * @return The model. */ java.lang.String getModel(); /** @@ -83,6 +91,8 @@ public interface LabelDetectionConfigOrBuilder * * * string model = 3; + * + * @return The bytes for model. */ com.google.protobuf.ByteString getModelBytes(); @@ -99,6 +109,8 @@ public interface LabelDetectionConfigOrBuilder * * * float frame_confidence_threshold = 4; + * + * @return The frameConfidenceThreshold. */ float getFrameConfidenceThreshold(); @@ -115,6 +127,8 @@ public interface LabelDetectionConfigOrBuilder * * * float video_confidence_threshold = 5; + * + * @return The videoConfidenceThreshold. */ float getVideoConfidenceThreshold(); } diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/LabelDetectionMode.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/LabelDetectionMode.java index 9868282d3..d65108fc5 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/LabelDetectionMode.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/LabelDetectionMode.java @@ -120,12 +120,20 @@ public final int getNumber() { return value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ @java.lang.Deprecated public static LabelDetectionMode valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static LabelDetectionMode forNumber(int value) { switch (value) { case 0: diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/LabelFrame.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/LabelFrame.java index eb3d89764..d94ad39f4 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/LabelFrame.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/LabelFrame.java @@ -39,6 +39,12 @@ private LabelFrame(com.google.protobuf.GeneratedMessageV3.Builder builder) { private LabelFrame() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LabelFrame(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -52,7 +58,6 @@ private LabelFrame( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -128,6 +133,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.protobuf.Duration time_offset = 1; + * + * @return Whether the timeOffset field is set. */ public boolean hasTimeOffset() { return timeOffset_ != null; @@ -141,6 +148,8 @@ public boolean hasTimeOffset() { * * * .google.protobuf.Duration time_offset = 1; + * + * @return The timeOffset. */ public com.google.protobuf.Duration getTimeOffset() { return timeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeOffset_; @@ -169,6 +178,8 @@ public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() { * * * float confidence = 2; + * + * @return The confidence. */ public float getConfidence() { return confidence_; @@ -534,6 +545,8 @@ public Builder mergeFrom( * * * .google.protobuf.Duration time_offset = 1; + * + * @return Whether the timeOffset field is set. */ public boolean hasTimeOffset() { return timeOffsetBuilder_ != null || timeOffset_ != null; @@ -547,6 +560,8 @@ public boolean hasTimeOffset() { * * * .google.protobuf.Duration time_offset = 1; + * + * @return The timeOffset. */ public com.google.protobuf.Duration getTimeOffset() { if (timeOffsetBuilder_ == null) { @@ -716,6 +731,8 @@ public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() { * * * float confidence = 2; + * + * @return The confidence. */ public float getConfidence() { return confidence_; @@ -728,6 +745,9 @@ public float getConfidence() { * * * float confidence = 2; + * + * @param value The confidence to set. + * @return This builder for chaining. */ public Builder setConfidence(float value) { @@ -743,6 +763,8 @@ public Builder setConfidence(float value) { * * * float confidence = 2; + * + * @return This builder for chaining. */ public Builder clearConfidence() { diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/LabelFrameOrBuilder.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/LabelFrameOrBuilder.java index f1217f1ac..4f9c1c743 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/LabelFrameOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/LabelFrameOrBuilder.java @@ -32,6 +32,8 @@ public interface LabelFrameOrBuilder * * * .google.protobuf.Duration time_offset = 1; + * + * @return Whether the timeOffset field is set. */ boolean hasTimeOffset(); /** @@ -43,6 +45,8 @@ public interface LabelFrameOrBuilder * * * .google.protobuf.Duration time_offset = 1; + * + * @return The timeOffset. */ com.google.protobuf.Duration getTimeOffset(); /** @@ -65,6 +69,8 @@ public interface LabelFrameOrBuilder * * * float confidence = 2; + * + * @return The confidence. */ float getConfidence(); } diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/LabelSegment.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/LabelSegment.java index 6f83715f5..8cecbc1ae 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/LabelSegment.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/LabelSegment.java @@ -39,6 +39,12 @@ private LabelSegment(com.google.protobuf.GeneratedMessageV3.Builder builder) private LabelSegment() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LabelSegment(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -52,7 +58,6 @@ private LabelSegment( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -129,6 +134,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.cloud.videointelligence.v1.VideoSegment segment = 1; + * + * @return Whether the segment field is set. */ public boolean hasSegment() { return segment_ != null; @@ -141,6 +148,8 @@ public boolean hasSegment() { * * * .google.cloud.videointelligence.v1.VideoSegment segment = 1; + * + * @return The segment. */ public com.google.cloud.videointelligence.v1.VideoSegment getSegment() { return segment_ == null @@ -170,6 +179,8 @@ public com.google.cloud.videointelligence.v1.VideoSegmentOrBuilder getSegmentOrB * * * float confidence = 2; + * + * @return The confidence. */ public float getConfidence() { return confidence_; @@ -535,6 +546,8 @@ public Builder mergeFrom( * * * .google.cloud.videointelligence.v1.VideoSegment segment = 1; + * + * @return Whether the segment field is set. */ public boolean hasSegment() { return segmentBuilder_ != null || segment_ != null; @@ -547,6 +560,8 @@ public boolean hasSegment() { * * * .google.cloud.videointelligence.v1.VideoSegment segment = 1; + * + * @return The segment. */ public com.google.cloud.videointelligence.v1.VideoSegment getSegment() { if (segmentBuilder_ == null) { @@ -712,6 +727,8 @@ public com.google.cloud.videointelligence.v1.VideoSegmentOrBuilder getSegmentOrB * * * float confidence = 2; + * + * @return The confidence. */ public float getConfidence() { return confidence_; @@ -724,6 +741,9 @@ public float getConfidence() { * * * float confidence = 2; + * + * @param value The confidence to set. + * @return This builder for chaining. */ public Builder setConfidence(float value) { @@ -739,6 +759,8 @@ public Builder setConfidence(float value) { * * * float confidence = 2; + * + * @return This builder for chaining. */ public Builder clearConfidence() { diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/LabelSegmentOrBuilder.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/LabelSegmentOrBuilder.java index 179300ea8..8a77beb35 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/LabelSegmentOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/LabelSegmentOrBuilder.java @@ -31,6 +31,8 @@ public interface LabelSegmentOrBuilder * * * .google.cloud.videointelligence.v1.VideoSegment segment = 1; + * + * @return Whether the segment field is set. */ boolean hasSegment(); /** @@ -41,6 +43,8 @@ public interface LabelSegmentOrBuilder * * * .google.cloud.videointelligence.v1.VideoSegment segment = 1; + * + * @return The segment. */ com.google.cloud.videointelligence.v1.VideoSegment getSegment(); /** @@ -62,6 +66,8 @@ public interface LabelSegmentOrBuilder * * * float confidence = 2; + * + * @return The confidence. */ float getConfidence(); } diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/Likelihood.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/Likelihood.java index 52a8404c6..5b97a29f6 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/Likelihood.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/Likelihood.java @@ -160,12 +160,20 @@ public final int getNumber() { return value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ @java.lang.Deprecated public static Likelihood valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Likelihood forNumber(int value) { switch (value) { case 0: diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/NormalizedBoundingBox.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/NormalizedBoundingBox.java index 5990e396a..bca2328ce 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/NormalizedBoundingBox.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/NormalizedBoundingBox.java @@ -41,6 +41,12 @@ private NormalizedBoundingBox(com.google.protobuf.GeneratedMessageV3.Builder private NormalizedBoundingBox() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NormalizedBoundingBox(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private NormalizedBoundingBox( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -129,6 +134,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * float left = 1; + * + * @return The left. */ public float getLeft() { return left_; @@ -144,6 +151,8 @@ public float getLeft() { * * * float top = 2; + * + * @return The top. */ public float getTop() { return top_; @@ -159,6 +168,8 @@ public float getTop() { * * * float right = 3; + * + * @return The right. */ public float getRight() { return right_; @@ -174,6 +185,8 @@ public float getRight() { * * * float bottom = 4; + * + * @return The bottom. */ public float getBottom() { return bottom_; @@ -557,6 +570,8 @@ public Builder mergeFrom( * * * float left = 1; + * + * @return The left. */ public float getLeft() { return left_; @@ -569,6 +584,9 @@ public float getLeft() { * * * float left = 1; + * + * @param value The left to set. + * @return This builder for chaining. */ public Builder setLeft(float value) { @@ -584,6 +602,8 @@ public Builder setLeft(float value) { * * * float left = 1; + * + * @return This builder for chaining. */ public Builder clearLeft() { @@ -601,6 +621,8 @@ public Builder clearLeft() { * * * float top = 2; + * + * @return The top. */ public float getTop() { return top_; @@ -613,6 +635,9 @@ public float getTop() { * * * float top = 2; + * + * @param value The top to set. + * @return This builder for chaining. */ public Builder setTop(float value) { @@ -628,6 +653,8 @@ public Builder setTop(float value) { * * * float top = 2; + * + * @return This builder for chaining. */ public Builder clearTop() { @@ -645,6 +672,8 @@ public Builder clearTop() { * * * float right = 3; + * + * @return The right. */ public float getRight() { return right_; @@ -657,6 +686,9 @@ public float getRight() { * * * float right = 3; + * + * @param value The right to set. + * @return This builder for chaining. */ public Builder setRight(float value) { @@ -672,6 +704,8 @@ public Builder setRight(float value) { * * * float right = 3; + * + * @return This builder for chaining. */ public Builder clearRight() { @@ -689,6 +723,8 @@ public Builder clearRight() { * * * float bottom = 4; + * + * @return The bottom. */ public float getBottom() { return bottom_; @@ -701,6 +737,9 @@ public float getBottom() { * * * float bottom = 4; + * + * @param value The bottom to set. + * @return This builder for chaining. */ public Builder setBottom(float value) { @@ -716,6 +755,8 @@ public Builder setBottom(float value) { * * * float bottom = 4; + * + * @return This builder for chaining. */ public Builder clearBottom() { diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/NormalizedBoundingBoxOrBuilder.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/NormalizedBoundingBoxOrBuilder.java index 7325c9e86..a2979dc1a 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/NormalizedBoundingBoxOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/NormalizedBoundingBoxOrBuilder.java @@ -31,6 +31,8 @@ public interface NormalizedBoundingBoxOrBuilder * * * float left = 1; + * + * @return The left. */ float getLeft(); @@ -42,6 +44,8 @@ public interface NormalizedBoundingBoxOrBuilder * * * float top = 2; + * + * @return The top. */ float getTop(); @@ -53,6 +57,8 @@ public interface NormalizedBoundingBoxOrBuilder * * * float right = 3; + * + * @return The right. */ float getRight(); @@ -64,6 +70,8 @@ public interface NormalizedBoundingBoxOrBuilder * * * float bottom = 4; + * + * @return The bottom. */ float getBottom(); } diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/NormalizedBoundingPoly.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/NormalizedBoundingPoly.java index c176a46a4..3464e6d96 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/NormalizedBoundingPoly.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/NormalizedBoundingPoly.java @@ -55,6 +55,12 @@ private NormalizedBoundingPoly() { vertices_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NormalizedBoundingPoly(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/NormalizedVertex.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/NormalizedVertex.java index a71044989..44f5e930d 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/NormalizedVertex.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/NormalizedVertex.java @@ -41,6 +41,12 @@ private NormalizedVertex(com.google.protobuf.GeneratedMessageV3.Builder build private NormalizedVertex() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NormalizedVertex(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private NormalizedVertex( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -119,6 +124,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * float x = 1; + * + * @return The x. */ public float getX() { return x_; @@ -134,6 +141,8 @@ public float getX() { * * * float y = 2; + * + * @return The y. */ public float getY() { return y_; @@ -485,6 +494,8 @@ public Builder mergeFrom( * * * float x = 1; + * + * @return The x. */ public float getX() { return x_; @@ -497,6 +508,9 @@ public float getX() { * * * float x = 1; + * + * @param value The x to set. + * @return This builder for chaining. */ public Builder setX(float value) { @@ -512,6 +526,8 @@ public Builder setX(float value) { * * * float x = 1; + * + * @return This builder for chaining. */ public Builder clearX() { @@ -529,6 +545,8 @@ public Builder clearX() { * * * float y = 2; + * + * @return The y. */ public float getY() { return y_; @@ -541,6 +559,9 @@ public float getY() { * * * float y = 2; + * + * @param value The y to set. + * @return This builder for chaining. */ public Builder setY(float value) { @@ -556,6 +577,8 @@ public Builder setY(float value) { * * * float y = 2; + * + * @return This builder for chaining. */ public Builder clearY() { diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/NormalizedVertexOrBuilder.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/NormalizedVertexOrBuilder.java index f947a32f3..36e42982d 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/NormalizedVertexOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/NormalizedVertexOrBuilder.java @@ -31,6 +31,8 @@ public interface NormalizedVertexOrBuilder * * * float x = 1; + * + * @return The x. */ float getX(); @@ -42,6 +44,8 @@ public interface NormalizedVertexOrBuilder * * * float y = 2; + * + * @return The y. */ float getY(); } diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/ObjectTrackingAnnotation.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/ObjectTrackingAnnotation.java index 051c8e4d6..16b83a19e 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/ObjectTrackingAnnotation.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/ObjectTrackingAnnotation.java @@ -41,6 +41,12 @@ private ObjectTrackingAnnotation() { frames_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ObjectTrackingAnnotation(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -83,11 +89,11 @@ private ObjectTrackingAnnotation( } case 18: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { frames_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1.ObjectTrackingFrame>(); - mutable_bitField0_ |= 0x00000010; + mutable_bitField0_ |= 0x00000001; } frames_.add( input.readMessage( @@ -139,7 +145,7 @@ private ObjectTrackingAnnotation( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000010) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { frames_ = java.util.Collections.unmodifiableList(frames_); } this.unknownFields = unknownFields.build(); @@ -162,11 +168,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.videointelligence.v1.ObjectTrackingAnnotation.Builder.class); } - private int bitField0_; private int trackInfoCase_ = 0; private java.lang.Object trackInfo_; - public enum TrackInfoCase implements com.google.protobuf.Internal.EnumLite { + public enum TrackInfoCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { SEGMENT(3), TRACK_ID(5), TRACKINFO_NOT_SET(0); @@ -175,7 +183,11 @@ public enum TrackInfoCase implements com.google.protobuf.Internal.EnumLite { private TrackInfoCase(int value) { this.value = value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ @java.lang.Deprecated public static TrackInfoCase valueOf(int value) { return forNumber(value); @@ -213,6 +225,8 @@ public TrackInfoCase getTrackInfoCase() { * * * .google.cloud.videointelligence.v1.VideoSegment segment = 3; + * + * @return Whether the segment field is set. */ public boolean hasSegment() { return trackInfoCase_ == 3; @@ -226,6 +240,8 @@ public boolean hasSegment() { * * * .google.cloud.videointelligence.v1.VideoSegment segment = 3; + * + * @return The segment. */ public com.google.cloud.videointelligence.v1.VideoSegment getSegment() { if (trackInfoCase_ == 3) { @@ -264,6 +280,8 @@ public com.google.cloud.videointelligence.v1.VideoSegmentOrBuilder getSegmentOrB * * * int64 track_id = 5; + * + * @return The trackId. */ public long getTrackId() { if (trackInfoCase_ == 5) { @@ -282,6 +300,8 @@ public long getTrackId() { * * * .google.cloud.videointelligence.v1.Entity entity = 1; + * + * @return Whether the entity field is set. */ public boolean hasEntity() { return entity_ != null; @@ -294,6 +314,8 @@ public boolean hasEntity() { * * * .google.cloud.videointelligence.v1.Entity entity = 1; + * + * @return The entity. */ public com.google.cloud.videointelligence.v1.Entity getEntity() { return entity_ == null @@ -323,6 +345,8 @@ public com.google.cloud.videointelligence.v1.EntityOrBuilder getEntityOrBuilder( * * * float confidence = 4; + * + * @return The confidence. */ public float getConfidence() { return confidence_; @@ -691,7 +715,7 @@ public Builder clear() { if (framesBuilder_ == null) { frames_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000001); } else { framesBuilder_.clear(); } @@ -726,7 +750,6 @@ public com.google.cloud.videointelligence.v1.ObjectTrackingAnnotation buildParti com.google.cloud.videointelligence.v1.ObjectTrackingAnnotation result = new com.google.cloud.videointelligence.v1.ObjectTrackingAnnotation(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (trackInfoCase_ == 3) { if (segmentBuilder_ == null) { result.trackInfo_ = trackInfo_; @@ -744,15 +767,14 @@ public com.google.cloud.videointelligence.v1.ObjectTrackingAnnotation buildParti } result.confidence_ = confidence_; if (framesBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { frames_ = java.util.Collections.unmodifiableList(frames_); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000001); } result.frames_ = frames_; } else { result.frames_ = framesBuilder_.build(); } - result.bitField0_ = to_bitField0_; result.trackInfoCase_ = trackInfoCase_; onBuilt(); return result; @@ -815,7 +837,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1.ObjectTrackingAnn if (!other.frames_.isEmpty()) { if (frames_.isEmpty()) { frames_ = other.frames_; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureFramesIsMutable(); frames_.addAll(other.frames_); @@ -828,7 +850,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1.ObjectTrackingAnn framesBuilder_.dispose(); framesBuilder_ = null; frames_ = other.frames_; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000001); framesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFramesFieldBuilder() @@ -915,6 +937,8 @@ public Builder clearTrackInfo() { * * * .google.cloud.videointelligence.v1.VideoSegment segment = 3; + * + * @return Whether the segment field is set. */ public boolean hasSegment() { return trackInfoCase_ == 3; @@ -928,6 +952,8 @@ public boolean hasSegment() { * * * .google.cloud.videointelligence.v1.VideoSegment segment = 3; + * + * @return The segment. */ public com.google.cloud.videointelligence.v1.VideoSegment getSegment() { if (segmentBuilder_ == null) { @@ -1126,6 +1152,8 @@ public com.google.cloud.videointelligence.v1.VideoSegmentOrBuilder getSegmentOrB * * * int64 track_id = 5; + * + * @return The trackId. */ public long getTrackId() { if (trackInfoCase_ == 5) { @@ -1146,6 +1174,9 @@ public long getTrackId() { * * * int64 track_id = 5; + * + * @param value The trackId to set. + * @return This builder for chaining. */ public Builder setTrackId(long value) { trackInfoCase_ = 5; @@ -1166,6 +1197,8 @@ public Builder setTrackId(long value) { * * * int64 track_id = 5; + * + * @return This builder for chaining. */ public Builder clearTrackId() { if (trackInfoCase_ == 5) { @@ -1190,6 +1223,8 @@ public Builder clearTrackId() { * * * .google.cloud.videointelligence.v1.Entity entity = 1; + * + * @return Whether the entity field is set. */ public boolean hasEntity() { return entityBuilder_ != null || entity_ != null; @@ -1202,6 +1237,8 @@ public boolean hasEntity() { * * * .google.cloud.videointelligence.v1.Entity entity = 1; + * + * @return The entity. */ public com.google.cloud.videointelligence.v1.Entity getEntity() { if (entityBuilder_ == null) { @@ -1366,6 +1403,8 @@ public com.google.cloud.videointelligence.v1.EntityOrBuilder getEntityOrBuilder( * * * float confidence = 4; + * + * @return The confidence. */ public float getConfidence() { return confidence_; @@ -1378,6 +1417,9 @@ public float getConfidence() { * * * float confidence = 4; + * + * @param value The confidence to set. + * @return This builder for chaining. */ public Builder setConfidence(float value) { @@ -1393,6 +1435,8 @@ public Builder setConfidence(float value) { * * * float confidence = 4; + * + * @return This builder for chaining. */ public Builder clearConfidence() { @@ -1405,11 +1449,11 @@ public Builder clearConfidence() { java.util.Collections.emptyList(); private void ensureFramesIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { frames_ = new java.util.ArrayList( frames_); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000001; } } @@ -1664,7 +1708,7 @@ public Builder addAllFrames( public Builder clearFrames() { if (framesBuilder_ == null) { frames_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { framesBuilder_.clear(); @@ -1814,7 +1858,7 @@ public com.google.cloud.videointelligence.v1.ObjectTrackingFrame.Builder addFram com.google.cloud.videointelligence.v1.ObjectTrackingFrame, com.google.cloud.videointelligence.v1.ObjectTrackingFrame.Builder, com.google.cloud.videointelligence.v1.ObjectTrackingFrameOrBuilder>( - frames_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + frames_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); frames_ = null; } return framesBuilder_; diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/ObjectTrackingAnnotationOrBuilder.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/ObjectTrackingAnnotationOrBuilder.java index b7e055ab3..ffead3391 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/ObjectTrackingAnnotationOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/ObjectTrackingAnnotationOrBuilder.java @@ -32,6 +32,8 @@ public interface ObjectTrackingAnnotationOrBuilder * * * .google.cloud.videointelligence.v1.VideoSegment segment = 3; + * + * @return Whether the segment field is set. */ boolean hasSegment(); /** @@ -43,6 +45,8 @@ public interface ObjectTrackingAnnotationOrBuilder * * * .google.cloud.videointelligence.v1.VideoSegment segment = 3; + * + * @return The segment. */ com.google.cloud.videointelligence.v1.VideoSegment getSegment(); /** @@ -70,6 +74,8 @@ public interface ObjectTrackingAnnotationOrBuilder * * * int64 track_id = 5; + * + * @return The trackId. */ long getTrackId(); @@ -81,6 +87,8 @@ public interface ObjectTrackingAnnotationOrBuilder * * * .google.cloud.videointelligence.v1.Entity entity = 1; + * + * @return Whether the entity field is set. */ boolean hasEntity(); /** @@ -91,6 +99,8 @@ public interface ObjectTrackingAnnotationOrBuilder * * * .google.cloud.videointelligence.v1.Entity entity = 1; + * + * @return The entity. */ com.google.cloud.videointelligence.v1.Entity getEntity(); /** @@ -112,6 +122,8 @@ public interface ObjectTrackingAnnotationOrBuilder * * * float confidence = 4; + * + * @return The confidence. */ float getConfidence(); diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/ObjectTrackingConfig.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/ObjectTrackingConfig.java index f2dd57255..53ec63c05 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/ObjectTrackingConfig.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/ObjectTrackingConfig.java @@ -41,6 +41,12 @@ private ObjectTrackingConfig() { model_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ObjectTrackingConfig(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private ObjectTrackingConfig( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -118,6 +123,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string model = 1; + * + * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; @@ -140,6 +147,8 @@ public java.lang.String getModel() { * * * string model = 1; + * + * @return The bytes for model. */ public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; @@ -483,6 +492,8 @@ public Builder mergeFrom( * * * string model = 1; + * + * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; @@ -505,6 +516,8 @@ public java.lang.String getModel() { * * * string model = 1; + * + * @return The bytes for model. */ public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; @@ -527,6 +540,9 @@ public com.google.protobuf.ByteString getModelBytes() { * * * string model = 1; + * + * @param value The model to set. + * @return This builder for chaining. */ public Builder setModel(java.lang.String value) { if (value == null) { @@ -547,6 +563,8 @@ public Builder setModel(java.lang.String value) { * * * string model = 1; + * + * @return This builder for chaining. */ public Builder clearModel() { @@ -564,6 +582,9 @@ public Builder clearModel() { * * * string model = 1; + * + * @param value The bytes for model to set. + * @return This builder for chaining. */ public Builder setModelBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/ObjectTrackingConfigOrBuilder.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/ObjectTrackingConfigOrBuilder.java index fb737e43b..8030b1985 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/ObjectTrackingConfigOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/ObjectTrackingConfigOrBuilder.java @@ -33,6 +33,8 @@ public interface ObjectTrackingConfigOrBuilder * * * string model = 1; + * + * @return The model. */ java.lang.String getModel(); /** @@ -45,6 +47,8 @@ public interface ObjectTrackingConfigOrBuilder * * * string model = 1; + * + * @return The bytes for model. */ com.google.protobuf.ByteString getModelBytes(); } diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/ObjectTrackingFrame.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/ObjectTrackingFrame.java index 983f757bb..c7fa08ece 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/ObjectTrackingFrame.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/ObjectTrackingFrame.java @@ -40,6 +40,12 @@ private ObjectTrackingFrame(com.google.protobuf.GeneratedMessageV3.Builder bu private ObjectTrackingFrame() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ObjectTrackingFrame(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -53,7 +59,6 @@ private ObjectTrackingFrame( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -141,6 +146,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * .google.cloud.videointelligence.v1.NormalizedBoundingBox normalized_bounding_box = 1; * + * + * @return Whether the normalizedBoundingBox field is set. */ public boolean hasNormalizedBoundingBox() { return normalizedBoundingBox_ != null; @@ -154,6 +161,8 @@ public boolean hasNormalizedBoundingBox() { * * .google.cloud.videointelligence.v1.NormalizedBoundingBox normalized_bounding_box = 1; * + * + * @return The normalizedBoundingBox. */ public com.google.cloud.videointelligence.v1.NormalizedBoundingBox getNormalizedBoundingBox() { return normalizedBoundingBox_ == null @@ -185,6 +194,8 @@ public com.google.cloud.videointelligence.v1.NormalizedBoundingBox getNormalized * * * .google.protobuf.Duration time_offset = 2; + * + * @return Whether the timeOffset field is set. */ public boolean hasTimeOffset() { return timeOffset_ != null; @@ -197,6 +208,8 @@ public boolean hasTimeOffset() { * * * .google.protobuf.Duration time_offset = 2; + * + * @return The timeOffset. */ public com.google.protobuf.Duration getTimeOffset() { return timeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeOffset_; @@ -590,6 +603,8 @@ public Builder mergeFrom( * * .google.cloud.videointelligence.v1.NormalizedBoundingBox normalized_bounding_box = 1; * + * + * @return Whether the normalizedBoundingBox field is set. */ public boolean hasNormalizedBoundingBox() { return normalizedBoundingBoxBuilder_ != null || normalizedBoundingBox_ != null; @@ -603,6 +618,8 @@ public boolean hasNormalizedBoundingBox() { * * .google.cloud.videointelligence.v1.NormalizedBoundingBox normalized_bounding_box = 1; * + * + * @return The normalizedBoundingBox. */ public com.google.cloud.videointelligence.v1.NormalizedBoundingBox getNormalizedBoundingBox() { if (normalizedBoundingBoxBuilder_ == null) { @@ -785,6 +802,8 @@ public Builder clearNormalizedBoundingBox() { * * * .google.protobuf.Duration time_offset = 2; + * + * @return Whether the timeOffset field is set. */ public boolean hasTimeOffset() { return timeOffsetBuilder_ != null || timeOffset_ != null; @@ -797,6 +816,8 @@ public boolean hasTimeOffset() { * * * .google.protobuf.Duration time_offset = 2; + * + * @return The timeOffset. */ public com.google.protobuf.Duration getTimeOffset() { if (timeOffsetBuilder_ == null) { diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/ObjectTrackingFrameOrBuilder.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/ObjectTrackingFrameOrBuilder.java index 6c62df46c..4a6368f5b 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/ObjectTrackingFrameOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/ObjectTrackingFrameOrBuilder.java @@ -32,6 +32,8 @@ public interface ObjectTrackingFrameOrBuilder * * .google.cloud.videointelligence.v1.NormalizedBoundingBox normalized_bounding_box = 1; * + * + * @return Whether the normalizedBoundingBox field is set. */ boolean hasNormalizedBoundingBox(); /** @@ -43,6 +45,8 @@ public interface ObjectTrackingFrameOrBuilder * * .google.cloud.videointelligence.v1.NormalizedBoundingBox normalized_bounding_box = 1; * + * + * @return The normalizedBoundingBox. */ com.google.cloud.videointelligence.v1.NormalizedBoundingBox getNormalizedBoundingBox(); /** @@ -66,6 +70,8 @@ public interface ObjectTrackingFrameOrBuilder * * * .google.protobuf.Duration time_offset = 2; + * + * @return Whether the timeOffset field is set. */ boolean hasTimeOffset(); /** @@ -76,6 +82,8 @@ public interface ObjectTrackingFrameOrBuilder * * * .google.protobuf.Duration time_offset = 2; + * + * @return The timeOffset. */ com.google.protobuf.Duration getTimeOffset(); /** diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/ShotChangeDetectionConfig.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/ShotChangeDetectionConfig.java index 67138bf86..9d6b2b768 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/ShotChangeDetectionConfig.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/ShotChangeDetectionConfig.java @@ -41,6 +41,12 @@ private ShotChangeDetectionConfig() { model_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ShotChangeDetectionConfig(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private ShotChangeDetectionConfig( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -118,6 +123,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string model = 1; + * + * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; @@ -140,6 +147,8 @@ public java.lang.String getModel() { * * * string model = 1; + * + * @return The bytes for model. */ public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; @@ -487,6 +496,8 @@ public Builder mergeFrom( * * * string model = 1; + * + * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; @@ -509,6 +520,8 @@ public java.lang.String getModel() { * * * string model = 1; + * + * @return The bytes for model. */ public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; @@ -531,6 +544,9 @@ public com.google.protobuf.ByteString getModelBytes() { * * * string model = 1; + * + * @param value The model to set. + * @return This builder for chaining. */ public Builder setModel(java.lang.String value) { if (value == null) { @@ -551,6 +567,8 @@ public Builder setModel(java.lang.String value) { * * * string model = 1; + * + * @return This builder for chaining. */ public Builder clearModel() { @@ -568,6 +586,9 @@ public Builder clearModel() { * * * string model = 1; + * + * @param value The bytes for model to set. + * @return This builder for chaining. */ public Builder setModelBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/ShotChangeDetectionConfigOrBuilder.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/ShotChangeDetectionConfigOrBuilder.java index d7a2768a5..51b1f4eb2 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/ShotChangeDetectionConfigOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/ShotChangeDetectionConfigOrBuilder.java @@ -33,6 +33,8 @@ public interface ShotChangeDetectionConfigOrBuilder * * * string model = 1; + * + * @return The model. */ java.lang.String getModel(); /** @@ -45,6 +47,8 @@ public interface ShotChangeDetectionConfigOrBuilder * * * string model = 1; + * + * @return The bytes for model. */ com.google.protobuf.ByteString getModelBytes(); } diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/SpeechContext.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/SpeechContext.java index c2027f8f6..8c754663a 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/SpeechContext.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/SpeechContext.java @@ -42,6 +42,12 @@ private SpeechContext() { phrases_ = com.google.protobuf.LazyStringArrayList.EMPTY; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SpeechContext(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -128,6 +134,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the phrases. */ public com.google.protobuf.ProtocolStringList getPhrasesList() { return phrases_; @@ -145,6 +153,8 @@ public com.google.protobuf.ProtocolStringList getPhrasesList() { * * * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of phrases. */ public int getPhrasesCount() { return phrases_.size(); @@ -162,6 +172,9 @@ public int getPhrasesCount() { * * * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The phrases at the given index. */ public java.lang.String getPhrases(int index) { return phrases_.get(index); @@ -179,6 +192,9 @@ public java.lang.String getPhrases(int index) { * * * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the phrases at the given index. */ public com.google.protobuf.ByteString getPhrasesBytes(int index) { return phrases_.getByteString(index); @@ -545,6 +561,8 @@ private void ensurePhrasesIsMutable() { * * * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the phrases. */ public com.google.protobuf.ProtocolStringList getPhrasesList() { return phrases_.getUnmodifiableView(); @@ -562,6 +580,8 @@ public com.google.protobuf.ProtocolStringList getPhrasesList() { * * * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of phrases. */ public int getPhrasesCount() { return phrases_.size(); @@ -579,6 +599,9 @@ public int getPhrasesCount() { * * * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The phrases at the given index. */ public java.lang.String getPhrases(int index) { return phrases_.get(index); @@ -596,6 +619,9 @@ public java.lang.String getPhrases(int index) { * * * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the phrases at the given index. */ public com.google.protobuf.ByteString getPhrasesBytes(int index) { return phrases_.getByteString(index); @@ -613,6 +639,10 @@ public com.google.protobuf.ByteString getPhrasesBytes(int index) { * * * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The phrases to set. + * @return This builder for chaining. */ public Builder setPhrases(int index, java.lang.String value) { if (value == null) { @@ -636,6 +666,9 @@ public Builder setPhrases(int index, java.lang.String value) { * * * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The phrases to add. + * @return This builder for chaining. */ public Builder addPhrases(java.lang.String value) { if (value == null) { @@ -659,6 +692,9 @@ public Builder addPhrases(java.lang.String value) { * * * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The phrases to add. + * @return This builder for chaining. */ public Builder addAllPhrases(java.lang.Iterable values) { ensurePhrasesIsMutable(); @@ -679,6 +715,8 @@ public Builder addAllPhrases(java.lang.Iterable values) { * * * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. */ public Builder clearPhrases() { phrases_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -699,6 +737,9 @@ public Builder clearPhrases() { * * * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the phrases to add. + * @return This builder for chaining. */ public Builder addPhrasesBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/SpeechContextOrBuilder.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/SpeechContextOrBuilder.java index 995f2eb1d..e68dd051f 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/SpeechContextOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/SpeechContextOrBuilder.java @@ -36,6 +36,8 @@ public interface SpeechContextOrBuilder * * * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the phrases. */ java.util.List getPhrasesList(); /** @@ -51,6 +53,8 @@ public interface SpeechContextOrBuilder * * * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of phrases. */ int getPhrasesCount(); /** @@ -66,6 +70,9 @@ public interface SpeechContextOrBuilder * * * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The phrases at the given index. */ java.lang.String getPhrases(int index); /** @@ -81,6 +88,9 @@ public interface SpeechContextOrBuilder * * * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the phrases at the given index. */ com.google.protobuf.ByteString getPhrasesBytes(int index); } diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/SpeechRecognitionAlternative.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/SpeechRecognitionAlternative.java index 83281371f..86e5e39bc 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/SpeechRecognitionAlternative.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/SpeechRecognitionAlternative.java @@ -42,6 +42,12 @@ private SpeechRecognitionAlternative() { words_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SpeechRecognitionAlternative(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -80,9 +86,9 @@ private SpeechRecognitionAlternative( } case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { words_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000001; } words_.add( input.readMessage( @@ -103,7 +109,7 @@ private SpeechRecognitionAlternative( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { words_ = java.util.Collections.unmodifiableList(words_); } this.unknownFields = unknownFields.build(); @@ -126,7 +132,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.videointelligence.v1.SpeechRecognitionAlternative.Builder.class); } - private int bitField0_; public static final int TRANSCRIPT_FIELD_NUMBER = 1; private volatile java.lang.Object transcript_; /** @@ -137,6 +142,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string transcript = 1; + * + * @return The transcript. */ public java.lang.String getTranscript() { java.lang.Object ref = transcript_; @@ -157,6 +164,8 @@ public java.lang.String getTranscript() { * * * string transcript = 1; + * + * @return The bytes for transcript. */ public com.google.protobuf.ByteString getTranscriptBytes() { java.lang.Object ref = transcript_; @@ -185,6 +194,8 @@ public com.google.protobuf.ByteString getTranscriptBytes() { * * * float confidence = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The confidence. */ public float getConfidence() { return confidence_; @@ -510,7 +521,7 @@ public Builder clear() { if (wordsBuilder_ == null) { words_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } else { wordsBuilder_.clear(); } @@ -544,19 +555,17 @@ public com.google.cloud.videointelligence.v1.SpeechRecognitionAlternative buildP com.google.cloud.videointelligence.v1.SpeechRecognitionAlternative result = new com.google.cloud.videointelligence.v1.SpeechRecognitionAlternative(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.transcript_ = transcript_; result.confidence_ = confidence_; if (wordsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { words_ = java.util.Collections.unmodifiableList(words_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } result.words_ = words_; } else { result.words_ = wordsBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -621,7 +630,7 @@ public Builder mergeFrom( if (!other.words_.isEmpty()) { if (words_.isEmpty()) { words_ = other.words_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureWordsIsMutable(); words_.addAll(other.words_); @@ -634,7 +643,7 @@ public Builder mergeFrom( wordsBuilder_.dispose(); wordsBuilder_ = null; words_ = other.words_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); wordsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getWordsFieldBuilder() @@ -686,6 +695,8 @@ public Builder mergeFrom( * * * string transcript = 1; + * + * @return The transcript. */ public java.lang.String getTranscript() { java.lang.Object ref = transcript_; @@ -706,6 +717,8 @@ public java.lang.String getTranscript() { * * * string transcript = 1; + * + * @return The bytes for transcript. */ public com.google.protobuf.ByteString getTranscriptBytes() { java.lang.Object ref = transcript_; @@ -726,6 +739,9 @@ public com.google.protobuf.ByteString getTranscriptBytes() { * * * string transcript = 1; + * + * @param value The transcript to set. + * @return This builder for chaining. */ public Builder setTranscript(java.lang.String value) { if (value == null) { @@ -744,6 +760,8 @@ public Builder setTranscript(java.lang.String value) { * * * string transcript = 1; + * + * @return This builder for chaining. */ public Builder clearTranscript() { @@ -759,6 +777,9 @@ public Builder clearTranscript() { * * * string transcript = 1; + * + * @param value The bytes for transcript to set. + * @return This builder for chaining. */ public Builder setTranscriptBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -785,6 +806,8 @@ public Builder setTranscriptBytes(com.google.protobuf.ByteString value) { * * * float confidence = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The confidence. */ public float getConfidence() { return confidence_; @@ -802,6 +825,9 @@ public float getConfidence() { * * * float confidence = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The confidence to set. + * @return This builder for chaining. */ public Builder setConfidence(float value) { @@ -822,6 +848,8 @@ public Builder setConfidence(float value) { * * * float confidence = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. */ public Builder clearConfidence() { @@ -834,9 +862,9 @@ public Builder clearConfidence() { java.util.Collections.emptyList(); private void ensureWordsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { words_ = new java.util.ArrayList(words_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; } } @@ -1096,7 +1124,7 @@ public Builder addAllWords( public Builder clearWords() { if (wordsBuilder_ == null) { words_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { wordsBuilder_.clear(); @@ -1246,7 +1274,7 @@ public com.google.cloud.videointelligence.v1.WordInfo.Builder addWordsBuilder(in com.google.cloud.videointelligence.v1.WordInfo, com.google.cloud.videointelligence.v1.WordInfo.Builder, com.google.cloud.videointelligence.v1.WordInfoOrBuilder>( - words_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + words_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); words_ = null; } return wordsBuilder_; diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/SpeechRecognitionAlternativeOrBuilder.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/SpeechRecognitionAlternativeOrBuilder.java index 64fed16ae..72dfe6546 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/SpeechRecognitionAlternativeOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/SpeechRecognitionAlternativeOrBuilder.java @@ -31,6 +31,8 @@ public interface SpeechRecognitionAlternativeOrBuilder * * * string transcript = 1; + * + * @return The transcript. */ java.lang.String getTranscript(); /** @@ -41,6 +43,8 @@ public interface SpeechRecognitionAlternativeOrBuilder * * * string transcript = 1; + * + * @return The bytes for transcript. */ com.google.protobuf.ByteString getTranscriptBytes(); @@ -57,6 +61,8 @@ public interface SpeechRecognitionAlternativeOrBuilder * * * float confidence = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The confidence. */ float getConfidence(); diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/SpeechTranscription.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/SpeechTranscription.java index a3652681d..dc3d067fb 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/SpeechTranscription.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/SpeechTranscription.java @@ -42,6 +42,12 @@ private SpeechTranscription() { languageCode_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SpeechTranscription(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -124,7 +130,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.videointelligence.v1.SpeechTranscription.Builder.class); } - private int bitField0_; public static final int ALTERNATIVES_FIELD_NUMBER = 1; private java.util.List alternatives_; @@ -231,6 +236,8 @@ public com.google.cloud.videointelligence.v1.SpeechRecognitionAlternative getAlt * * * string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; @@ -253,6 +260,8 @@ public java.lang.String getLanguageCode() { * * * string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for languageCode. */ public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; @@ -520,7 +529,6 @@ public com.google.cloud.videointelligence.v1.SpeechTranscription buildPartial() com.google.cloud.videointelligence.v1.SpeechTranscription result = new com.google.cloud.videointelligence.v1.SpeechTranscription(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (alternativesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { alternatives_ = java.util.Collections.unmodifiableList(alternatives_); @@ -531,7 +539,6 @@ public com.google.cloud.videointelligence.v1.SpeechTranscription buildPartial() result.alternatives_ = alternativesBuilder_.build(); } result.languageCode_ = languageCode_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -1121,6 +1128,8 @@ public Builder removeAlternatives(int index) { * * * string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; @@ -1143,6 +1152,8 @@ public java.lang.String getLanguageCode() { * * * string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for languageCode. */ public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; @@ -1165,6 +1176,9 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { * * * string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The languageCode to set. + * @return This builder for chaining. */ public Builder setLanguageCode(java.lang.String value) { if (value == null) { @@ -1185,6 +1199,8 @@ public Builder setLanguageCode(java.lang.String value) { * * * string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -1202,6 +1218,9 @@ public Builder clearLanguageCode() { * * * string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for languageCode to set. + * @return This builder for chaining. */ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/SpeechTranscriptionConfig.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/SpeechTranscriptionConfig.java index f48e33d29..1d3f4cf64 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/SpeechTranscriptionConfig.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/SpeechTranscriptionConfig.java @@ -43,6 +43,12 @@ private SpeechTranscriptionConfig() { audioTracks_ = emptyIntList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SpeechTranscriptionConfig(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -86,10 +92,10 @@ private SpeechTranscriptionConfig( } case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { speechContexts_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; + mutable_bitField0_ |= 0x00000001; } speechContexts_.add( input.readMessage( @@ -104,9 +110,9 @@ private SpeechTranscriptionConfig( } case 48: { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { audioTracks_ = newIntList(); - mutable_bitField0_ |= 0x00000020; + mutable_bitField0_ |= 0x00000002; } audioTracks_.addInt(input.readInt32()); break; @@ -115,9 +121,9 @@ private SpeechTranscriptionConfig( { int length = input.readRawVarint32(); int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000020) != 0) && input.getBytesUntilLimit() > 0) { + if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { audioTracks_ = newIntList(); - mutable_bitField0_ |= 0x00000020; + mutable_bitField0_ |= 0x00000002; } while (input.getBytesUntilLimit() > 0) { audioTracks_.addInt(input.readInt32()); @@ -154,10 +160,10 @@ private SpeechTranscriptionConfig( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000008) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { speechContexts_ = java.util.Collections.unmodifiableList(speechContexts_); } - if (((mutable_bitField0_ & 0x00000020) != 0)) { + if (((mutable_bitField0_ & 0x00000002) != 0)) { audioTracks_.makeImmutable(); // C } this.unknownFields = unknownFields.build(); @@ -180,7 +186,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.videointelligence.v1.SpeechTranscriptionConfig.Builder.class); } - private int bitField0_; public static final int LANGUAGE_CODE_FIELD_NUMBER = 1; private volatile java.lang.Object languageCode_; /** @@ -195,6 +200,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; @@ -219,6 +226,8 @@ public java.lang.String getLanguageCode() { * * * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for languageCode. */ public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; @@ -246,6 +255,8 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { * * * int32 max_alternatives = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxAlternatives. */ public int getMaxAlternatives() { return maxAlternatives_; @@ -264,6 +275,8 @@ public int getMaxAlternatives() { * * * bool filter_profanity = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filterProfanity. */ public boolean getFilterProfanity() { return filterProfanity_; @@ -360,6 +373,8 @@ public com.google.cloud.videointelligence.v1.SpeechContextOrBuilder getSpeechCon * * * bool enable_automatic_punctuation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableAutomaticPunctuation. */ public boolean getEnableAutomaticPunctuation() { return enableAutomaticPunctuation_; @@ -376,6 +391,8 @@ public boolean getEnableAutomaticPunctuation() { * * * repeated int32 audio_tracks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the audioTracks. */ public java.util.List getAudioTracksList() { return audioTracks_; @@ -389,6 +406,8 @@ public java.util.List getAudioTracksList() { * * * repeated int32 audio_tracks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of audioTracks. */ public int getAudioTracksCount() { return audioTracks_.size(); @@ -402,6 +421,9 @@ public int getAudioTracksCount() { * * * repeated int32 audio_tracks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The audioTracks at the given index. */ public int getAudioTracks(int index) { return audioTracks_.getInt(index); @@ -425,6 +447,8 @@ public int getAudioTracks(int index) { * * * bool enable_speaker_diarization = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableSpeakerDiarization. */ public boolean getEnableSpeakerDiarization() { return enableSpeakerDiarization_; @@ -442,6 +466,8 @@ public boolean getEnableSpeakerDiarization() { * * * int32 diarization_speaker_count = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The diarizationSpeakerCount. */ public int getDiarizationSpeakerCount() { return diarizationSpeakerCount_; @@ -459,6 +485,8 @@ public int getDiarizationSpeakerCount() { * * * bool enable_word_confidence = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableWordConfidence. */ public boolean getEnableWordConfidence() { return enableWordConfidence_; @@ -770,14 +798,14 @@ public Builder clear() { if (speechContextsBuilder_ == null) { speechContexts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000001); } else { speechContextsBuilder_.clear(); } enableAutomaticPunctuation_ = false; audioTracks_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000002); enableSpeakerDiarization_ = false; diarizationSpeakerCount_ = 0; @@ -813,29 +841,27 @@ public com.google.cloud.videointelligence.v1.SpeechTranscriptionConfig buildPart com.google.cloud.videointelligence.v1.SpeechTranscriptionConfig result = new com.google.cloud.videointelligence.v1.SpeechTranscriptionConfig(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.languageCode_ = languageCode_; result.maxAlternatives_ = maxAlternatives_; result.filterProfanity_ = filterProfanity_; if (speechContextsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { speechContexts_ = java.util.Collections.unmodifiableList(speechContexts_); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000001); } result.speechContexts_ = speechContexts_; } else { result.speechContexts_ = speechContextsBuilder_.build(); } result.enableAutomaticPunctuation_ = enableAutomaticPunctuation_; - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { audioTracks_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000002); } result.audioTracks_ = audioTracks_; result.enableSpeakerDiarization_ = enableSpeakerDiarization_; result.diarizationSpeakerCount_ = diarizationSpeakerCount_; result.enableWordConfidence_ = enableWordConfidence_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -902,7 +928,7 @@ public Builder mergeFrom( if (!other.speechContexts_.isEmpty()) { if (speechContexts_.isEmpty()) { speechContexts_ = other.speechContexts_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSpeechContextsIsMutable(); speechContexts_.addAll(other.speechContexts_); @@ -915,7 +941,7 @@ public Builder mergeFrom( speechContextsBuilder_.dispose(); speechContextsBuilder_ = null; speechContexts_ = other.speechContexts_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000001); speechContextsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSpeechContextsFieldBuilder() @@ -931,7 +957,7 @@ public Builder mergeFrom( if (!other.audioTracks_.isEmpty()) { if (audioTracks_.isEmpty()) { audioTracks_ = other.audioTracks_; - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureAudioTracksIsMutable(); audioTracks_.addAll(other.audioTracks_); @@ -993,6 +1019,8 @@ public Builder mergeFrom( * * * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; @@ -1017,6 +1045,8 @@ public java.lang.String getLanguageCode() { * * * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for languageCode. */ public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; @@ -1041,6 +1071,9 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { * * * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The languageCode to set. + * @return This builder for chaining. */ public Builder setLanguageCode(java.lang.String value) { if (value == null) { @@ -1063,6 +1096,8 @@ public Builder setLanguageCode(java.lang.String value) { * * * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -1082,6 +1117,9 @@ public Builder clearLanguageCode() { * * * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for languageCode to set. + * @return This builder for chaining. */ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1107,6 +1145,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { * * * int32 max_alternatives = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxAlternatives. */ public int getMaxAlternatives() { return maxAlternatives_; @@ -1123,6 +1163,9 @@ public int getMaxAlternatives() { * * * int32 max_alternatives = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The maxAlternatives to set. + * @return This builder for chaining. */ public Builder setMaxAlternatives(int value) { @@ -1142,6 +1185,8 @@ public Builder setMaxAlternatives(int value) { * * * int32 max_alternatives = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. */ public Builder clearMaxAlternatives() { @@ -1162,6 +1207,8 @@ public Builder clearMaxAlternatives() { * * * bool filter_profanity = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filterProfanity. */ public boolean getFilterProfanity() { return filterProfanity_; @@ -1177,6 +1224,9 @@ public boolean getFilterProfanity() { * * * bool filter_profanity = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filterProfanity to set. + * @return This builder for chaining. */ public Builder setFilterProfanity(boolean value) { @@ -1195,6 +1245,8 @@ public Builder setFilterProfanity(boolean value) { * * * bool filter_profanity = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. */ public Builder clearFilterProfanity() { @@ -1207,11 +1259,11 @@ public Builder clearFilterProfanity() { java.util.Collections.emptyList(); private void ensureSpeechContextsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { speechContexts_ = new java.util.ArrayList( speechContexts_); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000001; } } @@ -1452,7 +1504,7 @@ public Builder addAllSpeechContexts( public Builder clearSpeechContexts() { if (speechContextsBuilder_ == null) { speechContexts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { speechContextsBuilder_.clear(); @@ -1593,7 +1645,7 @@ public com.google.cloud.videointelligence.v1.SpeechContext.Builder addSpeechCont com.google.cloud.videointelligence.v1.SpeechContext.Builder, com.google.cloud.videointelligence.v1.SpeechContextOrBuilder>( speechContexts_, - ((bitField0_ & 0x00000008) != 0), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); speechContexts_ = null; @@ -1615,6 +1667,8 @@ public com.google.cloud.videointelligence.v1.SpeechContext.Builder addSpeechCont * * * bool enable_automatic_punctuation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableAutomaticPunctuation. */ public boolean getEnableAutomaticPunctuation() { return enableAutomaticPunctuation_; @@ -1632,6 +1686,9 @@ public boolean getEnableAutomaticPunctuation() { * * * bool enable_automatic_punctuation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enableAutomaticPunctuation to set. + * @return This builder for chaining. */ public Builder setEnableAutomaticPunctuation(boolean value) { @@ -1652,6 +1709,8 @@ public Builder setEnableAutomaticPunctuation(boolean value) { * * * bool enable_automatic_punctuation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. */ public Builder clearEnableAutomaticPunctuation() { @@ -1663,9 +1722,9 @@ public Builder clearEnableAutomaticPunctuation() { private com.google.protobuf.Internal.IntList audioTracks_ = emptyIntList(); private void ensureAudioTracksIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { audioTracks_ = mutableCopy(audioTracks_); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000002; } } /** @@ -1677,9 +1736,11 @@ private void ensureAudioTracksIsMutable() { * * * repeated int32 audio_tracks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the audioTracks. */ public java.util.List getAudioTracksList() { - return ((bitField0_ & 0x00000020) != 0) + return ((bitField0_ & 0x00000002) != 0) ? java.util.Collections.unmodifiableList(audioTracks_) : audioTracks_; } @@ -1692,6 +1753,8 @@ public java.util.List getAudioTracksList() { * * * repeated int32 audio_tracks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of audioTracks. */ public int getAudioTracksCount() { return audioTracks_.size(); @@ -1705,6 +1768,9 @@ public int getAudioTracksCount() { * * * repeated int32 audio_tracks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The audioTracks at the given index. */ public int getAudioTracks(int index) { return audioTracks_.getInt(index); @@ -1718,6 +1784,10 @@ public int getAudioTracks(int index) { * * * repeated int32 audio_tracks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The audioTracks to set. + * @return This builder for chaining. */ public Builder setAudioTracks(int index, int value) { ensureAudioTracksIsMutable(); @@ -1734,6 +1804,9 @@ public Builder setAudioTracks(int index, int value) { * * * repeated int32 audio_tracks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The audioTracks to add. + * @return This builder for chaining. */ public Builder addAudioTracks(int value) { ensureAudioTracksIsMutable(); @@ -1750,6 +1823,9 @@ public Builder addAudioTracks(int value) { * * * repeated int32 audio_tracks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The audioTracks to add. + * @return This builder for chaining. */ public Builder addAllAudioTracks(java.lang.Iterable values) { ensureAudioTracksIsMutable(); @@ -1766,10 +1842,12 @@ public Builder addAllAudioTracks(java.lang.Iterable * * * repeated int32 audio_tracks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. */ public Builder clearAudioTracks() { audioTracks_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1789,6 +1867,8 @@ public Builder clearAudioTracks() { * * * bool enable_speaker_diarization = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableSpeakerDiarization. */ public boolean getEnableSpeakerDiarization() { return enableSpeakerDiarization_; @@ -1807,6 +1887,9 @@ public boolean getEnableSpeakerDiarization() { * * * bool enable_speaker_diarization = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enableSpeakerDiarization to set. + * @return This builder for chaining. */ public Builder setEnableSpeakerDiarization(boolean value) { @@ -1828,6 +1911,8 @@ public Builder setEnableSpeakerDiarization(boolean value) { * * * bool enable_speaker_diarization = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. */ public Builder clearEnableSpeakerDiarization() { @@ -1847,6 +1932,8 @@ public Builder clearEnableSpeakerDiarization() { * * * int32 diarization_speaker_count = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The diarizationSpeakerCount. */ public int getDiarizationSpeakerCount() { return diarizationSpeakerCount_; @@ -1861,6 +1948,9 @@ public int getDiarizationSpeakerCount() { * * * int32 diarization_speaker_count = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The diarizationSpeakerCount to set. + * @return This builder for chaining. */ public Builder setDiarizationSpeakerCount(int value) { @@ -1878,6 +1968,8 @@ public Builder setDiarizationSpeakerCount(int value) { * * * int32 diarization_speaker_count = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. */ public Builder clearDiarizationSpeakerCount() { @@ -1897,6 +1989,8 @@ public Builder clearDiarizationSpeakerCount() { * * * bool enable_word_confidence = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableWordConfidence. */ public boolean getEnableWordConfidence() { return enableWordConfidence_; @@ -1911,6 +2005,9 @@ public boolean getEnableWordConfidence() { * * * bool enable_word_confidence = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enableWordConfidence to set. + * @return This builder for chaining. */ public Builder setEnableWordConfidence(boolean value) { @@ -1928,6 +2025,8 @@ public Builder setEnableWordConfidence(boolean value) { * * * bool enable_word_confidence = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. */ public Builder clearEnableWordConfidence() { diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/SpeechTranscriptionConfigOrBuilder.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/SpeechTranscriptionConfigOrBuilder.java index 1057f454a..bdd27592f 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/SpeechTranscriptionConfigOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/SpeechTranscriptionConfigOrBuilder.java @@ -35,6 +35,8 @@ public interface SpeechTranscriptionConfigOrBuilder * * * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The languageCode. */ java.lang.String getLanguageCode(); /** @@ -49,6 +51,8 @@ public interface SpeechTranscriptionConfigOrBuilder * * * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for languageCode. */ com.google.protobuf.ByteString getLanguageCodeBytes(); @@ -64,6 +68,8 @@ public interface SpeechTranscriptionConfigOrBuilder * * * int32 max_alternatives = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxAlternatives. */ int getMaxAlternatives(); @@ -78,6 +84,8 @@ public interface SpeechTranscriptionConfigOrBuilder * * * bool filter_profanity = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filterProfanity. */ boolean getFilterProfanity(); @@ -157,6 +165,8 @@ com.google.cloud.videointelligence.v1.SpeechContextOrBuilder getSpeechContextsOr * * * bool enable_automatic_punctuation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableAutomaticPunctuation. */ boolean getEnableAutomaticPunctuation(); @@ -169,6 +179,8 @@ com.google.cloud.videointelligence.v1.SpeechContextOrBuilder getSpeechContextsOr * * * repeated int32 audio_tracks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the audioTracks. */ java.util.List getAudioTracksList(); /** @@ -180,6 +192,8 @@ com.google.cloud.videointelligence.v1.SpeechContextOrBuilder getSpeechContextsOr * * * repeated int32 audio_tracks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of audioTracks. */ int getAudioTracksCount(); /** @@ -191,6 +205,9 @@ com.google.cloud.videointelligence.v1.SpeechContextOrBuilder getSpeechContextsOr * * * repeated int32 audio_tracks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The audioTracks at the given index. */ int getAudioTracks(int index); @@ -208,6 +225,8 @@ com.google.cloud.videointelligence.v1.SpeechContextOrBuilder getSpeechContextsOr * * * bool enable_speaker_diarization = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableSpeakerDiarization. */ boolean getEnableSpeakerDiarization(); @@ -221,6 +240,8 @@ com.google.cloud.videointelligence.v1.SpeechContextOrBuilder getSpeechContextsOr * * * int32 diarization_speaker_count = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The diarizationSpeakerCount. */ int getDiarizationSpeakerCount(); @@ -234,6 +255,8 @@ com.google.cloud.videointelligence.v1.SpeechContextOrBuilder getSpeechContextsOr * * * bool enable_word_confidence = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableWordConfidence. */ boolean getEnableWordConfidence(); } diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/SpeechTranscriptionOrBuilder.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/SpeechTranscriptionOrBuilder.java index 269bf8ed4..e9c8dd829 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/SpeechTranscriptionOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/SpeechTranscriptionOrBuilder.java @@ -113,6 +113,8 @@ public interface SpeechTranscriptionOrBuilder * * * string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The languageCode. */ java.lang.String getLanguageCode(); /** @@ -125,6 +127,8 @@ public interface SpeechTranscriptionOrBuilder * * * string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for languageCode. */ com.google.protobuf.ByteString getLanguageCodeBytes(); } diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/TextAnnotation.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/TextAnnotation.java index 4e6fc062a..847f917f0 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/TextAnnotation.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/TextAnnotation.java @@ -44,6 +44,12 @@ private TextAnnotation() { segments_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TextAnnotation(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -77,10 +83,10 @@ private TextAnnotation( } case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { segments_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + mutable_bitField0_ |= 0x00000001; } segments_.add( input.readMessage( @@ -102,7 +108,7 @@ private TextAnnotation( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { segments_ = java.util.Collections.unmodifiableList(segments_); } this.unknownFields = unknownFields.build(); @@ -125,7 +131,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.videointelligence.v1.TextAnnotation.Builder.class); } - private int bitField0_; public static final int TEXT_FIELD_NUMBER = 1; private volatile java.lang.Object text_; /** @@ -136,6 +141,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string text = 1; + * + * @return The text. */ public java.lang.String getText() { java.lang.Object ref = text_; @@ -156,6 +163,8 @@ public java.lang.String getText() { * * * string text = 1; + * + * @return The bytes for text. */ public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = text_; @@ -457,7 +466,7 @@ public Builder clear() { if (segmentsBuilder_ == null) { segments_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } else { segmentsBuilder_.clear(); } @@ -489,18 +498,16 @@ public com.google.cloud.videointelligence.v1.TextAnnotation buildPartial() { com.google.cloud.videointelligence.v1.TextAnnotation result = new com.google.cloud.videointelligence.v1.TextAnnotation(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.text_ = text_; if (segmentsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { segments_ = java.util.Collections.unmodifiableList(segments_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } result.segments_ = segments_; } else { result.segments_ = segmentsBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -559,7 +566,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1.TextAnnotation ot if (!other.segments_.isEmpty()) { if (segments_.isEmpty()) { segments_ = other.segments_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSegmentsIsMutable(); segments_.addAll(other.segments_); @@ -572,7 +579,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1.TextAnnotation ot segmentsBuilder_.dispose(); segmentsBuilder_ = null; segments_ = other.segments_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); segmentsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSegmentsFieldBuilder() @@ -623,6 +630,8 @@ public Builder mergeFrom( * * * string text = 1; + * + * @return The text. */ public java.lang.String getText() { java.lang.Object ref = text_; @@ -643,6 +652,8 @@ public java.lang.String getText() { * * * string text = 1; + * + * @return The bytes for text. */ public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = text_; @@ -663,6 +674,9 @@ public com.google.protobuf.ByteString getTextBytes() { * * * string text = 1; + * + * @param value The text to set. + * @return This builder for chaining. */ public Builder setText(java.lang.String value) { if (value == null) { @@ -681,6 +695,8 @@ public Builder setText(java.lang.String value) { * * * string text = 1; + * + * @return This builder for chaining. */ public Builder clearText() { @@ -696,6 +712,9 @@ public Builder clearText() { * * * string text = 1; + * + * @param value The bytes for text to set. + * @return This builder for chaining. */ public Builder setTextBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -712,10 +731,10 @@ public Builder setTextBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureSegmentsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { segments_ = new java.util.ArrayList(segments_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } @@ -931,7 +950,7 @@ public Builder addAllSegments( public Builder clearSegments() { if (segmentsBuilder_ == null) { segments_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { segmentsBuilder_.clear(); @@ -1055,7 +1074,7 @@ public com.google.cloud.videointelligence.v1.TextSegment.Builder addSegmentsBuil com.google.cloud.videointelligence.v1.TextSegment, com.google.cloud.videointelligence.v1.TextSegment.Builder, com.google.cloud.videointelligence.v1.TextSegmentOrBuilder>( - segments_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + segments_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); segments_ = null; } return segmentsBuilder_; diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/TextAnnotationOrBuilder.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/TextAnnotationOrBuilder.java index d78418cf1..ca341ca4c 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/TextAnnotationOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/TextAnnotationOrBuilder.java @@ -31,6 +31,8 @@ public interface TextAnnotationOrBuilder * * * string text = 1; + * + * @return The text. */ java.lang.String getText(); /** @@ -41,6 +43,8 @@ public interface TextAnnotationOrBuilder * * * string text = 1; + * + * @return The bytes for text. */ com.google.protobuf.ByteString getTextBytes(); diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/TextDetectionConfig.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/TextDetectionConfig.java index 8109760ab..d64c14908 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/TextDetectionConfig.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/TextDetectionConfig.java @@ -42,6 +42,12 @@ private TextDetectionConfig() { model_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TextDetectionConfig(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -120,7 +126,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.videointelligence.v1.TextDetectionConfig.Builder.class); } - private int bitField0_; public static final int LANGUAGE_HINTS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList languageHints_; /** @@ -134,6 +139,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * repeated string language_hints = 1; + * + * @return A list containing the languageHints. */ public com.google.protobuf.ProtocolStringList getLanguageHintsList() { return languageHints_; @@ -149,6 +156,8 @@ public com.google.protobuf.ProtocolStringList getLanguageHintsList() { * * * repeated string language_hints = 1; + * + * @return The count of languageHints. */ public int getLanguageHintsCount() { return languageHints_.size(); @@ -164,6 +173,9 @@ public int getLanguageHintsCount() { * * * repeated string language_hints = 1; + * + * @param index The index of the element to return. + * @return The languageHints at the given index. */ public java.lang.String getLanguageHints(int index) { return languageHints_.get(index); @@ -179,6 +191,9 @@ public java.lang.String getLanguageHints(int index) { * * * repeated string language_hints = 1; + * + * @param index The index of the value to return. + * @return The bytes of the languageHints at the given index. */ public com.google.protobuf.ByteString getLanguageHintsBytes(int index) { return languageHints_.getByteString(index); @@ -196,6 +211,8 @@ public com.google.protobuf.ByteString getLanguageHintsBytes(int index) { * * * string model = 2; + * + * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; @@ -218,6 +235,8 @@ public java.lang.String getModel() { * * * string model = 2; + * + * @return The bytes for model. */ public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; @@ -484,14 +503,12 @@ public com.google.cloud.videointelligence.v1.TextDetectionConfig buildPartial() com.google.cloud.videointelligence.v1.TextDetectionConfig result = new com.google.cloud.videointelligence.v1.TextDetectionConfig(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) != 0)) { languageHints_ = languageHints_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.languageHints_ = languageHints_; result.model_ = model_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -608,6 +625,8 @@ private void ensureLanguageHintsIsMutable() { * * * repeated string language_hints = 1; + * + * @return A list containing the languageHints. */ public com.google.protobuf.ProtocolStringList getLanguageHintsList() { return languageHints_.getUnmodifiableView(); @@ -623,6 +642,8 @@ public com.google.protobuf.ProtocolStringList getLanguageHintsList() { * * * repeated string language_hints = 1; + * + * @return The count of languageHints. */ public int getLanguageHintsCount() { return languageHints_.size(); @@ -638,6 +659,9 @@ public int getLanguageHintsCount() { * * * repeated string language_hints = 1; + * + * @param index The index of the element to return. + * @return The languageHints at the given index. */ public java.lang.String getLanguageHints(int index) { return languageHints_.get(index); @@ -653,6 +677,9 @@ public java.lang.String getLanguageHints(int index) { * * * repeated string language_hints = 1; + * + * @param index The index of the value to return. + * @return The bytes of the languageHints at the given index. */ public com.google.protobuf.ByteString getLanguageHintsBytes(int index) { return languageHints_.getByteString(index); @@ -668,6 +695,10 @@ public com.google.protobuf.ByteString getLanguageHintsBytes(int index) { * * * repeated string language_hints = 1; + * + * @param index The index to set the value at. + * @param value The languageHints to set. + * @return This builder for chaining. */ public Builder setLanguageHints(int index, java.lang.String value) { if (value == null) { @@ -689,6 +720,9 @@ public Builder setLanguageHints(int index, java.lang.String value) { * * * repeated string language_hints = 1; + * + * @param value The languageHints to add. + * @return This builder for chaining. */ public Builder addLanguageHints(java.lang.String value) { if (value == null) { @@ -710,6 +744,9 @@ public Builder addLanguageHints(java.lang.String value) { * * * repeated string language_hints = 1; + * + * @param values The languageHints to add. + * @return This builder for chaining. */ public Builder addAllLanguageHints(java.lang.Iterable values) { ensureLanguageHintsIsMutable(); @@ -728,6 +765,8 @@ public Builder addAllLanguageHints(java.lang.Iterable values) * * * repeated string language_hints = 1; + * + * @return This builder for chaining. */ public Builder clearLanguageHints() { languageHints_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -746,6 +785,9 @@ public Builder clearLanguageHints() { * * * repeated string language_hints = 1; + * + * @param value The bytes of the languageHints to add. + * @return This builder for chaining. */ public Builder addLanguageHintsBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -769,6 +811,8 @@ public Builder addLanguageHintsBytes(com.google.protobuf.ByteString value) { * * * string model = 2; + * + * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; @@ -791,6 +835,8 @@ public java.lang.String getModel() { * * * string model = 2; + * + * @return The bytes for model. */ public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; @@ -813,6 +859,9 @@ public com.google.protobuf.ByteString getModelBytes() { * * * string model = 2; + * + * @param value The model to set. + * @return This builder for chaining. */ public Builder setModel(java.lang.String value) { if (value == null) { @@ -833,6 +882,8 @@ public Builder setModel(java.lang.String value) { * * * string model = 2; + * + * @return This builder for chaining. */ public Builder clearModel() { @@ -850,6 +901,9 @@ public Builder clearModel() { * * * string model = 2; + * + * @param value The bytes for model to set. + * @return This builder for chaining. */ public Builder setModelBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/TextDetectionConfigOrBuilder.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/TextDetectionConfigOrBuilder.java index 5b087d3ab..5c0eab148 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/TextDetectionConfigOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/TextDetectionConfigOrBuilder.java @@ -34,6 +34,8 @@ public interface TextDetectionConfigOrBuilder * * * repeated string language_hints = 1; + * + * @return A list containing the languageHints. */ java.util.List getLanguageHintsList(); /** @@ -47,6 +49,8 @@ public interface TextDetectionConfigOrBuilder * * * repeated string language_hints = 1; + * + * @return The count of languageHints. */ int getLanguageHintsCount(); /** @@ -60,6 +64,9 @@ public interface TextDetectionConfigOrBuilder * * * repeated string language_hints = 1; + * + * @param index The index of the element to return. + * @return The languageHints at the given index. */ java.lang.String getLanguageHints(int index); /** @@ -73,6 +80,9 @@ public interface TextDetectionConfigOrBuilder * * * repeated string language_hints = 1; + * + * @param index The index of the value to return. + * @return The bytes of the languageHints at the given index. */ com.google.protobuf.ByteString getLanguageHintsBytes(int index); @@ -86,6 +96,8 @@ public interface TextDetectionConfigOrBuilder * * * string model = 2; + * + * @return The model. */ java.lang.String getModel(); /** @@ -98,6 +110,8 @@ public interface TextDetectionConfigOrBuilder * * * string model = 2; + * + * @return The bytes for model. */ com.google.protobuf.ByteString getModelBytes(); } diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/TextFrame.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/TextFrame.java index e969ae7b9..112e19eb7 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/TextFrame.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/TextFrame.java @@ -41,6 +41,12 @@ private TextFrame(com.google.protobuf.GeneratedMessageV3.Builder builder) { private TextFrame() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TextFrame(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private TextFrame( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -143,6 +148,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * .google.cloud.videointelligence.v1.NormalizedBoundingPoly rotated_bounding_box = 1; * + * + * @return Whether the rotatedBoundingBox field is set. */ public boolean hasRotatedBoundingBox() { return rotatedBoundingBox_ != null; @@ -156,6 +163,8 @@ public boolean hasRotatedBoundingBox() { * * .google.cloud.videointelligence.v1.NormalizedBoundingPoly rotated_bounding_box = 1; * + * + * @return The rotatedBoundingBox. */ public com.google.cloud.videointelligence.v1.NormalizedBoundingPoly getRotatedBoundingBox() { return rotatedBoundingBox_ == null @@ -187,6 +196,8 @@ public com.google.cloud.videointelligence.v1.NormalizedBoundingPoly getRotatedBo * * * .google.protobuf.Duration time_offset = 2; + * + * @return Whether the timeOffset field is set. */ public boolean hasTimeOffset() { return timeOffset_ != null; @@ -199,6 +210,8 @@ public boolean hasTimeOffset() { * * * .google.protobuf.Duration time_offset = 2; + * + * @return The timeOffset. */ public com.google.protobuf.Duration getTimeOffset() { return timeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeOffset_; @@ -590,6 +603,8 @@ public Builder mergeFrom( * * .google.cloud.videointelligence.v1.NormalizedBoundingPoly rotated_bounding_box = 1; * + * + * @return Whether the rotatedBoundingBox field is set. */ public boolean hasRotatedBoundingBox() { return rotatedBoundingBoxBuilder_ != null || rotatedBoundingBox_ != null; @@ -603,6 +618,8 @@ public boolean hasRotatedBoundingBox() { * * .google.cloud.videointelligence.v1.NormalizedBoundingPoly rotated_bounding_box = 1; * + * + * @return The rotatedBoundingBox. */ public com.google.cloud.videointelligence.v1.NormalizedBoundingPoly getRotatedBoundingBox() { if (rotatedBoundingBoxBuilder_ == null) { @@ -785,6 +802,8 @@ public Builder clearRotatedBoundingBox() { * * * .google.protobuf.Duration time_offset = 2; + * + * @return Whether the timeOffset field is set. */ public boolean hasTimeOffset() { return timeOffsetBuilder_ != null || timeOffset_ != null; @@ -797,6 +816,8 @@ public boolean hasTimeOffset() { * * * .google.protobuf.Duration time_offset = 2; + * + * @return The timeOffset. */ public com.google.protobuf.Duration getTimeOffset() { if (timeOffsetBuilder_ == null) { diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/TextFrameOrBuilder.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/TextFrameOrBuilder.java index d63fef228..a4c3a1c01 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/TextFrameOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/TextFrameOrBuilder.java @@ -32,6 +32,8 @@ public interface TextFrameOrBuilder * * .google.cloud.videointelligence.v1.NormalizedBoundingPoly rotated_bounding_box = 1; * + * + * @return Whether the rotatedBoundingBox field is set. */ boolean hasRotatedBoundingBox(); /** @@ -43,6 +45,8 @@ public interface TextFrameOrBuilder * * .google.cloud.videointelligence.v1.NormalizedBoundingPoly rotated_bounding_box = 1; * + * + * @return The rotatedBoundingBox. */ com.google.cloud.videointelligence.v1.NormalizedBoundingPoly getRotatedBoundingBox(); /** @@ -66,6 +70,8 @@ public interface TextFrameOrBuilder * * * .google.protobuf.Duration time_offset = 2; + * + * @return Whether the timeOffset field is set. */ boolean hasTimeOffset(); /** @@ -76,6 +82,8 @@ public interface TextFrameOrBuilder * * * .google.protobuf.Duration time_offset = 2; + * + * @return The timeOffset. */ com.google.protobuf.Duration getTimeOffset(); /** diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/TextSegment.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/TextSegment.java index 2124b1835..bf4c9f6ac 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/TextSegment.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/TextSegment.java @@ -41,6 +41,12 @@ private TextSegment() { frames_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TextSegment(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -89,10 +95,10 @@ private TextSegment( } case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { frames_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000001; } frames_.add( input.readMessage( @@ -113,7 +119,7 @@ private TextSegment( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { frames_ = java.util.Collections.unmodifiableList(frames_); } this.unknownFields = unknownFields.build(); @@ -136,7 +142,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.videointelligence.v1.TextSegment.Builder.class); } - private int bitField0_; public static final int SEGMENT_FIELD_NUMBER = 1; private com.google.cloud.videointelligence.v1.VideoSegment segment_; /** @@ -147,6 +152,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.cloud.videointelligence.v1.VideoSegment segment = 1; + * + * @return Whether the segment field is set. */ public boolean hasSegment() { return segment_ != null; @@ -159,6 +166,8 @@ public boolean hasSegment() { * * * .google.cloud.videointelligence.v1.VideoSegment segment = 1; + * + * @return The segment. */ public com.google.cloud.videointelligence.v1.VideoSegment getSegment() { return segment_ == null @@ -189,6 +198,8 @@ public com.google.cloud.videointelligence.v1.VideoSegmentOrBuilder getSegmentOrB * * * float confidence = 2; + * + * @return The confidence. */ public float getConfidence() { return confidence_; @@ -500,7 +511,7 @@ public Builder clear() { if (framesBuilder_ == null) { frames_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } else { framesBuilder_.clear(); } @@ -532,7 +543,6 @@ public com.google.cloud.videointelligence.v1.TextSegment buildPartial() { com.google.cloud.videointelligence.v1.TextSegment result = new com.google.cloud.videointelligence.v1.TextSegment(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (segmentBuilder_ == null) { result.segment_ = segment_; } else { @@ -540,15 +550,14 @@ public com.google.cloud.videointelligence.v1.TextSegment buildPartial() { } result.confidence_ = confidence_; if (framesBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { frames_ = java.util.Collections.unmodifiableList(frames_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } result.frames_ = frames_; } else { result.frames_ = framesBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -609,7 +618,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1.TextSegment other if (!other.frames_.isEmpty()) { if (frames_.isEmpty()) { frames_ = other.frames_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureFramesIsMutable(); frames_.addAll(other.frames_); @@ -622,7 +631,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1.TextSegment other framesBuilder_.dispose(); framesBuilder_ = null; frames_ = other.frames_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); framesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFramesFieldBuilder() @@ -678,6 +687,8 @@ public Builder mergeFrom( * * * .google.cloud.videointelligence.v1.VideoSegment segment = 1; + * + * @return Whether the segment field is set. */ public boolean hasSegment() { return segmentBuilder_ != null || segment_ != null; @@ -690,6 +701,8 @@ public boolean hasSegment() { * * * .google.cloud.videointelligence.v1.VideoSegment segment = 1; + * + * @return The segment. */ public com.google.cloud.videointelligence.v1.VideoSegment getSegment() { if (segmentBuilder_ == null) { @@ -856,6 +869,8 @@ public com.google.cloud.videointelligence.v1.VideoSegmentOrBuilder getSegmentOrB * * * float confidence = 2; + * + * @return The confidence. */ public float getConfidence() { return confidence_; @@ -869,6 +884,9 @@ public float getConfidence() { * * * float confidence = 2; + * + * @param value The confidence to set. + * @return This builder for chaining. */ public Builder setConfidence(float value) { @@ -885,6 +903,8 @@ public Builder setConfidence(float value) { * * * float confidence = 2; + * + * @return This builder for chaining. */ public Builder clearConfidence() { @@ -897,9 +917,9 @@ public Builder clearConfidence() { java.util.Collections.emptyList(); private void ensureFramesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { frames_ = new java.util.ArrayList(frames_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; } } @@ -1115,7 +1135,7 @@ public Builder addAllFrames( public Builder clearFrames() { if (framesBuilder_ == null) { frames_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { framesBuilder_.clear(); @@ -1237,7 +1257,7 @@ public com.google.cloud.videointelligence.v1.TextFrame.Builder addFramesBuilder( com.google.cloud.videointelligence.v1.TextFrame, com.google.cloud.videointelligence.v1.TextFrame.Builder, com.google.cloud.videointelligence.v1.TextFrameOrBuilder>( - frames_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + frames_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); frames_ = null; } return framesBuilder_; diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/TextSegmentOrBuilder.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/TextSegmentOrBuilder.java index 515a8d8ca..492834e3c 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/TextSegmentOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/TextSegmentOrBuilder.java @@ -31,6 +31,8 @@ public interface TextSegmentOrBuilder * * * .google.cloud.videointelligence.v1.VideoSegment segment = 1; + * + * @return Whether the segment field is set. */ boolean hasSegment(); /** @@ -41,6 +43,8 @@ public interface TextSegmentOrBuilder * * * .google.cloud.videointelligence.v1.VideoSegment segment = 1; + * + * @return The segment. */ com.google.cloud.videointelligence.v1.VideoSegment getSegment(); /** @@ -63,6 +67,8 @@ public interface TextSegmentOrBuilder * * * float confidence = 2; + * + * @return The confidence. */ float getConfidence(); diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoAnnotationProgress.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoAnnotationProgress.java index 28078d640..efd89e2cc 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoAnnotationProgress.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoAnnotationProgress.java @@ -42,6 +42,12 @@ private VideoAnnotationProgress() { feature_ = 0; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VideoAnnotationProgress(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -55,7 +61,6 @@ private VideoAnnotationProgress( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -177,6 +182,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string input_uri = 1; + * + * @return The inputUri. */ public java.lang.String getInputUri() { java.lang.Object ref = inputUri_; @@ -198,6 +205,8 @@ public java.lang.String getInputUri() { * * * string input_uri = 1; + * + * @return The bytes for inputUri. */ public com.google.protobuf.ByteString getInputUriBytes() { java.lang.Object ref = inputUri_; @@ -222,6 +231,8 @@ public com.google.protobuf.ByteString getInputUriBytes() { * * * int32 progress_percent = 2; + * + * @return The progressPercent. */ public int getProgressPercent() { return progressPercent_; @@ -237,6 +248,8 @@ public int getProgressPercent() { * * * .google.protobuf.Timestamp start_time = 3; + * + * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTime_ != null; @@ -249,6 +262,8 @@ public boolean hasStartTime() { * * * .google.protobuf.Timestamp start_time = 3; + * + * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; @@ -276,6 +291,8 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * * * .google.protobuf.Timestamp update_time = 4; + * + * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTime_ != null; @@ -288,6 +305,8 @@ public boolean hasUpdateTime() { * * * .google.protobuf.Timestamp update_time = 4; + * + * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; @@ -316,6 +335,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * * .google.cloud.videointelligence.v1.Feature feature = 5; + * + * @return The enum numeric value on the wire for feature. */ public int getFeatureValue() { return feature_; @@ -329,6 +350,8 @@ public int getFeatureValue() { * * * .google.cloud.videointelligence.v1.Feature feature = 5; + * + * @return The feature. */ public com.google.cloud.videointelligence.v1.Feature getFeature() { @SuppressWarnings("deprecation") @@ -348,6 +371,8 @@ public com.google.cloud.videointelligence.v1.Feature getFeature() { * * * .google.cloud.videointelligence.v1.VideoSegment segment = 6; + * + * @return Whether the segment field is set. */ public boolean hasSegment() { return segment_ != null; @@ -361,6 +386,8 @@ public boolean hasSegment() { * * * .google.cloud.videointelligence.v1.VideoSegment segment = 6; + * + * @return The segment. */ public com.google.cloud.videointelligence.v1.VideoSegment getSegment() { return segment_ == null @@ -827,6 +854,8 @@ public Builder mergeFrom( * * * string input_uri = 1; + * + * @return The inputUri. */ public java.lang.String getInputUri() { java.lang.Object ref = inputUri_; @@ -848,6 +877,8 @@ public java.lang.String getInputUri() { * * * string input_uri = 1; + * + * @return The bytes for inputUri. */ public com.google.protobuf.ByteString getInputUriBytes() { java.lang.Object ref = inputUri_; @@ -869,6 +900,9 @@ public com.google.protobuf.ByteString getInputUriBytes() { * * * string input_uri = 1; + * + * @param value The inputUri to set. + * @return This builder for chaining. */ public Builder setInputUri(java.lang.String value) { if (value == null) { @@ -888,6 +922,8 @@ public Builder setInputUri(java.lang.String value) { * * * string input_uri = 1; + * + * @return This builder for chaining. */ public Builder clearInputUri() { @@ -904,6 +940,9 @@ public Builder clearInputUri() { * * * string input_uri = 1; + * + * @param value The bytes for inputUri to set. + * @return This builder for chaining. */ public Builder setInputUriBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -926,6 +965,8 @@ public Builder setInputUriBytes(com.google.protobuf.ByteString value) { * * * int32 progress_percent = 2; + * + * @return The progressPercent. */ public int getProgressPercent() { return progressPercent_; @@ -939,6 +980,9 @@ public int getProgressPercent() { * * * int32 progress_percent = 2; + * + * @param value The progressPercent to set. + * @return This builder for chaining. */ public Builder setProgressPercent(int value) { @@ -955,6 +999,8 @@ public Builder setProgressPercent(int value) { * * * int32 progress_percent = 2; + * + * @return This builder for chaining. */ public Builder clearProgressPercent() { @@ -977,6 +1023,8 @@ public Builder clearProgressPercent() { * * * .google.protobuf.Timestamp start_time = 3; + * + * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; @@ -989,6 +1037,8 @@ public boolean hasStartTime() { * * * .google.protobuf.Timestamp start_time = 3; + * + * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { if (startTimeBuilder_ == null) { @@ -1152,6 +1202,8 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * * * .google.protobuf.Timestamp update_time = 4; + * + * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; @@ -1164,6 +1216,8 @@ public boolean hasUpdateTime() { * * * .google.protobuf.Timestamp update_time = 4; + * + * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { @@ -1327,6 +1381,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * * .google.cloud.videointelligence.v1.Feature feature = 5; + * + * @return The enum numeric value on the wire for feature. */ public int getFeatureValue() { return feature_; @@ -1340,6 +1396,9 @@ public int getFeatureValue() { * * * .google.cloud.videointelligence.v1.Feature feature = 5; + * + * @param value The enum numeric value on the wire for feature to set. + * @return This builder for chaining. */ public Builder setFeatureValue(int value) { feature_ = value; @@ -1355,6 +1414,8 @@ public Builder setFeatureValue(int value) { * * * .google.cloud.videointelligence.v1.Feature feature = 5; + * + * @return The feature. */ public com.google.cloud.videointelligence.v1.Feature getFeature() { @SuppressWarnings("deprecation") @@ -1371,6 +1432,9 @@ public com.google.cloud.videointelligence.v1.Feature getFeature() { * * * .google.cloud.videointelligence.v1.Feature feature = 5; + * + * @param value The feature to set. + * @return This builder for chaining. */ public Builder setFeature(com.google.cloud.videointelligence.v1.Feature value) { if (value == null) { @@ -1390,6 +1454,8 @@ public Builder setFeature(com.google.cloud.videointelligence.v1.Feature value) { * * * .google.cloud.videointelligence.v1.Feature feature = 5; + * + * @return This builder for chaining. */ public Builder clearFeature() { @@ -1413,6 +1479,8 @@ public Builder clearFeature() { * * * .google.cloud.videointelligence.v1.VideoSegment segment = 6; + * + * @return Whether the segment field is set. */ public boolean hasSegment() { return segmentBuilder_ != null || segment_ != null; @@ -1426,6 +1494,8 @@ public boolean hasSegment() { * * * .google.cloud.videointelligence.v1.VideoSegment segment = 6; + * + * @return The segment. */ public com.google.cloud.videointelligence.v1.VideoSegment getSegment() { if (segmentBuilder_ == null) { diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoAnnotationProgressOrBuilder.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoAnnotationProgressOrBuilder.java index f8b1cbdaa..e9fd02d9e 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoAnnotationProgressOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoAnnotationProgressOrBuilder.java @@ -32,6 +32,8 @@ public interface VideoAnnotationProgressOrBuilder * * * string input_uri = 1; + * + * @return The inputUri. */ java.lang.String getInputUri(); /** @@ -43,6 +45,8 @@ public interface VideoAnnotationProgressOrBuilder * * * string input_uri = 1; + * + * @return The bytes for inputUri. */ com.google.protobuf.ByteString getInputUriBytes(); @@ -55,6 +59,8 @@ public interface VideoAnnotationProgressOrBuilder * * * int32 progress_percent = 2; + * + * @return The progressPercent. */ int getProgressPercent(); @@ -66,6 +72,8 @@ public interface VideoAnnotationProgressOrBuilder * * * .google.protobuf.Timestamp start_time = 3; + * + * @return Whether the startTime field is set. */ boolean hasStartTime(); /** @@ -76,6 +84,8 @@ public interface VideoAnnotationProgressOrBuilder * * * .google.protobuf.Timestamp start_time = 3; + * + * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** @@ -97,6 +107,8 @@ public interface VideoAnnotationProgressOrBuilder * * * .google.protobuf.Timestamp update_time = 4; + * + * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** @@ -107,6 +119,8 @@ public interface VideoAnnotationProgressOrBuilder * * * .google.protobuf.Timestamp update_time = 4; + * + * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** @@ -129,6 +143,8 @@ public interface VideoAnnotationProgressOrBuilder * * * .google.cloud.videointelligence.v1.Feature feature = 5; + * + * @return The enum numeric value on the wire for feature. */ int getFeatureValue(); /** @@ -140,6 +156,8 @@ public interface VideoAnnotationProgressOrBuilder * * * .google.cloud.videointelligence.v1.Feature feature = 5; + * + * @return The feature. */ com.google.cloud.videointelligence.v1.Feature getFeature(); @@ -152,6 +170,8 @@ public interface VideoAnnotationProgressOrBuilder * * * .google.cloud.videointelligence.v1.VideoSegment segment = 6; + * + * @return Whether the segment field is set. */ boolean hasSegment(); /** @@ -163,6 +183,8 @@ public interface VideoAnnotationProgressOrBuilder * * * .google.cloud.videointelligence.v1.VideoSegment segment = 6; + * + * @return The segment. */ com.google.cloud.videointelligence.v1.VideoSegment getSegment(); /** diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoAnnotationResults.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoAnnotationResults.java index f29757e01..c9f1bf38d 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoAnnotationResults.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoAnnotationResults.java @@ -51,6 +51,12 @@ private VideoAnnotationResults() { objectAnnotations_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VideoAnnotationResults(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -84,11 +90,11 @@ private VideoAnnotationResults( } case 18: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { segmentLabelAnnotations_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1.LabelAnnotation>(); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000001; } segmentLabelAnnotations_.add( input.readMessage( @@ -98,11 +104,11 @@ private VideoAnnotationResults( } case 26: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { shotLabelAnnotations_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1.LabelAnnotation>(); - mutable_bitField0_ |= 0x00000010; + mutable_bitField0_ |= 0x00000004; } shotLabelAnnotations_.add( input.readMessage( @@ -112,11 +118,11 @@ private VideoAnnotationResults( } case 34: { - if (!((mutable_bitField0_ & 0x00000040) != 0)) { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { frameLabelAnnotations_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1.LabelAnnotation>(); - mutable_bitField0_ |= 0x00000040; + mutable_bitField0_ |= 0x00000010; } frameLabelAnnotations_.add( input.readMessage( @@ -126,10 +132,10 @@ private VideoAnnotationResults( } case 42: { - if (!((mutable_bitField0_ & 0x00000080) != 0)) { + if (!((mutable_bitField0_ & 0x00000020) != 0)) { faceAnnotations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000080; + mutable_bitField0_ |= 0x00000020; } faceAnnotations_.add( input.readMessage( @@ -139,10 +145,10 @@ private VideoAnnotationResults( } case 50: { - if (!((mutable_bitField0_ & 0x00000100) != 0)) { + if (!((mutable_bitField0_ & 0x00000040) != 0)) { shotAnnotations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000100; + mutable_bitField0_ |= 0x00000040; } shotAnnotations_.add( input.readMessage( @@ -201,11 +207,11 @@ private VideoAnnotationResults( } case 90: { - if (!((mutable_bitField0_ & 0x00000400) != 0)) { + if (!((mutable_bitField0_ & 0x00000080) != 0)) { speechTranscriptions_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1.SpeechTranscription>(); - mutable_bitField0_ |= 0x00000400; + mutable_bitField0_ |= 0x00000080; } speechTranscriptions_.add( input.readMessage( @@ -215,10 +221,10 @@ private VideoAnnotationResults( } case 98: { - if (!((mutable_bitField0_ & 0x00000800) != 0)) { + if (!((mutable_bitField0_ & 0x00000100) != 0)) { textAnnotations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000800; + mutable_bitField0_ |= 0x00000100; } textAnnotations_.add( input.readMessage( @@ -228,11 +234,11 @@ private VideoAnnotationResults( } case 114: { - if (!((mutable_bitField0_ & 0x00001000) != 0)) { + if (!((mutable_bitField0_ & 0x00000200) != 0)) { objectAnnotations_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1.ObjectTrackingAnnotation>(); - mutable_bitField0_ |= 0x00001000; + mutable_bitField0_ |= 0x00000200; } objectAnnotations_.add( input.readMessage( @@ -242,11 +248,11 @@ private VideoAnnotationResults( } case 186: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { segmentPresenceLabelAnnotations_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1.LabelAnnotation>(); - mutable_bitField0_ |= 0x00000008; + mutable_bitField0_ |= 0x00000002; } segmentPresenceLabelAnnotations_.add( input.readMessage( @@ -256,11 +262,11 @@ private VideoAnnotationResults( } case 194: { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { shotPresenceLabelAnnotations_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1.LabelAnnotation>(); - mutable_bitField0_ |= 0x00000020; + mutable_bitField0_ |= 0x00000008; } shotPresenceLabelAnnotations_.add( input.readMessage( @@ -282,35 +288,35 @@ private VideoAnnotationResults( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { segmentLabelAnnotations_ = java.util.Collections.unmodifiableList(segmentLabelAnnotations_); } - if (((mutable_bitField0_ & 0x00000010) != 0)) { + if (((mutable_bitField0_ & 0x00000004) != 0)) { shotLabelAnnotations_ = java.util.Collections.unmodifiableList(shotLabelAnnotations_); } - if (((mutable_bitField0_ & 0x00000040) != 0)) { + if (((mutable_bitField0_ & 0x00000010) != 0)) { frameLabelAnnotations_ = java.util.Collections.unmodifiableList(frameLabelAnnotations_); } - if (((mutable_bitField0_ & 0x00000080) != 0)) { + if (((mutable_bitField0_ & 0x00000020) != 0)) { faceAnnotations_ = java.util.Collections.unmodifiableList(faceAnnotations_); } - if (((mutable_bitField0_ & 0x00000100) != 0)) { + if (((mutable_bitField0_ & 0x00000040) != 0)) { shotAnnotations_ = java.util.Collections.unmodifiableList(shotAnnotations_); } - if (((mutable_bitField0_ & 0x00000400) != 0)) { + if (((mutable_bitField0_ & 0x00000080) != 0)) { speechTranscriptions_ = java.util.Collections.unmodifiableList(speechTranscriptions_); } - if (((mutable_bitField0_ & 0x00000800) != 0)) { + if (((mutable_bitField0_ & 0x00000100) != 0)) { textAnnotations_ = java.util.Collections.unmodifiableList(textAnnotations_); } - if (((mutable_bitField0_ & 0x00001000) != 0)) { + if (((mutable_bitField0_ & 0x00000200) != 0)) { objectAnnotations_ = java.util.Collections.unmodifiableList(objectAnnotations_); } - if (((mutable_bitField0_ & 0x00000008) != 0)) { + if (((mutable_bitField0_ & 0x00000002) != 0)) { segmentPresenceLabelAnnotations_ = java.util.Collections.unmodifiableList(segmentPresenceLabelAnnotations_); } - if (((mutable_bitField0_ & 0x00000020) != 0)) { + if (((mutable_bitField0_ & 0x00000008) != 0)) { shotPresenceLabelAnnotations_ = java.util.Collections.unmodifiableList(shotPresenceLabelAnnotations_); } @@ -334,7 +340,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.videointelligence.v1.VideoAnnotationResults.Builder.class); } - private int bitField0_; public static final int INPUT_URI_FIELD_NUMBER = 1; private volatile java.lang.Object inputUri_; /** @@ -346,6 +351,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string input_uri = 1; + * + * @return The inputUri. */ public java.lang.String getInputUri() { java.lang.Object ref = inputUri_; @@ -367,6 +374,8 @@ public java.lang.String getInputUri() { * * * string input_uri = 1; + * + * @return The bytes for inputUri. */ public com.google.protobuf.ByteString getInputUriBytes() { java.lang.Object ref = inputUri_; @@ -390,6 +399,8 @@ public com.google.protobuf.ByteString getInputUriBytes() { * * * .google.cloud.videointelligence.v1.VideoSegment segment = 10; + * + * @return Whether the segment field is set. */ public boolean hasSegment() { return segment_ != null; @@ -402,6 +413,8 @@ public boolean hasSegment() { * * * .google.cloud.videointelligence.v1.VideoSegment segment = 10; + * + * @return The segment. */ public com.google.cloud.videointelligence.v1.VideoSegment getSegment() { return segment_ == null @@ -1002,6 +1015,8 @@ public com.google.cloud.videointelligence.v1.VideoSegmentOrBuilder getShotAnnota * * .google.cloud.videointelligence.v1.ExplicitContentAnnotation explicit_annotation = 7; * + * + * @return Whether the explicitAnnotation field is set. */ public boolean hasExplicitAnnotation() { return explicitAnnotation_ != null; @@ -1015,6 +1030,8 @@ public boolean hasExplicitAnnotation() { * * .google.cloud.videointelligence.v1.ExplicitContentAnnotation explicit_annotation = 7; * + * + * @return The explicitAnnotation. */ public com.google.cloud.videointelligence.v1.ExplicitContentAnnotation getExplicitAnnotation() { return explicitAnnotation_ == null @@ -1281,6 +1298,8 @@ public com.google.cloud.videointelligence.v1.ObjectTrackingAnnotation getObjectA * * * .google.rpc.Status error = 9; + * + * @return Whether the error field is set. */ public boolean hasError() { return error_ != null; @@ -1294,6 +1313,8 @@ public boolean hasError() { * * * .google.rpc.Status error = 9; + * + * @return The error. */ public com.google.rpc.Status getError() { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; @@ -1705,43 +1726,43 @@ public Builder clear() { } if (segmentLabelAnnotationsBuilder_ == null) { segmentLabelAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } else { segmentLabelAnnotationsBuilder_.clear(); } if (segmentPresenceLabelAnnotationsBuilder_ == null) { segmentPresenceLabelAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000002); } else { segmentPresenceLabelAnnotationsBuilder_.clear(); } if (shotLabelAnnotationsBuilder_ == null) { shotLabelAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000004); } else { shotLabelAnnotationsBuilder_.clear(); } if (shotPresenceLabelAnnotationsBuilder_ == null) { shotPresenceLabelAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000008); } else { shotPresenceLabelAnnotationsBuilder_.clear(); } if (frameLabelAnnotationsBuilder_ == null) { frameLabelAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000010); } else { frameLabelAnnotationsBuilder_.clear(); } if (faceAnnotationsBuilder_ == null) { faceAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000020); } else { faceAnnotationsBuilder_.clear(); } if (shotAnnotationsBuilder_ == null) { shotAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000040); } else { shotAnnotationsBuilder_.clear(); } @@ -1753,19 +1774,19 @@ public Builder clear() { } if (speechTranscriptionsBuilder_ == null) { speechTranscriptions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000080); } else { speechTranscriptionsBuilder_.clear(); } if (textAnnotationsBuilder_ == null) { textAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00000100); } else { textAnnotationsBuilder_.clear(); } if (objectAnnotationsBuilder_ == null) { objectAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00000200); } else { objectAnnotationsBuilder_.clear(); } @@ -1804,7 +1825,6 @@ public com.google.cloud.videointelligence.v1.VideoAnnotationResults buildPartial com.google.cloud.videointelligence.v1.VideoAnnotationResults result = new com.google.cloud.videointelligence.v1.VideoAnnotationResults(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.inputUri_ = inputUri_; if (segmentBuilder_ == null) { result.segment_ = segment_; @@ -1812,66 +1832,66 @@ public com.google.cloud.videointelligence.v1.VideoAnnotationResults buildPartial result.segment_ = segmentBuilder_.build(); } if (segmentLabelAnnotationsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { segmentLabelAnnotations_ = java.util.Collections.unmodifiableList(segmentLabelAnnotations_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } result.segmentLabelAnnotations_ = segmentLabelAnnotations_; } else { result.segmentLabelAnnotations_ = segmentLabelAnnotationsBuilder_.build(); } if (segmentPresenceLabelAnnotationsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { segmentPresenceLabelAnnotations_ = java.util.Collections.unmodifiableList(segmentPresenceLabelAnnotations_); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000002); } result.segmentPresenceLabelAnnotations_ = segmentPresenceLabelAnnotations_; } else { result.segmentPresenceLabelAnnotations_ = segmentPresenceLabelAnnotationsBuilder_.build(); } if (shotLabelAnnotationsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { shotLabelAnnotations_ = java.util.Collections.unmodifiableList(shotLabelAnnotations_); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000004); } result.shotLabelAnnotations_ = shotLabelAnnotations_; } else { result.shotLabelAnnotations_ = shotLabelAnnotationsBuilder_.build(); } if (shotPresenceLabelAnnotationsBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { shotPresenceLabelAnnotations_ = java.util.Collections.unmodifiableList(shotPresenceLabelAnnotations_); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000008); } result.shotPresenceLabelAnnotations_ = shotPresenceLabelAnnotations_; } else { result.shotPresenceLabelAnnotations_ = shotPresenceLabelAnnotationsBuilder_.build(); } if (frameLabelAnnotationsBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { frameLabelAnnotations_ = java.util.Collections.unmodifiableList(frameLabelAnnotations_); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000010); } result.frameLabelAnnotations_ = frameLabelAnnotations_; } else { result.frameLabelAnnotations_ = frameLabelAnnotationsBuilder_.build(); } if (faceAnnotationsBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { faceAnnotations_ = java.util.Collections.unmodifiableList(faceAnnotations_); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000020); } result.faceAnnotations_ = faceAnnotations_; } else { result.faceAnnotations_ = faceAnnotationsBuilder_.build(); } if (shotAnnotationsBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { shotAnnotations_ = java.util.Collections.unmodifiableList(shotAnnotations_); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000040); } result.shotAnnotations_ = shotAnnotations_; } else { @@ -1883,27 +1903,27 @@ public com.google.cloud.videointelligence.v1.VideoAnnotationResults buildPartial result.explicitAnnotation_ = explicitAnnotationBuilder_.build(); } if (speechTranscriptionsBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { speechTranscriptions_ = java.util.Collections.unmodifiableList(speechTranscriptions_); - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000080); } result.speechTranscriptions_ = speechTranscriptions_; } else { result.speechTranscriptions_ = speechTranscriptionsBuilder_.build(); } if (textAnnotationsBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { textAnnotations_ = java.util.Collections.unmodifiableList(textAnnotations_); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00000100); } result.textAnnotations_ = textAnnotations_; } else { result.textAnnotations_ = textAnnotationsBuilder_.build(); } if (objectAnnotationsBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { objectAnnotations_ = java.util.Collections.unmodifiableList(objectAnnotations_); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00000200); } result.objectAnnotations_ = objectAnnotations_; } else { @@ -1914,7 +1934,6 @@ public com.google.cloud.videointelligence.v1.VideoAnnotationResults buildPartial } else { result.error_ = errorBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -1977,7 +1996,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1.VideoAnnotationRe if (!other.segmentLabelAnnotations_.isEmpty()) { if (segmentLabelAnnotations_.isEmpty()) { segmentLabelAnnotations_ = other.segmentLabelAnnotations_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSegmentLabelAnnotationsIsMutable(); segmentLabelAnnotations_.addAll(other.segmentLabelAnnotations_); @@ -1990,7 +2009,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1.VideoAnnotationRe segmentLabelAnnotationsBuilder_.dispose(); segmentLabelAnnotationsBuilder_ = null; segmentLabelAnnotations_ = other.segmentLabelAnnotations_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); segmentLabelAnnotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSegmentLabelAnnotationsFieldBuilder() @@ -2004,7 +2023,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1.VideoAnnotationRe if (!other.segmentPresenceLabelAnnotations_.isEmpty()) { if (segmentPresenceLabelAnnotations_.isEmpty()) { segmentPresenceLabelAnnotations_ = other.segmentPresenceLabelAnnotations_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureSegmentPresenceLabelAnnotationsIsMutable(); segmentPresenceLabelAnnotations_.addAll(other.segmentPresenceLabelAnnotations_); @@ -2017,7 +2036,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1.VideoAnnotationRe segmentPresenceLabelAnnotationsBuilder_.dispose(); segmentPresenceLabelAnnotationsBuilder_ = null; segmentPresenceLabelAnnotations_ = other.segmentPresenceLabelAnnotations_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000002); segmentPresenceLabelAnnotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSegmentPresenceLabelAnnotationsFieldBuilder() @@ -2032,7 +2051,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1.VideoAnnotationRe if (!other.shotLabelAnnotations_.isEmpty()) { if (shotLabelAnnotations_.isEmpty()) { shotLabelAnnotations_ = other.shotLabelAnnotations_; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureShotLabelAnnotationsIsMutable(); shotLabelAnnotations_.addAll(other.shotLabelAnnotations_); @@ -2045,7 +2064,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1.VideoAnnotationRe shotLabelAnnotationsBuilder_.dispose(); shotLabelAnnotationsBuilder_ = null; shotLabelAnnotations_ = other.shotLabelAnnotations_; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000004); shotLabelAnnotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getShotLabelAnnotationsFieldBuilder() @@ -2059,7 +2078,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1.VideoAnnotationRe if (!other.shotPresenceLabelAnnotations_.isEmpty()) { if (shotPresenceLabelAnnotations_.isEmpty()) { shotPresenceLabelAnnotations_ = other.shotPresenceLabelAnnotations_; - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensureShotPresenceLabelAnnotationsIsMutable(); shotPresenceLabelAnnotations_.addAll(other.shotPresenceLabelAnnotations_); @@ -2072,7 +2091,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1.VideoAnnotationRe shotPresenceLabelAnnotationsBuilder_.dispose(); shotPresenceLabelAnnotationsBuilder_ = null; shotPresenceLabelAnnotations_ = other.shotPresenceLabelAnnotations_; - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000008); shotPresenceLabelAnnotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getShotPresenceLabelAnnotationsFieldBuilder() @@ -2087,7 +2106,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1.VideoAnnotationRe if (!other.frameLabelAnnotations_.isEmpty()) { if (frameLabelAnnotations_.isEmpty()) { frameLabelAnnotations_ = other.frameLabelAnnotations_; - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000010); } else { ensureFrameLabelAnnotationsIsMutable(); frameLabelAnnotations_.addAll(other.frameLabelAnnotations_); @@ -2100,7 +2119,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1.VideoAnnotationRe frameLabelAnnotationsBuilder_.dispose(); frameLabelAnnotationsBuilder_ = null; frameLabelAnnotations_ = other.frameLabelAnnotations_; - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000010); frameLabelAnnotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFrameLabelAnnotationsFieldBuilder() @@ -2114,7 +2133,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1.VideoAnnotationRe if (!other.faceAnnotations_.isEmpty()) { if (faceAnnotations_.isEmpty()) { faceAnnotations_ = other.faceAnnotations_; - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000020); } else { ensureFaceAnnotationsIsMutable(); faceAnnotations_.addAll(other.faceAnnotations_); @@ -2127,7 +2146,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1.VideoAnnotationRe faceAnnotationsBuilder_.dispose(); faceAnnotationsBuilder_ = null; faceAnnotations_ = other.faceAnnotations_; - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000020); faceAnnotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFaceAnnotationsFieldBuilder() @@ -2141,7 +2160,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1.VideoAnnotationRe if (!other.shotAnnotations_.isEmpty()) { if (shotAnnotations_.isEmpty()) { shotAnnotations_ = other.shotAnnotations_; - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000040); } else { ensureShotAnnotationsIsMutable(); shotAnnotations_.addAll(other.shotAnnotations_); @@ -2154,7 +2173,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1.VideoAnnotationRe shotAnnotationsBuilder_.dispose(); shotAnnotationsBuilder_ = null; shotAnnotations_ = other.shotAnnotations_; - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000040); shotAnnotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getShotAnnotationsFieldBuilder() @@ -2171,7 +2190,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1.VideoAnnotationRe if (!other.speechTranscriptions_.isEmpty()) { if (speechTranscriptions_.isEmpty()) { speechTranscriptions_ = other.speechTranscriptions_; - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000080); } else { ensureSpeechTranscriptionsIsMutable(); speechTranscriptions_.addAll(other.speechTranscriptions_); @@ -2184,7 +2203,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1.VideoAnnotationRe speechTranscriptionsBuilder_.dispose(); speechTranscriptionsBuilder_ = null; speechTranscriptions_ = other.speechTranscriptions_; - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000080); speechTranscriptionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSpeechTranscriptionsFieldBuilder() @@ -2198,7 +2217,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1.VideoAnnotationRe if (!other.textAnnotations_.isEmpty()) { if (textAnnotations_.isEmpty()) { textAnnotations_ = other.textAnnotations_; - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00000100); } else { ensureTextAnnotationsIsMutable(); textAnnotations_.addAll(other.textAnnotations_); @@ -2211,7 +2230,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1.VideoAnnotationRe textAnnotationsBuilder_.dispose(); textAnnotationsBuilder_ = null; textAnnotations_ = other.textAnnotations_; - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00000100); textAnnotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTextAnnotationsFieldBuilder() @@ -2225,7 +2244,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1.VideoAnnotationRe if (!other.objectAnnotations_.isEmpty()) { if (objectAnnotations_.isEmpty()) { objectAnnotations_ = other.objectAnnotations_; - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00000200); } else { ensureObjectAnnotationsIsMutable(); objectAnnotations_.addAll(other.objectAnnotations_); @@ -2238,7 +2257,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1.VideoAnnotationRe objectAnnotationsBuilder_.dispose(); objectAnnotationsBuilder_ = null; objectAnnotations_ = other.objectAnnotations_; - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00000200); objectAnnotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getObjectAnnotationsFieldBuilder() @@ -2293,6 +2312,8 @@ public Builder mergeFrom( * * * string input_uri = 1; + * + * @return The inputUri. */ public java.lang.String getInputUri() { java.lang.Object ref = inputUri_; @@ -2314,6 +2335,8 @@ public java.lang.String getInputUri() { * * * string input_uri = 1; + * + * @return The bytes for inputUri. */ public com.google.protobuf.ByteString getInputUriBytes() { java.lang.Object ref = inputUri_; @@ -2335,6 +2358,9 @@ public com.google.protobuf.ByteString getInputUriBytes() { * * * string input_uri = 1; + * + * @param value The inputUri to set. + * @return This builder for chaining. */ public Builder setInputUri(java.lang.String value) { if (value == null) { @@ -2354,6 +2380,8 @@ public Builder setInputUri(java.lang.String value) { * * * string input_uri = 1; + * + * @return This builder for chaining. */ public Builder clearInputUri() { @@ -2370,6 +2398,9 @@ public Builder clearInputUri() { * * * string input_uri = 1; + * + * @param value The bytes for inputUri to set. + * @return This builder for chaining. */ public Builder setInputUriBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -2396,6 +2427,8 @@ public Builder setInputUriBytes(com.google.protobuf.ByteString value) { * * * .google.cloud.videointelligence.v1.VideoSegment segment = 10; + * + * @return Whether the segment field is set. */ public boolean hasSegment() { return segmentBuilder_ != null || segment_ != null; @@ -2408,6 +2441,8 @@ public boolean hasSegment() { * * * .google.cloud.videointelligence.v1.VideoSegment segment = 10; + * + * @return The segment. */ public com.google.cloud.videointelligence.v1.VideoSegment getSegment() { if (segmentBuilder_ == null) { @@ -2568,11 +2603,11 @@ public com.google.cloud.videointelligence.v1.VideoSegmentOrBuilder getSegmentOrB segmentLabelAnnotations_ = java.util.Collections.emptyList(); private void ensureSegmentLabelAnnotationsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { segmentLabelAnnotations_ = new java.util.ArrayList( segmentLabelAnnotations_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; } } @@ -2827,7 +2862,7 @@ public Builder addAllSegmentLabelAnnotations( public Builder clearSegmentLabelAnnotations() { if (segmentLabelAnnotationsBuilder_ == null) { segmentLabelAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { segmentLabelAnnotationsBuilder_.clear(); @@ -2976,7 +3011,7 @@ public Builder removeSegmentLabelAnnotations(int index) { com.google.cloud.videointelligence.v1.LabelAnnotation.Builder, com.google.cloud.videointelligence.v1.LabelAnnotationOrBuilder>( segmentLabelAnnotations_, - ((bitField0_ & 0x00000004) != 0), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); segmentLabelAnnotations_ = null; @@ -2988,11 +3023,11 @@ public Builder removeSegmentLabelAnnotations(int index) { segmentPresenceLabelAnnotations_ = java.util.Collections.emptyList(); private void ensureSegmentPresenceLabelAnnotationsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { segmentPresenceLabelAnnotations_ = new java.util.ArrayList( segmentPresenceLabelAnnotations_); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000002; } } @@ -3292,7 +3327,7 @@ public Builder addAllSegmentPresenceLabelAnnotations( public Builder clearSegmentPresenceLabelAnnotations() { if (segmentPresenceLabelAnnotationsBuilder_ == null) { segmentPresenceLabelAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { segmentPresenceLabelAnnotationsBuilder_.clear(); @@ -3469,7 +3504,7 @@ public Builder removeSegmentPresenceLabelAnnotations(int index) { com.google.cloud.videointelligence.v1.LabelAnnotation.Builder, com.google.cloud.videointelligence.v1.LabelAnnotationOrBuilder>( segmentPresenceLabelAnnotations_, - ((bitField0_ & 0x00000008) != 0), + ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); segmentPresenceLabelAnnotations_ = null; @@ -3481,11 +3516,11 @@ public Builder removeSegmentPresenceLabelAnnotations(int index) { shotLabelAnnotations_ = java.util.Collections.emptyList(); private void ensureShotLabelAnnotationsIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { shotLabelAnnotations_ = new java.util.ArrayList( shotLabelAnnotations_); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000004; } } @@ -3729,7 +3764,7 @@ public Builder addAllShotLabelAnnotations( public Builder clearShotLabelAnnotations() { if (shotLabelAnnotationsBuilder_ == null) { shotLabelAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { shotLabelAnnotationsBuilder_.clear(); @@ -3871,7 +3906,7 @@ public Builder removeShotLabelAnnotations(int index) { com.google.cloud.videointelligence.v1.LabelAnnotation.Builder, com.google.cloud.videointelligence.v1.LabelAnnotationOrBuilder>( shotLabelAnnotations_, - ((bitField0_ & 0x00000010) != 0), + ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); shotLabelAnnotations_ = null; @@ -3883,11 +3918,11 @@ public Builder removeShotLabelAnnotations(int index) { shotPresenceLabelAnnotations_ = java.util.Collections.emptyList(); private void ensureShotPresenceLabelAnnotationsIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { shotPresenceLabelAnnotations_ = new java.util.ArrayList( shotPresenceLabelAnnotations_); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000008; } } @@ -4176,7 +4211,7 @@ public Builder addAllShotPresenceLabelAnnotations( public Builder clearShotPresenceLabelAnnotations() { if (shotPresenceLabelAnnotationsBuilder_ == null) { shotPresenceLabelAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { shotPresenceLabelAnnotationsBuilder_.clear(); @@ -4346,7 +4381,7 @@ public Builder removeShotPresenceLabelAnnotations(int index) { com.google.cloud.videointelligence.v1.LabelAnnotation.Builder, com.google.cloud.videointelligence.v1.LabelAnnotationOrBuilder>( shotPresenceLabelAnnotations_, - ((bitField0_ & 0x00000020) != 0), + ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); shotPresenceLabelAnnotations_ = null; @@ -4358,11 +4393,11 @@ public Builder removeShotPresenceLabelAnnotations(int index) { frameLabelAnnotations_ = java.util.Collections.emptyList(); private void ensureFrameLabelAnnotationsIsMutable() { - if (!((bitField0_ & 0x00000040) != 0)) { + if (!((bitField0_ & 0x00000010) != 0)) { frameLabelAnnotations_ = new java.util.ArrayList( frameLabelAnnotations_); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000010; } } @@ -4617,7 +4652,7 @@ public Builder addAllFrameLabelAnnotations( public Builder clearFrameLabelAnnotations() { if (frameLabelAnnotationsBuilder_ == null) { frameLabelAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { frameLabelAnnotationsBuilder_.clear(); @@ -4766,7 +4801,7 @@ public Builder removeFrameLabelAnnotations(int index) { com.google.cloud.videointelligence.v1.LabelAnnotation.Builder, com.google.cloud.videointelligence.v1.LabelAnnotationOrBuilder>( frameLabelAnnotations_, - ((bitField0_ & 0x00000040) != 0), + ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); frameLabelAnnotations_ = null; @@ -4778,11 +4813,11 @@ public Builder removeFrameLabelAnnotations(int index) { java.util.Collections.emptyList(); private void ensureFaceAnnotationsIsMutable() { - if (!((bitField0_ & 0x00000080) != 0)) { + if (!((bitField0_ & 0x00000020) != 0)) { faceAnnotations_ = new java.util.ArrayList( faceAnnotations_); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000020; } } @@ -5001,7 +5036,7 @@ public Builder addAllFaceAnnotations( public Builder clearFaceAnnotations() { if (faceAnnotationsBuilder_ == null) { faceAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { faceAnnotationsBuilder_.clear(); @@ -5129,7 +5164,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_ & 0x00000080) != 0), + ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); faceAnnotations_ = null; @@ -5141,11 +5176,11 @@ public com.google.cloud.videointelligence.v1.FaceAnnotation.Builder addFaceAnnot java.util.Collections.emptyList(); private void ensureShotAnnotationsIsMutable() { - if (!((bitField0_ & 0x00000100) != 0)) { + if (!((bitField0_ & 0x00000040) != 0)) { shotAnnotations_ = new java.util.ArrayList( shotAnnotations_); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000040; } } @@ -5364,7 +5399,7 @@ public Builder addAllShotAnnotations( public Builder clearShotAnnotations() { if (shotAnnotationsBuilder_ == null) { shotAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { shotAnnotationsBuilder_.clear(); @@ -5491,7 +5526,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_ & 0x00000100) != 0), + ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); shotAnnotations_ = null; @@ -5514,6 +5549,8 @@ public com.google.cloud.videointelligence.v1.VideoSegment.Builder addShotAnnotat * * .google.cloud.videointelligence.v1.ExplicitContentAnnotation explicit_annotation = 7; * + * + * @return Whether the explicitAnnotation field is set. */ public boolean hasExplicitAnnotation() { return explicitAnnotationBuilder_ != null || explicitAnnotation_ != null; @@ -5527,6 +5564,8 @@ public boolean hasExplicitAnnotation() { * * .google.cloud.videointelligence.v1.ExplicitContentAnnotation explicit_annotation = 7; * + * + * @return The explicitAnnotation. */ public com.google.cloud.videointelligence.v1.ExplicitContentAnnotation getExplicitAnnotation() { if (explicitAnnotationBuilder_ == null) { @@ -5699,11 +5738,11 @@ public Builder clearExplicitAnnotation() { speechTranscriptions_ = java.util.Collections.emptyList(); private void ensureSpeechTranscriptionsIsMutable() { - if (!((bitField0_ & 0x00000400) != 0)) { + if (!((bitField0_ & 0x00000080) != 0)) { speechTranscriptions_ = new java.util.ArrayList( speechTranscriptions_); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000080; } } @@ -5949,7 +5988,7 @@ public Builder addAllSpeechTranscriptions( public Builder clearSpeechTranscriptions() { if (speechTranscriptionsBuilder_ == null) { speechTranscriptions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { speechTranscriptionsBuilder_.clear(); @@ -6094,7 +6133,7 @@ public Builder removeSpeechTranscriptions(int index) { com.google.cloud.videointelligence.v1.SpeechTranscription.Builder, com.google.cloud.videointelligence.v1.SpeechTranscriptionOrBuilder>( speechTranscriptions_, - ((bitField0_ & 0x00000400) != 0), + ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); speechTranscriptions_ = null; @@ -6106,11 +6145,11 @@ public Builder removeSpeechTranscriptions(int index) { java.util.Collections.emptyList(); private void ensureTextAnnotationsIsMutable() { - if (!((bitField0_ & 0x00000800) != 0)) { + if (!((bitField0_ & 0x00000100) != 0)) { textAnnotations_ = new java.util.ArrayList( textAnnotations_); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00000100; } } @@ -6362,7 +6401,7 @@ public Builder addAllTextAnnotations( public Builder clearTextAnnotations() { if (textAnnotationsBuilder_ == null) { textAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); } else { textAnnotationsBuilder_.clear(); @@ -6511,7 +6550,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_ & 0x00000800) != 0), + ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean()); textAnnotations_ = null; @@ -6523,11 +6562,11 @@ public com.google.cloud.videointelligence.v1.TextAnnotation.Builder addTextAnnot objectAnnotations_ = java.util.Collections.emptyList(); private void ensureObjectAnnotationsIsMutable() { - if (!((bitField0_ & 0x00001000) != 0)) { + if (!((bitField0_ & 0x00000200) != 0)) { objectAnnotations_ = new java.util.ArrayList( objectAnnotations_); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00000200; } } @@ -6773,7 +6812,7 @@ public Builder addAllObjectAnnotations( public Builder clearObjectAnnotations() { if (objectAnnotationsBuilder_ == null) { objectAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); } else { objectAnnotationsBuilder_.clear(); @@ -6918,7 +6957,7 @@ public Builder removeObjectAnnotations(int index) { com.google.cloud.videointelligence.v1.ObjectTrackingAnnotation.Builder, com.google.cloud.videointelligence.v1.ObjectTrackingAnnotationOrBuilder>( objectAnnotations_, - ((bitField0_ & 0x00001000) != 0), + ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean()); objectAnnotations_ = null; @@ -6939,6 +6978,8 @@ public Builder removeObjectAnnotations(int index) { * * * .google.rpc.Status error = 9; + * + * @return Whether the error field is set. */ public boolean hasError() { return errorBuilder_ != null || error_ != null; @@ -6952,6 +6993,8 @@ public boolean hasError() { * * * .google.rpc.Status error = 9; + * + * @return The error. */ public com.google.rpc.Status getError() { if (errorBuilder_ == null) { diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoAnnotationResultsOrBuilder.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoAnnotationResultsOrBuilder.java index 206f8bec9..5319cf12a 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoAnnotationResultsOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoAnnotationResultsOrBuilder.java @@ -32,6 +32,8 @@ public interface VideoAnnotationResultsOrBuilder * * * string input_uri = 1; + * + * @return The inputUri. */ java.lang.String getInputUri(); /** @@ -43,6 +45,8 @@ public interface VideoAnnotationResultsOrBuilder * * * string input_uri = 1; + * + * @return The bytes for inputUri. */ com.google.protobuf.ByteString getInputUriBytes(); @@ -54,6 +58,8 @@ public interface VideoAnnotationResultsOrBuilder * * * .google.cloud.videointelligence.v1.VideoSegment segment = 10; + * + * @return Whether the segment field is set. */ boolean hasSegment(); /** @@ -64,6 +70,8 @@ public interface VideoAnnotationResultsOrBuilder * * * .google.cloud.videointelligence.v1.VideoSegment segment = 10; + * + * @return The segment. */ com.google.cloud.videointelligence.v1.VideoSegment getSegment(); /** @@ -563,6 +571,8 @@ com.google.cloud.videointelligence.v1.VideoSegmentOrBuilder getShotAnnotationsOr * * .google.cloud.videointelligence.v1.ExplicitContentAnnotation explicit_annotation = 7; * + * + * @return Whether the explicitAnnotation field is set. */ boolean hasExplicitAnnotation(); /** @@ -574,6 +584,8 @@ com.google.cloud.videointelligence.v1.VideoSegmentOrBuilder getShotAnnotationsOr * * .google.cloud.videointelligence.v1.ExplicitContentAnnotation explicit_annotation = 7; * + * + * @return The explicitAnnotation. */ com.google.cloud.videointelligence.v1.ExplicitContentAnnotation getExplicitAnnotation(); /** @@ -789,6 +801,8 @@ com.google.cloud.videointelligence.v1.TextAnnotationOrBuilder getTextAnnotations * * * .google.rpc.Status error = 9; + * + * @return Whether the error field is set. */ boolean hasError(); /** @@ -800,6 +814,8 @@ com.google.cloud.videointelligence.v1.TextAnnotationOrBuilder getTextAnnotations * * * .google.rpc.Status error = 9; + * + * @return The error. */ com.google.rpc.Status getError(); /** diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoContext.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoContext.java index 751005a02..7c18cc9ae 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoContext.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoContext.java @@ -41,6 +41,12 @@ private VideoContext() { segments_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VideoContext(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -237,7 +243,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.videointelligence.v1.VideoContext.Builder.class); } - private int bitField0_; public static final int SEGMENTS_FIELD_NUMBER = 1; private java.util.List segments_; /** @@ -324,6 +329,8 @@ public com.google.cloud.videointelligence.v1.VideoSegmentOrBuilder getSegmentsOr * * .google.cloud.videointelligence.v1.LabelDetectionConfig label_detection_config = 2; * + * + * @return Whether the labelDetectionConfig field is set. */ public boolean hasLabelDetectionConfig() { return labelDetectionConfig_ != null; @@ -337,6 +344,8 @@ public boolean hasLabelDetectionConfig() { * * .google.cloud.videointelligence.v1.LabelDetectionConfig label_detection_config = 2; * + * + * @return The labelDetectionConfig. */ public com.google.cloud.videointelligence.v1.LabelDetectionConfig getLabelDetectionConfig() { return labelDetectionConfig_ == null @@ -371,6 +380,8 @@ public com.google.cloud.videointelligence.v1.LabelDetectionConfig getLabelDetect * * .google.cloud.videointelligence.v1.ShotChangeDetectionConfig shot_change_detection_config = 3; * + * + * @return Whether the shotChangeDetectionConfig field is set. */ public boolean hasShotChangeDetectionConfig() { return shotChangeDetectionConfig_ != null; @@ -385,6 +396,8 @@ public boolean hasShotChangeDetectionConfig() { * * .google.cloud.videointelligence.v1.ShotChangeDetectionConfig shot_change_detection_config = 3; * + * + * @return The shotChangeDetectionConfig. */ public com.google.cloud.videointelligence.v1.ShotChangeDetectionConfig getShotChangeDetectionConfig() { @@ -421,6 +434,8 @@ public boolean hasShotChangeDetectionConfig() { * * .google.cloud.videointelligence.v1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; * + * + * @return Whether the explicitContentDetectionConfig field is set. */ public boolean hasExplicitContentDetectionConfig() { return explicitContentDetectionConfig_ != null; @@ -435,6 +450,8 @@ public boolean hasExplicitContentDetectionConfig() { * * .google.cloud.videointelligence.v1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; * + * + * @return The explicitContentDetectionConfig. */ public com.google.cloud.videointelligence.v1.ExplicitContentDetectionConfig getExplicitContentDetectionConfig() { @@ -468,6 +485,8 @@ public boolean hasExplicitContentDetectionConfig() { * * * .google.cloud.videointelligence.v1.FaceDetectionConfig face_detection_config = 5; + * + * @return Whether the faceDetectionConfig field is set. */ public boolean hasFaceDetectionConfig() { return faceDetectionConfig_ != null; @@ -480,6 +499,8 @@ public boolean hasFaceDetectionConfig() { * * * .google.cloud.videointelligence.v1.FaceDetectionConfig face_detection_config = 5; + * + * @return The faceDetectionConfig. */ public com.google.cloud.videointelligence.v1.FaceDetectionConfig getFaceDetectionConfig() { return faceDetectionConfig_ == null @@ -513,6 +534,8 @@ public com.google.cloud.videointelligence.v1.FaceDetectionConfig getFaceDetectio * * .google.cloud.videointelligence.v1.SpeechTranscriptionConfig speech_transcription_config = 6; * + * + * @return Whether the speechTranscriptionConfig field is set. */ public boolean hasSpeechTranscriptionConfig() { return speechTranscriptionConfig_ != null; @@ -527,6 +550,8 @@ public boolean hasSpeechTranscriptionConfig() { * * .google.cloud.videointelligence.v1.SpeechTranscriptionConfig speech_transcription_config = 6; * + * + * @return The speechTranscriptionConfig. */ public com.google.cloud.videointelligence.v1.SpeechTranscriptionConfig getSpeechTranscriptionConfig() { @@ -560,6 +585,8 @@ public boolean hasSpeechTranscriptionConfig() { * * * .google.cloud.videointelligence.v1.TextDetectionConfig text_detection_config = 8; + * + * @return Whether the textDetectionConfig field is set. */ public boolean hasTextDetectionConfig() { return textDetectionConfig_ != null; @@ -572,6 +599,8 @@ public boolean hasTextDetectionConfig() { * * * .google.cloud.videointelligence.v1.TextDetectionConfig text_detection_config = 8; + * + * @return The textDetectionConfig. */ public com.google.cloud.videointelligence.v1.TextDetectionConfig getTextDetectionConfig() { return textDetectionConfig_ == null @@ -603,6 +632,8 @@ public com.google.cloud.videointelligence.v1.TextDetectionConfig getTextDetectio * * .google.cloud.videointelligence.v1.ObjectTrackingConfig object_tracking_config = 13; * + * + * @return Whether the objectTrackingConfig field is set. */ public boolean hasObjectTrackingConfig() { return objectTrackingConfig_ != null; @@ -616,6 +647,8 @@ public boolean hasObjectTrackingConfig() { * * .google.cloud.videointelligence.v1.ObjectTrackingConfig object_tracking_config = 13; * + * + * @return The objectTrackingConfig. */ public com.google.cloud.videointelligence.v1.ObjectTrackingConfig getObjectTrackingConfig() { return objectTrackingConfig_ == null @@ -1031,7 +1064,6 @@ public com.google.cloud.videointelligence.v1.VideoContext buildPartial() { com.google.cloud.videointelligence.v1.VideoContext result = new com.google.cloud.videointelligence.v1.VideoContext(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (segmentsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { segments_ = java.util.Collections.unmodifiableList(segments_); @@ -1076,7 +1108,6 @@ public com.google.cloud.videointelligence.v1.VideoContext buildPartial() { } else { result.objectTrackingConfig_ = objectTrackingConfigBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -1615,6 +1646,8 @@ public com.google.cloud.videointelligence.v1.VideoSegment.Builder addSegmentsBui * * .google.cloud.videointelligence.v1.LabelDetectionConfig label_detection_config = 2; * + * + * @return Whether the labelDetectionConfig field is set. */ public boolean hasLabelDetectionConfig() { return labelDetectionConfigBuilder_ != null || labelDetectionConfig_ != null; @@ -1628,6 +1661,8 @@ public boolean hasLabelDetectionConfig() { * * .google.cloud.videointelligence.v1.LabelDetectionConfig label_detection_config = 2; * + * + * @return The labelDetectionConfig. */ public com.google.cloud.videointelligence.v1.LabelDetectionConfig getLabelDetectionConfig() { if (labelDetectionConfigBuilder_ == null) { @@ -1813,6 +1848,8 @@ public Builder clearLabelDetectionConfig() { * * .google.cloud.videointelligence.v1.ShotChangeDetectionConfig shot_change_detection_config = 3; * + * + * @return Whether the shotChangeDetectionConfig field is set. */ public boolean hasShotChangeDetectionConfig() { return shotChangeDetectionConfigBuilder_ != null || shotChangeDetectionConfig_ != null; @@ -1827,6 +1864,8 @@ public boolean hasShotChangeDetectionConfig() { * * .google.cloud.videointelligence.v1.ShotChangeDetectionConfig shot_change_detection_config = 3; * + * + * @return The shotChangeDetectionConfig. */ public com.google.cloud.videointelligence.v1.ShotChangeDetectionConfig getShotChangeDetectionConfig() { @@ -2020,6 +2059,8 @@ public Builder clearShotChangeDetectionConfig() { * * .google.cloud.videointelligence.v1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; * + * + * @return Whether the explicitContentDetectionConfig field is set. */ public boolean hasExplicitContentDetectionConfig() { return explicitContentDetectionConfigBuilder_ != null @@ -2035,6 +2076,8 @@ public boolean hasExplicitContentDetectionConfig() { * * .google.cloud.videointelligence.v1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; * + * + * @return The explicitContentDetectionConfig. */ public com.google.cloud.videointelligence.v1.ExplicitContentDetectionConfig getExplicitContentDetectionConfig() { @@ -2229,6 +2272,8 @@ public Builder clearExplicitContentDetectionConfig() { * * .google.cloud.videointelligence.v1.FaceDetectionConfig face_detection_config = 5; * + * + * @return Whether the faceDetectionConfig field is set. */ public boolean hasFaceDetectionConfig() { return faceDetectionConfigBuilder_ != null || faceDetectionConfig_ != null; @@ -2242,6 +2287,8 @@ public boolean hasFaceDetectionConfig() { * * .google.cloud.videointelligence.v1.FaceDetectionConfig face_detection_config = 5; * + * + * @return The faceDetectionConfig. */ public com.google.cloud.videointelligence.v1.FaceDetectionConfig getFaceDetectionConfig() { if (faceDetectionConfigBuilder_ == null) { @@ -2427,6 +2474,8 @@ public Builder clearFaceDetectionConfig() { * * .google.cloud.videointelligence.v1.SpeechTranscriptionConfig speech_transcription_config = 6; * + * + * @return Whether the speechTranscriptionConfig field is set. */ public boolean hasSpeechTranscriptionConfig() { return speechTranscriptionConfigBuilder_ != null || speechTranscriptionConfig_ != null; @@ -2441,6 +2490,8 @@ public boolean hasSpeechTranscriptionConfig() { * * .google.cloud.videointelligence.v1.SpeechTranscriptionConfig speech_transcription_config = 6; * + * + * @return The speechTranscriptionConfig. */ public com.google.cloud.videointelligence.v1.SpeechTranscriptionConfig getSpeechTranscriptionConfig() { @@ -2632,6 +2683,8 @@ public Builder clearSpeechTranscriptionConfig() { * * .google.cloud.videointelligence.v1.TextDetectionConfig text_detection_config = 8; * + * + * @return Whether the textDetectionConfig field is set. */ public boolean hasTextDetectionConfig() { return textDetectionConfigBuilder_ != null || textDetectionConfig_ != null; @@ -2645,6 +2698,8 @@ public boolean hasTextDetectionConfig() { * * .google.cloud.videointelligence.v1.TextDetectionConfig text_detection_config = 8; * + * + * @return The textDetectionConfig. */ public com.google.cloud.videointelligence.v1.TextDetectionConfig getTextDetectionConfig() { if (textDetectionConfigBuilder_ == null) { @@ -2828,6 +2883,8 @@ public Builder clearTextDetectionConfig() { * * .google.cloud.videointelligence.v1.ObjectTrackingConfig object_tracking_config = 13; * + * + * @return Whether the objectTrackingConfig field is set. */ public boolean hasObjectTrackingConfig() { return objectTrackingConfigBuilder_ != null || objectTrackingConfig_ != null; @@ -2841,6 +2898,8 @@ public boolean hasObjectTrackingConfig() { * * .google.cloud.videointelligence.v1.ObjectTrackingConfig object_tracking_config = 13; * + * + * @return The objectTrackingConfig. */ public com.google.cloud.videointelligence.v1.ObjectTrackingConfig getObjectTrackingConfig() { if (objectTrackingConfigBuilder_ == null) { diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoContextOrBuilder.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoContextOrBuilder.java index bf6bc0f34..e9609e5c6 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoContextOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoContextOrBuilder.java @@ -94,6 +94,8 @@ public interface VideoContextOrBuilder * * .google.cloud.videointelligence.v1.LabelDetectionConfig label_detection_config = 2; * + * + * @return Whether the labelDetectionConfig field is set. */ boolean hasLabelDetectionConfig(); /** @@ -105,6 +107,8 @@ public interface VideoContextOrBuilder * * .google.cloud.videointelligence.v1.LabelDetectionConfig label_detection_config = 2; * + * + * @return The labelDetectionConfig. */ com.google.cloud.videointelligence.v1.LabelDetectionConfig getLabelDetectionConfig(); /** @@ -130,6 +134,8 @@ public interface VideoContextOrBuilder * * .google.cloud.videointelligence.v1.ShotChangeDetectionConfig shot_change_detection_config = 3; * + * + * @return Whether the shotChangeDetectionConfig field is set. */ boolean hasShotChangeDetectionConfig(); /** @@ -142,6 +148,8 @@ public interface VideoContextOrBuilder * * .google.cloud.videointelligence.v1.ShotChangeDetectionConfig shot_change_detection_config = 3; * + * + * @return The shotChangeDetectionConfig. */ com.google.cloud.videointelligence.v1.ShotChangeDetectionConfig getShotChangeDetectionConfig(); /** @@ -168,6 +176,8 @@ public interface VideoContextOrBuilder * * .google.cloud.videointelligence.v1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; * + * + * @return Whether the explicitContentDetectionConfig field is set. */ boolean hasExplicitContentDetectionConfig(); /** @@ -180,6 +190,8 @@ public interface VideoContextOrBuilder * * .google.cloud.videointelligence.v1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; * + * + * @return The explicitContentDetectionConfig. */ com.google.cloud.videointelligence.v1.ExplicitContentDetectionConfig getExplicitContentDetectionConfig(); @@ -205,6 +217,8 @@ public interface VideoContextOrBuilder * * * .google.cloud.videointelligence.v1.FaceDetectionConfig face_detection_config = 5; + * + * @return Whether the faceDetectionConfig field is set. */ boolean hasFaceDetectionConfig(); /** @@ -215,6 +229,8 @@ public interface VideoContextOrBuilder * * * .google.cloud.videointelligence.v1.FaceDetectionConfig face_detection_config = 5; + * + * @return The faceDetectionConfig. */ com.google.cloud.videointelligence.v1.FaceDetectionConfig getFaceDetectionConfig(); /** @@ -239,6 +255,8 @@ public interface VideoContextOrBuilder * * .google.cloud.videointelligence.v1.SpeechTranscriptionConfig speech_transcription_config = 6; * + * + * @return Whether the speechTranscriptionConfig field is set. */ boolean hasSpeechTranscriptionConfig(); /** @@ -251,6 +269,8 @@ public interface VideoContextOrBuilder * * .google.cloud.videointelligence.v1.SpeechTranscriptionConfig speech_transcription_config = 6; * + * + * @return The speechTranscriptionConfig. */ com.google.cloud.videointelligence.v1.SpeechTranscriptionConfig getSpeechTranscriptionConfig(); /** @@ -275,6 +295,8 @@ public interface VideoContextOrBuilder * * * .google.cloud.videointelligence.v1.TextDetectionConfig text_detection_config = 8; + * + * @return Whether the textDetectionConfig field is set. */ boolean hasTextDetectionConfig(); /** @@ -285,6 +307,8 @@ public interface VideoContextOrBuilder * * * .google.cloud.videointelligence.v1.TextDetectionConfig text_detection_config = 8; + * + * @return The textDetectionConfig. */ com.google.cloud.videointelligence.v1.TextDetectionConfig getTextDetectionConfig(); /** @@ -308,6 +332,8 @@ public interface VideoContextOrBuilder * * .google.cloud.videointelligence.v1.ObjectTrackingConfig object_tracking_config = 13; * + * + * @return Whether the objectTrackingConfig field is set. */ boolean hasObjectTrackingConfig(); /** @@ -319,6 +345,8 @@ public interface VideoContextOrBuilder * * .google.cloud.videointelligence.v1.ObjectTrackingConfig object_tracking_config = 13; * + * + * @return The objectTrackingConfig. */ com.google.cloud.videointelligence.v1.ObjectTrackingConfig getObjectTrackingConfig(); /** diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoIntelligenceServiceProto.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoIntelligenceServiceProto.java index 46e369805..d0ede1aa6 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoIntelligenceServiceProto.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoIntelligenceServiceProto.java @@ -371,26 +371,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oogle::Cloud::VideoIntelligence::V1b\006pro" + "to3" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }, - assigner); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); internal_static_google_cloud_videointelligence_v1_AnnotateVideoRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_cloud_videointelligence_v1_AnnotateVideoRequest_fieldAccessorTable = diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoSegment.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoSegment.java index f44edbdf9..3cb1b9a4d 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoSegment.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoSegment.java @@ -39,6 +39,12 @@ private VideoSegment(com.google.protobuf.GeneratedMessageV3.Builder builder) private VideoSegment() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VideoSegment(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -52,7 +58,6 @@ private VideoSegment( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -138,6 +143,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.protobuf.Duration start_time_offset = 1; + * + * @return Whether the startTimeOffset field is set. */ public boolean hasStartTimeOffset() { return startTimeOffset_ != null; @@ -151,6 +158,8 @@ public boolean hasStartTimeOffset() { * * * .google.protobuf.Duration start_time_offset = 1; + * + * @return The startTimeOffset. */ public com.google.protobuf.Duration getStartTimeOffset() { return startTimeOffset_ == null @@ -182,6 +191,8 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOffsetOrBuilder() { * * * .google.protobuf.Duration end_time_offset = 2; + * + * @return Whether the endTimeOffset field is set. */ public boolean hasEndTimeOffset() { return endTimeOffset_ != null; @@ -195,6 +206,8 @@ public boolean hasEndTimeOffset() { * * * .google.protobuf.Duration end_time_offset = 2; + * + * @return The endTimeOffset. */ public com.google.protobuf.Duration getEndTimeOffset() { return endTimeOffset_ == null @@ -588,6 +601,8 @@ public Builder mergeFrom( * * * .google.protobuf.Duration start_time_offset = 1; + * + * @return Whether the startTimeOffset field is set. */ public boolean hasStartTimeOffset() { return startTimeOffsetBuilder_ != null || startTimeOffset_ != null; @@ -601,6 +616,8 @@ public boolean hasStartTimeOffset() { * * * .google.protobuf.Duration start_time_offset = 1; + * + * @return The startTimeOffset. */ public com.google.protobuf.Duration getStartTimeOffset() { if (startTimeOffsetBuilder_ == null) { @@ -778,6 +795,8 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOffsetOrBuilder() { * * * .google.protobuf.Duration end_time_offset = 2; + * + * @return Whether the endTimeOffset field is set. */ public boolean hasEndTimeOffset() { return endTimeOffsetBuilder_ != null || endTimeOffset_ != null; @@ -791,6 +810,8 @@ public boolean hasEndTimeOffset() { * * * .google.protobuf.Duration end_time_offset = 2; + * + * @return The endTimeOffset. */ public com.google.protobuf.Duration getEndTimeOffset() { if (endTimeOffsetBuilder_ == null) { diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoSegmentOrBuilder.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoSegmentOrBuilder.java index b780be586..601fb0402 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoSegmentOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/VideoSegmentOrBuilder.java @@ -32,6 +32,8 @@ public interface VideoSegmentOrBuilder * * * .google.protobuf.Duration start_time_offset = 1; + * + * @return Whether the startTimeOffset field is set. */ boolean hasStartTimeOffset(); /** @@ -43,6 +45,8 @@ public interface VideoSegmentOrBuilder * * * .google.protobuf.Duration start_time_offset = 1; + * + * @return The startTimeOffset. */ com.google.protobuf.Duration getStartTimeOffset(); /** @@ -66,6 +70,8 @@ public interface VideoSegmentOrBuilder * * * .google.protobuf.Duration end_time_offset = 2; + * + * @return Whether the endTimeOffset field is set. */ boolean hasEndTimeOffset(); /** @@ -77,6 +83,8 @@ public interface VideoSegmentOrBuilder * * * .google.protobuf.Duration end_time_offset = 2; + * + * @return The endTimeOffset. */ com.google.protobuf.Duration getEndTimeOffset(); /** diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/WordInfo.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/WordInfo.java index 23d6e9299..77ce2009a 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/WordInfo.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/WordInfo.java @@ -43,6 +43,12 @@ private WordInfo() { word_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new WordInfo(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -56,7 +62,6 @@ private WordInfo( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -161,6 +166,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.protobuf.Duration start_time = 1; + * + * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTime_ != null; @@ -176,6 +183,8 @@ public boolean hasStartTime() { * * * .google.protobuf.Duration start_time = 1; + * + * @return The startTime. */ public com.google.protobuf.Duration getStartTime() { return startTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : startTime_; @@ -209,6 +218,8 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() { * * * .google.protobuf.Duration end_time = 2; + * + * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTime_ != null; @@ -224,6 +235,8 @@ public boolean hasEndTime() { * * * .google.protobuf.Duration end_time = 2; + * + * @return The endTime. */ public com.google.protobuf.Duration getEndTime() { return endTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : endTime_; @@ -254,6 +267,8 @@ public com.google.protobuf.DurationOrBuilder getEndTimeOrBuilder() { * * * string word = 3; + * + * @return The word. */ public java.lang.String getWord() { java.lang.Object ref = word_; @@ -274,6 +289,8 @@ public java.lang.String getWord() { * * * string word = 3; + * + * @return The bytes for word. */ public com.google.protobuf.ByteString getWordBytes() { java.lang.Object ref = word_; @@ -302,6 +319,8 @@ public com.google.protobuf.ByteString getWordBytes() { * * * float confidence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The confidence. */ public float getConfidence() { return confidence_; @@ -320,6 +339,8 @@ public float getConfidence() { * * * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The speakerTag. */ public int getSpeakerTag() { return speakerTag_; @@ -747,6 +768,8 @@ public Builder mergeFrom( * * * .google.protobuf.Duration start_time = 1; + * + * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; @@ -762,6 +785,8 @@ public boolean hasStartTime() { * * * .google.protobuf.Duration start_time = 1; + * + * @return The startTime. */ public com.google.protobuf.Duration getStartTime() { if (startTimeBuilder_ == null) { @@ -949,6 +974,8 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() { * * * .google.protobuf.Duration end_time = 2; + * + * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; @@ -964,6 +991,8 @@ public boolean hasEndTime() { * * * .google.protobuf.Duration end_time = 2; + * + * @return The endTime. */ public com.google.protobuf.Duration getEndTime() { if (endTimeBuilder_ == null) { @@ -1143,6 +1172,8 @@ public com.google.protobuf.DurationOrBuilder getEndTimeOrBuilder() { * * * string word = 3; + * + * @return The word. */ public java.lang.String getWord() { java.lang.Object ref = word_; @@ -1163,6 +1194,8 @@ public java.lang.String getWord() { * * * string word = 3; + * + * @return The bytes for word. */ public com.google.protobuf.ByteString getWordBytes() { java.lang.Object ref = word_; @@ -1183,6 +1216,9 @@ public com.google.protobuf.ByteString getWordBytes() { * * * string word = 3; + * + * @param value The word to set. + * @return This builder for chaining. */ public Builder setWord(java.lang.String value) { if (value == null) { @@ -1201,6 +1237,8 @@ public Builder setWord(java.lang.String value) { * * * string word = 3; + * + * @return This builder for chaining. */ public Builder clearWord() { @@ -1216,6 +1254,9 @@ public Builder clearWord() { * * * string word = 3; + * + * @param value The bytes for word to set. + * @return This builder for chaining. */ public Builder setWordBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1242,6 +1283,8 @@ public Builder setWordBytes(com.google.protobuf.ByteString value) { * * * float confidence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The confidence. */ public float getConfidence() { return confidence_; @@ -1259,6 +1302,9 @@ public float getConfidence() { * * * float confidence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The confidence to set. + * @return This builder for chaining. */ public Builder setConfidence(float value) { @@ -1279,6 +1325,8 @@ public Builder setConfidence(float value) { * * * float confidence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. */ public Builder clearConfidence() { @@ -1299,6 +1347,8 @@ public Builder clearConfidence() { * * * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The speakerTag. */ public int getSpeakerTag() { return speakerTag_; @@ -1314,6 +1364,9 @@ public int getSpeakerTag() { * * * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The speakerTag to set. + * @return This builder for chaining. */ public Builder setSpeakerTag(int value) { @@ -1332,6 +1385,8 @@ public Builder setSpeakerTag(int value) { * * * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. */ public Builder clearSpeakerTag() { diff --git a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/WordInfoOrBuilder.java b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/WordInfoOrBuilder.java index 93545e0f9..eeacc605e 100644 --- a/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/WordInfoOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/WordInfoOrBuilder.java @@ -34,6 +34,8 @@ public interface WordInfoOrBuilder * * * .google.protobuf.Duration start_time = 1; + * + * @return Whether the startTime field is set. */ boolean hasStartTime(); /** @@ -47,6 +49,8 @@ public interface WordInfoOrBuilder * * * .google.protobuf.Duration start_time = 1; + * + * @return The startTime. */ com.google.protobuf.Duration getStartTime(); /** @@ -74,6 +78,8 @@ public interface WordInfoOrBuilder * * * .google.protobuf.Duration end_time = 2; + * + * @return Whether the endTime field is set. */ boolean hasEndTime(); /** @@ -87,6 +93,8 @@ public interface WordInfoOrBuilder * * * .google.protobuf.Duration end_time = 2; + * + * @return The endTime. */ com.google.protobuf.Duration getEndTime(); /** @@ -111,6 +119,8 @@ public interface WordInfoOrBuilder * * * string word = 3; + * + * @return The word. */ java.lang.String getWord(); /** @@ -121,6 +131,8 @@ public interface WordInfoOrBuilder * * * string word = 3; + * + * @return The bytes for word. */ com.google.protobuf.ByteString getWordBytes(); @@ -137,6 +149,8 @@ public interface WordInfoOrBuilder * * * float confidence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The confidence. */ float getConfidence(); @@ -151,6 +165,8 @@ public interface WordInfoOrBuilder * * * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The speakerTag. */ int getSpeakerTag(); } diff --git a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/AnnotateVideoProgress.java b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/AnnotateVideoProgress.java index 722ab6822..4a70568c5 100644 --- a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/AnnotateVideoProgress.java +++ b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/AnnotateVideoProgress.java @@ -43,6 +43,12 @@ private AnnotateVideoProgress() { annotationProgress_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AnnotateVideoProgress(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; diff --git a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/AnnotateVideoRequest.java b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/AnnotateVideoRequest.java index a43f38fe2..9dc1c5651 100644 --- a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/AnnotateVideoRequest.java +++ b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/AnnotateVideoRequest.java @@ -45,6 +45,12 @@ private AnnotateVideoRequest() { locationId_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AnnotateVideoRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -79,9 +85,9 @@ private AnnotateVideoRequest( case 16: { int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { features_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000001; } features_.add(rawValue); break; @@ -92,9 +98,9 @@ private AnnotateVideoRequest( int oldLimit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { features_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000001; } features_.add(rawValue); } @@ -151,7 +157,7 @@ private AnnotateVideoRequest( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { features_ = java.util.Collections.unmodifiableList(features_); } this.unknownFields = unknownFields.build(); @@ -174,7 +180,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.videointelligence.v1beta2.AnnotateVideoRequest.Builder.class); } - private int bitField0_; public static final int INPUT_URI_FIELD_NUMBER = 1; private volatile java.lang.Object inputUri_; /** @@ -194,6 +199,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string input_uri = 1; + * + * @return The inputUri. */ public java.lang.String getInputUri() { java.lang.Object ref = inputUri_; @@ -223,6 +230,8 @@ public java.lang.String getInputUri() { * * * string input_uri = 1; + * + * @return The bytes for inputUri. */ public com.google.protobuf.ByteString getInputUriBytes() { java.lang.Object ref = inputUri_; @@ -248,6 +257,8 @@ public com.google.protobuf.ByteString getInputUriBytes() { * * * bytes input_content = 6; + * + * @return The inputContent. */ public com.google.protobuf.ByteString getInputContent() { return inputContent_; @@ -278,6 +289,8 @@ public com.google.cloud.videointelligence.v1beta2.Feature convert( * * * repeated .google.cloud.videointelligence.v1beta2.Feature features = 2; + * + * @return A list containing the features. */ public java.util.List getFeaturesList() { return new com.google.protobuf.Internal.ListAdapter< @@ -292,6 +305,8 @@ public java.util.List getFea * * * repeated .google.cloud.videointelligence.v1beta2.Feature features = 2; + * + * @param value The features to add. */ public int getFeaturesCount() { return features_.size(); @@ -304,6 +319,9 @@ public int getFeaturesCount() { * * * repeated .google.cloud.videointelligence.v1beta2.Feature features = 2; + * + * @param index The index of the element to return. + * @return The features at the given index. */ public com.google.cloud.videointelligence.v1beta2.Feature getFeatures(int index) { return features_converter_.convert(features_.get(index)); @@ -316,6 +334,8 @@ public com.google.cloud.videointelligence.v1beta2.Feature getFeatures(int index) * * * repeated .google.cloud.videointelligence.v1beta2.Feature features = 2; + * + * @return A list containing the enum numeric values on the wire for features. */ public java.util.List getFeaturesValueList() { return features_; @@ -328,6 +348,9 @@ public java.util.List getFeaturesValueList() { * * * repeated .google.cloud.videointelligence.v1beta2.Feature features = 2; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of features at the given index. */ public int getFeaturesValue(int index) { return features_.get(index); @@ -345,6 +368,8 @@ public int getFeaturesValue(int index) { * * * .google.cloud.videointelligence.v1beta2.VideoContext video_context = 3; + * + * @return Whether the videoContext field is set. */ public boolean hasVideoContext() { return videoContext_ != null; @@ -357,6 +382,8 @@ public boolean hasVideoContext() { * * * .google.cloud.videointelligence.v1beta2.VideoContext video_context = 3; + * + * @return The videoContext. */ public com.google.cloud.videointelligence.v1beta2.VideoContext getVideoContext() { return videoContext_ == null @@ -392,6 +419,8 @@ public com.google.cloud.videointelligence.v1beta2.VideoContext getVideoContext() * * * string output_uri = 4; + * + * @return The outputUri. */ public java.lang.String getOutputUri() { java.lang.Object ref = outputUri_; @@ -417,6 +446,8 @@ public java.lang.String getOutputUri() { * * * string output_uri = 4; + * + * @return The bytes for outputUri. */ public com.google.protobuf.ByteString getOutputUriBytes() { java.lang.Object ref = outputUri_; @@ -442,6 +473,8 @@ public com.google.protobuf.ByteString getOutputUriBytes() { * * * string location_id = 5; + * + * @return The locationId. */ public java.lang.String getLocationId() { java.lang.Object ref = locationId_; @@ -464,6 +497,8 @@ public java.lang.String getLocationId() { * * * string location_id = 5; + * + * @return The bytes for locationId. */ public com.google.protobuf.ByteString getLocationIdBytes() { java.lang.Object ref = locationId_; @@ -753,7 +788,7 @@ public Builder clear() { inputContent_ = com.google.protobuf.ByteString.EMPTY; features_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); if (videoContextBuilder_ == null) { videoContext_ = null; } else { @@ -793,12 +828,11 @@ public com.google.cloud.videointelligence.v1beta2.AnnotateVideoRequest buildPart com.google.cloud.videointelligence.v1beta2.AnnotateVideoRequest result = new com.google.cloud.videointelligence.v1beta2.AnnotateVideoRequest(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.inputUri_ = inputUri_; result.inputContent_ = inputContent_; - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { features_ = java.util.Collections.unmodifiableList(features_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } result.features_ = features_; if (videoContextBuilder_ == null) { @@ -808,7 +842,6 @@ public com.google.cloud.videointelligence.v1beta2.AnnotateVideoRequest buildPart } result.outputUri_ = outputUri_; result.locationId_ = locationId_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -871,7 +904,7 @@ public Builder mergeFrom( if (!other.features_.isEmpty()) { if (features_.isEmpty()) { features_ = other.features_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureFeaturesIsMutable(); features_.addAll(other.features_); @@ -940,6 +973,8 @@ public Builder mergeFrom( * * * string input_uri = 1; + * + * @return The inputUri. */ public java.lang.String getInputUri() { java.lang.Object ref = inputUri_; @@ -969,6 +1004,8 @@ public java.lang.String getInputUri() { * * * string input_uri = 1; + * + * @return The bytes for inputUri. */ public com.google.protobuf.ByteString getInputUriBytes() { java.lang.Object ref = inputUri_; @@ -998,6 +1035,9 @@ public com.google.protobuf.ByteString getInputUriBytes() { * * * string input_uri = 1; + * + * @param value The inputUri to set. + * @return This builder for chaining. */ public Builder setInputUri(java.lang.String value) { if (value == null) { @@ -1025,6 +1065,8 @@ public Builder setInputUri(java.lang.String value) { * * * string input_uri = 1; + * + * @return This builder for chaining. */ public Builder clearInputUri() { @@ -1049,6 +1091,9 @@ public Builder clearInputUri() { * * * string input_uri = 1; + * + * @param value The bytes for inputUri to set. + * @return This builder for chaining. */ public Builder setInputUriBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1072,6 +1117,8 @@ public Builder setInputUriBytes(com.google.protobuf.ByteString value) { * * * bytes input_content = 6; + * + * @return The inputContent. */ public com.google.protobuf.ByteString getInputContent() { return inputContent_; @@ -1086,6 +1133,9 @@ public com.google.protobuf.ByteString getInputContent() { * * * bytes input_content = 6; + * + * @param value The inputContent to set. + * @return This builder for chaining. */ public Builder setInputContent(com.google.protobuf.ByteString value) { if (value == null) { @@ -1106,6 +1156,8 @@ public Builder setInputContent(com.google.protobuf.ByteString value) { * * * bytes input_content = 6; + * + * @return This builder for chaining. */ public Builder clearInputContent() { @@ -1117,9 +1169,9 @@ public Builder clearInputContent() { private java.util.List features_ = java.util.Collections.emptyList(); private void ensureFeaturesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { features_ = new java.util.ArrayList(features_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; } } /** @@ -1130,6 +1182,8 @@ private void ensureFeaturesIsMutable() { * * * repeated .google.cloud.videointelligence.v1beta2.Feature features = 2; + * + * @return A list containing the features. */ public java.util.List getFeaturesList() { return new com.google.protobuf.Internal.ListAdapter< @@ -1144,6 +1198,8 @@ public java.util.List getFea * * * repeated .google.cloud.videointelligence.v1beta2.Feature features = 2; + * + * @return The count of features. */ public int getFeaturesCount() { return features_.size(); @@ -1156,6 +1212,9 @@ public int getFeaturesCount() { * * * repeated .google.cloud.videointelligence.v1beta2.Feature features = 2; + * + * @param index The index of the element to return. + * @return The features at the given index. */ public com.google.cloud.videointelligence.v1beta2.Feature getFeatures(int index) { return features_converter_.convert(features_.get(index)); @@ -1168,6 +1227,10 @@ public com.google.cloud.videointelligence.v1beta2.Feature getFeatures(int index) * * * repeated .google.cloud.videointelligence.v1beta2.Feature features = 2; + * + * @param index The index to set the value at. + * @param value The features to set. + * @return This builder for chaining. */ public Builder setFeatures( int index, com.google.cloud.videointelligence.v1beta2.Feature value) { @@ -1187,6 +1250,9 @@ public Builder setFeatures( * * * repeated .google.cloud.videointelligence.v1beta2.Feature features = 2; + * + * @param value The features to add. + * @return This builder for chaining. */ public Builder addFeatures(com.google.cloud.videointelligence.v1beta2.Feature value) { if (value == null) { @@ -1205,6 +1271,9 @@ public Builder addFeatures(com.google.cloud.videointelligence.v1beta2.Feature va * * * repeated .google.cloud.videointelligence.v1beta2.Feature features = 2; + * + * @param values The features to add. + * @return This builder for chaining. */ public Builder addAllFeatures( java.lang.Iterable values) { @@ -1223,10 +1292,12 @@ public Builder addAllFeatures( * * * repeated .google.cloud.videointelligence.v1beta2.Feature features = 2; + * + * @return This builder for chaining. */ public Builder clearFeatures() { features_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1238,6 +1309,8 @@ public Builder clearFeatures() { * * * repeated .google.cloud.videointelligence.v1beta2.Feature features = 2; + * + * @return A list containing the enum numeric values on the wire for features. */ public java.util.List getFeaturesValueList() { return java.util.Collections.unmodifiableList(features_); @@ -1250,6 +1323,9 @@ public java.util.List getFeaturesValueList() { * * * repeated .google.cloud.videointelligence.v1beta2.Feature features = 2; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of features at the given index. */ public int getFeaturesValue(int index) { return features_.get(index); @@ -1262,6 +1338,10 @@ public int getFeaturesValue(int index) { * * * repeated .google.cloud.videointelligence.v1beta2.Feature features = 2; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of features at the given index. + * @return This builder for chaining. */ public Builder setFeaturesValue(int index, int value) { ensureFeaturesIsMutable(); @@ -1277,6 +1357,9 @@ public Builder setFeaturesValue(int index, int value) { * * * repeated .google.cloud.videointelligence.v1beta2.Feature features = 2; + * + * @param value The enum numeric value on the wire for features to add. + * @return This builder for chaining. */ public Builder addFeaturesValue(int value) { ensureFeaturesIsMutable(); @@ -1292,6 +1375,9 @@ public Builder addFeaturesValue(int value) { * * * repeated .google.cloud.videointelligence.v1beta2.Feature features = 2; + * + * @param values The enum numeric values on the wire for features to add. + * @return This builder for chaining. */ public Builder addAllFeaturesValue(java.lang.Iterable values) { ensureFeaturesIsMutable(); @@ -1316,6 +1402,8 @@ public Builder addAllFeaturesValue(java.lang.Iterable values) * * * .google.cloud.videointelligence.v1beta2.VideoContext video_context = 3; + * + * @return Whether the videoContext field is set. */ public boolean hasVideoContext() { return videoContextBuilder_ != null || videoContext_ != null; @@ -1328,6 +1416,8 @@ public boolean hasVideoContext() { * * * .google.cloud.videointelligence.v1beta2.VideoContext video_context = 3; + * + * @return The videoContext. */ public com.google.cloud.videointelligence.v1beta2.VideoContext getVideoContext() { if (videoContextBuilder_ == null) { @@ -1501,6 +1591,8 @@ public Builder clearVideoContext() { * * * string output_uri = 4; + * + * @return The outputUri. */ public java.lang.String getOutputUri() { java.lang.Object ref = outputUri_; @@ -1526,6 +1618,8 @@ public java.lang.String getOutputUri() { * * * string output_uri = 4; + * + * @return The bytes for outputUri. */ public com.google.protobuf.ByteString getOutputUriBytes() { java.lang.Object ref = outputUri_; @@ -1551,6 +1645,9 @@ public com.google.protobuf.ByteString getOutputUriBytes() { * * * string output_uri = 4; + * + * @param value The outputUri to set. + * @return This builder for chaining. */ public Builder setOutputUri(java.lang.String value) { if (value == null) { @@ -1574,6 +1671,8 @@ public Builder setOutputUri(java.lang.String value) { * * * string output_uri = 4; + * + * @return This builder for chaining. */ public Builder clearOutputUri() { @@ -1594,6 +1693,9 @@ public Builder clearOutputUri() { * * * string output_uri = 4; + * + * @param value The bytes for outputUri to set. + * @return This builder for chaining. */ public Builder setOutputUriBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1617,6 +1719,8 @@ public Builder setOutputUriBytes(com.google.protobuf.ByteString value) { * * * string location_id = 5; + * + * @return The locationId. */ public java.lang.String getLocationId() { java.lang.Object ref = locationId_; @@ -1639,6 +1743,8 @@ public java.lang.String getLocationId() { * * * string location_id = 5; + * + * @return The bytes for locationId. */ public com.google.protobuf.ByteString getLocationIdBytes() { java.lang.Object ref = locationId_; @@ -1661,6 +1767,9 @@ public com.google.protobuf.ByteString getLocationIdBytes() { * * * string location_id = 5; + * + * @param value The locationId to set. + * @return This builder for chaining. */ public Builder setLocationId(java.lang.String value) { if (value == null) { @@ -1681,6 +1790,8 @@ public Builder setLocationId(java.lang.String value) { * * * string location_id = 5; + * + * @return This builder for chaining. */ public Builder clearLocationId() { @@ -1698,6 +1809,9 @@ public Builder clearLocationId() { * * * string location_id = 5; + * + * @param value The bytes for locationId to set. + * @return This builder for chaining. */ public Builder setLocationIdBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/AnnotateVideoRequestOrBuilder.java b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/AnnotateVideoRequestOrBuilder.java index c4d8be5cd..f5c88fa47 100644 --- a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/AnnotateVideoRequestOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/AnnotateVideoRequestOrBuilder.java @@ -40,6 +40,8 @@ public interface AnnotateVideoRequestOrBuilder * * * string input_uri = 1; + * + * @return The inputUri. */ java.lang.String getInputUri(); /** @@ -59,6 +61,8 @@ public interface AnnotateVideoRequestOrBuilder * * * string input_uri = 1; + * + * @return The bytes for inputUri. */ com.google.protobuf.ByteString getInputUriBytes(); @@ -72,6 +76,8 @@ public interface AnnotateVideoRequestOrBuilder * * * bytes input_content = 6; + * + * @return The inputContent. */ com.google.protobuf.ByteString getInputContent(); @@ -83,6 +89,8 @@ public interface AnnotateVideoRequestOrBuilder * * * repeated .google.cloud.videointelligence.v1beta2.Feature features = 2; + * + * @return A list containing the features. */ java.util.List getFeaturesList(); /** @@ -93,6 +101,8 @@ public interface AnnotateVideoRequestOrBuilder * * * repeated .google.cloud.videointelligence.v1beta2.Feature features = 2; + * + * @return The count of features. */ int getFeaturesCount(); /** @@ -103,6 +113,9 @@ public interface AnnotateVideoRequestOrBuilder * * * repeated .google.cloud.videointelligence.v1beta2.Feature features = 2; + * + * @param index The index of the element to return. + * @return The features at the given index. */ com.google.cloud.videointelligence.v1beta2.Feature getFeatures(int index); /** @@ -113,6 +126,8 @@ public interface AnnotateVideoRequestOrBuilder * * * repeated .google.cloud.videointelligence.v1beta2.Feature features = 2; + * + * @return A list containing the enum numeric values on the wire for features. */ java.util.List getFeaturesValueList(); /** @@ -123,6 +138,9 @@ public interface AnnotateVideoRequestOrBuilder * * * repeated .google.cloud.videointelligence.v1beta2.Feature features = 2; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of features at the given index. */ int getFeaturesValue(int index); @@ -134,6 +152,8 @@ public interface AnnotateVideoRequestOrBuilder * * * .google.cloud.videointelligence.v1beta2.VideoContext video_context = 3; + * + * @return Whether the videoContext field is set. */ boolean hasVideoContext(); /** @@ -144,6 +164,8 @@ public interface AnnotateVideoRequestOrBuilder * * * .google.cloud.videointelligence.v1beta2.VideoContext video_context = 3; + * + * @return The videoContext. */ com.google.cloud.videointelligence.v1beta2.VideoContext getVideoContext(); /** @@ -170,6 +192,8 @@ public interface AnnotateVideoRequestOrBuilder * * * string output_uri = 4; + * + * @return The outputUri. */ java.lang.String getOutputUri(); /** @@ -185,6 +209,8 @@ public interface AnnotateVideoRequestOrBuilder * * * string output_uri = 4; + * + * @return The bytes for outputUri. */ com.google.protobuf.ByteString getOutputUriBytes(); @@ -198,6 +224,8 @@ public interface AnnotateVideoRequestOrBuilder * * * string location_id = 5; + * + * @return The locationId. */ java.lang.String getLocationId(); /** @@ -210,6 +238,8 @@ public interface AnnotateVideoRequestOrBuilder * * * string location_id = 5; + * + * @return The bytes for locationId. */ com.google.protobuf.ByteString getLocationIdBytes(); } diff --git a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/AnnotateVideoResponse.java b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/AnnotateVideoResponse.java index 70ad960b7..7077abf2c 100644 --- a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/AnnotateVideoResponse.java +++ b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/AnnotateVideoResponse.java @@ -43,6 +43,12 @@ private AnnotateVideoResponse() { annotationResults_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AnnotateVideoResponse(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; diff --git a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/Entity.java b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/Entity.java index faa0732a3..e5b9e4560 100644 --- a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/Entity.java +++ b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/Entity.java @@ -43,6 +43,12 @@ private Entity() { languageCode_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Entity(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -56,7 +62,6 @@ private Entity( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -134,6 +139,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string entity_id = 1; + * + * @return The entityId. */ public java.lang.String getEntityId() { java.lang.Object ref = entityId_; @@ -156,6 +163,8 @@ public java.lang.String getEntityId() { * * * string entity_id = 1; + * + * @return The bytes for entityId. */ public com.google.protobuf.ByteString getEntityIdBytes() { java.lang.Object ref = entityId_; @@ -179,6 +188,8 @@ public com.google.protobuf.ByteString getEntityIdBytes() { * * * string description = 2; + * + * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; @@ -199,6 +210,8 @@ public java.lang.String getDescription() { * * * string description = 2; + * + * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; @@ -222,6 +235,8 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * * string language_code = 3; + * + * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; @@ -242,6 +257,8 @@ public java.lang.String getLanguageCode() { * * * string language_code = 3; + * + * @return The bytes for languageCode. */ public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; @@ -616,6 +633,8 @@ public Builder mergeFrom( * * * string entity_id = 1; + * + * @return The entityId. */ public java.lang.String getEntityId() { java.lang.Object ref = entityId_; @@ -638,6 +657,8 @@ public java.lang.String getEntityId() { * * * string entity_id = 1; + * + * @return The bytes for entityId. */ public com.google.protobuf.ByteString getEntityIdBytes() { java.lang.Object ref = entityId_; @@ -660,6 +681,9 @@ public com.google.protobuf.ByteString getEntityIdBytes() { * * * string entity_id = 1; + * + * @param value The entityId to set. + * @return This builder for chaining. */ public Builder setEntityId(java.lang.String value) { if (value == null) { @@ -680,6 +704,8 @@ public Builder setEntityId(java.lang.String value) { * * * string entity_id = 1; + * + * @return This builder for chaining. */ public Builder clearEntityId() { @@ -697,6 +723,9 @@ public Builder clearEntityId() { * * * string entity_id = 1; + * + * @param value The bytes for entityId to set. + * @return This builder for chaining. */ public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -718,6 +747,8 @@ public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { * * * string description = 2; + * + * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; @@ -738,6 +769,8 @@ public java.lang.String getDescription() { * * * string description = 2; + * + * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; @@ -758,6 +791,9 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * * string description = 2; + * + * @param value The description to set. + * @return This builder for chaining. */ public Builder setDescription(java.lang.String value) { if (value == null) { @@ -776,6 +812,8 @@ public Builder setDescription(java.lang.String value) { * * * string description = 2; + * + * @return This builder for chaining. */ public Builder clearDescription() { @@ -791,6 +829,9 @@ public Builder clearDescription() { * * * string description = 2; + * + * @param value The bytes for description to set. + * @return This builder for chaining. */ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -812,6 +853,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * * * string language_code = 3; + * + * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; @@ -832,6 +875,8 @@ public java.lang.String getLanguageCode() { * * * string language_code = 3; + * + * @return The bytes for languageCode. */ public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; @@ -852,6 +897,9 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { * * * string language_code = 3; + * + * @param value The languageCode to set. + * @return This builder for chaining. */ public Builder setLanguageCode(java.lang.String value) { if (value == null) { @@ -870,6 +918,8 @@ public Builder setLanguageCode(java.lang.String value) { * * * string language_code = 3; + * + * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -885,6 +935,9 @@ public Builder clearLanguageCode() { * * * string language_code = 3; + * + * @param value The bytes for languageCode to set. + * @return This builder for chaining. */ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/EntityOrBuilder.java b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/EntityOrBuilder.java index ccbb45eb4..699cad835 100644 --- a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/EntityOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/EntityOrBuilder.java @@ -33,6 +33,8 @@ public interface EntityOrBuilder * * * string entity_id = 1; + * + * @return The entityId. */ java.lang.String getEntityId(); /** @@ -45,6 +47,8 @@ public interface EntityOrBuilder * * * string entity_id = 1; + * + * @return The bytes for entityId. */ com.google.protobuf.ByteString getEntityIdBytes(); @@ -56,6 +60,8 @@ public interface EntityOrBuilder * * * string description = 2; + * + * @return The description. */ java.lang.String getDescription(); /** @@ -66,6 +72,8 @@ public interface EntityOrBuilder * * * string description = 2; + * + * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); @@ -77,6 +85,8 @@ public interface EntityOrBuilder * * * string language_code = 3; + * + * @return The languageCode. */ java.lang.String getLanguageCode(); /** @@ -87,6 +97,8 @@ public interface EntityOrBuilder * * * string language_code = 3; + * + * @return The bytes for languageCode. */ com.google.protobuf.ByteString getLanguageCodeBytes(); } diff --git a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/ExplicitContentAnnotation.java b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/ExplicitContentAnnotation.java index 16e3147f6..7e2566872 100644 --- a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/ExplicitContentAnnotation.java +++ b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/ExplicitContentAnnotation.java @@ -43,6 +43,12 @@ private ExplicitContentAnnotation() { frames_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExplicitContentAnnotation(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; diff --git a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/ExplicitContentDetectionConfig.java b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/ExplicitContentDetectionConfig.java index b4199c957..e0840167a 100644 --- a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/ExplicitContentDetectionConfig.java +++ b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/ExplicitContentDetectionConfig.java @@ -42,6 +42,12 @@ private ExplicitContentDetectionConfig() { model_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExplicitContentDetectionConfig(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -55,7 +61,6 @@ private ExplicitContentDetectionConfig( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -120,6 +125,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string model = 1; + * + * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; @@ -142,6 +149,8 @@ public java.lang.String getModel() { * * * string model = 1; + * + * @return The bytes for model. */ public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; @@ -499,6 +508,8 @@ public Builder mergeFrom( * * * string model = 1; + * + * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; @@ -521,6 +532,8 @@ public java.lang.String getModel() { * * * string model = 1; + * + * @return The bytes for model. */ public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; @@ -543,6 +556,9 @@ public com.google.protobuf.ByteString getModelBytes() { * * * string model = 1; + * + * @param value The model to set. + * @return This builder for chaining. */ public Builder setModel(java.lang.String value) { if (value == null) { @@ -563,6 +579,8 @@ public Builder setModel(java.lang.String value) { * * * string model = 1; + * + * @return This builder for chaining. */ public Builder clearModel() { @@ -580,6 +598,9 @@ public Builder clearModel() { * * * string model = 1; + * + * @param value The bytes for model to set. + * @return This builder for chaining. */ public Builder setModelBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/ExplicitContentDetectionConfigOrBuilder.java b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/ExplicitContentDetectionConfigOrBuilder.java index a2483662b..71d210887 100644 --- a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/ExplicitContentDetectionConfigOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/ExplicitContentDetectionConfigOrBuilder.java @@ -33,6 +33,8 @@ public interface ExplicitContentDetectionConfigOrBuilder * * * string model = 1; + * + * @return The model. */ java.lang.String getModel(); /** @@ -45,6 +47,8 @@ public interface ExplicitContentDetectionConfigOrBuilder * * * string model = 1; + * + * @return The bytes for model. */ com.google.protobuf.ByteString getModelBytes(); } diff --git a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/ExplicitContentFrame.java b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/ExplicitContentFrame.java index d5b1ab18b..112e10362 100644 --- a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/ExplicitContentFrame.java +++ b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/ExplicitContentFrame.java @@ -41,6 +41,12 @@ private ExplicitContentFrame() { pornographyLikelihood_ = 0; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExplicitContentFrame(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private ExplicitContentFrame( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -132,6 +137,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.protobuf.Duration time_offset = 1; + * + * @return Whether the timeOffset field is set. */ public boolean hasTimeOffset() { return timeOffset_ != null; @@ -145,6 +152,8 @@ public boolean hasTimeOffset() { * * * .google.protobuf.Duration time_offset = 1; + * + * @return The timeOffset. */ public com.google.protobuf.Duration getTimeOffset() { return timeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeOffset_; @@ -173,6 +182,8 @@ public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() { * * * .google.cloud.videointelligence.v1beta2.Likelihood pornography_likelihood = 2; + * + * @return The enum numeric value on the wire for pornographyLikelihood. */ public int getPornographyLikelihoodValue() { return pornographyLikelihood_; @@ -185,6 +196,8 @@ public int getPornographyLikelihoodValue() { * * * .google.cloud.videointelligence.v1beta2.Likelihood pornography_likelihood = 2; + * + * @return The pornographyLikelihood. */ public com.google.cloud.videointelligence.v1beta2.Likelihood getPornographyLikelihood() { @SuppressWarnings("deprecation") @@ -564,6 +577,8 @@ public Builder mergeFrom( * * * .google.protobuf.Duration time_offset = 1; + * + * @return Whether the timeOffset field is set. */ public boolean hasTimeOffset() { return timeOffsetBuilder_ != null || timeOffset_ != null; @@ -577,6 +592,8 @@ public boolean hasTimeOffset() { * * * .google.protobuf.Duration time_offset = 1; + * + * @return The timeOffset. */ public com.google.protobuf.Duration getTimeOffset() { if (timeOffsetBuilder_ == null) { @@ -746,6 +763,8 @@ public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() { * * * .google.cloud.videointelligence.v1beta2.Likelihood pornography_likelihood = 2; + * + * @return The enum numeric value on the wire for pornographyLikelihood. */ public int getPornographyLikelihoodValue() { return pornographyLikelihood_; @@ -758,6 +777,9 @@ public int getPornographyLikelihoodValue() { * * * .google.cloud.videointelligence.v1beta2.Likelihood pornography_likelihood = 2; + * + * @param value The enum numeric value on the wire for pornographyLikelihood to set. + * @return This builder for chaining. */ public Builder setPornographyLikelihoodValue(int value) { pornographyLikelihood_ = value; @@ -772,6 +794,8 @@ public Builder setPornographyLikelihoodValue(int value) { * * * .google.cloud.videointelligence.v1beta2.Likelihood pornography_likelihood = 2; + * + * @return The pornographyLikelihood. */ public com.google.cloud.videointelligence.v1beta2.Likelihood getPornographyLikelihood() { @SuppressWarnings("deprecation") @@ -789,6 +813,9 @@ public com.google.cloud.videointelligence.v1beta2.Likelihood getPornographyLikel * * * .google.cloud.videointelligence.v1beta2.Likelihood pornography_likelihood = 2; + * + * @param value The pornographyLikelihood to set. + * @return This builder for chaining. */ public Builder setPornographyLikelihood( com.google.cloud.videointelligence.v1beta2.Likelihood value) { @@ -808,6 +835,8 @@ public Builder setPornographyLikelihood( * * * .google.cloud.videointelligence.v1beta2.Likelihood pornography_likelihood = 2; + * + * @return This builder for chaining. */ public Builder clearPornographyLikelihood() { diff --git a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/ExplicitContentFrameOrBuilder.java b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/ExplicitContentFrameOrBuilder.java index 931b1675a..24f182f83 100644 --- a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/ExplicitContentFrameOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/ExplicitContentFrameOrBuilder.java @@ -32,6 +32,8 @@ public interface ExplicitContentFrameOrBuilder * * * .google.protobuf.Duration time_offset = 1; + * + * @return Whether the timeOffset field is set. */ boolean hasTimeOffset(); /** @@ -43,6 +45,8 @@ public interface ExplicitContentFrameOrBuilder * * * .google.protobuf.Duration time_offset = 1; + * + * @return The timeOffset. */ com.google.protobuf.Duration getTimeOffset(); /** @@ -65,6 +69,8 @@ public interface ExplicitContentFrameOrBuilder * * * .google.cloud.videointelligence.v1beta2.Likelihood pornography_likelihood = 2; + * + * @return The enum numeric value on the wire for pornographyLikelihood. */ int getPornographyLikelihoodValue(); /** @@ -75,6 +81,8 @@ public interface ExplicitContentFrameOrBuilder * * * .google.cloud.videointelligence.v1beta2.Likelihood pornography_likelihood = 2; + * + * @return The pornographyLikelihood. */ com.google.cloud.videointelligence.v1beta2.Likelihood getPornographyLikelihood(); } diff --git a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/FaceAnnotation.java b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/FaceAnnotation.java index e9e7cf040..daf505de7 100644 --- a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/FaceAnnotation.java +++ b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/FaceAnnotation.java @@ -43,6 +43,12 @@ private FaceAnnotation() { frames_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FaceAnnotation(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -74,11 +80,11 @@ private FaceAnnotation( } case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { segments_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1beta2.FaceSegment>(); - mutable_bitField0_ |= 0x00000002; + mutable_bitField0_ |= 0x00000001; } segments_.add( input.readMessage( @@ -88,10 +94,10 @@ private FaceAnnotation( } case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { frames_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000002; } frames_.add( input.readMessage( @@ -113,10 +119,10 @@ private FaceAnnotation( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { segments_ = java.util.Collections.unmodifiableList(segments_); } - if (((mutable_bitField0_ & 0x00000004) != 0)) { + if (((mutable_bitField0_ & 0x00000002) != 0)) { frames_ = java.util.Collections.unmodifiableList(frames_); } this.unknownFields = unknownFields.build(); @@ -139,7 +145,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.videointelligence.v1beta2.FaceAnnotation.Builder.class); } - private int bitField0_; public static final int THUMBNAIL_FIELD_NUMBER = 1; private com.google.protobuf.ByteString thumbnail_; /** @@ -150,6 +155,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * bytes thumbnail = 1; + * + * @return The thumbnail. */ public com.google.protobuf.ByteString getThumbnail() { return thumbnail_; @@ -519,13 +526,13 @@ public Builder clear() { if (segmentsBuilder_ == null) { segments_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } else { segmentsBuilder_.clear(); } if (framesBuilder_ == null) { frames_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); } else { framesBuilder_.clear(); } @@ -557,27 +564,25 @@ public com.google.cloud.videointelligence.v1beta2.FaceAnnotation buildPartial() com.google.cloud.videointelligence.v1beta2.FaceAnnotation result = new com.google.cloud.videointelligence.v1beta2.FaceAnnotation(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.thumbnail_ = thumbnail_; if (segmentsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { segments_ = java.util.Collections.unmodifiableList(segments_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } result.segments_ = segments_; } else { result.segments_ = segmentsBuilder_.build(); } if (framesBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { frames_ = java.util.Collections.unmodifiableList(frames_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); } result.frames_ = frames_; } else { result.frames_ = framesBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -635,7 +640,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1beta2.FaceAnnotati if (!other.segments_.isEmpty()) { if (segments_.isEmpty()) { segments_ = other.segments_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSegmentsIsMutable(); segments_.addAll(other.segments_); @@ -648,7 +653,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1beta2.FaceAnnotati segmentsBuilder_.dispose(); segmentsBuilder_ = null; segments_ = other.segments_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); segmentsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSegmentsFieldBuilder() @@ -662,7 +667,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1beta2.FaceAnnotati if (!other.frames_.isEmpty()) { if (frames_.isEmpty()) { frames_ = other.frames_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureFramesIsMutable(); frames_.addAll(other.frames_); @@ -675,7 +680,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1beta2.FaceAnnotati framesBuilder_.dispose(); framesBuilder_ = null; frames_ = other.frames_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); framesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFramesFieldBuilder() @@ -726,6 +731,8 @@ public Builder mergeFrom( * * * bytes thumbnail = 1; + * + * @return The thumbnail. */ public com.google.protobuf.ByteString getThumbnail() { return thumbnail_; @@ -738,6 +745,9 @@ public com.google.protobuf.ByteString getThumbnail() { * * * bytes thumbnail = 1; + * + * @param value The thumbnail to set. + * @return This builder for chaining. */ public Builder setThumbnail(com.google.protobuf.ByteString value) { if (value == null) { @@ -756,6 +766,8 @@ public Builder setThumbnail(com.google.protobuf.ByteString value) { * * * bytes thumbnail = 1; + * + * @return This builder for chaining. */ public Builder clearThumbnail() { @@ -768,11 +780,11 @@ public Builder clearThumbnail() { java.util.Collections.emptyList(); private void ensureSegmentsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { segments_ = new java.util.ArrayList( segments_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } @@ -992,7 +1004,7 @@ public Builder addAllSegments( public Builder clearSegments() { if (segmentsBuilder_ == null) { segments_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { segmentsBuilder_.clear(); @@ -1118,7 +1130,7 @@ public com.google.cloud.videointelligence.v1beta2.FaceSegment.Builder addSegment com.google.cloud.videointelligence.v1beta2.FaceSegment, com.google.cloud.videointelligence.v1beta2.FaceSegment.Builder, com.google.cloud.videointelligence.v1beta2.FaceSegmentOrBuilder>( - segments_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + segments_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); segments_ = null; } return segmentsBuilder_; @@ -1128,10 +1140,10 @@ public com.google.cloud.videointelligence.v1beta2.FaceSegment.Builder addSegment java.util.Collections.emptyList(); private void ensureFramesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { frames_ = new java.util.ArrayList(frames_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; } } @@ -1349,7 +1361,7 @@ public Builder addAllFrames( public Builder clearFrames() { if (framesBuilder_ == null) { frames_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { framesBuilder_.clear(); @@ -1475,7 +1487,7 @@ public com.google.cloud.videointelligence.v1beta2.FaceFrame.Builder addFramesBui com.google.cloud.videointelligence.v1beta2.FaceFrame, com.google.cloud.videointelligence.v1beta2.FaceFrame.Builder, com.google.cloud.videointelligence.v1beta2.FaceFrameOrBuilder>( - frames_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + frames_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); frames_ = null; } return framesBuilder_; diff --git a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/FaceAnnotationOrBuilder.java b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/FaceAnnotationOrBuilder.java index 1868dc637..2f4817ad6 100644 --- a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/FaceAnnotationOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/FaceAnnotationOrBuilder.java @@ -31,6 +31,8 @@ public interface FaceAnnotationOrBuilder * * * bytes thumbnail = 1; + * + * @return The thumbnail. */ com.google.protobuf.ByteString getThumbnail(); diff --git a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/FaceDetectionConfig.java b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/FaceDetectionConfig.java index 703c6dfb1..7ab5e23b9 100644 --- a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/FaceDetectionConfig.java +++ b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/FaceDetectionConfig.java @@ -41,6 +41,12 @@ private FaceDetectionConfig() { model_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FaceDetectionConfig(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private FaceDetectionConfig( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -123,6 +128,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string model = 1; + * + * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; @@ -145,6 +152,8 @@ public java.lang.String getModel() { * * * string model = 1; + * + * @return The bytes for model. */ public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; @@ -168,6 +177,8 @@ public com.google.protobuf.ByteString getModelBytes() { * * * bool include_bounding_boxes = 2; + * + * @return The includeBoundingBoxes. */ public boolean getIncludeBoundingBoxes() { return includeBoundingBoxes_; @@ -521,6 +532,8 @@ public Builder mergeFrom( * * * string model = 1; + * + * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; @@ -543,6 +556,8 @@ public java.lang.String getModel() { * * * string model = 1; + * + * @return The bytes for model. */ public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; @@ -565,6 +580,9 @@ public com.google.protobuf.ByteString getModelBytes() { * * * string model = 1; + * + * @param value The model to set. + * @return This builder for chaining. */ public Builder setModel(java.lang.String value) { if (value == null) { @@ -585,6 +603,8 @@ public Builder setModel(java.lang.String value) { * * * string model = 1; + * + * @return This builder for chaining. */ public Builder clearModel() { @@ -602,6 +622,9 @@ public Builder clearModel() { * * * string model = 1; + * + * @param value The bytes for model to set. + * @return This builder for chaining. */ public Builder setModelBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -623,6 +646,8 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { * * * bool include_bounding_boxes = 2; + * + * @return The includeBoundingBoxes. */ public boolean getIncludeBoundingBoxes() { return includeBoundingBoxes_; @@ -635,6 +660,9 @@ public boolean getIncludeBoundingBoxes() { * * * bool include_bounding_boxes = 2; + * + * @param value The includeBoundingBoxes to set. + * @return This builder for chaining. */ public Builder setIncludeBoundingBoxes(boolean value) { @@ -650,6 +678,8 @@ public Builder setIncludeBoundingBoxes(boolean value) { * * * bool include_bounding_boxes = 2; + * + * @return This builder for chaining. */ public Builder clearIncludeBoundingBoxes() { diff --git a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/FaceDetectionConfigOrBuilder.java b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/FaceDetectionConfigOrBuilder.java index 7cbe1f2a0..dcca5a294 100644 --- a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/FaceDetectionConfigOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/FaceDetectionConfigOrBuilder.java @@ -33,6 +33,8 @@ public interface FaceDetectionConfigOrBuilder * * * string model = 1; + * + * @return The model. */ java.lang.String getModel(); /** @@ -45,6 +47,8 @@ public interface FaceDetectionConfigOrBuilder * * * string model = 1; + * + * @return The bytes for model. */ com.google.protobuf.ByteString getModelBytes(); @@ -56,6 +60,8 @@ public interface FaceDetectionConfigOrBuilder * * * bool include_bounding_boxes = 2; + * + * @return The includeBoundingBoxes. */ boolean getIncludeBoundingBoxes(); } diff --git a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/FaceFrame.java b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/FaceFrame.java index 18faade05..13ea4c3f0 100644 --- a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/FaceFrame.java +++ b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/FaceFrame.java @@ -41,6 +41,12 @@ private FaceFrame() { normalizedBoundingBoxes_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FaceFrame(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -131,7 +137,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.videointelligence.v1beta2.FaceFrame.Builder.class); } - private int bitField0_; public static final int NORMALIZED_BOUNDING_BOXES_FIELD_NUMBER = 1; private java.util.List normalizedBoundingBoxes_; @@ -232,6 +237,8 @@ public int getNormalizedBoundingBoxesCount() { * * * .google.protobuf.Duration time_offset = 2; + * + * @return Whether the timeOffset field is set. */ public boolean hasTimeOffset() { return timeOffset_ != null; @@ -245,6 +252,8 @@ public boolean hasTimeOffset() { * * * .google.protobuf.Duration time_offset = 2; + * + * @return The timeOffset. */ public com.google.protobuf.Duration getTimeOffset() { return timeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeOffset_; @@ -528,7 +537,6 @@ public com.google.cloud.videointelligence.v1beta2.FaceFrame buildPartial() { com.google.cloud.videointelligence.v1beta2.FaceFrame result = new com.google.cloud.videointelligence.v1beta2.FaceFrame(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (normalizedBoundingBoxesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { normalizedBoundingBoxes_ = @@ -544,7 +552,6 @@ public com.google.cloud.videointelligence.v1beta2.FaceFrame buildPartial() { } else { result.timeOffset_ = timeOffsetBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -1119,6 +1126,8 @@ public Builder removeNormalizedBoundingBoxes(int index) { * * * .google.protobuf.Duration time_offset = 2; + * + * @return Whether the timeOffset field is set. */ public boolean hasTimeOffset() { return timeOffsetBuilder_ != null || timeOffset_ != null; @@ -1132,6 +1141,8 @@ public boolean hasTimeOffset() { * * * .google.protobuf.Duration time_offset = 2; + * + * @return The timeOffset. */ public com.google.protobuf.Duration getTimeOffset() { if (timeOffsetBuilder_ == null) { diff --git a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/FaceFrameOrBuilder.java b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/FaceFrameOrBuilder.java index b76c5d007..5058d6c9f 100644 --- a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/FaceFrameOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/FaceFrameOrBuilder.java @@ -108,6 +108,8 @@ com.google.cloud.videointelligence.v1beta2.NormalizedBoundingBox getNormalizedBo * * * .google.protobuf.Duration time_offset = 2; + * + * @return Whether the timeOffset field is set. */ boolean hasTimeOffset(); /** @@ -119,6 +121,8 @@ com.google.cloud.videointelligence.v1beta2.NormalizedBoundingBox getNormalizedBo * * * .google.protobuf.Duration time_offset = 2; + * + * @return The timeOffset. */ com.google.protobuf.Duration getTimeOffset(); /** diff --git a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/FaceSegment.java b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/FaceSegment.java index f06eb117e..7d7856572 100644 --- a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/FaceSegment.java +++ b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/FaceSegment.java @@ -39,6 +39,12 @@ private FaceSegment(com.google.protobuf.GeneratedMessageV3.Builder builder) { private FaceSegment() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FaceSegment(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -52,7 +58,6 @@ private FaceSegment( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -124,6 +129,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.cloud.videointelligence.v1beta2.VideoSegment segment = 1; + * + * @return Whether the segment field is set. */ public boolean hasSegment() { return segment_ != null; @@ -136,6 +143,8 @@ public boolean hasSegment() { * * * .google.cloud.videointelligence.v1beta2.VideoSegment segment = 1; + * + * @return The segment. */ public com.google.cloud.videointelligence.v1beta2.VideoSegment getSegment() { return segment_ == null @@ -500,6 +509,8 @@ public Builder mergeFrom( * * * .google.cloud.videointelligence.v1beta2.VideoSegment segment = 1; + * + * @return Whether the segment field is set. */ public boolean hasSegment() { return segmentBuilder_ != null || segment_ != null; @@ -512,6 +523,8 @@ public boolean hasSegment() { * * * .google.cloud.videointelligence.v1beta2.VideoSegment segment = 1; + * + * @return The segment. */ public com.google.cloud.videointelligence.v1beta2.VideoSegment getSegment() { if (segmentBuilder_ == null) { diff --git a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/FaceSegmentOrBuilder.java b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/FaceSegmentOrBuilder.java index d554f1601..9dc94ac67 100644 --- a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/FaceSegmentOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/FaceSegmentOrBuilder.java @@ -31,6 +31,8 @@ public interface FaceSegmentOrBuilder * * * .google.cloud.videointelligence.v1beta2.VideoSegment segment = 1; + * + * @return Whether the segment field is set. */ boolean hasSegment(); /** @@ -41,6 +43,8 @@ public interface FaceSegmentOrBuilder * * * .google.cloud.videointelligence.v1beta2.VideoSegment segment = 1; + * + * @return The segment. */ com.google.cloud.videointelligence.v1beta2.VideoSegment getSegment(); /** diff --git a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/Feature.java b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/Feature.java index 762f411a3..e4d27055b 100644 --- a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/Feature.java +++ b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/Feature.java @@ -140,12 +140,20 @@ public final int getNumber() { return value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ @java.lang.Deprecated public static Feature valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Feature forNumber(int value) { switch (value) { case 0: diff --git a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/LabelAnnotation.java b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/LabelAnnotation.java index 3b430b638..63fdc202b 100644 --- a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/LabelAnnotation.java +++ b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/LabelAnnotation.java @@ -43,6 +43,12 @@ private LabelAnnotation() { frames_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LabelAnnotation(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -86,10 +92,10 @@ private LabelAnnotation( } case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { categoryEntities_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + mutable_bitField0_ |= 0x00000001; } categoryEntities_.add( input.readMessage( @@ -99,11 +105,11 @@ private LabelAnnotation( } case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { segments_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1beta2.LabelSegment>(); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000002; } segments_.add( input.readMessage( @@ -113,11 +119,11 @@ private LabelAnnotation( } case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { frames_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1beta2.LabelFrame>(); - mutable_bitField0_ |= 0x00000008; + mutable_bitField0_ |= 0x00000004; } frames_.add( input.readMessage( @@ -139,13 +145,13 @@ private LabelAnnotation( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { categoryEntities_ = java.util.Collections.unmodifiableList(categoryEntities_); } - if (((mutable_bitField0_ & 0x00000004) != 0)) { + if (((mutable_bitField0_ & 0x00000002) != 0)) { segments_ = java.util.Collections.unmodifiableList(segments_); } - if (((mutable_bitField0_ & 0x00000008) != 0)) { + if (((mutable_bitField0_ & 0x00000004) != 0)) { frames_ = java.util.Collections.unmodifiableList(frames_); } this.unknownFields = unknownFields.build(); @@ -168,7 +174,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.videointelligence.v1beta2.LabelAnnotation.Builder.class); } - private int bitField0_; public static final int ENTITY_FIELD_NUMBER = 1; private com.google.cloud.videointelligence.v1beta2.Entity entity_; /** @@ -179,6 +184,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.cloud.videointelligence.v1beta2.Entity entity = 1; + * + * @return Whether the entity field is set. */ public boolean hasEntity() { return entity_ != null; @@ -191,6 +198,8 @@ public boolean hasEntity() { * * * .google.cloud.videointelligence.v1beta2.Entity entity = 1; + * + * @return The entity. */ public com.google.cloud.videointelligence.v1beta2.Entity getEntity() { return entity_ == null @@ -676,19 +685,19 @@ public Builder clear() { } if (categoryEntitiesBuilder_ == null) { categoryEntities_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } else { categoryEntitiesBuilder_.clear(); } if (segmentsBuilder_ == null) { segments_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); } else { segmentsBuilder_.clear(); } if (framesBuilder_ == null) { frames_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); } else { framesBuilder_.clear(); } @@ -720,40 +729,38 @@ public com.google.cloud.videointelligence.v1beta2.LabelAnnotation buildPartial() com.google.cloud.videointelligence.v1beta2.LabelAnnotation result = new com.google.cloud.videointelligence.v1beta2.LabelAnnotation(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (entityBuilder_ == null) { result.entity_ = entity_; } else { result.entity_ = entityBuilder_.build(); } if (categoryEntitiesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { categoryEntities_ = java.util.Collections.unmodifiableList(categoryEntities_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } result.categoryEntities_ = categoryEntities_; } else { result.categoryEntities_ = categoryEntitiesBuilder_.build(); } if (segmentsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { segments_ = java.util.Collections.unmodifiableList(segments_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); } result.segments_ = segments_; } else { result.segments_ = segmentsBuilder_.build(); } if (framesBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { frames_ = java.util.Collections.unmodifiableList(frames_); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); } result.frames_ = frames_; } else { result.frames_ = framesBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -811,7 +818,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1beta2.LabelAnnotat if (!other.categoryEntities_.isEmpty()) { if (categoryEntities_.isEmpty()) { categoryEntities_ = other.categoryEntities_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureCategoryEntitiesIsMutable(); categoryEntities_.addAll(other.categoryEntities_); @@ -824,7 +831,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1beta2.LabelAnnotat categoryEntitiesBuilder_.dispose(); categoryEntitiesBuilder_ = null; categoryEntities_ = other.categoryEntities_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); categoryEntitiesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCategoryEntitiesFieldBuilder() @@ -838,7 +845,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1beta2.LabelAnnotat if (!other.segments_.isEmpty()) { if (segments_.isEmpty()) { segments_ = other.segments_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureSegmentsIsMutable(); segments_.addAll(other.segments_); @@ -851,7 +858,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1beta2.LabelAnnotat segmentsBuilder_.dispose(); segmentsBuilder_ = null; segments_ = other.segments_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); segmentsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSegmentsFieldBuilder() @@ -865,7 +872,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1beta2.LabelAnnotat if (!other.frames_.isEmpty()) { if (frames_.isEmpty()) { frames_ = other.frames_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureFramesIsMutable(); frames_.addAll(other.frames_); @@ -878,7 +885,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1beta2.LabelAnnotat framesBuilder_.dispose(); framesBuilder_ = null; frames_ = other.frames_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); framesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFramesFieldBuilder() @@ -934,6 +941,8 @@ public Builder mergeFrom( * * * .google.cloud.videointelligence.v1beta2.Entity entity = 1; + * + * @return Whether the entity field is set. */ public boolean hasEntity() { return entityBuilder_ != null || entity_ != null; @@ -946,6 +955,8 @@ public boolean hasEntity() { * * * .google.cloud.videointelligence.v1beta2.Entity entity = 1; + * + * @return The entity. */ public com.google.cloud.videointelligence.v1beta2.Entity getEntity() { if (entityBuilder_ == null) { @@ -1106,11 +1117,11 @@ public com.google.cloud.videointelligence.v1beta2.EntityOrBuilder getEntityOrBui java.util.Collections.emptyList(); private void ensureCategoryEntitiesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { categoryEntities_ = new java.util.ArrayList( categoryEntities_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } @@ -1362,7 +1373,7 @@ public Builder addAllCategoryEntities( public Builder clearCategoryEntities() { if (categoryEntitiesBuilder_ == null) { categoryEntities_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { categoryEntitiesBuilder_.clear(); @@ -1510,7 +1521,7 @@ public com.google.cloud.videointelligence.v1beta2.Entity.Builder addCategoryEnti com.google.cloud.videointelligence.v1beta2.Entity.Builder, com.google.cloud.videointelligence.v1beta2.EntityOrBuilder>( categoryEntities_, - ((bitField0_ & 0x00000002) != 0), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); categoryEntities_ = null; @@ -1522,11 +1533,11 @@ public com.google.cloud.videointelligence.v1beta2.Entity.Builder addCategoryEnti java.util.Collections.emptyList(); private void ensureSegmentsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { segments_ = new java.util.ArrayList( segments_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; } } @@ -1748,7 +1759,7 @@ public Builder addAllSegments( public Builder clearSegments() { if (segmentsBuilder_ == null) { segments_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { segmentsBuilder_.clear(); @@ -1875,7 +1886,7 @@ public com.google.cloud.videointelligence.v1beta2.LabelSegment.Builder addSegmen com.google.cloud.videointelligence.v1beta2.LabelSegment, com.google.cloud.videointelligence.v1beta2.LabelSegment.Builder, com.google.cloud.videointelligence.v1beta2.LabelSegmentOrBuilder>( - segments_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + segments_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); segments_ = null; } return segmentsBuilder_; @@ -1885,10 +1896,10 @@ public com.google.cloud.videointelligence.v1beta2.LabelSegment.Builder addSegmen java.util.Collections.emptyList(); private void ensureFramesIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { frames_ = new java.util.ArrayList(frames_); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; } } @@ -2107,7 +2118,7 @@ public Builder addAllFrames( public Builder clearFrames() { if (framesBuilder_ == null) { frames_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { framesBuilder_.clear(); @@ -2233,7 +2244,7 @@ public com.google.cloud.videointelligence.v1beta2.LabelFrame.Builder addFramesBu com.google.cloud.videointelligence.v1beta2.LabelFrame, com.google.cloud.videointelligence.v1beta2.LabelFrame.Builder, com.google.cloud.videointelligence.v1beta2.LabelFrameOrBuilder>( - frames_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + frames_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); frames_ = null; } return framesBuilder_; diff --git a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/LabelAnnotationOrBuilder.java b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/LabelAnnotationOrBuilder.java index b19d5f727..ff00d1cd0 100644 --- a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/LabelAnnotationOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/LabelAnnotationOrBuilder.java @@ -31,6 +31,8 @@ public interface LabelAnnotationOrBuilder * * * .google.cloud.videointelligence.v1beta2.Entity entity = 1; + * + * @return Whether the entity field is set. */ boolean hasEntity(); /** @@ -41,6 +43,8 @@ public interface LabelAnnotationOrBuilder * * * .google.cloud.videointelligence.v1beta2.Entity entity = 1; + * + * @return The entity. */ com.google.cloud.videointelligence.v1beta2.Entity getEntity(); /** diff --git a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/LabelDetectionConfig.java b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/LabelDetectionConfig.java index 62549233a..155f56c4c 100644 --- a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/LabelDetectionConfig.java +++ b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/LabelDetectionConfig.java @@ -42,6 +42,12 @@ private LabelDetectionConfig() { model_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LabelDetectionConfig(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -55,7 +61,6 @@ private LabelDetectionConfig( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -132,6 +137,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * .google.cloud.videointelligence.v1beta2.LabelDetectionMode label_detection_mode = 1; * + * + * @return The enum numeric value on the wire for labelDetectionMode. */ public int getLabelDetectionModeValue() { return labelDetectionMode_; @@ -147,6 +154,8 @@ public int getLabelDetectionModeValue() { * * .google.cloud.videointelligence.v1beta2.LabelDetectionMode label_detection_mode = 1; * + * + * @return The labelDetectionMode. */ public com.google.cloud.videointelligence.v1beta2.LabelDetectionMode getLabelDetectionMode() { @SuppressWarnings("deprecation") @@ -169,6 +178,8 @@ public com.google.cloud.videointelligence.v1beta2.LabelDetectionMode getLabelDet * * * bool stationary_camera = 2; + * + * @return The stationaryCamera. */ public boolean getStationaryCamera() { return stationaryCamera_; @@ -186,6 +197,8 @@ public boolean getStationaryCamera() { * * * string model = 3; + * + * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; @@ -208,6 +221,8 @@ public java.lang.String getModel() { * * * string model = 3; + * + * @return The bytes for model. */ public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; @@ -592,6 +607,8 @@ public Builder mergeFrom( * * .google.cloud.videointelligence.v1beta2.LabelDetectionMode label_detection_mode = 1; * + * + * @return The enum numeric value on the wire for labelDetectionMode. */ public int getLabelDetectionModeValue() { return labelDetectionMode_; @@ -607,6 +624,9 @@ public int getLabelDetectionModeValue() { * * .google.cloud.videointelligence.v1beta2.LabelDetectionMode label_detection_mode = 1; * + * + * @param value The enum numeric value on the wire for labelDetectionMode to set. + * @return This builder for chaining. */ public Builder setLabelDetectionModeValue(int value) { labelDetectionMode_ = value; @@ -624,6 +644,8 @@ public Builder setLabelDetectionModeValue(int value) { * * .google.cloud.videointelligence.v1beta2.LabelDetectionMode label_detection_mode = 1; * + * + * @return The labelDetectionMode. */ public com.google.cloud.videointelligence.v1beta2.LabelDetectionMode getLabelDetectionMode() { @SuppressWarnings("deprecation") @@ -645,6 +667,9 @@ public com.google.cloud.videointelligence.v1beta2.LabelDetectionMode getLabelDet * * .google.cloud.videointelligence.v1beta2.LabelDetectionMode label_detection_mode = 1; * + * + * @param value The labelDetectionMode to set. + * @return This builder for chaining. */ public Builder setLabelDetectionMode( com.google.cloud.videointelligence.v1beta2.LabelDetectionMode value) { @@ -667,6 +692,8 @@ public Builder setLabelDetectionMode( * * .google.cloud.videointelligence.v1beta2.LabelDetectionMode label_detection_mode = 1; * + * + * @return This builder for chaining. */ public Builder clearLabelDetectionMode() { @@ -686,6 +713,8 @@ public Builder clearLabelDetectionMode() { * * * bool stationary_camera = 2; + * + * @return The stationaryCamera. */ public boolean getStationaryCamera() { return stationaryCamera_; @@ -700,6 +729,9 @@ public boolean getStationaryCamera() { * * * bool stationary_camera = 2; + * + * @param value The stationaryCamera to set. + * @return This builder for chaining. */ public Builder setStationaryCamera(boolean value) { @@ -717,6 +749,8 @@ public Builder setStationaryCamera(boolean value) { * * * bool stationary_camera = 2; + * + * @return This builder for chaining. */ public Builder clearStationaryCamera() { @@ -736,6 +770,8 @@ public Builder clearStationaryCamera() { * * * string model = 3; + * + * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; @@ -758,6 +794,8 @@ public java.lang.String getModel() { * * * string model = 3; + * + * @return The bytes for model. */ public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; @@ -780,6 +818,9 @@ public com.google.protobuf.ByteString getModelBytes() { * * * string model = 3; + * + * @param value The model to set. + * @return This builder for chaining. */ public Builder setModel(java.lang.String value) { if (value == null) { @@ -800,6 +841,8 @@ public Builder setModel(java.lang.String value) { * * * string model = 3; + * + * @return This builder for chaining. */ public Builder clearModel() { @@ -817,6 +860,9 @@ public Builder clearModel() { * * * string model = 3; + * + * @param value The bytes for model to set. + * @return This builder for chaining. */ public Builder setModelBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/LabelDetectionConfigOrBuilder.java b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/LabelDetectionConfigOrBuilder.java index 6b54e8d49..82f0aaef6 100644 --- a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/LabelDetectionConfigOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/LabelDetectionConfigOrBuilder.java @@ -34,6 +34,8 @@ public interface LabelDetectionConfigOrBuilder * * .google.cloud.videointelligence.v1beta2.LabelDetectionMode label_detection_mode = 1; * + * + * @return The enum numeric value on the wire for labelDetectionMode. */ int getLabelDetectionModeValue(); /** @@ -47,6 +49,8 @@ public interface LabelDetectionConfigOrBuilder * * .google.cloud.videointelligence.v1beta2.LabelDetectionMode label_detection_mode = 1; * + * + * @return The labelDetectionMode. */ com.google.cloud.videointelligence.v1beta2.LabelDetectionMode getLabelDetectionMode(); @@ -60,6 +64,8 @@ public interface LabelDetectionConfigOrBuilder * * * bool stationary_camera = 2; + * + * @return The stationaryCamera. */ boolean getStationaryCamera(); @@ -73,6 +79,8 @@ public interface LabelDetectionConfigOrBuilder * * * string model = 3; + * + * @return The model. */ java.lang.String getModel(); /** @@ -85,6 +93,8 @@ public interface LabelDetectionConfigOrBuilder * * * string model = 3; + * + * @return The bytes for model. */ com.google.protobuf.ByteString getModelBytes(); } diff --git a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/LabelDetectionMode.java b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/LabelDetectionMode.java index aa56ed3ea..136c9e9a1 100644 --- a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/LabelDetectionMode.java +++ b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/LabelDetectionMode.java @@ -120,12 +120,20 @@ public final int getNumber() { return value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ @java.lang.Deprecated public static LabelDetectionMode valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static LabelDetectionMode forNumber(int value) { switch (value) { case 0: diff --git a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/LabelFrame.java b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/LabelFrame.java index ab9c4b8c1..b1a2f5b67 100644 --- a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/LabelFrame.java +++ b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/LabelFrame.java @@ -39,6 +39,12 @@ private LabelFrame(com.google.protobuf.GeneratedMessageV3.Builder builder) { private LabelFrame() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LabelFrame(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -52,7 +58,6 @@ private LabelFrame( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -128,6 +133,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.protobuf.Duration time_offset = 1; + * + * @return Whether the timeOffset field is set. */ public boolean hasTimeOffset() { return timeOffset_ != null; @@ -141,6 +148,8 @@ public boolean hasTimeOffset() { * * * .google.protobuf.Duration time_offset = 1; + * + * @return The timeOffset. */ public com.google.protobuf.Duration getTimeOffset() { return timeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeOffset_; @@ -169,6 +178,8 @@ public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() { * * * float confidence = 2; + * + * @return The confidence. */ public float getConfidence() { return confidence_; @@ -536,6 +547,8 @@ public Builder mergeFrom( * * * .google.protobuf.Duration time_offset = 1; + * + * @return Whether the timeOffset field is set. */ public boolean hasTimeOffset() { return timeOffsetBuilder_ != null || timeOffset_ != null; @@ -549,6 +562,8 @@ public boolean hasTimeOffset() { * * * .google.protobuf.Duration time_offset = 1; + * + * @return The timeOffset. */ public com.google.protobuf.Duration getTimeOffset() { if (timeOffsetBuilder_ == null) { @@ -718,6 +733,8 @@ public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() { * * * float confidence = 2; + * + * @return The confidence. */ public float getConfidence() { return confidence_; @@ -730,6 +747,9 @@ public float getConfidence() { * * * float confidence = 2; + * + * @param value The confidence to set. + * @return This builder for chaining. */ public Builder setConfidence(float value) { @@ -745,6 +765,8 @@ public Builder setConfidence(float value) { * * * float confidence = 2; + * + * @return This builder for chaining. */ public Builder clearConfidence() { diff --git a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/LabelFrameOrBuilder.java b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/LabelFrameOrBuilder.java index 97f7a9f70..cd6555587 100644 --- a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/LabelFrameOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/LabelFrameOrBuilder.java @@ -32,6 +32,8 @@ public interface LabelFrameOrBuilder * * * .google.protobuf.Duration time_offset = 1; + * + * @return Whether the timeOffset field is set. */ boolean hasTimeOffset(); /** @@ -43,6 +45,8 @@ public interface LabelFrameOrBuilder * * * .google.protobuf.Duration time_offset = 1; + * + * @return The timeOffset. */ com.google.protobuf.Duration getTimeOffset(); /** @@ -65,6 +69,8 @@ public interface LabelFrameOrBuilder * * * float confidence = 2; + * + * @return The confidence. */ float getConfidence(); } diff --git a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/LabelSegment.java b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/LabelSegment.java index 0f05ebd4d..765d5588d 100644 --- a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/LabelSegment.java +++ b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/LabelSegment.java @@ -39,6 +39,12 @@ private LabelSegment(com.google.protobuf.GeneratedMessageV3.Builder builder) private LabelSegment() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LabelSegment(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -52,7 +58,6 @@ private LabelSegment( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -129,6 +134,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.cloud.videointelligence.v1beta2.VideoSegment segment = 1; + * + * @return Whether the segment field is set. */ public boolean hasSegment() { return segment_ != null; @@ -141,6 +148,8 @@ public boolean hasSegment() { * * * .google.cloud.videointelligence.v1beta2.VideoSegment segment = 1; + * + * @return The segment. */ public com.google.cloud.videointelligence.v1beta2.VideoSegment getSegment() { return segment_ == null @@ -170,6 +179,8 @@ public com.google.cloud.videointelligence.v1beta2.VideoSegmentOrBuilder getSegme * * * float confidence = 2; + * + * @return The confidence. */ public float getConfidence() { return confidence_; @@ -536,6 +547,8 @@ public Builder mergeFrom( * * * .google.cloud.videointelligence.v1beta2.VideoSegment segment = 1; + * + * @return Whether the segment field is set. */ public boolean hasSegment() { return segmentBuilder_ != null || segment_ != null; @@ -548,6 +561,8 @@ public boolean hasSegment() { * * * .google.cloud.videointelligence.v1beta2.VideoSegment segment = 1; + * + * @return The segment. */ public com.google.cloud.videointelligence.v1beta2.VideoSegment getSegment() { if (segmentBuilder_ == null) { @@ -713,6 +728,8 @@ public com.google.cloud.videointelligence.v1beta2.VideoSegmentOrBuilder getSegme * * * float confidence = 2; + * + * @return The confidence. */ public float getConfidence() { return confidence_; @@ -725,6 +742,9 @@ public float getConfidence() { * * * float confidence = 2; + * + * @param value The confidence to set. + * @return This builder for chaining. */ public Builder setConfidence(float value) { @@ -740,6 +760,8 @@ public Builder setConfidence(float value) { * * * float confidence = 2; + * + * @return This builder for chaining. */ public Builder clearConfidence() { diff --git a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/LabelSegmentOrBuilder.java b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/LabelSegmentOrBuilder.java index db8282e59..83f8e7308 100644 --- a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/LabelSegmentOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/LabelSegmentOrBuilder.java @@ -31,6 +31,8 @@ public interface LabelSegmentOrBuilder * * * .google.cloud.videointelligence.v1beta2.VideoSegment segment = 1; + * + * @return Whether the segment field is set. */ boolean hasSegment(); /** @@ -41,6 +43,8 @@ public interface LabelSegmentOrBuilder * * * .google.cloud.videointelligence.v1beta2.VideoSegment segment = 1; + * + * @return The segment. */ com.google.cloud.videointelligence.v1beta2.VideoSegment getSegment(); /** @@ -62,6 +66,8 @@ public interface LabelSegmentOrBuilder * * * float confidence = 2; + * + * @return The confidence. */ float getConfidence(); } diff --git a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/Likelihood.java b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/Likelihood.java index 5e1437325..c9d5f250a 100644 --- a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/Likelihood.java +++ b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/Likelihood.java @@ -160,12 +160,20 @@ public final int getNumber() { return value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ @java.lang.Deprecated public static Likelihood valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Likelihood forNumber(int value) { switch (value) { case 0: diff --git a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/NormalizedBoundingBox.java b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/NormalizedBoundingBox.java index fa0b7ce04..88d0984f3 100644 --- a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/NormalizedBoundingBox.java +++ b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/NormalizedBoundingBox.java @@ -41,6 +41,12 @@ private NormalizedBoundingBox(com.google.protobuf.GeneratedMessageV3.Builder private NormalizedBoundingBox() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NormalizedBoundingBox(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private NormalizedBoundingBox( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -129,6 +134,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * float left = 1; + * + * @return The left. */ public float getLeft() { return left_; @@ -144,6 +151,8 @@ public float getLeft() { * * * float top = 2; + * + * @return The top. */ public float getTop() { return top_; @@ -159,6 +168,8 @@ public float getTop() { * * * float right = 3; + * + * @return The right. */ public float getRight() { return right_; @@ -174,6 +185,8 @@ public float getRight() { * * * float bottom = 4; + * + * @return The bottom. */ public float getBottom() { return bottom_; @@ -561,6 +574,8 @@ public Builder mergeFrom( * * * float left = 1; + * + * @return The left. */ public float getLeft() { return left_; @@ -573,6 +588,9 @@ public float getLeft() { * * * float left = 1; + * + * @param value The left to set. + * @return This builder for chaining. */ public Builder setLeft(float value) { @@ -588,6 +606,8 @@ public Builder setLeft(float value) { * * * float left = 1; + * + * @return This builder for chaining. */ public Builder clearLeft() { @@ -605,6 +625,8 @@ public Builder clearLeft() { * * * float top = 2; + * + * @return The top. */ public float getTop() { return top_; @@ -617,6 +639,9 @@ public float getTop() { * * * float top = 2; + * + * @param value The top to set. + * @return This builder for chaining. */ public Builder setTop(float value) { @@ -632,6 +657,8 @@ public Builder setTop(float value) { * * * float top = 2; + * + * @return This builder for chaining. */ public Builder clearTop() { @@ -649,6 +676,8 @@ public Builder clearTop() { * * * float right = 3; + * + * @return The right. */ public float getRight() { return right_; @@ -661,6 +690,9 @@ public float getRight() { * * * float right = 3; + * + * @param value The right to set. + * @return This builder for chaining. */ public Builder setRight(float value) { @@ -676,6 +708,8 @@ public Builder setRight(float value) { * * * float right = 3; + * + * @return This builder for chaining. */ public Builder clearRight() { @@ -693,6 +727,8 @@ public Builder clearRight() { * * * float bottom = 4; + * + * @return The bottom. */ public float getBottom() { return bottom_; @@ -705,6 +741,9 @@ public float getBottom() { * * * float bottom = 4; + * + * @param value The bottom to set. + * @return This builder for chaining. */ public Builder setBottom(float value) { @@ -720,6 +759,8 @@ public Builder setBottom(float value) { * * * float bottom = 4; + * + * @return This builder for chaining. */ public Builder clearBottom() { diff --git a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/NormalizedBoundingBoxOrBuilder.java b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/NormalizedBoundingBoxOrBuilder.java index 002753049..6310528c7 100644 --- a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/NormalizedBoundingBoxOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/NormalizedBoundingBoxOrBuilder.java @@ -31,6 +31,8 @@ public interface NormalizedBoundingBoxOrBuilder * * * float left = 1; + * + * @return The left. */ float getLeft(); @@ -42,6 +44,8 @@ public interface NormalizedBoundingBoxOrBuilder * * * float top = 2; + * + * @return The top. */ float getTop(); @@ -53,6 +57,8 @@ public interface NormalizedBoundingBoxOrBuilder * * * float right = 3; + * + * @return The right. */ float getRight(); @@ -64,6 +70,8 @@ public interface NormalizedBoundingBoxOrBuilder * * * float bottom = 4; + * + * @return The bottom. */ float getBottom(); } diff --git a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/ShotChangeDetectionConfig.java b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/ShotChangeDetectionConfig.java index 6303aa40e..2e50905ad 100644 --- a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/ShotChangeDetectionConfig.java +++ b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/ShotChangeDetectionConfig.java @@ -41,6 +41,12 @@ private ShotChangeDetectionConfig() { model_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ShotChangeDetectionConfig(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private ShotChangeDetectionConfig( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -118,6 +123,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string model = 1; + * + * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; @@ -140,6 +147,8 @@ public java.lang.String getModel() { * * * string model = 1; + * + * @return The bytes for model. */ public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; @@ -491,6 +500,8 @@ public Builder mergeFrom( * * * string model = 1; + * + * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; @@ -513,6 +524,8 @@ public java.lang.String getModel() { * * * string model = 1; + * + * @return The bytes for model. */ public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; @@ -535,6 +548,9 @@ public com.google.protobuf.ByteString getModelBytes() { * * * string model = 1; + * + * @param value The model to set. + * @return This builder for chaining. */ public Builder setModel(java.lang.String value) { if (value == null) { @@ -555,6 +571,8 @@ public Builder setModel(java.lang.String value) { * * * string model = 1; + * + * @return This builder for chaining. */ public Builder clearModel() { @@ -572,6 +590,9 @@ public Builder clearModel() { * * * string model = 1; + * + * @param value The bytes for model to set. + * @return This builder for chaining. */ public Builder setModelBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/ShotChangeDetectionConfigOrBuilder.java b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/ShotChangeDetectionConfigOrBuilder.java index f18e721d7..60402355c 100644 --- a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/ShotChangeDetectionConfigOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/ShotChangeDetectionConfigOrBuilder.java @@ -33,6 +33,8 @@ public interface ShotChangeDetectionConfigOrBuilder * * * string model = 1; + * + * @return The model. */ java.lang.String getModel(); /** @@ -45,6 +47,8 @@ public interface ShotChangeDetectionConfigOrBuilder * * * string model = 1; + * + * @return The bytes for model. */ com.google.protobuf.ByteString getModelBytes(); } diff --git a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoAnnotationProgress.java b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoAnnotationProgress.java index a7506661f..b39782e85 100644 --- a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoAnnotationProgress.java +++ b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoAnnotationProgress.java @@ -41,6 +41,12 @@ private VideoAnnotationProgress() { inputUri_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VideoAnnotationProgress(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private VideoAnnotationProgress( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -152,6 +157,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string input_uri = 1; + * + * @return The inputUri. */ public java.lang.String getInputUri() { java.lang.Object ref = inputUri_; @@ -173,6 +180,8 @@ public java.lang.String getInputUri() { * * * string input_uri = 1; + * + * @return The bytes for inputUri. */ public com.google.protobuf.ByteString getInputUriBytes() { java.lang.Object ref = inputUri_; @@ -197,6 +206,8 @@ public com.google.protobuf.ByteString getInputUriBytes() { * * * int32 progress_percent = 2; + * + * @return The progressPercent. */ public int getProgressPercent() { return progressPercent_; @@ -212,6 +223,8 @@ public int getProgressPercent() { * * * .google.protobuf.Timestamp start_time = 3; + * + * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTime_ != null; @@ -224,6 +237,8 @@ public boolean hasStartTime() { * * * .google.protobuf.Timestamp start_time = 3; + * + * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; @@ -251,6 +266,8 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * * * .google.protobuf.Timestamp update_time = 4; + * + * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTime_ != null; @@ -263,6 +280,8 @@ public boolean hasUpdateTime() { * * * .google.protobuf.Timestamp update_time = 4; + * + * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; @@ -688,6 +707,8 @@ public Builder mergeFrom( * * * string input_uri = 1; + * + * @return The inputUri. */ public java.lang.String getInputUri() { java.lang.Object ref = inputUri_; @@ -709,6 +730,8 @@ public java.lang.String getInputUri() { * * * string input_uri = 1; + * + * @return The bytes for inputUri. */ public com.google.protobuf.ByteString getInputUriBytes() { java.lang.Object ref = inputUri_; @@ -730,6 +753,9 @@ public com.google.protobuf.ByteString getInputUriBytes() { * * * string input_uri = 1; + * + * @param value The inputUri to set. + * @return This builder for chaining. */ public Builder setInputUri(java.lang.String value) { if (value == null) { @@ -749,6 +775,8 @@ public Builder setInputUri(java.lang.String value) { * * * string input_uri = 1; + * + * @return This builder for chaining. */ public Builder clearInputUri() { @@ -765,6 +793,9 @@ public Builder clearInputUri() { * * * string input_uri = 1; + * + * @param value The bytes for inputUri to set. + * @return This builder for chaining. */ public Builder setInputUriBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -787,6 +818,8 @@ public Builder setInputUriBytes(com.google.protobuf.ByteString value) { * * * int32 progress_percent = 2; + * + * @return The progressPercent. */ public int getProgressPercent() { return progressPercent_; @@ -800,6 +833,9 @@ public int getProgressPercent() { * * * int32 progress_percent = 2; + * + * @param value The progressPercent to set. + * @return This builder for chaining. */ public Builder setProgressPercent(int value) { @@ -816,6 +852,8 @@ public Builder setProgressPercent(int value) { * * * int32 progress_percent = 2; + * + * @return This builder for chaining. */ public Builder clearProgressPercent() { @@ -838,6 +876,8 @@ public Builder clearProgressPercent() { * * * .google.protobuf.Timestamp start_time = 3; + * + * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; @@ -850,6 +890,8 @@ public boolean hasStartTime() { * * * .google.protobuf.Timestamp start_time = 3; + * + * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { if (startTimeBuilder_ == null) { @@ -1013,6 +1055,8 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * * * .google.protobuf.Timestamp update_time = 4; + * + * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; @@ -1025,6 +1069,8 @@ public boolean hasUpdateTime() { * * * .google.protobuf.Timestamp update_time = 4; + * + * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { diff --git a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoAnnotationProgressOrBuilder.java b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoAnnotationProgressOrBuilder.java index 0180fcdbd..11f3abf22 100644 --- a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoAnnotationProgressOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoAnnotationProgressOrBuilder.java @@ -32,6 +32,8 @@ public interface VideoAnnotationProgressOrBuilder * * * string input_uri = 1; + * + * @return The inputUri. */ java.lang.String getInputUri(); /** @@ -43,6 +45,8 @@ public interface VideoAnnotationProgressOrBuilder * * * string input_uri = 1; + * + * @return The bytes for inputUri. */ com.google.protobuf.ByteString getInputUriBytes(); @@ -55,6 +59,8 @@ public interface VideoAnnotationProgressOrBuilder * * * int32 progress_percent = 2; + * + * @return The progressPercent. */ int getProgressPercent(); @@ -66,6 +72,8 @@ public interface VideoAnnotationProgressOrBuilder * * * .google.protobuf.Timestamp start_time = 3; + * + * @return Whether the startTime field is set. */ boolean hasStartTime(); /** @@ -76,6 +84,8 @@ public interface VideoAnnotationProgressOrBuilder * * * .google.protobuf.Timestamp start_time = 3; + * + * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** @@ -97,6 +107,8 @@ public interface VideoAnnotationProgressOrBuilder * * * .google.protobuf.Timestamp update_time = 4; + * + * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** @@ -107,6 +119,8 @@ public interface VideoAnnotationProgressOrBuilder * * * .google.protobuf.Timestamp update_time = 4; + * + * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** diff --git a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoAnnotationResults.java b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoAnnotationResults.java index 3c046ea0c..66edbc637 100644 --- a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoAnnotationResults.java +++ b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoAnnotationResults.java @@ -46,6 +46,12 @@ private VideoAnnotationResults() { shotAnnotations_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VideoAnnotationResults(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -79,11 +85,11 @@ private VideoAnnotationResults( } case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { segmentLabelAnnotations_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1beta2.LabelAnnotation>(); - mutable_bitField0_ |= 0x00000002; + mutable_bitField0_ |= 0x00000001; } segmentLabelAnnotations_.add( input.readMessage( @@ -93,11 +99,11 @@ private VideoAnnotationResults( } case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { shotLabelAnnotations_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1beta2.LabelAnnotation>(); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000002; } shotLabelAnnotations_.add( input.readMessage( @@ -107,11 +113,11 @@ private VideoAnnotationResults( } case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { frameLabelAnnotations_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1beta2.LabelAnnotation>(); - mutable_bitField0_ |= 0x00000008; + mutable_bitField0_ |= 0x00000004; } frameLabelAnnotations_.add( input.readMessage( @@ -121,11 +127,11 @@ private VideoAnnotationResults( } case 42: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { faceAnnotations_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1beta2.FaceAnnotation>(); - mutable_bitField0_ |= 0x00000010; + mutable_bitField0_ |= 0x00000008; } faceAnnotations_.add( input.readMessage( @@ -135,11 +141,11 @@ private VideoAnnotationResults( } case 50: { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { shotAnnotations_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1beta2.VideoSegment>(); - mutable_bitField0_ |= 0x00000020; + mutable_bitField0_ |= 0x00000010; } shotAnnotations_.add( input.readMessage( @@ -193,19 +199,19 @@ private VideoAnnotationResults( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { segmentLabelAnnotations_ = java.util.Collections.unmodifiableList(segmentLabelAnnotations_); } - if (((mutable_bitField0_ & 0x00000004) != 0)) { + if (((mutable_bitField0_ & 0x00000002) != 0)) { shotLabelAnnotations_ = java.util.Collections.unmodifiableList(shotLabelAnnotations_); } - if (((mutable_bitField0_ & 0x00000008) != 0)) { + if (((mutable_bitField0_ & 0x00000004) != 0)) { frameLabelAnnotations_ = java.util.Collections.unmodifiableList(frameLabelAnnotations_); } - if (((mutable_bitField0_ & 0x00000010) != 0)) { + if (((mutable_bitField0_ & 0x00000008) != 0)) { faceAnnotations_ = java.util.Collections.unmodifiableList(faceAnnotations_); } - if (((mutable_bitField0_ & 0x00000020) != 0)) { + if (((mutable_bitField0_ & 0x00000010) != 0)) { shotAnnotations_ = java.util.Collections.unmodifiableList(shotAnnotations_); } this.unknownFields = unknownFields.build(); @@ -228,7 +234,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.videointelligence.v1beta2.VideoAnnotationResults.Builder.class); } - private int bitField0_; public static final int INPUT_URI_FIELD_NUMBER = 1; private volatile java.lang.Object inputUri_; /** @@ -240,6 +245,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string input_uri = 1; + * + * @return The inputUri. */ public java.lang.String getInputUri() { java.lang.Object ref = inputUri_; @@ -261,6 +268,8 @@ public java.lang.String getInputUri() { * * * string input_uri = 1; + * + * @return The bytes for inputUri. */ public com.google.protobuf.ByteString getInputUriBytes() { java.lang.Object ref = inputUri_; @@ -682,6 +691,8 @@ public com.google.cloud.videointelligence.v1beta2.VideoSegment getShotAnnotation * * .google.cloud.videointelligence.v1beta2.ExplicitContentAnnotation explicit_annotation = 7; * + * + * @return Whether the explicitAnnotation field is set. */ public boolean hasExplicitAnnotation() { return explicitAnnotation_ != null; @@ -696,6 +707,8 @@ public boolean hasExplicitAnnotation() { * * .google.cloud.videointelligence.v1beta2.ExplicitContentAnnotation explicit_annotation = 7; * + * + * @return The explicitAnnotation. */ public com.google.cloud.videointelligence.v1beta2.ExplicitContentAnnotation getExplicitAnnotation() { @@ -730,6 +743,8 @@ public boolean hasExplicitAnnotation() { * * * .google.rpc.Status error = 9; + * + * @return Whether the error field is set. */ public boolean hasError() { return error_ != null; @@ -743,6 +758,8 @@ public boolean hasError() { * * * .google.rpc.Status error = 9; + * + * @return The error. */ public com.google.rpc.Status getError() { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; @@ -1067,31 +1084,31 @@ public Builder clear() { if (segmentLabelAnnotationsBuilder_ == null) { segmentLabelAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } else { segmentLabelAnnotationsBuilder_.clear(); } if (shotLabelAnnotationsBuilder_ == null) { shotLabelAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); } else { shotLabelAnnotationsBuilder_.clear(); } if (frameLabelAnnotationsBuilder_ == null) { frameLabelAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); } else { frameLabelAnnotationsBuilder_.clear(); } if (faceAnnotationsBuilder_ == null) { faceAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000008); } else { faceAnnotationsBuilder_.clear(); } if (shotAnnotationsBuilder_ == null) { shotAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000010); } else { shotAnnotationsBuilder_.clear(); } @@ -1136,49 +1153,48 @@ public com.google.cloud.videointelligence.v1beta2.VideoAnnotationResults buildPa com.google.cloud.videointelligence.v1beta2.VideoAnnotationResults result = new com.google.cloud.videointelligence.v1beta2.VideoAnnotationResults(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.inputUri_ = inputUri_; if (segmentLabelAnnotationsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { segmentLabelAnnotations_ = java.util.Collections.unmodifiableList(segmentLabelAnnotations_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } result.segmentLabelAnnotations_ = segmentLabelAnnotations_; } else { result.segmentLabelAnnotations_ = segmentLabelAnnotationsBuilder_.build(); } if (shotLabelAnnotationsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { shotLabelAnnotations_ = java.util.Collections.unmodifiableList(shotLabelAnnotations_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); } result.shotLabelAnnotations_ = shotLabelAnnotations_; } else { result.shotLabelAnnotations_ = shotLabelAnnotationsBuilder_.build(); } if (frameLabelAnnotationsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { frameLabelAnnotations_ = java.util.Collections.unmodifiableList(frameLabelAnnotations_); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); } result.frameLabelAnnotations_ = frameLabelAnnotations_; } else { result.frameLabelAnnotations_ = frameLabelAnnotationsBuilder_.build(); } if (faceAnnotationsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { faceAnnotations_ = java.util.Collections.unmodifiableList(faceAnnotations_); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000008); } result.faceAnnotations_ = faceAnnotations_; } else { result.faceAnnotations_ = faceAnnotationsBuilder_.build(); } if (shotAnnotationsBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { shotAnnotations_ = java.util.Collections.unmodifiableList(shotAnnotations_); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000010); } result.shotAnnotations_ = shotAnnotations_; } else { @@ -1194,7 +1210,6 @@ public com.google.cloud.videointelligence.v1beta2.VideoAnnotationResults buildPa } else { result.error_ = errorBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -1255,7 +1270,7 @@ public Builder mergeFrom( if (!other.segmentLabelAnnotations_.isEmpty()) { if (segmentLabelAnnotations_.isEmpty()) { segmentLabelAnnotations_ = other.segmentLabelAnnotations_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSegmentLabelAnnotationsIsMutable(); segmentLabelAnnotations_.addAll(other.segmentLabelAnnotations_); @@ -1268,7 +1283,7 @@ public Builder mergeFrom( segmentLabelAnnotationsBuilder_.dispose(); segmentLabelAnnotationsBuilder_ = null; segmentLabelAnnotations_ = other.segmentLabelAnnotations_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); segmentLabelAnnotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSegmentLabelAnnotationsFieldBuilder() @@ -1282,7 +1297,7 @@ public Builder mergeFrom( if (!other.shotLabelAnnotations_.isEmpty()) { if (shotLabelAnnotations_.isEmpty()) { shotLabelAnnotations_ = other.shotLabelAnnotations_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureShotLabelAnnotationsIsMutable(); shotLabelAnnotations_.addAll(other.shotLabelAnnotations_); @@ -1295,7 +1310,7 @@ public Builder mergeFrom( shotLabelAnnotationsBuilder_.dispose(); shotLabelAnnotationsBuilder_ = null; shotLabelAnnotations_ = other.shotLabelAnnotations_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); shotLabelAnnotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getShotLabelAnnotationsFieldBuilder() @@ -1309,7 +1324,7 @@ public Builder mergeFrom( if (!other.frameLabelAnnotations_.isEmpty()) { if (frameLabelAnnotations_.isEmpty()) { frameLabelAnnotations_ = other.frameLabelAnnotations_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureFrameLabelAnnotationsIsMutable(); frameLabelAnnotations_.addAll(other.frameLabelAnnotations_); @@ -1322,7 +1337,7 @@ public Builder mergeFrom( frameLabelAnnotationsBuilder_.dispose(); frameLabelAnnotationsBuilder_ = null; frameLabelAnnotations_ = other.frameLabelAnnotations_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); frameLabelAnnotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFrameLabelAnnotationsFieldBuilder() @@ -1336,7 +1351,7 @@ public Builder mergeFrom( if (!other.faceAnnotations_.isEmpty()) { if (faceAnnotations_.isEmpty()) { faceAnnotations_ = other.faceAnnotations_; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensureFaceAnnotationsIsMutable(); faceAnnotations_.addAll(other.faceAnnotations_); @@ -1349,7 +1364,7 @@ public Builder mergeFrom( faceAnnotationsBuilder_.dispose(); faceAnnotationsBuilder_ = null; faceAnnotations_ = other.faceAnnotations_; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000008); faceAnnotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFaceAnnotationsFieldBuilder() @@ -1363,7 +1378,7 @@ public Builder mergeFrom( if (!other.shotAnnotations_.isEmpty()) { if (shotAnnotations_.isEmpty()) { shotAnnotations_ = other.shotAnnotations_; - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000010); } else { ensureShotAnnotationsIsMutable(); shotAnnotations_.addAll(other.shotAnnotations_); @@ -1376,7 +1391,7 @@ public Builder mergeFrom( shotAnnotationsBuilder_.dispose(); shotAnnotationsBuilder_ = null; shotAnnotations_ = other.shotAnnotations_; - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000010); shotAnnotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getShotAnnotationsFieldBuilder() @@ -1435,6 +1450,8 @@ public Builder mergeFrom( * * * string input_uri = 1; + * + * @return The inputUri. */ public java.lang.String getInputUri() { java.lang.Object ref = inputUri_; @@ -1456,6 +1473,8 @@ public java.lang.String getInputUri() { * * * string input_uri = 1; + * + * @return The bytes for inputUri. */ public com.google.protobuf.ByteString getInputUriBytes() { java.lang.Object ref = inputUri_; @@ -1477,6 +1496,9 @@ public com.google.protobuf.ByteString getInputUriBytes() { * * * string input_uri = 1; + * + * @param value The inputUri to set. + * @return This builder for chaining. */ public Builder setInputUri(java.lang.String value) { if (value == null) { @@ -1496,6 +1518,8 @@ public Builder setInputUri(java.lang.String value) { * * * string input_uri = 1; + * + * @return This builder for chaining. */ public Builder clearInputUri() { @@ -1512,6 +1536,9 @@ public Builder clearInputUri() { * * * string input_uri = 1; + * + * @param value The bytes for inputUri to set. + * @return This builder for chaining. */ public Builder setInputUriBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1528,11 +1555,11 @@ public Builder setInputUriBytes(com.google.protobuf.ByteString value) { segmentLabelAnnotations_ = java.util.Collections.emptyList(); private void ensureSegmentLabelAnnotationsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { segmentLabelAnnotations_ = new java.util.ArrayList( segmentLabelAnnotations_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } @@ -1789,7 +1816,7 @@ public Builder addAllSegmentLabelAnnotations( public Builder clearSegmentLabelAnnotations() { if (segmentLabelAnnotationsBuilder_ == null) { segmentLabelAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { segmentLabelAnnotationsBuilder_.clear(); @@ -1941,7 +1968,7 @@ public Builder removeSegmentLabelAnnotations(int index) { com.google.cloud.videointelligence.v1beta2.LabelAnnotation.Builder, com.google.cloud.videointelligence.v1beta2.LabelAnnotationOrBuilder>( segmentLabelAnnotations_, - ((bitField0_ & 0x00000002) != 0), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); segmentLabelAnnotations_ = null; @@ -1953,11 +1980,11 @@ public Builder removeSegmentLabelAnnotations(int index) { shotLabelAnnotations_ = java.util.Collections.emptyList(); private void ensureShotLabelAnnotationsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { shotLabelAnnotations_ = new java.util.ArrayList( shotLabelAnnotations_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; } } @@ -2214,7 +2241,7 @@ public Builder addAllShotLabelAnnotations( public Builder clearShotLabelAnnotations() { if (shotLabelAnnotationsBuilder_ == null) { shotLabelAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { shotLabelAnnotationsBuilder_.clear(); @@ -2366,7 +2393,7 @@ public Builder removeShotLabelAnnotations(int index) { com.google.cloud.videointelligence.v1beta2.LabelAnnotation.Builder, com.google.cloud.videointelligence.v1beta2.LabelAnnotationOrBuilder>( shotLabelAnnotations_, - ((bitField0_ & 0x00000004) != 0), + ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); shotLabelAnnotations_ = null; @@ -2378,11 +2405,11 @@ public Builder removeShotLabelAnnotations(int index) { frameLabelAnnotations_ = java.util.Collections.emptyList(); private void ensureFrameLabelAnnotationsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { frameLabelAnnotations_ = new java.util.ArrayList( frameLabelAnnotations_); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; } } @@ -2639,7 +2666,7 @@ public Builder addAllFrameLabelAnnotations( public Builder clearFrameLabelAnnotations() { if (frameLabelAnnotationsBuilder_ == null) { frameLabelAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { frameLabelAnnotationsBuilder_.clear(); @@ -2791,7 +2818,7 @@ public Builder removeFrameLabelAnnotations(int index) { com.google.cloud.videointelligence.v1beta2.LabelAnnotation.Builder, com.google.cloud.videointelligence.v1beta2.LabelAnnotationOrBuilder>( frameLabelAnnotations_, - ((bitField0_ & 0x00000008) != 0), + ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); frameLabelAnnotations_ = null; @@ -2803,11 +2830,11 @@ public Builder removeFrameLabelAnnotations(int index) { faceAnnotations_ = java.util.Collections.emptyList(); private void ensureFaceAnnotationsIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { faceAnnotations_ = new java.util.ArrayList( faceAnnotations_); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; } } @@ -3041,7 +3068,7 @@ public Builder addAllFaceAnnotations( public Builder clearFaceAnnotations() { if (faceAnnotationsBuilder_ == null) { faceAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { faceAnnotationsBuilder_.clear(); @@ -3179,7 +3206,7 @@ public Builder removeFaceAnnotations(int index) { com.google.cloud.videointelligence.v1beta2.FaceAnnotation.Builder, com.google.cloud.videointelligence.v1beta2.FaceAnnotationOrBuilder>( faceAnnotations_, - ((bitField0_ & 0x00000010) != 0), + ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); faceAnnotations_ = null; @@ -3191,11 +3218,11 @@ public Builder removeFaceAnnotations(int index) { shotAnnotations_ = java.util.Collections.emptyList(); private void ensureShotAnnotationsIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { + if (!((bitField0_ & 0x00000010) != 0)) { shotAnnotations_ = new java.util.ArrayList( shotAnnotations_); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; } } @@ -3429,7 +3456,7 @@ public Builder addAllShotAnnotations( public Builder clearShotAnnotations() { if (shotAnnotationsBuilder_ == null) { shotAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { shotAnnotationsBuilder_.clear(); @@ -3565,7 +3592,7 @@ public Builder removeShotAnnotations(int index) { com.google.cloud.videointelligence.v1beta2.VideoSegment.Builder, com.google.cloud.videointelligence.v1beta2.VideoSegmentOrBuilder>( shotAnnotations_, - ((bitField0_ & 0x00000020) != 0), + ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); shotAnnotations_ = null; @@ -3590,6 +3617,8 @@ public Builder removeShotAnnotations(int index) { * * .google.cloud.videointelligence.v1beta2.ExplicitContentAnnotation explicit_annotation = 7; * + * + * @return Whether the explicitAnnotation field is set. */ public boolean hasExplicitAnnotation() { return explicitAnnotationBuilder_ != null || explicitAnnotation_ != null; @@ -3604,6 +3633,8 @@ public boolean hasExplicitAnnotation() { * * .google.cloud.videointelligence.v1beta2.ExplicitContentAnnotation explicit_annotation = 7; * + * + * @return The explicitAnnotation. */ public com.google.cloud.videointelligence.v1beta2.ExplicitContentAnnotation getExplicitAnnotation() { @@ -3796,6 +3827,8 @@ public Builder clearExplicitAnnotation() { * * * .google.rpc.Status error = 9; + * + * @return Whether the error field is set. */ public boolean hasError() { return errorBuilder_ != null || error_ != null; @@ -3809,6 +3842,8 @@ public boolean hasError() { * * * .google.rpc.Status error = 9; + * + * @return The error. */ public com.google.rpc.Status getError() { if (errorBuilder_ == null) { diff --git a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoAnnotationResultsOrBuilder.java b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoAnnotationResultsOrBuilder.java index 7b268a7dd..426abee5f 100644 --- a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoAnnotationResultsOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoAnnotationResultsOrBuilder.java @@ -32,6 +32,8 @@ public interface VideoAnnotationResultsOrBuilder * * * string input_uri = 1; + * + * @return The inputUri. */ java.lang.String getInputUri(); /** @@ -43,6 +45,8 @@ public interface VideoAnnotationResultsOrBuilder * * * string input_uri = 1; + * + * @return The bytes for inputUri. */ com.google.protobuf.ByteString getInputUriBytes(); @@ -380,6 +384,8 @@ com.google.cloud.videointelligence.v1beta2.VideoSegmentOrBuilder getShotAnnotati * * .google.cloud.videointelligence.v1beta2.ExplicitContentAnnotation explicit_annotation = 7; * + * + * @return Whether the explicitAnnotation field is set. */ boolean hasExplicitAnnotation(); /** @@ -392,6 +398,8 @@ com.google.cloud.videointelligence.v1beta2.VideoSegmentOrBuilder getShotAnnotati * * .google.cloud.videointelligence.v1beta2.ExplicitContentAnnotation explicit_annotation = 7; * + * + * @return The explicitAnnotation. */ com.google.cloud.videointelligence.v1beta2.ExplicitContentAnnotation getExplicitAnnotation(); /** @@ -417,6 +425,8 @@ com.google.cloud.videointelligence.v1beta2.VideoSegmentOrBuilder getShotAnnotati * * * .google.rpc.Status error = 9; + * + * @return Whether the error field is set. */ boolean hasError(); /** @@ -428,6 +438,8 @@ com.google.cloud.videointelligence.v1beta2.VideoSegmentOrBuilder getShotAnnotati * * * .google.rpc.Status error = 9; + * + * @return The error. */ com.google.rpc.Status getError(); /** diff --git a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoContext.java b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoContext.java index 0cbaa484e..29d0bb473 100644 --- a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoContext.java +++ b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoContext.java @@ -41,6 +41,12 @@ private VideoContext() { segments_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VideoContext(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -189,7 +195,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.videointelligence.v1beta2.VideoContext.Builder.class); } - private int bitField0_; public static final int SEGMENTS_FIELD_NUMBER = 1; private java.util.List segments_; /** @@ -276,6 +281,8 @@ public com.google.cloud.videointelligence.v1beta2.VideoSegmentOrBuilder getSegme * * .google.cloud.videointelligence.v1beta2.LabelDetectionConfig label_detection_config = 2; * + * + * @return Whether the labelDetectionConfig field is set. */ public boolean hasLabelDetectionConfig() { return labelDetectionConfig_ != null; @@ -289,6 +296,8 @@ public boolean hasLabelDetectionConfig() { * * .google.cloud.videointelligence.v1beta2.LabelDetectionConfig label_detection_config = 2; * + * + * @return The labelDetectionConfig. */ public com.google.cloud.videointelligence.v1beta2.LabelDetectionConfig getLabelDetectionConfig() { return labelDetectionConfig_ == null @@ -323,6 +332,8 @@ public com.google.cloud.videointelligence.v1beta2.LabelDetectionConfig getLabelD * * .google.cloud.videointelligence.v1beta2.ShotChangeDetectionConfig shot_change_detection_config = 3; * + * + * @return Whether the shotChangeDetectionConfig field is set. */ public boolean hasShotChangeDetectionConfig() { return shotChangeDetectionConfig_ != null; @@ -337,6 +348,8 @@ public boolean hasShotChangeDetectionConfig() { * * .google.cloud.videointelligence.v1beta2.ShotChangeDetectionConfig shot_change_detection_config = 3; * + * + * @return The shotChangeDetectionConfig. */ public com.google.cloud.videointelligence.v1beta2.ShotChangeDetectionConfig getShotChangeDetectionConfig() { @@ -373,6 +386,8 @@ public boolean hasShotChangeDetectionConfig() { * * .google.cloud.videointelligence.v1beta2.ExplicitContentDetectionConfig explicit_content_detection_config = 4; * + * + * @return Whether the explicitContentDetectionConfig field is set. */ public boolean hasExplicitContentDetectionConfig() { return explicitContentDetectionConfig_ != null; @@ -387,6 +402,8 @@ public boolean hasExplicitContentDetectionConfig() { * * .google.cloud.videointelligence.v1beta2.ExplicitContentDetectionConfig explicit_content_detection_config = 4; * + * + * @return The explicitContentDetectionConfig. */ public com.google.cloud.videointelligence.v1beta2.ExplicitContentDetectionConfig getExplicitContentDetectionConfig() { @@ -422,6 +439,8 @@ public boolean hasExplicitContentDetectionConfig() { * * .google.cloud.videointelligence.v1beta2.FaceDetectionConfig face_detection_config = 5; * + * + * @return Whether the faceDetectionConfig field is set. */ public boolean hasFaceDetectionConfig() { return faceDetectionConfig_ != null; @@ -435,6 +454,8 @@ public boolean hasFaceDetectionConfig() { * * .google.cloud.videointelligence.v1beta2.FaceDetectionConfig face_detection_config = 5; * + * + * @return The faceDetectionConfig. */ public com.google.cloud.videointelligence.v1beta2.FaceDetectionConfig getFaceDetectionConfig() { return faceDetectionConfig_ == null @@ -787,7 +808,6 @@ public com.google.cloud.videointelligence.v1beta2.VideoContext buildPartial() { com.google.cloud.videointelligence.v1beta2.VideoContext result = new com.google.cloud.videointelligence.v1beta2.VideoContext(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (segmentsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { segments_ = java.util.Collections.unmodifiableList(segments_); @@ -817,7 +837,6 @@ public com.google.cloud.videointelligence.v1beta2.VideoContext buildPartial() { } else { result.faceDetectionConfig_ = faceDetectionConfigBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -1354,6 +1373,8 @@ public com.google.cloud.videointelligence.v1beta2.VideoSegment.Builder addSegmen * * .google.cloud.videointelligence.v1beta2.LabelDetectionConfig label_detection_config = 2; * + * + * @return Whether the labelDetectionConfig field is set. */ public boolean hasLabelDetectionConfig() { return labelDetectionConfigBuilder_ != null || labelDetectionConfig_ != null; @@ -1368,6 +1389,8 @@ public boolean hasLabelDetectionConfig() { * * .google.cloud.videointelligence.v1beta2.LabelDetectionConfig label_detection_config = 2; * + * + * @return The labelDetectionConfig. */ public com.google.cloud.videointelligence.v1beta2.LabelDetectionConfig getLabelDetectionConfig() { @@ -1561,6 +1584,8 @@ public Builder clearLabelDetectionConfig() { * * .google.cloud.videointelligence.v1beta2.ShotChangeDetectionConfig shot_change_detection_config = 3; * + * + * @return Whether the shotChangeDetectionConfig field is set. */ public boolean hasShotChangeDetectionConfig() { return shotChangeDetectionConfigBuilder_ != null || shotChangeDetectionConfig_ != null; @@ -1575,6 +1600,8 @@ public boolean hasShotChangeDetectionConfig() { * * .google.cloud.videointelligence.v1beta2.ShotChangeDetectionConfig shot_change_detection_config = 3; * + * + * @return The shotChangeDetectionConfig. */ public com.google.cloud.videointelligence.v1beta2.ShotChangeDetectionConfig getShotChangeDetectionConfig() { @@ -1771,6 +1798,8 @@ public Builder clearShotChangeDetectionConfig() { * * .google.cloud.videointelligence.v1beta2.ExplicitContentDetectionConfig explicit_content_detection_config = 4; * + * + * @return Whether the explicitContentDetectionConfig field is set. */ public boolean hasExplicitContentDetectionConfig() { return explicitContentDetectionConfigBuilder_ != null @@ -1786,6 +1815,8 @@ public boolean hasExplicitContentDetectionConfig() { * * .google.cloud.videointelligence.v1beta2.ExplicitContentDetectionConfig explicit_content_detection_config = 4; * + * + * @return The explicitContentDetectionConfig. */ public com.google.cloud.videointelligence.v1beta2.ExplicitContentDetectionConfig getExplicitContentDetectionConfig() { @@ -1980,6 +2011,8 @@ public Builder clearExplicitContentDetectionConfig() { * * .google.cloud.videointelligence.v1beta2.FaceDetectionConfig face_detection_config = 5; * + * + * @return Whether the faceDetectionConfig field is set. */ public boolean hasFaceDetectionConfig() { return faceDetectionConfigBuilder_ != null || faceDetectionConfig_ != null; @@ -1993,6 +2026,8 @@ public boolean hasFaceDetectionConfig() { * * .google.cloud.videointelligence.v1beta2.FaceDetectionConfig face_detection_config = 5; * + * + * @return The faceDetectionConfig. */ public com.google.cloud.videointelligence.v1beta2.FaceDetectionConfig getFaceDetectionConfig() { if (faceDetectionConfigBuilder_ == null) { diff --git a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoContextOrBuilder.java b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoContextOrBuilder.java index 9f788b927..9411feeb5 100644 --- a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoContextOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoContextOrBuilder.java @@ -94,6 +94,8 @@ public interface VideoContextOrBuilder * * .google.cloud.videointelligence.v1beta2.LabelDetectionConfig label_detection_config = 2; * + * + * @return Whether the labelDetectionConfig field is set. */ boolean hasLabelDetectionConfig(); /** @@ -105,6 +107,8 @@ public interface VideoContextOrBuilder * * .google.cloud.videointelligence.v1beta2.LabelDetectionConfig label_detection_config = 2; * + * + * @return The labelDetectionConfig. */ com.google.cloud.videointelligence.v1beta2.LabelDetectionConfig getLabelDetectionConfig(); /** @@ -130,6 +134,8 @@ public interface VideoContextOrBuilder * * .google.cloud.videointelligence.v1beta2.ShotChangeDetectionConfig shot_change_detection_config = 3; * + * + * @return Whether the shotChangeDetectionConfig field is set. */ boolean hasShotChangeDetectionConfig(); /** @@ -142,6 +148,8 @@ public interface VideoContextOrBuilder * * .google.cloud.videointelligence.v1beta2.ShotChangeDetectionConfig shot_change_detection_config = 3; * + * + * @return The shotChangeDetectionConfig. */ com.google.cloud.videointelligence.v1beta2.ShotChangeDetectionConfig getShotChangeDetectionConfig(); @@ -169,6 +177,8 @@ public interface VideoContextOrBuilder * * .google.cloud.videointelligence.v1beta2.ExplicitContentDetectionConfig explicit_content_detection_config = 4; * + * + * @return Whether the explicitContentDetectionConfig field is set. */ boolean hasExplicitContentDetectionConfig(); /** @@ -181,6 +191,8 @@ public interface VideoContextOrBuilder * * .google.cloud.videointelligence.v1beta2.ExplicitContentDetectionConfig explicit_content_detection_config = 4; * + * + * @return The explicitContentDetectionConfig. */ com.google.cloud.videointelligence.v1beta2.ExplicitContentDetectionConfig getExplicitContentDetectionConfig(); @@ -207,6 +219,8 @@ public interface VideoContextOrBuilder * * .google.cloud.videointelligence.v1beta2.FaceDetectionConfig face_detection_config = 5; * + * + * @return Whether the faceDetectionConfig field is set. */ boolean hasFaceDetectionConfig(); /** @@ -218,6 +232,8 @@ public interface VideoContextOrBuilder * * .google.cloud.videointelligence.v1beta2.FaceDetectionConfig face_detection_config = 5; * + * + * @return The faceDetectionConfig. */ com.google.cloud.videointelligence.v1beta2.FaceDetectionConfig getFaceDetectionConfig(); /** diff --git a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoIntelligenceServiceProto.java b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoIntelligenceServiceProto.java index 01cf8df39..fb232a733 100644 --- a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoIntelligenceServiceProto.java +++ b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoIntelligenceServiceProto.java @@ -238,24 +238,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oogle::Cloud::VideoIntelligence::V1beta2" + "b\006proto3" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }, - assigner); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); internal_static_google_cloud_videointelligence_v1beta2_AnnotateVideoRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_cloud_videointelligence_v1beta2_AnnotateVideoRequest_fieldAccessorTable = diff --git a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoSegment.java b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoSegment.java index f42b03241..4fc9a1d94 100644 --- a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoSegment.java +++ b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoSegment.java @@ -39,6 +39,12 @@ private VideoSegment(com.google.protobuf.GeneratedMessageV3.Builder builder) private VideoSegment() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VideoSegment(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -52,7 +58,6 @@ private VideoSegment( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -138,6 +143,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.protobuf.Duration start_time_offset = 1; + * + * @return Whether the startTimeOffset field is set. */ public boolean hasStartTimeOffset() { return startTimeOffset_ != null; @@ -151,6 +158,8 @@ public boolean hasStartTimeOffset() { * * * .google.protobuf.Duration start_time_offset = 1; + * + * @return The startTimeOffset. */ public com.google.protobuf.Duration getStartTimeOffset() { return startTimeOffset_ == null @@ -182,6 +191,8 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOffsetOrBuilder() { * * * .google.protobuf.Duration end_time_offset = 2; + * + * @return Whether the endTimeOffset field is set. */ public boolean hasEndTimeOffset() { return endTimeOffset_ != null; @@ -195,6 +206,8 @@ public boolean hasEndTimeOffset() { * * * .google.protobuf.Duration end_time_offset = 2; + * + * @return The endTimeOffset. */ public com.google.protobuf.Duration getEndTimeOffset() { return endTimeOffset_ == null @@ -589,6 +602,8 @@ public Builder mergeFrom( * * * .google.protobuf.Duration start_time_offset = 1; + * + * @return Whether the startTimeOffset field is set. */ public boolean hasStartTimeOffset() { return startTimeOffsetBuilder_ != null || startTimeOffset_ != null; @@ -602,6 +617,8 @@ public boolean hasStartTimeOffset() { * * * .google.protobuf.Duration start_time_offset = 1; + * + * @return The startTimeOffset. */ public com.google.protobuf.Duration getStartTimeOffset() { if (startTimeOffsetBuilder_ == null) { @@ -779,6 +796,8 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOffsetOrBuilder() { * * * .google.protobuf.Duration end_time_offset = 2; + * + * @return Whether the endTimeOffset field is set. */ public boolean hasEndTimeOffset() { return endTimeOffsetBuilder_ != null || endTimeOffset_ != null; @@ -792,6 +811,8 @@ public boolean hasEndTimeOffset() { * * * .google.protobuf.Duration end_time_offset = 2; + * + * @return The endTimeOffset. */ public com.google.protobuf.Duration getEndTimeOffset() { if (endTimeOffsetBuilder_ == null) { diff --git a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoSegmentOrBuilder.java b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoSegmentOrBuilder.java index c9c315693..8eebe4800 100644 --- a/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoSegmentOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoSegmentOrBuilder.java @@ -32,6 +32,8 @@ public interface VideoSegmentOrBuilder * * * .google.protobuf.Duration start_time_offset = 1; + * + * @return Whether the startTimeOffset field is set. */ boolean hasStartTimeOffset(); /** @@ -43,6 +45,8 @@ public interface VideoSegmentOrBuilder * * * .google.protobuf.Duration start_time_offset = 1; + * + * @return The startTimeOffset. */ com.google.protobuf.Duration getStartTimeOffset(); /** @@ -66,6 +70,8 @@ public interface VideoSegmentOrBuilder * * * .google.protobuf.Duration end_time_offset = 2; + * + * @return Whether the endTimeOffset field is set. */ boolean hasEndTimeOffset(); /** @@ -77,6 +83,8 @@ public interface VideoSegmentOrBuilder * * * .google.protobuf.Duration end_time_offset = 2; + * + * @return The endTimeOffset. */ com.google.protobuf.Duration getEndTimeOffset(); /** diff --git a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/AnnotateVideoProgress.java b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/AnnotateVideoProgress.java index f3efedaa8..e1bb5d69e 100644 --- a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/AnnotateVideoProgress.java +++ b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/AnnotateVideoProgress.java @@ -43,6 +43,12 @@ private AnnotateVideoProgress() { annotationProgress_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AnnotateVideoProgress(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; diff --git a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/AnnotateVideoRequest.java b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/AnnotateVideoRequest.java index 9084e2777..79d47791c 100644 --- a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/AnnotateVideoRequest.java +++ b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/AnnotateVideoRequest.java @@ -45,6 +45,12 @@ private AnnotateVideoRequest() { locationId_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AnnotateVideoRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -79,9 +85,9 @@ private AnnotateVideoRequest( case 16: { int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { features_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000001; } features_.add(rawValue); break; @@ -92,9 +98,9 @@ private AnnotateVideoRequest( int oldLimit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { features_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000001; } features_.add(rawValue); } @@ -151,7 +157,7 @@ private AnnotateVideoRequest( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { features_ = java.util.Collections.unmodifiableList(features_); } this.unknownFields = unknownFields.build(); @@ -174,7 +180,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.videointelligence.v1p1beta1.AnnotateVideoRequest.Builder.class); } - private int bitField0_; public static final int INPUT_URI_FIELD_NUMBER = 1; private volatile java.lang.Object inputUri_; /** @@ -194,6 +199,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string input_uri = 1; + * + * @return The inputUri. */ public java.lang.String getInputUri() { java.lang.Object ref = inputUri_; @@ -223,6 +230,8 @@ public java.lang.String getInputUri() { * * * string input_uri = 1; + * + * @return The bytes for inputUri. */ public com.google.protobuf.ByteString getInputUriBytes() { java.lang.Object ref = inputUri_; @@ -248,6 +257,8 @@ public com.google.protobuf.ByteString getInputUriBytes() { * * * bytes input_content = 6; + * + * @return The inputContent. */ public com.google.protobuf.ByteString getInputContent() { return inputContent_; @@ -278,6 +289,8 @@ public com.google.cloud.videointelligence.v1p1beta1.Feature convert( * * * repeated .google.cloud.videointelligence.v1p1beta1.Feature features = 2; + * + * @return A list containing the features. */ public java.util.List getFeaturesList() { return new com.google.protobuf.Internal.ListAdapter< @@ -292,6 +305,8 @@ public java.util.List getF * * * repeated .google.cloud.videointelligence.v1p1beta1.Feature features = 2; + * + * @param value The features to add. */ public int getFeaturesCount() { return features_.size(); @@ -304,6 +319,9 @@ public int getFeaturesCount() { * * * repeated .google.cloud.videointelligence.v1p1beta1.Feature features = 2; + * + * @param index The index of the element to return. + * @return The features at the given index. */ public com.google.cloud.videointelligence.v1p1beta1.Feature getFeatures(int index) { return features_converter_.convert(features_.get(index)); @@ -316,6 +334,8 @@ public com.google.cloud.videointelligence.v1p1beta1.Feature getFeatures(int inde * * * repeated .google.cloud.videointelligence.v1p1beta1.Feature features = 2; + * + * @return A list containing the enum numeric values on the wire for features. */ public java.util.List getFeaturesValueList() { return features_; @@ -328,6 +348,9 @@ public java.util.List getFeaturesValueList() { * * * repeated .google.cloud.videointelligence.v1p1beta1.Feature features = 2; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of features at the given index. */ public int getFeaturesValue(int index) { return features_.get(index); @@ -345,6 +368,8 @@ public int getFeaturesValue(int index) { * * * .google.cloud.videointelligence.v1p1beta1.VideoContext video_context = 3; + * + * @return Whether the videoContext field is set. */ public boolean hasVideoContext() { return videoContext_ != null; @@ -357,6 +382,8 @@ public boolean hasVideoContext() { * * * .google.cloud.videointelligence.v1p1beta1.VideoContext video_context = 3; + * + * @return The videoContext. */ public com.google.cloud.videointelligence.v1p1beta1.VideoContext getVideoContext() { return videoContext_ == null @@ -392,6 +419,8 @@ public com.google.cloud.videointelligence.v1p1beta1.VideoContext getVideoContext * * * string output_uri = 4; + * + * @return The outputUri. */ public java.lang.String getOutputUri() { java.lang.Object ref = outputUri_; @@ -417,6 +446,8 @@ public java.lang.String getOutputUri() { * * * string output_uri = 4; + * + * @return The bytes for outputUri. */ public com.google.protobuf.ByteString getOutputUriBytes() { java.lang.Object ref = outputUri_; @@ -442,6 +473,8 @@ public com.google.protobuf.ByteString getOutputUriBytes() { * * * string location_id = 5; + * + * @return The locationId. */ public java.lang.String getLocationId() { java.lang.Object ref = locationId_; @@ -464,6 +497,8 @@ public java.lang.String getLocationId() { * * * string location_id = 5; + * + * @return The bytes for locationId. */ public com.google.protobuf.ByteString getLocationIdBytes() { java.lang.Object ref = locationId_; @@ -755,7 +790,7 @@ public Builder clear() { inputContent_ = com.google.protobuf.ByteString.EMPTY; features_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); if (videoContextBuilder_ == null) { videoContext_ = null; } else { @@ -795,12 +830,11 @@ public com.google.cloud.videointelligence.v1p1beta1.AnnotateVideoRequest buildPa com.google.cloud.videointelligence.v1p1beta1.AnnotateVideoRequest result = new com.google.cloud.videointelligence.v1p1beta1.AnnotateVideoRequest(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.inputUri_ = inputUri_; result.inputContent_ = inputContent_; - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { features_ = java.util.Collections.unmodifiableList(features_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } result.features_ = features_; if (videoContextBuilder_ == null) { @@ -810,7 +844,6 @@ public com.google.cloud.videointelligence.v1p1beta1.AnnotateVideoRequest buildPa } result.outputUri_ = outputUri_; result.locationId_ = locationId_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -873,7 +906,7 @@ public Builder mergeFrom( if (!other.features_.isEmpty()) { if (features_.isEmpty()) { features_ = other.features_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureFeaturesIsMutable(); features_.addAll(other.features_); @@ -942,6 +975,8 @@ public Builder mergeFrom( * * * string input_uri = 1; + * + * @return The inputUri. */ public java.lang.String getInputUri() { java.lang.Object ref = inputUri_; @@ -971,6 +1006,8 @@ public java.lang.String getInputUri() { * * * string input_uri = 1; + * + * @return The bytes for inputUri. */ public com.google.protobuf.ByteString getInputUriBytes() { java.lang.Object ref = inputUri_; @@ -1000,6 +1037,9 @@ public com.google.protobuf.ByteString getInputUriBytes() { * * * string input_uri = 1; + * + * @param value The inputUri to set. + * @return This builder for chaining. */ public Builder setInputUri(java.lang.String value) { if (value == null) { @@ -1027,6 +1067,8 @@ public Builder setInputUri(java.lang.String value) { * * * string input_uri = 1; + * + * @return This builder for chaining. */ public Builder clearInputUri() { @@ -1051,6 +1093,9 @@ public Builder clearInputUri() { * * * string input_uri = 1; + * + * @param value The bytes for inputUri to set. + * @return This builder for chaining. */ public Builder setInputUriBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1074,6 +1119,8 @@ public Builder setInputUriBytes(com.google.protobuf.ByteString value) { * * * bytes input_content = 6; + * + * @return The inputContent. */ public com.google.protobuf.ByteString getInputContent() { return inputContent_; @@ -1088,6 +1135,9 @@ public com.google.protobuf.ByteString getInputContent() { * * * bytes input_content = 6; + * + * @param value The inputContent to set. + * @return This builder for chaining. */ public Builder setInputContent(com.google.protobuf.ByteString value) { if (value == null) { @@ -1108,6 +1158,8 @@ public Builder setInputContent(com.google.protobuf.ByteString value) { * * * bytes input_content = 6; + * + * @return This builder for chaining. */ public Builder clearInputContent() { @@ -1119,9 +1171,9 @@ public Builder clearInputContent() { private java.util.List features_ = java.util.Collections.emptyList(); private void ensureFeaturesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { features_ = new java.util.ArrayList(features_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; } } /** @@ -1132,6 +1184,8 @@ private void ensureFeaturesIsMutable() { * * * repeated .google.cloud.videointelligence.v1p1beta1.Feature features = 2; + * + * @return A list containing the features. */ public java.util.List getFeaturesList() { return new com.google.protobuf.Internal.ListAdapter< @@ -1146,6 +1200,8 @@ public java.util.List getF * * * repeated .google.cloud.videointelligence.v1p1beta1.Feature features = 2; + * + * @return The count of features. */ public int getFeaturesCount() { return features_.size(); @@ -1158,6 +1214,9 @@ public int getFeaturesCount() { * * * repeated .google.cloud.videointelligence.v1p1beta1.Feature features = 2; + * + * @param index The index of the element to return. + * @return The features at the given index. */ public com.google.cloud.videointelligence.v1p1beta1.Feature getFeatures(int index) { return features_converter_.convert(features_.get(index)); @@ -1170,6 +1229,10 @@ public com.google.cloud.videointelligence.v1p1beta1.Feature getFeatures(int inde * * * repeated .google.cloud.videointelligence.v1p1beta1.Feature features = 2; + * + * @param index The index to set the value at. + * @param value The features to set. + * @return This builder for chaining. */ public Builder setFeatures( int index, com.google.cloud.videointelligence.v1p1beta1.Feature value) { @@ -1189,6 +1252,9 @@ public Builder setFeatures( * * * repeated .google.cloud.videointelligence.v1p1beta1.Feature features = 2; + * + * @param value The features to add. + * @return This builder for chaining. */ public Builder addFeatures(com.google.cloud.videointelligence.v1p1beta1.Feature value) { if (value == null) { @@ -1207,6 +1273,9 @@ public Builder addFeatures(com.google.cloud.videointelligence.v1p1beta1.Feature * * * repeated .google.cloud.videointelligence.v1p1beta1.Feature features = 2; + * + * @param values The features to add. + * @return This builder for chaining. */ public Builder addAllFeatures( java.lang.Iterable values) { @@ -1225,10 +1294,12 @@ public Builder addAllFeatures( * * * repeated .google.cloud.videointelligence.v1p1beta1.Feature features = 2; + * + * @return This builder for chaining. */ public Builder clearFeatures() { features_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1240,6 +1311,8 @@ public Builder clearFeatures() { * * * repeated .google.cloud.videointelligence.v1p1beta1.Feature features = 2; + * + * @return A list containing the enum numeric values on the wire for features. */ public java.util.List getFeaturesValueList() { return java.util.Collections.unmodifiableList(features_); @@ -1252,6 +1325,9 @@ public java.util.List getFeaturesValueList() { * * * repeated .google.cloud.videointelligence.v1p1beta1.Feature features = 2; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of features at the given index. */ public int getFeaturesValue(int index) { return features_.get(index); @@ -1264,6 +1340,10 @@ public int getFeaturesValue(int index) { * * * repeated .google.cloud.videointelligence.v1p1beta1.Feature features = 2; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of features at the given index. + * @return This builder for chaining. */ public Builder setFeaturesValue(int index, int value) { ensureFeaturesIsMutable(); @@ -1279,6 +1359,9 @@ public Builder setFeaturesValue(int index, int value) { * * * repeated .google.cloud.videointelligence.v1p1beta1.Feature features = 2; + * + * @param value The enum numeric value on the wire for features to add. + * @return This builder for chaining. */ public Builder addFeaturesValue(int value) { ensureFeaturesIsMutable(); @@ -1294,6 +1377,9 @@ public Builder addFeaturesValue(int value) { * * * repeated .google.cloud.videointelligence.v1p1beta1.Feature features = 2; + * + * @param values The enum numeric values on the wire for features to add. + * @return This builder for chaining. */ public Builder addAllFeaturesValue(java.lang.Iterable values) { ensureFeaturesIsMutable(); @@ -1318,6 +1404,8 @@ public Builder addAllFeaturesValue(java.lang.Iterable values) * * * .google.cloud.videointelligence.v1p1beta1.VideoContext video_context = 3; + * + * @return Whether the videoContext field is set. */ public boolean hasVideoContext() { return videoContextBuilder_ != null || videoContext_ != null; @@ -1330,6 +1418,8 @@ public boolean hasVideoContext() { * * * .google.cloud.videointelligence.v1p1beta1.VideoContext video_context = 3; + * + * @return The videoContext. */ public com.google.cloud.videointelligence.v1p1beta1.VideoContext getVideoContext() { if (videoContextBuilder_ == null) { @@ -1504,6 +1594,8 @@ public Builder clearVideoContext() { * * * string output_uri = 4; + * + * @return The outputUri. */ public java.lang.String getOutputUri() { java.lang.Object ref = outputUri_; @@ -1529,6 +1621,8 @@ public java.lang.String getOutputUri() { * * * string output_uri = 4; + * + * @return The bytes for outputUri. */ public com.google.protobuf.ByteString getOutputUriBytes() { java.lang.Object ref = outputUri_; @@ -1554,6 +1648,9 @@ public com.google.protobuf.ByteString getOutputUriBytes() { * * * string output_uri = 4; + * + * @param value The outputUri to set. + * @return This builder for chaining. */ public Builder setOutputUri(java.lang.String value) { if (value == null) { @@ -1577,6 +1674,8 @@ public Builder setOutputUri(java.lang.String value) { * * * string output_uri = 4; + * + * @return This builder for chaining. */ public Builder clearOutputUri() { @@ -1597,6 +1696,9 @@ public Builder clearOutputUri() { * * * string output_uri = 4; + * + * @param value The bytes for outputUri to set. + * @return This builder for chaining. */ public Builder setOutputUriBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1620,6 +1722,8 @@ public Builder setOutputUriBytes(com.google.protobuf.ByteString value) { * * * string location_id = 5; + * + * @return The locationId. */ public java.lang.String getLocationId() { java.lang.Object ref = locationId_; @@ -1642,6 +1746,8 @@ public java.lang.String getLocationId() { * * * string location_id = 5; + * + * @return The bytes for locationId. */ public com.google.protobuf.ByteString getLocationIdBytes() { java.lang.Object ref = locationId_; @@ -1664,6 +1770,9 @@ public com.google.protobuf.ByteString getLocationIdBytes() { * * * string location_id = 5; + * + * @param value The locationId to set. + * @return This builder for chaining. */ public Builder setLocationId(java.lang.String value) { if (value == null) { @@ -1684,6 +1793,8 @@ public Builder setLocationId(java.lang.String value) { * * * string location_id = 5; + * + * @return This builder for chaining. */ public Builder clearLocationId() { @@ -1701,6 +1812,9 @@ public Builder clearLocationId() { * * * string location_id = 5; + * + * @param value The bytes for locationId to set. + * @return This builder for chaining. */ public Builder setLocationIdBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/AnnotateVideoRequestOrBuilder.java b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/AnnotateVideoRequestOrBuilder.java index 88c80b070..6d8cec2e1 100644 --- a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/AnnotateVideoRequestOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/AnnotateVideoRequestOrBuilder.java @@ -40,6 +40,8 @@ public interface AnnotateVideoRequestOrBuilder * * * string input_uri = 1; + * + * @return The inputUri. */ java.lang.String getInputUri(); /** @@ -59,6 +61,8 @@ public interface AnnotateVideoRequestOrBuilder * * * string input_uri = 1; + * + * @return The bytes for inputUri. */ com.google.protobuf.ByteString getInputUriBytes(); @@ -72,6 +76,8 @@ public interface AnnotateVideoRequestOrBuilder * * * bytes input_content = 6; + * + * @return The inputContent. */ com.google.protobuf.ByteString getInputContent(); @@ -83,6 +89,8 @@ public interface AnnotateVideoRequestOrBuilder * * * repeated .google.cloud.videointelligence.v1p1beta1.Feature features = 2; + * + * @return A list containing the features. */ java.util.List getFeaturesList(); /** @@ -93,6 +101,8 @@ public interface AnnotateVideoRequestOrBuilder * * * repeated .google.cloud.videointelligence.v1p1beta1.Feature features = 2; + * + * @return The count of features. */ int getFeaturesCount(); /** @@ -103,6 +113,9 @@ public interface AnnotateVideoRequestOrBuilder * * * repeated .google.cloud.videointelligence.v1p1beta1.Feature features = 2; + * + * @param index The index of the element to return. + * @return The features at the given index. */ com.google.cloud.videointelligence.v1p1beta1.Feature getFeatures(int index); /** @@ -113,6 +126,8 @@ public interface AnnotateVideoRequestOrBuilder * * * repeated .google.cloud.videointelligence.v1p1beta1.Feature features = 2; + * + * @return A list containing the enum numeric values on the wire for features. */ java.util.List getFeaturesValueList(); /** @@ -123,6 +138,9 @@ public interface AnnotateVideoRequestOrBuilder * * * repeated .google.cloud.videointelligence.v1p1beta1.Feature features = 2; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of features at the given index. */ int getFeaturesValue(int index); @@ -134,6 +152,8 @@ public interface AnnotateVideoRequestOrBuilder * * * .google.cloud.videointelligence.v1p1beta1.VideoContext video_context = 3; + * + * @return Whether the videoContext field is set. */ boolean hasVideoContext(); /** @@ -144,6 +164,8 @@ public interface AnnotateVideoRequestOrBuilder * * * .google.cloud.videointelligence.v1p1beta1.VideoContext video_context = 3; + * + * @return The videoContext. */ com.google.cloud.videointelligence.v1p1beta1.VideoContext getVideoContext(); /** @@ -170,6 +192,8 @@ public interface AnnotateVideoRequestOrBuilder * * * string output_uri = 4; + * + * @return The outputUri. */ java.lang.String getOutputUri(); /** @@ -185,6 +209,8 @@ public interface AnnotateVideoRequestOrBuilder * * * string output_uri = 4; + * + * @return The bytes for outputUri. */ com.google.protobuf.ByteString getOutputUriBytes(); @@ -198,6 +224,8 @@ public interface AnnotateVideoRequestOrBuilder * * * string location_id = 5; + * + * @return The locationId. */ java.lang.String getLocationId(); /** @@ -210,6 +238,8 @@ public interface AnnotateVideoRequestOrBuilder * * * string location_id = 5; + * + * @return The bytes for locationId. */ com.google.protobuf.ByteString getLocationIdBytes(); } diff --git a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/AnnotateVideoResponse.java b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/AnnotateVideoResponse.java index 7d61431bc..782137a4e 100644 --- a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/AnnotateVideoResponse.java +++ b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/AnnotateVideoResponse.java @@ -43,6 +43,12 @@ private AnnotateVideoResponse() { annotationResults_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AnnotateVideoResponse(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; diff --git a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/Entity.java b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/Entity.java index 7430aadbb..e6d03fe07 100644 --- a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/Entity.java +++ b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/Entity.java @@ -43,6 +43,12 @@ private Entity() { languageCode_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Entity(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -56,7 +62,6 @@ private Entity( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -134,6 +139,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string entity_id = 1; + * + * @return The entityId. */ public java.lang.String getEntityId() { java.lang.Object ref = entityId_; @@ -156,6 +163,8 @@ public java.lang.String getEntityId() { * * * string entity_id = 1; + * + * @return The bytes for entityId. */ public com.google.protobuf.ByteString getEntityIdBytes() { java.lang.Object ref = entityId_; @@ -179,6 +188,8 @@ public com.google.protobuf.ByteString getEntityIdBytes() { * * * string description = 2; + * + * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; @@ -199,6 +210,8 @@ public java.lang.String getDescription() { * * * string description = 2; + * + * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; @@ -222,6 +235,8 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * * string language_code = 3; + * + * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; @@ -242,6 +257,8 @@ public java.lang.String getLanguageCode() { * * * string language_code = 3; + * + * @return The bytes for languageCode. */ public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; @@ -616,6 +633,8 @@ public Builder mergeFrom( * * * string entity_id = 1; + * + * @return The entityId. */ public java.lang.String getEntityId() { java.lang.Object ref = entityId_; @@ -638,6 +657,8 @@ public java.lang.String getEntityId() { * * * string entity_id = 1; + * + * @return The bytes for entityId. */ public com.google.protobuf.ByteString getEntityIdBytes() { java.lang.Object ref = entityId_; @@ -660,6 +681,9 @@ public com.google.protobuf.ByteString getEntityIdBytes() { * * * string entity_id = 1; + * + * @param value The entityId to set. + * @return This builder for chaining. */ public Builder setEntityId(java.lang.String value) { if (value == null) { @@ -680,6 +704,8 @@ public Builder setEntityId(java.lang.String value) { * * * string entity_id = 1; + * + * @return This builder for chaining. */ public Builder clearEntityId() { @@ -697,6 +723,9 @@ public Builder clearEntityId() { * * * string entity_id = 1; + * + * @param value The bytes for entityId to set. + * @return This builder for chaining. */ public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -718,6 +747,8 @@ public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { * * * string description = 2; + * + * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; @@ -738,6 +769,8 @@ public java.lang.String getDescription() { * * * string description = 2; + * + * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; @@ -758,6 +791,9 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * * string description = 2; + * + * @param value The description to set. + * @return This builder for chaining. */ public Builder setDescription(java.lang.String value) { if (value == null) { @@ -776,6 +812,8 @@ public Builder setDescription(java.lang.String value) { * * * string description = 2; + * + * @return This builder for chaining. */ public Builder clearDescription() { @@ -791,6 +829,9 @@ public Builder clearDescription() { * * * string description = 2; + * + * @param value The bytes for description to set. + * @return This builder for chaining. */ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -812,6 +853,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * * * string language_code = 3; + * + * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; @@ -832,6 +875,8 @@ public java.lang.String getLanguageCode() { * * * string language_code = 3; + * + * @return The bytes for languageCode. */ public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; @@ -852,6 +897,9 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { * * * string language_code = 3; + * + * @param value The languageCode to set. + * @return This builder for chaining. */ public Builder setLanguageCode(java.lang.String value) { if (value == null) { @@ -870,6 +918,8 @@ public Builder setLanguageCode(java.lang.String value) { * * * string language_code = 3; + * + * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -885,6 +935,9 @@ public Builder clearLanguageCode() { * * * string language_code = 3; + * + * @param value The bytes for languageCode to set. + * @return This builder for chaining. */ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/EntityOrBuilder.java b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/EntityOrBuilder.java index 7ab50381a..d12d2499f 100644 --- a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/EntityOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/EntityOrBuilder.java @@ -33,6 +33,8 @@ public interface EntityOrBuilder * * * string entity_id = 1; + * + * @return The entityId. */ java.lang.String getEntityId(); /** @@ -45,6 +47,8 @@ public interface EntityOrBuilder * * * string entity_id = 1; + * + * @return The bytes for entityId. */ com.google.protobuf.ByteString getEntityIdBytes(); @@ -56,6 +60,8 @@ public interface EntityOrBuilder * * * string description = 2; + * + * @return The description. */ java.lang.String getDescription(); /** @@ -66,6 +72,8 @@ public interface EntityOrBuilder * * * string description = 2; + * + * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); @@ -77,6 +85,8 @@ public interface EntityOrBuilder * * * string language_code = 3; + * + * @return The languageCode. */ java.lang.String getLanguageCode(); /** @@ -87,6 +97,8 @@ public interface EntityOrBuilder * * * string language_code = 3; + * + * @return The bytes for languageCode. */ com.google.protobuf.ByteString getLanguageCodeBytes(); } diff --git a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/ExplicitContentAnnotation.java b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/ExplicitContentAnnotation.java index 1b90bb74b..4993cef68 100644 --- a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/ExplicitContentAnnotation.java +++ b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/ExplicitContentAnnotation.java @@ -43,6 +43,12 @@ private ExplicitContentAnnotation() { frames_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExplicitContentAnnotation(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; diff --git a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/ExplicitContentDetectionConfig.java b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/ExplicitContentDetectionConfig.java index 293e2b321..e73c33bdf 100644 --- a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/ExplicitContentDetectionConfig.java +++ b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/ExplicitContentDetectionConfig.java @@ -42,6 +42,12 @@ private ExplicitContentDetectionConfig() { model_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExplicitContentDetectionConfig(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -55,7 +61,6 @@ private ExplicitContentDetectionConfig( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -120,6 +125,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string model = 1; + * + * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; @@ -142,6 +149,8 @@ public java.lang.String getModel() { * * * string model = 1; + * + * @return The bytes for model. */ public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; @@ -504,6 +513,8 @@ public Builder mergeFrom( * * * string model = 1; + * + * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; @@ -526,6 +537,8 @@ public java.lang.String getModel() { * * * string model = 1; + * + * @return The bytes for model. */ public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; @@ -548,6 +561,9 @@ public com.google.protobuf.ByteString getModelBytes() { * * * string model = 1; + * + * @param value The model to set. + * @return This builder for chaining. */ public Builder setModel(java.lang.String value) { if (value == null) { @@ -568,6 +584,8 @@ public Builder setModel(java.lang.String value) { * * * string model = 1; + * + * @return This builder for chaining. */ public Builder clearModel() { @@ -585,6 +603,9 @@ public Builder clearModel() { * * * string model = 1; + * + * @param value The bytes for model to set. + * @return This builder for chaining. */ public Builder setModelBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/ExplicitContentDetectionConfigOrBuilder.java b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/ExplicitContentDetectionConfigOrBuilder.java index 1cba43d47..62713b7d9 100644 --- a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/ExplicitContentDetectionConfigOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/ExplicitContentDetectionConfigOrBuilder.java @@ -33,6 +33,8 @@ public interface ExplicitContentDetectionConfigOrBuilder * * * string model = 1; + * + * @return The model. */ java.lang.String getModel(); /** @@ -45,6 +47,8 @@ public interface ExplicitContentDetectionConfigOrBuilder * * * string model = 1; + * + * @return The bytes for model. */ com.google.protobuf.ByteString getModelBytes(); } diff --git a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/ExplicitContentFrame.java b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/ExplicitContentFrame.java index 1cb1830c7..8c1e7b1d8 100644 --- a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/ExplicitContentFrame.java +++ b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/ExplicitContentFrame.java @@ -41,6 +41,12 @@ private ExplicitContentFrame() { pornographyLikelihood_ = 0; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExplicitContentFrame(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private ExplicitContentFrame( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -132,6 +137,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.protobuf.Duration time_offset = 1; + * + * @return Whether the timeOffset field is set. */ public boolean hasTimeOffset() { return timeOffset_ != null; @@ -145,6 +152,8 @@ public boolean hasTimeOffset() { * * * .google.protobuf.Duration time_offset = 1; + * + * @return The timeOffset. */ public com.google.protobuf.Duration getTimeOffset() { return timeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeOffset_; @@ -173,6 +182,8 @@ public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() { * * * .google.cloud.videointelligence.v1p1beta1.Likelihood pornography_likelihood = 2; + * + * @return The enum numeric value on the wire for pornographyLikelihood. */ public int getPornographyLikelihoodValue() { return pornographyLikelihood_; @@ -185,6 +196,8 @@ public int getPornographyLikelihoodValue() { * * * .google.cloud.videointelligence.v1p1beta1.Likelihood pornography_likelihood = 2; + * + * @return The pornographyLikelihood. */ public com.google.cloud.videointelligence.v1p1beta1.Likelihood getPornographyLikelihood() { @SuppressWarnings("deprecation") @@ -566,6 +579,8 @@ public Builder mergeFrom( * * * .google.protobuf.Duration time_offset = 1; + * + * @return Whether the timeOffset field is set. */ public boolean hasTimeOffset() { return timeOffsetBuilder_ != null || timeOffset_ != null; @@ -579,6 +594,8 @@ public boolean hasTimeOffset() { * * * .google.protobuf.Duration time_offset = 1; + * + * @return The timeOffset. */ public com.google.protobuf.Duration getTimeOffset() { if (timeOffsetBuilder_ == null) { @@ -748,6 +765,8 @@ public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() { * * * .google.cloud.videointelligence.v1p1beta1.Likelihood pornography_likelihood = 2; + * + * @return The enum numeric value on the wire for pornographyLikelihood. */ public int getPornographyLikelihoodValue() { return pornographyLikelihood_; @@ -760,6 +779,9 @@ public int getPornographyLikelihoodValue() { * * * .google.cloud.videointelligence.v1p1beta1.Likelihood pornography_likelihood = 2; + * + * @param value The enum numeric value on the wire for pornographyLikelihood to set. + * @return This builder for chaining. */ public Builder setPornographyLikelihoodValue(int value) { pornographyLikelihood_ = value; @@ -774,6 +796,8 @@ public Builder setPornographyLikelihoodValue(int value) { * * * .google.cloud.videointelligence.v1p1beta1.Likelihood pornography_likelihood = 2; + * + * @return The pornographyLikelihood. */ public com.google.cloud.videointelligence.v1p1beta1.Likelihood getPornographyLikelihood() { @SuppressWarnings("deprecation") @@ -791,6 +815,9 @@ public com.google.cloud.videointelligence.v1p1beta1.Likelihood getPornographyLik * * * .google.cloud.videointelligence.v1p1beta1.Likelihood pornography_likelihood = 2; + * + * @param value The pornographyLikelihood to set. + * @return This builder for chaining. */ public Builder setPornographyLikelihood( com.google.cloud.videointelligence.v1p1beta1.Likelihood value) { @@ -810,6 +837,8 @@ public Builder setPornographyLikelihood( * * * .google.cloud.videointelligence.v1p1beta1.Likelihood pornography_likelihood = 2; + * + * @return This builder for chaining. */ public Builder clearPornographyLikelihood() { diff --git a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/ExplicitContentFrameOrBuilder.java b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/ExplicitContentFrameOrBuilder.java index a4c65135a..c45c897fa 100644 --- a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/ExplicitContentFrameOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/ExplicitContentFrameOrBuilder.java @@ -32,6 +32,8 @@ public interface ExplicitContentFrameOrBuilder * * * .google.protobuf.Duration time_offset = 1; + * + * @return Whether the timeOffset field is set. */ boolean hasTimeOffset(); /** @@ -43,6 +45,8 @@ public interface ExplicitContentFrameOrBuilder * * * .google.protobuf.Duration time_offset = 1; + * + * @return The timeOffset. */ com.google.protobuf.Duration getTimeOffset(); /** @@ -65,6 +69,8 @@ public interface ExplicitContentFrameOrBuilder * * * .google.cloud.videointelligence.v1p1beta1.Likelihood pornography_likelihood = 2; + * + * @return The enum numeric value on the wire for pornographyLikelihood. */ int getPornographyLikelihoodValue(); /** @@ -75,6 +81,8 @@ public interface ExplicitContentFrameOrBuilder * * * .google.cloud.videointelligence.v1p1beta1.Likelihood pornography_likelihood = 2; + * + * @return The pornographyLikelihood. */ com.google.cloud.videointelligence.v1p1beta1.Likelihood getPornographyLikelihood(); } diff --git a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/Feature.java b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/Feature.java index 21da5fd05..9e9b3904c 100644 --- a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/Feature.java +++ b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/Feature.java @@ -140,12 +140,20 @@ public final int getNumber() { return value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ @java.lang.Deprecated public static Feature valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Feature forNumber(int value) { switch (value) { case 0: diff --git a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/LabelAnnotation.java b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/LabelAnnotation.java index 2e6533613..7c9b86588 100644 --- a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/LabelAnnotation.java +++ b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/LabelAnnotation.java @@ -43,6 +43,12 @@ private LabelAnnotation() { frames_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LabelAnnotation(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -86,10 +92,10 @@ private LabelAnnotation( } case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { categoryEntities_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + mutable_bitField0_ |= 0x00000001; } categoryEntities_.add( input.readMessage( @@ -99,11 +105,11 @@ private LabelAnnotation( } case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { segments_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p1beta1.LabelSegment>(); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000002; } segments_.add( input.readMessage( @@ -113,11 +119,11 @@ private LabelAnnotation( } case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { frames_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p1beta1.LabelFrame>(); - mutable_bitField0_ |= 0x00000008; + mutable_bitField0_ |= 0x00000004; } frames_.add( input.readMessage( @@ -139,13 +145,13 @@ private LabelAnnotation( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { categoryEntities_ = java.util.Collections.unmodifiableList(categoryEntities_); } - if (((mutable_bitField0_ & 0x00000004) != 0)) { + if (((mutable_bitField0_ & 0x00000002) != 0)) { segments_ = java.util.Collections.unmodifiableList(segments_); } - if (((mutable_bitField0_ & 0x00000008) != 0)) { + if (((mutable_bitField0_ & 0x00000004) != 0)) { frames_ = java.util.Collections.unmodifiableList(frames_); } this.unknownFields = unknownFields.build(); @@ -168,7 +174,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.videointelligence.v1p1beta1.LabelAnnotation.Builder.class); } - private int bitField0_; public static final int ENTITY_FIELD_NUMBER = 1; private com.google.cloud.videointelligence.v1p1beta1.Entity entity_; /** @@ -179,6 +184,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.cloud.videointelligence.v1p1beta1.Entity entity = 1; + * + * @return Whether the entity field is set. */ public boolean hasEntity() { return entity_ != null; @@ -191,6 +198,8 @@ public boolean hasEntity() { * * * .google.cloud.videointelligence.v1p1beta1.Entity entity = 1; + * + * @return The entity. */ public com.google.cloud.videointelligence.v1p1beta1.Entity getEntity() { return entity_ == null @@ -678,19 +687,19 @@ public Builder clear() { } if (categoryEntitiesBuilder_ == null) { categoryEntities_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } else { categoryEntitiesBuilder_.clear(); } if (segmentsBuilder_ == null) { segments_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); } else { segmentsBuilder_.clear(); } if (framesBuilder_ == null) { frames_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); } else { framesBuilder_.clear(); } @@ -723,40 +732,38 @@ public com.google.cloud.videointelligence.v1p1beta1.LabelAnnotation buildPartial com.google.cloud.videointelligence.v1p1beta1.LabelAnnotation result = new com.google.cloud.videointelligence.v1p1beta1.LabelAnnotation(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (entityBuilder_ == null) { result.entity_ = entity_; } else { result.entity_ = entityBuilder_.build(); } if (categoryEntitiesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { categoryEntities_ = java.util.Collections.unmodifiableList(categoryEntities_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } result.categoryEntities_ = categoryEntities_; } else { result.categoryEntities_ = categoryEntitiesBuilder_.build(); } if (segmentsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { segments_ = java.util.Collections.unmodifiableList(segments_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); } result.segments_ = segments_; } else { result.segments_ = segmentsBuilder_.build(); } if (framesBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { frames_ = java.util.Collections.unmodifiableList(frames_); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); } result.frames_ = frames_; } else { result.frames_ = framesBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -815,7 +822,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1p1beta1.LabelAnnot if (!other.categoryEntities_.isEmpty()) { if (categoryEntities_.isEmpty()) { categoryEntities_ = other.categoryEntities_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureCategoryEntitiesIsMutable(); categoryEntities_.addAll(other.categoryEntities_); @@ -828,7 +835,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1p1beta1.LabelAnnot categoryEntitiesBuilder_.dispose(); categoryEntitiesBuilder_ = null; categoryEntities_ = other.categoryEntities_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); categoryEntitiesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCategoryEntitiesFieldBuilder() @@ -842,7 +849,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1p1beta1.LabelAnnot if (!other.segments_.isEmpty()) { if (segments_.isEmpty()) { segments_ = other.segments_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureSegmentsIsMutable(); segments_.addAll(other.segments_); @@ -855,7 +862,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1p1beta1.LabelAnnot segmentsBuilder_.dispose(); segmentsBuilder_ = null; segments_ = other.segments_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); segmentsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSegmentsFieldBuilder() @@ -869,7 +876,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1p1beta1.LabelAnnot if (!other.frames_.isEmpty()) { if (frames_.isEmpty()) { frames_ = other.frames_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureFramesIsMutable(); frames_.addAll(other.frames_); @@ -882,7 +889,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1p1beta1.LabelAnnot framesBuilder_.dispose(); framesBuilder_ = null; frames_ = other.frames_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); framesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFramesFieldBuilder() @@ -938,6 +945,8 @@ public Builder mergeFrom( * * * .google.cloud.videointelligence.v1p1beta1.Entity entity = 1; + * + * @return Whether the entity field is set. */ public boolean hasEntity() { return entityBuilder_ != null || entity_ != null; @@ -950,6 +959,8 @@ public boolean hasEntity() { * * * .google.cloud.videointelligence.v1p1beta1.Entity entity = 1; + * + * @return The entity. */ public com.google.cloud.videointelligence.v1p1beta1.Entity getEntity() { if (entityBuilder_ == null) { @@ -1110,11 +1121,11 @@ public com.google.cloud.videointelligence.v1p1beta1.EntityOrBuilder getEntityOrB java.util.Collections.emptyList(); private void ensureCategoryEntitiesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { categoryEntities_ = new java.util.ArrayList( categoryEntities_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } @@ -1366,7 +1377,7 @@ public Builder addAllCategoryEntities( public Builder clearCategoryEntities() { if (categoryEntitiesBuilder_ == null) { categoryEntities_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { categoryEntitiesBuilder_.clear(); @@ -1515,7 +1526,7 @@ public com.google.cloud.videointelligence.v1p1beta1.Entity.Builder addCategoryEn com.google.cloud.videointelligence.v1p1beta1.Entity.Builder, com.google.cloud.videointelligence.v1p1beta1.EntityOrBuilder>( categoryEntities_, - ((bitField0_ & 0x00000002) != 0), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); categoryEntities_ = null; @@ -1527,11 +1538,11 @@ public com.google.cloud.videointelligence.v1p1beta1.Entity.Builder addCategoryEn java.util.Collections.emptyList(); private void ensureSegmentsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { segments_ = new java.util.ArrayList( segments_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; } } @@ -1753,7 +1764,7 @@ public Builder addAllSegments( public Builder clearSegments() { if (segmentsBuilder_ == null) { segments_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { segmentsBuilder_.clear(); @@ -1882,7 +1893,7 @@ public com.google.cloud.videointelligence.v1p1beta1.LabelSegment.Builder addSegm com.google.cloud.videointelligence.v1p1beta1.LabelSegment, com.google.cloud.videointelligence.v1p1beta1.LabelSegment.Builder, com.google.cloud.videointelligence.v1p1beta1.LabelSegmentOrBuilder>( - segments_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + segments_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); segments_ = null; } return segmentsBuilder_; @@ -1892,11 +1903,11 @@ public com.google.cloud.videointelligence.v1p1beta1.LabelSegment.Builder addSegm java.util.Collections.emptyList(); private void ensureFramesIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { frames_ = new java.util.ArrayList( frames_); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; } } @@ -2117,7 +2128,7 @@ public Builder addAllFrames( public Builder clearFrames() { if (framesBuilder_ == null) { frames_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { framesBuilder_.clear(); @@ -2244,7 +2255,7 @@ public com.google.cloud.videointelligence.v1p1beta1.LabelFrame.Builder addFrames com.google.cloud.videointelligence.v1p1beta1.LabelFrame, com.google.cloud.videointelligence.v1p1beta1.LabelFrame.Builder, com.google.cloud.videointelligence.v1p1beta1.LabelFrameOrBuilder>( - frames_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + frames_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); frames_ = null; } return framesBuilder_; diff --git a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/LabelAnnotationOrBuilder.java b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/LabelAnnotationOrBuilder.java index 498d41529..3ca44f427 100644 --- a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/LabelAnnotationOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/LabelAnnotationOrBuilder.java @@ -31,6 +31,8 @@ public interface LabelAnnotationOrBuilder * * * .google.cloud.videointelligence.v1p1beta1.Entity entity = 1; + * + * @return Whether the entity field is set. */ boolean hasEntity(); /** @@ -41,6 +43,8 @@ public interface LabelAnnotationOrBuilder * * * .google.cloud.videointelligence.v1p1beta1.Entity entity = 1; + * + * @return The entity. */ com.google.cloud.videointelligence.v1p1beta1.Entity getEntity(); /** diff --git a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/LabelDetectionConfig.java b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/LabelDetectionConfig.java index b953711b5..80a33a188 100644 --- a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/LabelDetectionConfig.java +++ b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/LabelDetectionConfig.java @@ -42,6 +42,12 @@ private LabelDetectionConfig() { model_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LabelDetectionConfig(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -55,7 +61,6 @@ private LabelDetectionConfig( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -132,6 +137,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * .google.cloud.videointelligence.v1p1beta1.LabelDetectionMode label_detection_mode = 1; * + * + * @return The enum numeric value on the wire for labelDetectionMode. */ public int getLabelDetectionModeValue() { return labelDetectionMode_; @@ -147,6 +154,8 @@ public int getLabelDetectionModeValue() { * * .google.cloud.videointelligence.v1p1beta1.LabelDetectionMode label_detection_mode = 1; * + * + * @return The labelDetectionMode. */ public com.google.cloud.videointelligence.v1p1beta1.LabelDetectionMode getLabelDetectionMode() { @SuppressWarnings("deprecation") @@ -170,6 +179,8 @@ public com.google.cloud.videointelligence.v1p1beta1.LabelDetectionMode getLabelD * * * bool stationary_camera = 2; + * + * @return The stationaryCamera. */ public boolean getStationaryCamera() { return stationaryCamera_; @@ -187,6 +198,8 @@ public boolean getStationaryCamera() { * * * string model = 3; + * + * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; @@ -209,6 +222,8 @@ public java.lang.String getModel() { * * * string model = 3; + * + * @return The bytes for model. */ public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; @@ -595,6 +610,8 @@ public Builder mergeFrom( * * .google.cloud.videointelligence.v1p1beta1.LabelDetectionMode label_detection_mode = 1; * + * + * @return The enum numeric value on the wire for labelDetectionMode. */ public int getLabelDetectionModeValue() { return labelDetectionMode_; @@ -610,6 +627,9 @@ public int getLabelDetectionModeValue() { * * .google.cloud.videointelligence.v1p1beta1.LabelDetectionMode label_detection_mode = 1; * + * + * @param value The enum numeric value on the wire for labelDetectionMode to set. + * @return This builder for chaining. */ public Builder setLabelDetectionModeValue(int value) { labelDetectionMode_ = value; @@ -627,6 +647,8 @@ public Builder setLabelDetectionModeValue(int value) { * * .google.cloud.videointelligence.v1p1beta1.LabelDetectionMode label_detection_mode = 1; * + * + * @return The labelDetectionMode. */ public com.google.cloud.videointelligence.v1p1beta1.LabelDetectionMode getLabelDetectionMode() { @SuppressWarnings("deprecation") @@ -648,6 +670,9 @@ public com.google.cloud.videointelligence.v1p1beta1.LabelDetectionMode getLabelD * * .google.cloud.videointelligence.v1p1beta1.LabelDetectionMode label_detection_mode = 1; * + * + * @param value The labelDetectionMode to set. + * @return This builder for chaining. */ public Builder setLabelDetectionMode( com.google.cloud.videointelligence.v1p1beta1.LabelDetectionMode value) { @@ -670,6 +695,8 @@ public Builder setLabelDetectionMode( * * .google.cloud.videointelligence.v1p1beta1.LabelDetectionMode label_detection_mode = 1; * + * + * @return This builder for chaining. */ public Builder clearLabelDetectionMode() { @@ -689,6 +716,8 @@ public Builder clearLabelDetectionMode() { * * * bool stationary_camera = 2; + * + * @return The stationaryCamera. */ public boolean getStationaryCamera() { return stationaryCamera_; @@ -703,6 +732,9 @@ public boolean getStationaryCamera() { * * * bool stationary_camera = 2; + * + * @param value The stationaryCamera to set. + * @return This builder for chaining. */ public Builder setStationaryCamera(boolean value) { @@ -720,6 +752,8 @@ public Builder setStationaryCamera(boolean value) { * * * bool stationary_camera = 2; + * + * @return This builder for chaining. */ public Builder clearStationaryCamera() { @@ -739,6 +773,8 @@ public Builder clearStationaryCamera() { * * * string model = 3; + * + * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; @@ -761,6 +797,8 @@ public java.lang.String getModel() { * * * string model = 3; + * + * @return The bytes for model. */ public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; @@ -783,6 +821,9 @@ public com.google.protobuf.ByteString getModelBytes() { * * * string model = 3; + * + * @param value The model to set. + * @return This builder for chaining. */ public Builder setModel(java.lang.String value) { if (value == null) { @@ -803,6 +844,8 @@ public Builder setModel(java.lang.String value) { * * * string model = 3; + * + * @return This builder for chaining. */ public Builder clearModel() { @@ -820,6 +863,9 @@ public Builder clearModel() { * * * string model = 3; + * + * @param value The bytes for model to set. + * @return This builder for chaining. */ public Builder setModelBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/LabelDetectionConfigOrBuilder.java b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/LabelDetectionConfigOrBuilder.java index 91a318825..325616f41 100644 --- a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/LabelDetectionConfigOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/LabelDetectionConfigOrBuilder.java @@ -34,6 +34,8 @@ public interface LabelDetectionConfigOrBuilder * * .google.cloud.videointelligence.v1p1beta1.LabelDetectionMode label_detection_mode = 1; * + * + * @return The enum numeric value on the wire for labelDetectionMode. */ int getLabelDetectionModeValue(); /** @@ -47,6 +49,8 @@ public interface LabelDetectionConfigOrBuilder * * .google.cloud.videointelligence.v1p1beta1.LabelDetectionMode label_detection_mode = 1; * + * + * @return The labelDetectionMode. */ com.google.cloud.videointelligence.v1p1beta1.LabelDetectionMode getLabelDetectionMode(); @@ -60,6 +64,8 @@ public interface LabelDetectionConfigOrBuilder * * * bool stationary_camera = 2; + * + * @return The stationaryCamera. */ boolean getStationaryCamera(); @@ -73,6 +79,8 @@ public interface LabelDetectionConfigOrBuilder * * * string model = 3; + * + * @return The model. */ java.lang.String getModel(); /** @@ -85,6 +93,8 @@ public interface LabelDetectionConfigOrBuilder * * * string model = 3; + * + * @return The bytes for model. */ com.google.protobuf.ByteString getModelBytes(); } diff --git a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/LabelDetectionMode.java b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/LabelDetectionMode.java index f3942f12d..f29e6aab1 100644 --- a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/LabelDetectionMode.java +++ b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/LabelDetectionMode.java @@ -120,12 +120,20 @@ public final int getNumber() { return value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ @java.lang.Deprecated public static LabelDetectionMode valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static LabelDetectionMode forNumber(int value) { switch (value) { case 0: diff --git a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/LabelFrame.java b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/LabelFrame.java index 5ecbc1680..e6812d3f4 100644 --- a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/LabelFrame.java +++ b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/LabelFrame.java @@ -39,6 +39,12 @@ private LabelFrame(com.google.protobuf.GeneratedMessageV3.Builder builder) { private LabelFrame() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LabelFrame(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -52,7 +58,6 @@ private LabelFrame( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -128,6 +133,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.protobuf.Duration time_offset = 1; + * + * @return Whether the timeOffset field is set. */ public boolean hasTimeOffset() { return timeOffset_ != null; @@ -141,6 +148,8 @@ public boolean hasTimeOffset() { * * * .google.protobuf.Duration time_offset = 1; + * + * @return The timeOffset. */ public com.google.protobuf.Duration getTimeOffset() { return timeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeOffset_; @@ -169,6 +178,8 @@ public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() { * * * float confidence = 2; + * + * @return The confidence. */ public float getConfidence() { return confidence_; @@ -536,6 +547,8 @@ public Builder mergeFrom( * * * .google.protobuf.Duration time_offset = 1; + * + * @return Whether the timeOffset field is set. */ public boolean hasTimeOffset() { return timeOffsetBuilder_ != null || timeOffset_ != null; @@ -549,6 +562,8 @@ public boolean hasTimeOffset() { * * * .google.protobuf.Duration time_offset = 1; + * + * @return The timeOffset. */ public com.google.protobuf.Duration getTimeOffset() { if (timeOffsetBuilder_ == null) { @@ -718,6 +733,8 @@ public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() { * * * float confidence = 2; + * + * @return The confidence. */ public float getConfidence() { return confidence_; @@ -730,6 +747,9 @@ public float getConfidence() { * * * float confidence = 2; + * + * @param value The confidence to set. + * @return This builder for chaining. */ public Builder setConfidence(float value) { @@ -745,6 +765,8 @@ public Builder setConfidence(float value) { * * * float confidence = 2; + * + * @return This builder for chaining. */ public Builder clearConfidence() { diff --git a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/LabelFrameOrBuilder.java b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/LabelFrameOrBuilder.java index 655407fa2..900079e4b 100644 --- a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/LabelFrameOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/LabelFrameOrBuilder.java @@ -32,6 +32,8 @@ public interface LabelFrameOrBuilder * * * .google.protobuf.Duration time_offset = 1; + * + * @return Whether the timeOffset field is set. */ boolean hasTimeOffset(); /** @@ -43,6 +45,8 @@ public interface LabelFrameOrBuilder * * * .google.protobuf.Duration time_offset = 1; + * + * @return The timeOffset. */ com.google.protobuf.Duration getTimeOffset(); /** @@ -65,6 +69,8 @@ public interface LabelFrameOrBuilder * * * float confidence = 2; + * + * @return The confidence. */ float getConfidence(); } diff --git a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/LabelSegment.java b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/LabelSegment.java index af63db380..6648b9db1 100644 --- a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/LabelSegment.java +++ b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/LabelSegment.java @@ -39,6 +39,12 @@ private LabelSegment(com.google.protobuf.GeneratedMessageV3.Builder builder) private LabelSegment() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LabelSegment(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -52,7 +58,6 @@ private LabelSegment( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -129,6 +134,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.cloud.videointelligence.v1p1beta1.VideoSegment segment = 1; + * + * @return Whether the segment field is set. */ public boolean hasSegment() { return segment_ != null; @@ -141,6 +148,8 @@ public boolean hasSegment() { * * * .google.cloud.videointelligence.v1p1beta1.VideoSegment segment = 1; + * + * @return The segment. */ public com.google.cloud.videointelligence.v1p1beta1.VideoSegment getSegment() { return segment_ == null @@ -170,6 +179,8 @@ public com.google.cloud.videointelligence.v1p1beta1.VideoSegmentOrBuilder getSeg * * * float confidence = 2; + * + * @return The confidence. */ public float getConfidence() { return confidence_; @@ -536,6 +547,8 @@ public Builder mergeFrom( * * * .google.cloud.videointelligence.v1p1beta1.VideoSegment segment = 1; + * + * @return Whether the segment field is set. */ public boolean hasSegment() { return segmentBuilder_ != null || segment_ != null; @@ -548,6 +561,8 @@ public boolean hasSegment() { * * * .google.cloud.videointelligence.v1p1beta1.VideoSegment segment = 1; + * + * @return The segment. */ public com.google.cloud.videointelligence.v1p1beta1.VideoSegment getSegment() { if (segmentBuilder_ == null) { @@ -714,6 +729,8 @@ public com.google.cloud.videointelligence.v1p1beta1.VideoSegment.Builder getSegm * * * float confidence = 2; + * + * @return The confidence. */ public float getConfidence() { return confidence_; @@ -726,6 +743,9 @@ public float getConfidence() { * * * float confidence = 2; + * + * @param value The confidence to set. + * @return This builder for chaining. */ public Builder setConfidence(float value) { @@ -741,6 +761,8 @@ public Builder setConfidence(float value) { * * * float confidence = 2; + * + * @return This builder for chaining. */ public Builder clearConfidence() { diff --git a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/LabelSegmentOrBuilder.java b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/LabelSegmentOrBuilder.java index ba74d7b21..75780914d 100644 --- a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/LabelSegmentOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/LabelSegmentOrBuilder.java @@ -31,6 +31,8 @@ public interface LabelSegmentOrBuilder * * * .google.cloud.videointelligence.v1p1beta1.VideoSegment segment = 1; + * + * @return Whether the segment field is set. */ boolean hasSegment(); /** @@ -41,6 +43,8 @@ public interface LabelSegmentOrBuilder * * * .google.cloud.videointelligence.v1p1beta1.VideoSegment segment = 1; + * + * @return The segment. */ com.google.cloud.videointelligence.v1p1beta1.VideoSegment getSegment(); /** @@ -62,6 +66,8 @@ public interface LabelSegmentOrBuilder * * * float confidence = 2; + * + * @return The confidence. */ float getConfidence(); } diff --git a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/Likelihood.java b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/Likelihood.java index 452ea55ff..d41286142 100644 --- a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/Likelihood.java +++ b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/Likelihood.java @@ -160,12 +160,20 @@ public final int getNumber() { return value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ @java.lang.Deprecated public static Likelihood valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Likelihood forNumber(int value) { switch (value) { case 0: diff --git a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/ShotChangeDetectionConfig.java b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/ShotChangeDetectionConfig.java index a467a1721..a6414740a 100644 --- a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/ShotChangeDetectionConfig.java +++ b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/ShotChangeDetectionConfig.java @@ -41,6 +41,12 @@ private ShotChangeDetectionConfig() { model_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ShotChangeDetectionConfig(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private ShotChangeDetectionConfig( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -118,6 +123,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string model = 1; + * + * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; @@ -140,6 +147,8 @@ public java.lang.String getModel() { * * * string model = 1; + * + * @return The bytes for model. */ public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; @@ -492,6 +501,8 @@ public Builder mergeFrom( * * * string model = 1; + * + * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; @@ -514,6 +525,8 @@ public java.lang.String getModel() { * * * string model = 1; + * + * @return The bytes for model. */ public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; @@ -536,6 +549,9 @@ public com.google.protobuf.ByteString getModelBytes() { * * * string model = 1; + * + * @param value The model to set. + * @return This builder for chaining. */ public Builder setModel(java.lang.String value) { if (value == null) { @@ -556,6 +572,8 @@ public Builder setModel(java.lang.String value) { * * * string model = 1; + * + * @return This builder for chaining. */ public Builder clearModel() { @@ -573,6 +591,9 @@ public Builder clearModel() { * * * string model = 1; + * + * @param value The bytes for model to set. + * @return This builder for chaining. */ public Builder setModelBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/ShotChangeDetectionConfigOrBuilder.java b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/ShotChangeDetectionConfigOrBuilder.java index a35e1cf81..7e34a0bed 100644 --- a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/ShotChangeDetectionConfigOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/ShotChangeDetectionConfigOrBuilder.java @@ -33,6 +33,8 @@ public interface ShotChangeDetectionConfigOrBuilder * * * string model = 1; + * + * @return The model. */ java.lang.String getModel(); /** @@ -45,6 +47,8 @@ public interface ShotChangeDetectionConfigOrBuilder * * * string model = 1; + * + * @return The bytes for model. */ com.google.protobuf.ByteString getModelBytes(); } diff --git a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/SpeechContext.java b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/SpeechContext.java index f0b4e2df1..1f0dd4807 100644 --- a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/SpeechContext.java +++ b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/SpeechContext.java @@ -42,6 +42,12 @@ private SpeechContext() { phrases_ = com.google.protobuf.LazyStringArrayList.EMPTY; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SpeechContext(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -128,6 +134,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * repeated string phrases = 1; + * + * @return A list containing the phrases. */ public com.google.protobuf.ProtocolStringList getPhrasesList() { return phrases_; @@ -145,6 +153,8 @@ public com.google.protobuf.ProtocolStringList getPhrasesList() { * * * repeated string phrases = 1; + * + * @return The count of phrases. */ public int getPhrasesCount() { return phrases_.size(); @@ -162,6 +172,9 @@ public int getPhrasesCount() { * * * repeated string phrases = 1; + * + * @param index The index of the element to return. + * @return The phrases at the given index. */ public java.lang.String getPhrases(int index) { return phrases_.get(index); @@ -179,6 +192,9 @@ public java.lang.String getPhrases(int index) { * * * repeated string phrases = 1; + * + * @param index The index of the value to return. + * @return The bytes of the phrases at the given index. */ public com.google.protobuf.ByteString getPhrasesBytes(int index) { return phrases_.getByteString(index); @@ -546,6 +562,8 @@ private void ensurePhrasesIsMutable() { * * * repeated string phrases = 1; + * + * @return A list containing the phrases. */ public com.google.protobuf.ProtocolStringList getPhrasesList() { return phrases_.getUnmodifiableView(); @@ -563,6 +581,8 @@ public com.google.protobuf.ProtocolStringList getPhrasesList() { * * * repeated string phrases = 1; + * + * @return The count of phrases. */ public int getPhrasesCount() { return phrases_.size(); @@ -580,6 +600,9 @@ public int getPhrasesCount() { * * * repeated string phrases = 1; + * + * @param index The index of the element to return. + * @return The phrases at the given index. */ public java.lang.String getPhrases(int index) { return phrases_.get(index); @@ -597,6 +620,9 @@ public java.lang.String getPhrases(int index) { * * * repeated string phrases = 1; + * + * @param index The index of the value to return. + * @return The bytes of the phrases at the given index. */ public com.google.protobuf.ByteString getPhrasesBytes(int index) { return phrases_.getByteString(index); @@ -614,6 +640,10 @@ public com.google.protobuf.ByteString getPhrasesBytes(int index) { * * * repeated string phrases = 1; + * + * @param index The index to set the value at. + * @param value The phrases to set. + * @return This builder for chaining. */ public Builder setPhrases(int index, java.lang.String value) { if (value == null) { @@ -637,6 +667,9 @@ public Builder setPhrases(int index, java.lang.String value) { * * * repeated string phrases = 1; + * + * @param value The phrases to add. + * @return This builder for chaining. */ public Builder addPhrases(java.lang.String value) { if (value == null) { @@ -660,6 +693,9 @@ public Builder addPhrases(java.lang.String value) { * * * repeated string phrases = 1; + * + * @param values The phrases to add. + * @return This builder for chaining. */ public Builder addAllPhrases(java.lang.Iterable values) { ensurePhrasesIsMutable(); @@ -680,6 +716,8 @@ public Builder addAllPhrases(java.lang.Iterable values) { * * * repeated string phrases = 1; + * + * @return This builder for chaining. */ public Builder clearPhrases() { phrases_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -700,6 +738,9 @@ public Builder clearPhrases() { * * * repeated string phrases = 1; + * + * @param value The bytes of the phrases to add. + * @return This builder for chaining. */ public Builder addPhrasesBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/SpeechContextOrBuilder.java b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/SpeechContextOrBuilder.java index 098f4d67b..25d92a2af 100644 --- a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/SpeechContextOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/SpeechContextOrBuilder.java @@ -36,6 +36,8 @@ public interface SpeechContextOrBuilder * * * repeated string phrases = 1; + * + * @return A list containing the phrases. */ java.util.List getPhrasesList(); /** @@ -51,6 +53,8 @@ public interface SpeechContextOrBuilder * * * repeated string phrases = 1; + * + * @return The count of phrases. */ int getPhrasesCount(); /** @@ -66,6 +70,9 @@ public interface SpeechContextOrBuilder * * * repeated string phrases = 1; + * + * @param index The index of the element to return. + * @return The phrases at the given index. */ java.lang.String getPhrases(int index); /** @@ -81,6 +88,9 @@ public interface SpeechContextOrBuilder * * * repeated string phrases = 1; + * + * @param index The index of the value to return. + * @return The bytes of the phrases at the given index. */ com.google.protobuf.ByteString getPhrasesBytes(int index); } diff --git a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/SpeechRecognitionAlternative.java b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/SpeechRecognitionAlternative.java index 3b5666e21..f4a981432 100644 --- a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/SpeechRecognitionAlternative.java +++ b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/SpeechRecognitionAlternative.java @@ -42,6 +42,12 @@ private SpeechRecognitionAlternative() { words_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SpeechRecognitionAlternative(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -80,11 +86,11 @@ private SpeechRecognitionAlternative( } case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { words_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p1beta1.WordInfo>(); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000001; } words_.add( input.readMessage( @@ -106,7 +112,7 @@ private SpeechRecognitionAlternative( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { words_ = java.util.Collections.unmodifiableList(words_); } this.unknownFields = unknownFields.build(); @@ -130,7 +136,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .class); } - private int bitField0_; public static final int TRANSCRIPT_FIELD_NUMBER = 1; private volatile java.lang.Object transcript_; /** @@ -141,6 +146,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string transcript = 1; + * + * @return The transcript. */ public java.lang.String getTranscript() { java.lang.Object ref = transcript_; @@ -161,6 +168,8 @@ public java.lang.String getTranscript() { * * * string transcript = 1; + * + * @return The bytes for transcript. */ public com.google.protobuf.ByteString getTranscriptBytes() { java.lang.Object ref = transcript_; @@ -189,6 +198,8 @@ public com.google.protobuf.ByteString getTranscriptBytes() { * * * float confidence = 2; + * + * @return The confidence. */ public float getConfidence() { return confidence_; @@ -497,7 +508,7 @@ public Builder clear() { if (wordsBuilder_ == null) { words_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } else { wordsBuilder_.clear(); } @@ -533,19 +544,17 @@ public com.google.cloud.videointelligence.v1p1beta1.SpeechRecognitionAlternative com.google.cloud.videointelligence.v1p1beta1.SpeechRecognitionAlternative result = new com.google.cloud.videointelligence.v1p1beta1.SpeechRecognitionAlternative(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.transcript_ = transcript_; result.confidence_ = confidence_; if (wordsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { words_ = java.util.Collections.unmodifiableList(words_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } result.words_ = words_; } else { result.words_ = wordsBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -611,7 +620,7 @@ public Builder mergeFrom( if (!other.words_.isEmpty()) { if (words_.isEmpty()) { words_ = other.words_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureWordsIsMutable(); words_.addAll(other.words_); @@ -624,7 +633,7 @@ public Builder mergeFrom( wordsBuilder_.dispose(); wordsBuilder_ = null; words_ = other.words_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); wordsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getWordsFieldBuilder() @@ -677,6 +686,8 @@ public Builder mergeFrom( * * * string transcript = 1; + * + * @return The transcript. */ public java.lang.String getTranscript() { java.lang.Object ref = transcript_; @@ -697,6 +708,8 @@ public java.lang.String getTranscript() { * * * string transcript = 1; + * + * @return The bytes for transcript. */ public com.google.protobuf.ByteString getTranscriptBytes() { java.lang.Object ref = transcript_; @@ -717,6 +730,9 @@ public com.google.protobuf.ByteString getTranscriptBytes() { * * * string transcript = 1; + * + * @param value The transcript to set. + * @return This builder for chaining. */ public Builder setTranscript(java.lang.String value) { if (value == null) { @@ -735,6 +751,8 @@ public Builder setTranscript(java.lang.String value) { * * * string transcript = 1; + * + * @return This builder for chaining. */ public Builder clearTranscript() { @@ -750,6 +768,9 @@ public Builder clearTranscript() { * * * string transcript = 1; + * + * @param value The bytes for transcript to set. + * @return This builder for chaining. */ public Builder setTranscriptBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -776,6 +797,8 @@ public Builder setTranscriptBytes(com.google.protobuf.ByteString value) { * * * float confidence = 2; + * + * @return The confidence. */ public float getConfidence() { return confidence_; @@ -793,6 +816,9 @@ public float getConfidence() { * * * float confidence = 2; + * + * @param value The confidence to set. + * @return This builder for chaining. */ public Builder setConfidence(float value) { @@ -813,6 +839,8 @@ public Builder setConfidence(float value) { * * * float confidence = 2; + * + * @return This builder for chaining. */ public Builder clearConfidence() { @@ -825,10 +853,10 @@ public Builder clearConfidence() { java.util.Collections.emptyList(); private void ensureWordsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { words_ = new java.util.ArrayList(words_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; } } @@ -1047,7 +1075,7 @@ public Builder addAllWords( public Builder clearWords() { if (wordsBuilder_ == null) { words_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { wordsBuilder_.clear(); @@ -1173,7 +1201,7 @@ public com.google.cloud.videointelligence.v1p1beta1.WordInfo.Builder addWordsBui com.google.cloud.videointelligence.v1p1beta1.WordInfo, com.google.cloud.videointelligence.v1p1beta1.WordInfo.Builder, com.google.cloud.videointelligence.v1p1beta1.WordInfoOrBuilder>( - words_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + words_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); words_ = null; } return wordsBuilder_; diff --git a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java index e6672c40f..32381c0f5 100644 --- a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java @@ -31,6 +31,8 @@ public interface SpeechRecognitionAlternativeOrBuilder * * * string transcript = 1; + * + * @return The transcript. */ java.lang.String getTranscript(); /** @@ -41,6 +43,8 @@ public interface SpeechRecognitionAlternativeOrBuilder * * * string transcript = 1; + * + * @return The bytes for transcript. */ com.google.protobuf.ByteString getTranscriptBytes(); @@ -57,6 +61,8 @@ public interface SpeechRecognitionAlternativeOrBuilder * * * float confidence = 2; + * + * @return The confidence. */ float getConfidence(); diff --git a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/SpeechTranscription.java b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/SpeechTranscription.java index 72f2ad0e0..9bfda6d2b 100644 --- a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/SpeechTranscription.java +++ b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/SpeechTranscription.java @@ -41,6 +41,12 @@ private SpeechTranscription() { alternatives_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SpeechTranscription(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; diff --git a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/SpeechTranscriptionConfig.java b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/SpeechTranscriptionConfig.java index 901c871a3..b9997c442 100644 --- a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/SpeechTranscriptionConfig.java +++ b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/SpeechTranscriptionConfig.java @@ -43,6 +43,12 @@ private SpeechTranscriptionConfig() { audioTracks_ = emptyIntList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SpeechTranscriptionConfig(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -86,11 +92,11 @@ private SpeechTranscriptionConfig( } case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { speechContexts_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p1beta1.SpeechContext>(); - mutable_bitField0_ |= 0x00000008; + mutable_bitField0_ |= 0x00000001; } speechContexts_.add( input.readMessage( @@ -105,9 +111,9 @@ private SpeechTranscriptionConfig( } case 48: { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { audioTracks_ = newIntList(); - mutable_bitField0_ |= 0x00000020; + mutable_bitField0_ |= 0x00000002; } audioTracks_.addInt(input.readInt32()); break; @@ -116,9 +122,9 @@ private SpeechTranscriptionConfig( { int length = input.readRawVarint32(); int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000020) != 0) && input.getBytesUntilLimit() > 0) { + if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { audioTracks_ = newIntList(); - mutable_bitField0_ |= 0x00000020; + mutable_bitField0_ |= 0x00000002; } while (input.getBytesUntilLimit() > 0) { audioTracks_.addInt(input.readInt32()); @@ -140,10 +146,10 @@ private SpeechTranscriptionConfig( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000008) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { speechContexts_ = java.util.Collections.unmodifiableList(speechContexts_); } - if (((mutable_bitField0_ & 0x00000020) != 0)) { + if (((mutable_bitField0_ & 0x00000002) != 0)) { audioTracks_.makeImmutable(); // C } this.unknownFields = unknownFields.build(); @@ -166,7 +172,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.videointelligence.v1p1beta1.SpeechTranscriptionConfig.Builder.class); } - private int bitField0_; public static final int LANGUAGE_CODE_FIELD_NUMBER = 1; private volatile java.lang.Object languageCode_; /** @@ -181,6 +186,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string language_code = 1; + * + * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; @@ -205,6 +212,8 @@ public java.lang.String getLanguageCode() { * * * string language_code = 1; + * + * @return The bytes for languageCode. */ public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; @@ -232,6 +241,8 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { * * * int32 max_alternatives = 2; + * + * @return The maxAlternatives. */ public int getMaxAlternatives() { return maxAlternatives_; @@ -250,6 +261,8 @@ public int getMaxAlternatives() { * * * bool filter_profanity = 3; + * + * @return The filterProfanity. */ public boolean getFilterProfanity() { return filterProfanity_; @@ -343,6 +356,8 @@ public com.google.cloud.videointelligence.v1p1beta1.SpeechContext getSpeechConte * * * bool enable_automatic_punctuation = 5; + * + * @return The enableAutomaticPunctuation. */ public boolean getEnableAutomaticPunctuation() { return enableAutomaticPunctuation_; @@ -359,6 +374,8 @@ public boolean getEnableAutomaticPunctuation() { * * * repeated int32 audio_tracks = 6; + * + * @return A list containing the audioTracks. */ public java.util.List getAudioTracksList() { return audioTracks_; @@ -372,6 +389,8 @@ public java.util.List getAudioTracksList() { * * * repeated int32 audio_tracks = 6; + * + * @return The count of audioTracks. */ public int getAudioTracksCount() { return audioTracks_.size(); @@ -385,6 +404,9 @@ public int getAudioTracksCount() { * * * repeated int32 audio_tracks = 6; + * + * @param index The index of the element to return. + * @return The audioTracks at the given index. */ public int getAudioTracks(int index) { return audioTracks_.getInt(index); @@ -673,14 +695,14 @@ public Builder clear() { if (speechContextsBuilder_ == null) { speechContexts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000001); } else { speechContextsBuilder_.clear(); } enableAutomaticPunctuation_ = false; audioTracks_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -712,26 +734,24 @@ public com.google.cloud.videointelligence.v1p1beta1.SpeechTranscriptionConfig bu com.google.cloud.videointelligence.v1p1beta1.SpeechTranscriptionConfig result = new com.google.cloud.videointelligence.v1p1beta1.SpeechTranscriptionConfig(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.languageCode_ = languageCode_; result.maxAlternatives_ = maxAlternatives_; result.filterProfanity_ = filterProfanity_; if (speechContextsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { speechContexts_ = java.util.Collections.unmodifiableList(speechContexts_); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000001); } result.speechContexts_ = speechContexts_; } else { result.speechContexts_ = speechContextsBuilder_.build(); } result.enableAutomaticPunctuation_ = enableAutomaticPunctuation_; - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { audioTracks_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000002); } result.audioTracks_ = audioTracks_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -799,7 +819,7 @@ public Builder mergeFrom( if (!other.speechContexts_.isEmpty()) { if (speechContexts_.isEmpty()) { speechContexts_ = other.speechContexts_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSpeechContextsIsMutable(); speechContexts_.addAll(other.speechContexts_); @@ -812,7 +832,7 @@ public Builder mergeFrom( speechContextsBuilder_.dispose(); speechContextsBuilder_ = null; speechContexts_ = other.speechContexts_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000001); speechContextsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSpeechContextsFieldBuilder() @@ -828,7 +848,7 @@ public Builder mergeFrom( if (!other.audioTracks_.isEmpty()) { if (audioTracks_.isEmpty()) { audioTracks_ = other.audioTracks_; - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureAudioTracksIsMutable(); audioTracks_.addAll(other.audioTracks_); @@ -881,6 +901,8 @@ public Builder mergeFrom( * * * string language_code = 1; + * + * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; @@ -905,6 +927,8 @@ public java.lang.String getLanguageCode() { * * * string language_code = 1; + * + * @return The bytes for languageCode. */ public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; @@ -929,6 +953,9 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { * * * string language_code = 1; + * + * @param value The languageCode to set. + * @return This builder for chaining. */ public Builder setLanguageCode(java.lang.String value) { if (value == null) { @@ -951,6 +978,8 @@ public Builder setLanguageCode(java.lang.String value) { * * * string language_code = 1; + * + * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -970,6 +999,9 @@ public Builder clearLanguageCode() { * * * string language_code = 1; + * + * @param value The bytes for languageCode to set. + * @return This builder for chaining. */ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -995,6 +1027,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { * * * int32 max_alternatives = 2; + * + * @return The maxAlternatives. */ public int getMaxAlternatives() { return maxAlternatives_; @@ -1011,6 +1045,9 @@ public int getMaxAlternatives() { * * * int32 max_alternatives = 2; + * + * @param value The maxAlternatives to set. + * @return This builder for chaining. */ public Builder setMaxAlternatives(int value) { @@ -1030,6 +1067,8 @@ public Builder setMaxAlternatives(int value) { * * * int32 max_alternatives = 2; + * + * @return This builder for chaining. */ public Builder clearMaxAlternatives() { @@ -1050,6 +1089,8 @@ public Builder clearMaxAlternatives() { * * * bool filter_profanity = 3; + * + * @return The filterProfanity. */ public boolean getFilterProfanity() { return filterProfanity_; @@ -1065,6 +1106,9 @@ public boolean getFilterProfanity() { * * * bool filter_profanity = 3; + * + * @param value The filterProfanity to set. + * @return This builder for chaining. */ public Builder setFilterProfanity(boolean value) { @@ -1083,6 +1127,8 @@ public Builder setFilterProfanity(boolean value) { * * * bool filter_profanity = 3; + * + * @return This builder for chaining. */ public Builder clearFilterProfanity() { @@ -1095,11 +1141,11 @@ public Builder clearFilterProfanity() { speechContexts_ = java.util.Collections.emptyList(); private void ensureSpeechContextsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { speechContexts_ = new java.util.ArrayList( speechContexts_); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000001; } } @@ -1333,7 +1379,7 @@ public Builder addAllSpeechContexts( public Builder clearSpeechContexts() { if (speechContextsBuilder_ == null) { speechContexts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { speechContextsBuilder_.clear(); @@ -1471,7 +1517,7 @@ public Builder removeSpeechContexts(int index) { com.google.cloud.videointelligence.v1p1beta1.SpeechContext.Builder, com.google.cloud.videointelligence.v1p1beta1.SpeechContextOrBuilder>( speechContexts_, - ((bitField0_ & 0x00000008) != 0), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); speechContexts_ = null; @@ -1493,6 +1539,8 @@ public Builder removeSpeechContexts(int index) { * * * bool enable_automatic_punctuation = 5; + * + * @return The enableAutomaticPunctuation. */ public boolean getEnableAutomaticPunctuation() { return enableAutomaticPunctuation_; @@ -1510,6 +1558,9 @@ public boolean getEnableAutomaticPunctuation() { * * * bool enable_automatic_punctuation = 5; + * + * @param value The enableAutomaticPunctuation to set. + * @return This builder for chaining. */ public Builder setEnableAutomaticPunctuation(boolean value) { @@ -1530,6 +1581,8 @@ public Builder setEnableAutomaticPunctuation(boolean value) { * * * bool enable_automatic_punctuation = 5; + * + * @return This builder for chaining. */ public Builder clearEnableAutomaticPunctuation() { @@ -1541,9 +1594,9 @@ public Builder clearEnableAutomaticPunctuation() { private com.google.protobuf.Internal.IntList audioTracks_ = emptyIntList(); private void ensureAudioTracksIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { audioTracks_ = mutableCopy(audioTracks_); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000002; } } /** @@ -1555,9 +1608,11 @@ private void ensureAudioTracksIsMutable() { * * * repeated int32 audio_tracks = 6; + * + * @return A list containing the audioTracks. */ public java.util.List getAudioTracksList() { - return ((bitField0_ & 0x00000020) != 0) + return ((bitField0_ & 0x00000002) != 0) ? java.util.Collections.unmodifiableList(audioTracks_) : audioTracks_; } @@ -1570,6 +1625,8 @@ public java.util.List getAudioTracksList() { * * * repeated int32 audio_tracks = 6; + * + * @return The count of audioTracks. */ public int getAudioTracksCount() { return audioTracks_.size(); @@ -1583,6 +1640,9 @@ public int getAudioTracksCount() { * * * repeated int32 audio_tracks = 6; + * + * @param index The index of the element to return. + * @return The audioTracks at the given index. */ public int getAudioTracks(int index) { return audioTracks_.getInt(index); @@ -1596,6 +1656,10 @@ public int getAudioTracks(int index) { * * * repeated int32 audio_tracks = 6; + * + * @param index The index to set the value at. + * @param value The audioTracks to set. + * @return This builder for chaining. */ public Builder setAudioTracks(int index, int value) { ensureAudioTracksIsMutable(); @@ -1612,6 +1676,9 @@ public Builder setAudioTracks(int index, int value) { * * * repeated int32 audio_tracks = 6; + * + * @param value The audioTracks to add. + * @return This builder for chaining. */ public Builder addAudioTracks(int value) { ensureAudioTracksIsMutable(); @@ -1628,6 +1695,9 @@ public Builder addAudioTracks(int value) { * * * repeated int32 audio_tracks = 6; + * + * @param values The audioTracks to add. + * @return This builder for chaining. */ public Builder addAllAudioTracks(java.lang.Iterable values) { ensureAudioTracksIsMutable(); @@ -1644,10 +1714,12 @@ public Builder addAllAudioTracks(java.lang.Iterable * * * repeated int32 audio_tracks = 6; + * + * @return This builder for chaining. */ public Builder clearAudioTracks() { audioTracks_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } diff --git a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/SpeechTranscriptionConfigOrBuilder.java b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/SpeechTranscriptionConfigOrBuilder.java index 048d38a78..1addaa710 100644 --- a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/SpeechTranscriptionConfigOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/SpeechTranscriptionConfigOrBuilder.java @@ -35,6 +35,8 @@ public interface SpeechTranscriptionConfigOrBuilder * * * string language_code = 1; + * + * @return The languageCode. */ java.lang.String getLanguageCode(); /** @@ -49,6 +51,8 @@ public interface SpeechTranscriptionConfigOrBuilder * * * string language_code = 1; + * + * @return The bytes for languageCode. */ com.google.protobuf.ByteString getLanguageCodeBytes(); @@ -64,6 +68,8 @@ public interface SpeechTranscriptionConfigOrBuilder * * * int32 max_alternatives = 2; + * + * @return The maxAlternatives. */ int getMaxAlternatives(); @@ -78,6 +84,8 @@ public interface SpeechTranscriptionConfigOrBuilder * * * bool filter_profanity = 3; + * + * @return The filterProfanity. */ boolean getFilterProfanity(); @@ -153,6 +161,8 @@ com.google.cloud.videointelligence.v1p1beta1.SpeechContextOrBuilder getSpeechCon * * * bool enable_automatic_punctuation = 5; + * + * @return The enableAutomaticPunctuation. */ boolean getEnableAutomaticPunctuation(); @@ -165,6 +175,8 @@ com.google.cloud.videointelligence.v1p1beta1.SpeechContextOrBuilder getSpeechCon * * * repeated int32 audio_tracks = 6; + * + * @return A list containing the audioTracks. */ java.util.List getAudioTracksList(); /** @@ -176,6 +188,8 @@ com.google.cloud.videointelligence.v1p1beta1.SpeechContextOrBuilder getSpeechCon * * * repeated int32 audio_tracks = 6; + * + * @return The count of audioTracks. */ int getAudioTracksCount(); /** @@ -187,6 +201,9 @@ com.google.cloud.videointelligence.v1p1beta1.SpeechContextOrBuilder getSpeechCon * * * repeated int32 audio_tracks = 6; + * + * @param index The index of the element to return. + * @return The audioTracks at the given index. */ int getAudioTracks(int index); } diff --git a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/VideoAnnotationProgress.java b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/VideoAnnotationProgress.java index a4121d976..705d88425 100644 --- a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/VideoAnnotationProgress.java +++ b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/VideoAnnotationProgress.java @@ -41,6 +41,12 @@ private VideoAnnotationProgress() { inputUri_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VideoAnnotationProgress(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private VideoAnnotationProgress( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -152,6 +157,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string input_uri = 1; + * + * @return The inputUri. */ public java.lang.String getInputUri() { java.lang.Object ref = inputUri_; @@ -173,6 +180,8 @@ public java.lang.String getInputUri() { * * * string input_uri = 1; + * + * @return The bytes for inputUri. */ public com.google.protobuf.ByteString getInputUriBytes() { java.lang.Object ref = inputUri_; @@ -197,6 +206,8 @@ public com.google.protobuf.ByteString getInputUriBytes() { * * * int32 progress_percent = 2; + * + * @return The progressPercent. */ public int getProgressPercent() { return progressPercent_; @@ -212,6 +223,8 @@ public int getProgressPercent() { * * * .google.protobuf.Timestamp start_time = 3; + * + * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTime_ != null; @@ -224,6 +237,8 @@ public boolean hasStartTime() { * * * .google.protobuf.Timestamp start_time = 3; + * + * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; @@ -251,6 +266,8 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * * * .google.protobuf.Timestamp update_time = 4; + * + * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTime_ != null; @@ -263,6 +280,8 @@ public boolean hasUpdateTime() { * * * .google.protobuf.Timestamp update_time = 4; + * + * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; @@ -688,6 +707,8 @@ public Builder mergeFrom( * * * string input_uri = 1; + * + * @return The inputUri. */ public java.lang.String getInputUri() { java.lang.Object ref = inputUri_; @@ -709,6 +730,8 @@ public java.lang.String getInputUri() { * * * string input_uri = 1; + * + * @return The bytes for inputUri. */ public com.google.protobuf.ByteString getInputUriBytes() { java.lang.Object ref = inputUri_; @@ -730,6 +753,9 @@ public com.google.protobuf.ByteString getInputUriBytes() { * * * string input_uri = 1; + * + * @param value The inputUri to set. + * @return This builder for chaining. */ public Builder setInputUri(java.lang.String value) { if (value == null) { @@ -749,6 +775,8 @@ public Builder setInputUri(java.lang.String value) { * * * string input_uri = 1; + * + * @return This builder for chaining. */ public Builder clearInputUri() { @@ -765,6 +793,9 @@ public Builder clearInputUri() { * * * string input_uri = 1; + * + * @param value The bytes for inputUri to set. + * @return This builder for chaining. */ public Builder setInputUriBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -787,6 +818,8 @@ public Builder setInputUriBytes(com.google.protobuf.ByteString value) { * * * int32 progress_percent = 2; + * + * @return The progressPercent. */ public int getProgressPercent() { return progressPercent_; @@ -800,6 +833,9 @@ public int getProgressPercent() { * * * int32 progress_percent = 2; + * + * @param value The progressPercent to set. + * @return This builder for chaining. */ public Builder setProgressPercent(int value) { @@ -816,6 +852,8 @@ public Builder setProgressPercent(int value) { * * * int32 progress_percent = 2; + * + * @return This builder for chaining. */ public Builder clearProgressPercent() { @@ -838,6 +876,8 @@ public Builder clearProgressPercent() { * * * .google.protobuf.Timestamp start_time = 3; + * + * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; @@ -850,6 +890,8 @@ public boolean hasStartTime() { * * * .google.protobuf.Timestamp start_time = 3; + * + * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { if (startTimeBuilder_ == null) { @@ -1013,6 +1055,8 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * * * .google.protobuf.Timestamp update_time = 4; + * + * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; @@ -1025,6 +1069,8 @@ public boolean hasUpdateTime() { * * * .google.protobuf.Timestamp update_time = 4; + * + * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { diff --git a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/VideoAnnotationProgressOrBuilder.java b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/VideoAnnotationProgressOrBuilder.java index d9aaaee8a..78cab0057 100644 --- a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/VideoAnnotationProgressOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/VideoAnnotationProgressOrBuilder.java @@ -32,6 +32,8 @@ public interface VideoAnnotationProgressOrBuilder * * * string input_uri = 1; + * + * @return The inputUri. */ java.lang.String getInputUri(); /** @@ -43,6 +45,8 @@ public interface VideoAnnotationProgressOrBuilder * * * string input_uri = 1; + * + * @return The bytes for inputUri. */ com.google.protobuf.ByteString getInputUriBytes(); @@ -55,6 +59,8 @@ public interface VideoAnnotationProgressOrBuilder * * * int32 progress_percent = 2; + * + * @return The progressPercent. */ int getProgressPercent(); @@ -66,6 +72,8 @@ public interface VideoAnnotationProgressOrBuilder * * * .google.protobuf.Timestamp start_time = 3; + * + * @return Whether the startTime field is set. */ boolean hasStartTime(); /** @@ -76,6 +84,8 @@ public interface VideoAnnotationProgressOrBuilder * * * .google.protobuf.Timestamp start_time = 3; + * + * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** @@ -97,6 +107,8 @@ public interface VideoAnnotationProgressOrBuilder * * * .google.protobuf.Timestamp update_time = 4; + * + * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** @@ -107,6 +119,8 @@ public interface VideoAnnotationProgressOrBuilder * * * .google.protobuf.Timestamp update_time = 4; + * + * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** diff --git a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/VideoAnnotationResults.java b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/VideoAnnotationResults.java index bb828cb9b..f48ef7597 100644 --- a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/VideoAnnotationResults.java +++ b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/VideoAnnotationResults.java @@ -46,6 +46,12 @@ private VideoAnnotationResults() { speechTranscriptions_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VideoAnnotationResults(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -79,11 +85,11 @@ private VideoAnnotationResults( } case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { segmentLabelAnnotations_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p1beta1.LabelAnnotation>(); - mutable_bitField0_ |= 0x00000002; + mutable_bitField0_ |= 0x00000001; } segmentLabelAnnotations_.add( input.readMessage( @@ -93,11 +99,11 @@ private VideoAnnotationResults( } case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { shotLabelAnnotations_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p1beta1.LabelAnnotation>(); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000002; } shotLabelAnnotations_.add( input.readMessage( @@ -107,11 +113,11 @@ private VideoAnnotationResults( } case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { frameLabelAnnotations_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p1beta1.LabelAnnotation>(); - mutable_bitField0_ |= 0x00000008; + mutable_bitField0_ |= 0x00000004; } frameLabelAnnotations_.add( input.readMessage( @@ -121,11 +127,11 @@ private VideoAnnotationResults( } case 50: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { shotAnnotations_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p1beta1.VideoSegment>(); - mutable_bitField0_ |= 0x00000010; + mutable_bitField0_ |= 0x00000008; } shotAnnotations_.add( input.readMessage( @@ -168,11 +174,11 @@ private VideoAnnotationResults( } case 90: { - if (!((mutable_bitField0_ & 0x00000040) != 0)) { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { speechTranscriptions_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p1beta1.SpeechTranscription>(); - mutable_bitField0_ |= 0x00000040; + mutable_bitField0_ |= 0x00000010; } speechTranscriptions_.add( input.readMessage( @@ -194,19 +200,19 @@ private VideoAnnotationResults( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { segmentLabelAnnotations_ = java.util.Collections.unmodifiableList(segmentLabelAnnotations_); } - if (((mutable_bitField0_ & 0x00000004) != 0)) { + if (((mutable_bitField0_ & 0x00000002) != 0)) { shotLabelAnnotations_ = java.util.Collections.unmodifiableList(shotLabelAnnotations_); } - if (((mutable_bitField0_ & 0x00000008) != 0)) { + if (((mutable_bitField0_ & 0x00000004) != 0)) { frameLabelAnnotations_ = java.util.Collections.unmodifiableList(frameLabelAnnotations_); } - if (((mutable_bitField0_ & 0x00000010) != 0)) { + if (((mutable_bitField0_ & 0x00000008) != 0)) { shotAnnotations_ = java.util.Collections.unmodifiableList(shotAnnotations_); } - if (((mutable_bitField0_ & 0x00000040) != 0)) { + if (((mutable_bitField0_ & 0x00000010) != 0)) { speechTranscriptions_ = java.util.Collections.unmodifiableList(speechTranscriptions_); } this.unknownFields = unknownFields.build(); @@ -229,7 +235,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.videointelligence.v1p1beta1.VideoAnnotationResults.Builder.class); } - private int bitField0_; public static final int INPUT_URI_FIELD_NUMBER = 1; private volatile java.lang.Object inputUri_; /** @@ -241,6 +246,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string input_uri = 1; + * + * @return The inputUri. */ public java.lang.String getInputUri() { java.lang.Object ref = inputUri_; @@ -262,6 +269,8 @@ public java.lang.String getInputUri() { * * * string input_uri = 1; + * + * @return The bytes for inputUri. */ public com.google.protobuf.ByteString getInputUriBytes() { java.lang.Object ref = inputUri_; @@ -613,6 +622,8 @@ public com.google.cloud.videointelligence.v1p1beta1.VideoSegment getShotAnnotati * * .google.cloud.videointelligence.v1p1beta1.ExplicitContentAnnotation explicit_annotation = 7; * + * + * @return Whether the explicitAnnotation field is set. */ public boolean hasExplicitAnnotation() { return explicitAnnotation_ != null; @@ -627,6 +638,8 @@ public boolean hasExplicitAnnotation() { * * .google.cloud.videointelligence.v1p1beta1.ExplicitContentAnnotation explicit_annotation = 7; * + * + * @return The explicitAnnotation. */ public com.google.cloud.videointelligence.v1p1beta1.ExplicitContentAnnotation getExplicitAnnotation() { @@ -741,6 +754,8 @@ public com.google.cloud.videointelligence.v1p1beta1.SpeechTranscription getSpeec * * * .google.rpc.Status error = 9; + * + * @return Whether the error field is set. */ public boolean hasError() { return error_ != null; @@ -754,6 +769,8 @@ public boolean hasError() { * * * .google.rpc.Status error = 9; + * + * @return The error. */ public com.google.rpc.Status getError() { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; @@ -1080,25 +1097,25 @@ public Builder clear() { if (segmentLabelAnnotationsBuilder_ == null) { segmentLabelAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } else { segmentLabelAnnotationsBuilder_.clear(); } if (shotLabelAnnotationsBuilder_ == null) { shotLabelAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); } else { shotLabelAnnotationsBuilder_.clear(); } if (frameLabelAnnotationsBuilder_ == null) { frameLabelAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); } else { frameLabelAnnotationsBuilder_.clear(); } if (shotAnnotationsBuilder_ == null) { shotAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000008); } else { shotAnnotationsBuilder_.clear(); } @@ -1110,7 +1127,7 @@ public Builder clear() { } if (speechTranscriptionsBuilder_ == null) { speechTranscriptions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000010); } else { speechTranscriptionsBuilder_.clear(); } @@ -1150,40 +1167,39 @@ public com.google.cloud.videointelligence.v1p1beta1.VideoAnnotationResults build com.google.cloud.videointelligence.v1p1beta1.VideoAnnotationResults result = new com.google.cloud.videointelligence.v1p1beta1.VideoAnnotationResults(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.inputUri_ = inputUri_; if (segmentLabelAnnotationsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { segmentLabelAnnotations_ = java.util.Collections.unmodifiableList(segmentLabelAnnotations_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } result.segmentLabelAnnotations_ = segmentLabelAnnotations_; } else { result.segmentLabelAnnotations_ = segmentLabelAnnotationsBuilder_.build(); } if (shotLabelAnnotationsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { shotLabelAnnotations_ = java.util.Collections.unmodifiableList(shotLabelAnnotations_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); } result.shotLabelAnnotations_ = shotLabelAnnotations_; } else { result.shotLabelAnnotations_ = shotLabelAnnotationsBuilder_.build(); } if (frameLabelAnnotationsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { frameLabelAnnotations_ = java.util.Collections.unmodifiableList(frameLabelAnnotations_); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); } result.frameLabelAnnotations_ = frameLabelAnnotations_; } else { result.frameLabelAnnotations_ = frameLabelAnnotationsBuilder_.build(); } if (shotAnnotationsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { shotAnnotations_ = java.util.Collections.unmodifiableList(shotAnnotations_); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000008); } result.shotAnnotations_ = shotAnnotations_; } else { @@ -1195,9 +1211,9 @@ public com.google.cloud.videointelligence.v1p1beta1.VideoAnnotationResults build result.explicitAnnotation_ = explicitAnnotationBuilder_.build(); } if (speechTranscriptionsBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { speechTranscriptions_ = java.util.Collections.unmodifiableList(speechTranscriptions_); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000010); } result.speechTranscriptions_ = speechTranscriptions_; } else { @@ -1208,7 +1224,6 @@ public com.google.cloud.videointelligence.v1p1beta1.VideoAnnotationResults build } else { result.error_ = errorBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -1270,7 +1285,7 @@ public Builder mergeFrom( if (!other.segmentLabelAnnotations_.isEmpty()) { if (segmentLabelAnnotations_.isEmpty()) { segmentLabelAnnotations_ = other.segmentLabelAnnotations_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSegmentLabelAnnotationsIsMutable(); segmentLabelAnnotations_.addAll(other.segmentLabelAnnotations_); @@ -1283,7 +1298,7 @@ public Builder mergeFrom( segmentLabelAnnotationsBuilder_.dispose(); segmentLabelAnnotationsBuilder_ = null; segmentLabelAnnotations_ = other.segmentLabelAnnotations_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); segmentLabelAnnotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSegmentLabelAnnotationsFieldBuilder() @@ -1297,7 +1312,7 @@ public Builder mergeFrom( if (!other.shotLabelAnnotations_.isEmpty()) { if (shotLabelAnnotations_.isEmpty()) { shotLabelAnnotations_ = other.shotLabelAnnotations_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureShotLabelAnnotationsIsMutable(); shotLabelAnnotations_.addAll(other.shotLabelAnnotations_); @@ -1310,7 +1325,7 @@ public Builder mergeFrom( shotLabelAnnotationsBuilder_.dispose(); shotLabelAnnotationsBuilder_ = null; shotLabelAnnotations_ = other.shotLabelAnnotations_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); shotLabelAnnotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getShotLabelAnnotationsFieldBuilder() @@ -1324,7 +1339,7 @@ public Builder mergeFrom( if (!other.frameLabelAnnotations_.isEmpty()) { if (frameLabelAnnotations_.isEmpty()) { frameLabelAnnotations_ = other.frameLabelAnnotations_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureFrameLabelAnnotationsIsMutable(); frameLabelAnnotations_.addAll(other.frameLabelAnnotations_); @@ -1337,7 +1352,7 @@ public Builder mergeFrom( frameLabelAnnotationsBuilder_.dispose(); frameLabelAnnotationsBuilder_ = null; frameLabelAnnotations_ = other.frameLabelAnnotations_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); frameLabelAnnotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFrameLabelAnnotationsFieldBuilder() @@ -1351,7 +1366,7 @@ public Builder mergeFrom( if (!other.shotAnnotations_.isEmpty()) { if (shotAnnotations_.isEmpty()) { shotAnnotations_ = other.shotAnnotations_; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensureShotAnnotationsIsMutable(); shotAnnotations_.addAll(other.shotAnnotations_); @@ -1364,7 +1379,7 @@ public Builder mergeFrom( shotAnnotationsBuilder_.dispose(); shotAnnotationsBuilder_ = null; shotAnnotations_ = other.shotAnnotations_; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000008); shotAnnotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getShotAnnotationsFieldBuilder() @@ -1381,7 +1396,7 @@ public Builder mergeFrom( if (!other.speechTranscriptions_.isEmpty()) { if (speechTranscriptions_.isEmpty()) { speechTranscriptions_ = other.speechTranscriptions_; - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000010); } else { ensureSpeechTranscriptionsIsMutable(); speechTranscriptions_.addAll(other.speechTranscriptions_); @@ -1394,7 +1409,7 @@ public Builder mergeFrom( speechTranscriptionsBuilder_.dispose(); speechTranscriptionsBuilder_ = null; speechTranscriptions_ = other.speechTranscriptions_; - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000010); speechTranscriptionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSpeechTranscriptionsFieldBuilder() @@ -1450,6 +1465,8 @@ public Builder mergeFrom( * * * string input_uri = 1; + * + * @return The inputUri. */ public java.lang.String getInputUri() { java.lang.Object ref = inputUri_; @@ -1471,6 +1488,8 @@ public java.lang.String getInputUri() { * * * string input_uri = 1; + * + * @return The bytes for inputUri. */ public com.google.protobuf.ByteString getInputUriBytes() { java.lang.Object ref = inputUri_; @@ -1492,6 +1511,9 @@ public com.google.protobuf.ByteString getInputUriBytes() { * * * string input_uri = 1; + * + * @param value The inputUri to set. + * @return This builder for chaining. */ public Builder setInputUri(java.lang.String value) { if (value == null) { @@ -1511,6 +1533,8 @@ public Builder setInputUri(java.lang.String value) { * * * string input_uri = 1; + * + * @return This builder for chaining. */ public Builder clearInputUri() { @@ -1527,6 +1551,9 @@ public Builder clearInputUri() { * * * string input_uri = 1; + * + * @param value The bytes for inputUri to set. + * @return This builder for chaining. */ public Builder setInputUriBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1543,11 +1570,11 @@ public Builder setInputUriBytes(com.google.protobuf.ByteString value) { segmentLabelAnnotations_ = java.util.Collections.emptyList(); private void ensureSegmentLabelAnnotationsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { segmentLabelAnnotations_ = new java.util.ArrayList( segmentLabelAnnotations_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } @@ -1804,7 +1831,7 @@ public Builder addAllSegmentLabelAnnotations( public Builder clearSegmentLabelAnnotations() { if (segmentLabelAnnotationsBuilder_ == null) { segmentLabelAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { segmentLabelAnnotationsBuilder_.clear(); @@ -1956,7 +1983,7 @@ public Builder removeSegmentLabelAnnotations(int index) { com.google.cloud.videointelligence.v1p1beta1.LabelAnnotation.Builder, com.google.cloud.videointelligence.v1p1beta1.LabelAnnotationOrBuilder>( segmentLabelAnnotations_, - ((bitField0_ & 0x00000002) != 0), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); segmentLabelAnnotations_ = null; @@ -1968,11 +1995,11 @@ public Builder removeSegmentLabelAnnotations(int index) { shotLabelAnnotations_ = java.util.Collections.emptyList(); private void ensureShotLabelAnnotationsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { shotLabelAnnotations_ = new java.util.ArrayList( shotLabelAnnotations_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; } } @@ -2229,7 +2256,7 @@ public Builder addAllShotLabelAnnotations( public Builder clearShotLabelAnnotations() { if (shotLabelAnnotationsBuilder_ == null) { shotLabelAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { shotLabelAnnotationsBuilder_.clear(); @@ -2381,7 +2408,7 @@ public Builder removeShotLabelAnnotations(int index) { com.google.cloud.videointelligence.v1p1beta1.LabelAnnotation.Builder, com.google.cloud.videointelligence.v1p1beta1.LabelAnnotationOrBuilder>( shotLabelAnnotations_, - ((bitField0_ & 0x00000004) != 0), + ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); shotLabelAnnotations_ = null; @@ -2393,11 +2420,11 @@ public Builder removeShotLabelAnnotations(int index) { frameLabelAnnotations_ = java.util.Collections.emptyList(); private void ensureFrameLabelAnnotationsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { frameLabelAnnotations_ = new java.util.ArrayList( frameLabelAnnotations_); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; } } @@ -2654,7 +2681,7 @@ public Builder addAllFrameLabelAnnotations( public Builder clearFrameLabelAnnotations() { if (frameLabelAnnotationsBuilder_ == null) { frameLabelAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { frameLabelAnnotationsBuilder_.clear(); @@ -2806,7 +2833,7 @@ public Builder removeFrameLabelAnnotations(int index) { com.google.cloud.videointelligence.v1p1beta1.LabelAnnotation.Builder, com.google.cloud.videointelligence.v1p1beta1.LabelAnnotationOrBuilder>( frameLabelAnnotations_, - ((bitField0_ & 0x00000008) != 0), + ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); frameLabelAnnotations_ = null; @@ -2818,11 +2845,11 @@ public Builder removeFrameLabelAnnotations(int index) { shotAnnotations_ = java.util.Collections.emptyList(); private void ensureShotAnnotationsIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { shotAnnotations_ = new java.util.ArrayList( shotAnnotations_); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; } } @@ -3056,7 +3083,7 @@ public Builder addAllShotAnnotations( public Builder clearShotAnnotations() { if (shotAnnotationsBuilder_ == null) { shotAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { shotAnnotationsBuilder_.clear(); @@ -3194,7 +3221,7 @@ public Builder removeShotAnnotations(int index) { com.google.cloud.videointelligence.v1p1beta1.VideoSegment.Builder, com.google.cloud.videointelligence.v1p1beta1.VideoSegmentOrBuilder>( shotAnnotations_, - ((bitField0_ & 0x00000010) != 0), + ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); shotAnnotations_ = null; @@ -3219,6 +3246,8 @@ public Builder removeShotAnnotations(int index) { * * .google.cloud.videointelligence.v1p1beta1.ExplicitContentAnnotation explicit_annotation = 7; * + * + * @return Whether the explicitAnnotation field is set. */ public boolean hasExplicitAnnotation() { return explicitAnnotationBuilder_ != null || explicitAnnotation_ != null; @@ -3233,6 +3262,8 @@ public boolean hasExplicitAnnotation() { * * .google.cloud.videointelligence.v1p1beta1.ExplicitContentAnnotation explicit_annotation = 7; * + * + * @return The explicitAnnotation. */ public com.google.cloud.videointelligence.v1p1beta1.ExplicitContentAnnotation getExplicitAnnotation() { @@ -3416,12 +3447,12 @@ public Builder clearExplicitAnnotation() { speechTranscriptions_ = java.util.Collections.emptyList(); private void ensureSpeechTranscriptionsIsMutable() { - if (!((bitField0_ & 0x00000040) != 0)) { + if (!((bitField0_ & 0x00000010) != 0)) { speechTranscriptions_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p1beta1.SpeechTranscription>( speechTranscriptions_); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000010; } } @@ -3668,7 +3699,7 @@ public Builder addAllSpeechTranscriptions( public Builder clearSpeechTranscriptions() { if (speechTranscriptionsBuilder_ == null) { speechTranscriptions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { speechTranscriptionsBuilder_.clear(); @@ -3815,7 +3846,7 @@ public Builder removeSpeechTranscriptions(int index) { com.google.cloud.videointelligence.v1p1beta1.SpeechTranscription.Builder, com.google.cloud.videointelligence.v1p1beta1.SpeechTranscriptionOrBuilder>( speechTranscriptions_, - ((bitField0_ & 0x00000040) != 0), + ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); speechTranscriptions_ = null; @@ -3836,6 +3867,8 @@ public Builder removeSpeechTranscriptions(int index) { * * * .google.rpc.Status error = 9; + * + * @return Whether the error field is set. */ public boolean hasError() { return errorBuilder_ != null || error_ != null; @@ -3849,6 +3882,8 @@ public boolean hasError() { * * * .google.rpc.Status error = 9; + * + * @return The error. */ public com.google.rpc.Status getError() { if (errorBuilder_ == null) { diff --git a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/VideoAnnotationResultsOrBuilder.java b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/VideoAnnotationResultsOrBuilder.java index 2c88138b7..e243ad27a 100644 --- a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/VideoAnnotationResultsOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/VideoAnnotationResultsOrBuilder.java @@ -32,6 +32,8 @@ public interface VideoAnnotationResultsOrBuilder * * * string input_uri = 1; + * + * @return The inputUri. */ java.lang.String getInputUri(); /** @@ -43,6 +45,8 @@ public interface VideoAnnotationResultsOrBuilder * * * string input_uri = 1; + * + * @return The bytes for inputUri. */ com.google.protobuf.ByteString getInputUriBytes(); @@ -323,6 +327,8 @@ com.google.cloud.videointelligence.v1p1beta1.VideoSegmentOrBuilder getShotAnnota * * .google.cloud.videointelligence.v1p1beta1.ExplicitContentAnnotation explicit_annotation = 7; * + * + * @return Whether the explicitAnnotation field is set. */ boolean hasExplicitAnnotation(); /** @@ -335,6 +341,8 @@ com.google.cloud.videointelligence.v1p1beta1.VideoSegmentOrBuilder getShotAnnota * * .google.cloud.videointelligence.v1p1beta1.ExplicitContentAnnotation explicit_annotation = 7; * + * + * @return The explicitAnnotation. */ com.google.cloud.videointelligence.v1p1beta1.ExplicitContentAnnotation getExplicitAnnotation(); /** @@ -426,6 +434,8 @@ com.google.cloud.videointelligence.v1p1beta1.SpeechTranscription getSpeechTransc * * * .google.rpc.Status error = 9; + * + * @return Whether the error field is set. */ boolean hasError(); /** @@ -437,6 +447,8 @@ com.google.cloud.videointelligence.v1p1beta1.SpeechTranscription getSpeechTransc * * * .google.rpc.Status error = 9; + * + * @return The error. */ com.google.rpc.Status getError(); /** diff --git a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/VideoContext.java b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/VideoContext.java index 1cd828c04..e48abcb01 100644 --- a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/VideoContext.java +++ b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/VideoContext.java @@ -41,6 +41,12 @@ private VideoContext() { segments_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VideoContext(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -191,7 +197,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.videointelligence.v1p1beta1.VideoContext.Builder.class); } - private int bitField0_; public static final int SEGMENTS_FIELD_NUMBER = 1; private java.util.List segments_; /** @@ -281,6 +286,8 @@ public com.google.cloud.videointelligence.v1p1beta1.VideoSegmentOrBuilder getSeg * * .google.cloud.videointelligence.v1p1beta1.LabelDetectionConfig label_detection_config = 2; * + * + * @return Whether the labelDetectionConfig field is set. */ public boolean hasLabelDetectionConfig() { return labelDetectionConfig_ != null; @@ -295,6 +302,8 @@ public boolean hasLabelDetectionConfig() { * * .google.cloud.videointelligence.v1p1beta1.LabelDetectionConfig label_detection_config = 2; * + * + * @return The labelDetectionConfig. */ public com.google.cloud.videointelligence.v1p1beta1.LabelDetectionConfig getLabelDetectionConfig() { @@ -331,6 +340,8 @@ public boolean hasLabelDetectionConfig() { * * .google.cloud.videointelligence.v1p1beta1.ShotChangeDetectionConfig shot_change_detection_config = 3; * + * + * @return Whether the shotChangeDetectionConfig field is set. */ public boolean hasShotChangeDetectionConfig() { return shotChangeDetectionConfig_ != null; @@ -345,6 +356,8 @@ public boolean hasShotChangeDetectionConfig() { * * .google.cloud.videointelligence.v1p1beta1.ShotChangeDetectionConfig shot_change_detection_config = 3; * + * + * @return The shotChangeDetectionConfig. */ public com.google.cloud.videointelligence.v1p1beta1.ShotChangeDetectionConfig getShotChangeDetectionConfig() { @@ -382,6 +395,8 @@ public boolean hasShotChangeDetectionConfig() { * * .google.cloud.videointelligence.v1p1beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; * + * + * @return Whether the explicitContentDetectionConfig field is set. */ public boolean hasExplicitContentDetectionConfig() { return explicitContentDetectionConfig_ != null; @@ -396,6 +411,8 @@ public boolean hasExplicitContentDetectionConfig() { * * .google.cloud.videointelligence.v1p1beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; * + * + * @return The explicitContentDetectionConfig. */ public com.google.cloud.videointelligence.v1p1beta1.ExplicitContentDetectionConfig getExplicitContentDetectionConfig() { @@ -433,6 +450,8 @@ public boolean hasExplicitContentDetectionConfig() { * * .google.cloud.videointelligence.v1p1beta1.SpeechTranscriptionConfig speech_transcription_config = 6; * + * + * @return Whether the speechTranscriptionConfig field is set. */ public boolean hasSpeechTranscriptionConfig() { return speechTranscriptionConfig_ != null; @@ -447,6 +466,8 @@ public boolean hasSpeechTranscriptionConfig() { * * .google.cloud.videointelligence.v1p1beta1.SpeechTranscriptionConfig speech_transcription_config = 6; * + * + * @return The speechTranscriptionConfig. */ public com.google.cloud.videointelligence.v1p1beta1.SpeechTranscriptionConfig getSpeechTranscriptionConfig() { @@ -805,7 +826,6 @@ public com.google.cloud.videointelligence.v1p1beta1.VideoContext buildPartial() com.google.cloud.videointelligence.v1p1beta1.VideoContext result = new com.google.cloud.videointelligence.v1p1beta1.VideoContext(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (segmentsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { segments_ = java.util.Collections.unmodifiableList(segments_); @@ -835,7 +855,6 @@ public com.google.cloud.videointelligence.v1p1beta1.VideoContext buildPartial() } else { result.speechTranscriptionConfig_ = speechTranscriptionConfigBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -1374,6 +1393,8 @@ public com.google.cloud.videointelligence.v1p1beta1.VideoSegment.Builder addSegm * * .google.cloud.videointelligence.v1p1beta1.LabelDetectionConfig label_detection_config = 2; * + * + * @return Whether the labelDetectionConfig field is set. */ public boolean hasLabelDetectionConfig() { return labelDetectionConfigBuilder_ != null || labelDetectionConfig_ != null; @@ -1388,6 +1409,8 @@ public boolean hasLabelDetectionConfig() { * * .google.cloud.videointelligence.v1p1beta1.LabelDetectionConfig label_detection_config = 2; * + * + * @return The labelDetectionConfig. */ public com.google.cloud.videointelligence.v1p1beta1.LabelDetectionConfig getLabelDetectionConfig() { @@ -1581,6 +1604,8 @@ public Builder clearLabelDetectionConfig() { * * .google.cloud.videointelligence.v1p1beta1.ShotChangeDetectionConfig shot_change_detection_config = 3; * + * + * @return Whether the shotChangeDetectionConfig field is set. */ public boolean hasShotChangeDetectionConfig() { return shotChangeDetectionConfigBuilder_ != null || shotChangeDetectionConfig_ != null; @@ -1595,6 +1620,8 @@ public boolean hasShotChangeDetectionConfig() { * * .google.cloud.videointelligence.v1p1beta1.ShotChangeDetectionConfig shot_change_detection_config = 3; * + * + * @return The shotChangeDetectionConfig. */ public com.google.cloud.videointelligence.v1p1beta1.ShotChangeDetectionConfig getShotChangeDetectionConfig() { @@ -1791,6 +1818,8 @@ public Builder clearShotChangeDetectionConfig() { * * .google.cloud.videointelligence.v1p1beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; * + * + * @return Whether the explicitContentDetectionConfig field is set. */ public boolean hasExplicitContentDetectionConfig() { return explicitContentDetectionConfigBuilder_ != null @@ -1806,6 +1835,8 @@ public boolean hasExplicitContentDetectionConfig() { * * .google.cloud.videointelligence.v1p1beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; * + * + * @return The explicitContentDetectionConfig. */ public com.google.cloud.videointelligence.v1p1beta1.ExplicitContentDetectionConfig getExplicitContentDetectionConfig() { @@ -2003,6 +2034,8 @@ public Builder clearExplicitContentDetectionConfig() { * * .google.cloud.videointelligence.v1p1beta1.SpeechTranscriptionConfig speech_transcription_config = 6; * + * + * @return Whether the speechTranscriptionConfig field is set. */ public boolean hasSpeechTranscriptionConfig() { return speechTranscriptionConfigBuilder_ != null || speechTranscriptionConfig_ != null; @@ -2017,6 +2050,8 @@ public boolean hasSpeechTranscriptionConfig() { * * .google.cloud.videointelligence.v1p1beta1.SpeechTranscriptionConfig speech_transcription_config = 6; * + * + * @return The speechTranscriptionConfig. */ public com.google.cloud.videointelligence.v1p1beta1.SpeechTranscriptionConfig getSpeechTranscriptionConfig() { diff --git a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/VideoContextOrBuilder.java b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/VideoContextOrBuilder.java index eae33f616..d10f47552 100644 --- a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/VideoContextOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/VideoContextOrBuilder.java @@ -96,6 +96,8 @@ com.google.cloud.videointelligence.v1p1beta1.VideoSegmentOrBuilder getSegmentsOr * * .google.cloud.videointelligence.v1p1beta1.LabelDetectionConfig label_detection_config = 2; * + * + * @return Whether the labelDetectionConfig field is set. */ boolean hasLabelDetectionConfig(); /** @@ -108,6 +110,8 @@ com.google.cloud.videointelligence.v1p1beta1.VideoSegmentOrBuilder getSegmentsOr * * .google.cloud.videointelligence.v1p1beta1.LabelDetectionConfig label_detection_config = 2; * + * + * @return The labelDetectionConfig. */ com.google.cloud.videointelligence.v1p1beta1.LabelDetectionConfig getLabelDetectionConfig(); /** @@ -134,6 +138,8 @@ com.google.cloud.videointelligence.v1p1beta1.VideoSegmentOrBuilder getSegmentsOr * * .google.cloud.videointelligence.v1p1beta1.ShotChangeDetectionConfig shot_change_detection_config = 3; * + * + * @return Whether the shotChangeDetectionConfig field is set. */ boolean hasShotChangeDetectionConfig(); /** @@ -146,6 +152,8 @@ com.google.cloud.videointelligence.v1p1beta1.VideoSegmentOrBuilder getSegmentsOr * * .google.cloud.videointelligence.v1p1beta1.ShotChangeDetectionConfig shot_change_detection_config = 3; * + * + * @return The shotChangeDetectionConfig. */ com.google.cloud.videointelligence.v1p1beta1.ShotChangeDetectionConfig getShotChangeDetectionConfig(); @@ -173,6 +181,8 @@ com.google.cloud.videointelligence.v1p1beta1.VideoSegmentOrBuilder getSegmentsOr * * .google.cloud.videointelligence.v1p1beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; * + * + * @return Whether the explicitContentDetectionConfig field is set. */ boolean hasExplicitContentDetectionConfig(); /** @@ -185,6 +195,8 @@ com.google.cloud.videointelligence.v1p1beta1.VideoSegmentOrBuilder getSegmentsOr * * .google.cloud.videointelligence.v1p1beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; * + * + * @return The explicitContentDetectionConfig. */ com.google.cloud.videointelligence.v1p1beta1.ExplicitContentDetectionConfig getExplicitContentDetectionConfig(); @@ -212,6 +224,8 @@ com.google.cloud.videointelligence.v1p1beta1.VideoSegmentOrBuilder getSegmentsOr * * .google.cloud.videointelligence.v1p1beta1.SpeechTranscriptionConfig speech_transcription_config = 6; * + * + * @return Whether the speechTranscriptionConfig field is set. */ boolean hasSpeechTranscriptionConfig(); /** @@ -224,6 +238,8 @@ com.google.cloud.videointelligence.v1p1beta1.VideoSegmentOrBuilder getSegmentsOr * * .google.cloud.videointelligence.v1p1beta1.SpeechTranscriptionConfig speech_transcription_config = 6; * + * + * @return The speechTranscriptionConfig. */ com.google.cloud.videointelligence.v1p1beta1.SpeechTranscriptionConfig getSpeechTranscriptionConfig(); diff --git a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/VideoIntelligenceServiceProto.java b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/VideoIntelligenceServiceProto.java index f812553d8..ba755b8c2 100644 --- a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/VideoIntelligenceServiceProto.java +++ b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/VideoIntelligenceServiceProto.java @@ -242,24 +242,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "p1beta1\352\002+Google::Cloud::VideoIntelligen" + "ce::V1p1beta1b\006proto3" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }, - assigner); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); internal_static_google_cloud_videointelligence_v1p1beta1_AnnotateVideoRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_cloud_videointelligence_v1p1beta1_AnnotateVideoRequest_fieldAccessorTable = diff --git a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/VideoSegment.java b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/VideoSegment.java index fbd15bedf..44c3ccb75 100644 --- a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/VideoSegment.java +++ b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/VideoSegment.java @@ -39,6 +39,12 @@ private VideoSegment(com.google.protobuf.GeneratedMessageV3.Builder builder) private VideoSegment() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VideoSegment(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -52,7 +58,6 @@ private VideoSegment( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -138,6 +143,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.protobuf.Duration start_time_offset = 1; + * + * @return Whether the startTimeOffset field is set. */ public boolean hasStartTimeOffset() { return startTimeOffset_ != null; @@ -151,6 +158,8 @@ public boolean hasStartTimeOffset() { * * * .google.protobuf.Duration start_time_offset = 1; + * + * @return The startTimeOffset. */ public com.google.protobuf.Duration getStartTimeOffset() { return startTimeOffset_ == null @@ -182,6 +191,8 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOffsetOrBuilder() { * * * .google.protobuf.Duration end_time_offset = 2; + * + * @return Whether the endTimeOffset field is set. */ public boolean hasEndTimeOffset() { return endTimeOffset_ != null; @@ -195,6 +206,8 @@ public boolean hasEndTimeOffset() { * * * .google.protobuf.Duration end_time_offset = 2; + * + * @return The endTimeOffset. */ public com.google.protobuf.Duration getEndTimeOffset() { return endTimeOffset_ == null @@ -589,6 +602,8 @@ public Builder mergeFrom( * * * .google.protobuf.Duration start_time_offset = 1; + * + * @return Whether the startTimeOffset field is set. */ public boolean hasStartTimeOffset() { return startTimeOffsetBuilder_ != null || startTimeOffset_ != null; @@ -602,6 +617,8 @@ public boolean hasStartTimeOffset() { * * * .google.protobuf.Duration start_time_offset = 1; + * + * @return The startTimeOffset. */ public com.google.protobuf.Duration getStartTimeOffset() { if (startTimeOffsetBuilder_ == null) { @@ -779,6 +796,8 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOffsetOrBuilder() { * * * .google.protobuf.Duration end_time_offset = 2; + * + * @return Whether the endTimeOffset field is set. */ public boolean hasEndTimeOffset() { return endTimeOffsetBuilder_ != null || endTimeOffset_ != null; @@ -792,6 +811,8 @@ public boolean hasEndTimeOffset() { * * * .google.protobuf.Duration end_time_offset = 2; + * + * @return The endTimeOffset. */ public com.google.protobuf.Duration getEndTimeOffset() { if (endTimeOffsetBuilder_ == null) { diff --git a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/VideoSegmentOrBuilder.java b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/VideoSegmentOrBuilder.java index 5b8af1b81..453f1fb15 100644 --- a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/VideoSegmentOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/VideoSegmentOrBuilder.java @@ -32,6 +32,8 @@ public interface VideoSegmentOrBuilder * * * .google.protobuf.Duration start_time_offset = 1; + * + * @return Whether the startTimeOffset field is set. */ boolean hasStartTimeOffset(); /** @@ -43,6 +45,8 @@ public interface VideoSegmentOrBuilder * * * .google.protobuf.Duration start_time_offset = 1; + * + * @return The startTimeOffset. */ com.google.protobuf.Duration getStartTimeOffset(); /** @@ -66,6 +70,8 @@ public interface VideoSegmentOrBuilder * * * .google.protobuf.Duration end_time_offset = 2; + * + * @return Whether the endTimeOffset field is set. */ boolean hasEndTimeOffset(); /** @@ -77,6 +83,8 @@ public interface VideoSegmentOrBuilder * * * .google.protobuf.Duration end_time_offset = 2; + * + * @return The endTimeOffset. */ com.google.protobuf.Duration getEndTimeOffset(); /** diff --git a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/WordInfo.java b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/WordInfo.java index 1cd43f81b..ca609c94e 100644 --- a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/WordInfo.java +++ b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/WordInfo.java @@ -43,6 +43,12 @@ private WordInfo() { word_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new WordInfo(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -56,7 +62,6 @@ private WordInfo( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -151,6 +156,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.protobuf.Duration start_time = 1; + * + * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTime_ != null; @@ -166,6 +173,8 @@ public boolean hasStartTime() { * * * .google.protobuf.Duration start_time = 1; + * + * @return The startTime. */ public com.google.protobuf.Duration getStartTime() { return startTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : startTime_; @@ -199,6 +208,8 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() { * * * .google.protobuf.Duration end_time = 2; + * + * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTime_ != null; @@ -214,6 +225,8 @@ public boolean hasEndTime() { * * * .google.protobuf.Duration end_time = 2; + * + * @return The endTime. */ public com.google.protobuf.Duration getEndTime() { return endTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : endTime_; @@ -244,6 +257,8 @@ public com.google.protobuf.DurationOrBuilder getEndTimeOrBuilder() { * * * string word = 3; + * + * @return The word. */ public java.lang.String getWord() { java.lang.Object ref = word_; @@ -264,6 +279,8 @@ public java.lang.String getWord() { * * * string word = 3; + * + * @return The bytes for word. */ public com.google.protobuf.ByteString getWordBytes() { java.lang.Object ref = word_; @@ -671,6 +688,8 @@ public Builder mergeFrom( * * * .google.protobuf.Duration start_time = 1; + * + * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; @@ -686,6 +705,8 @@ public boolean hasStartTime() { * * * .google.protobuf.Duration start_time = 1; + * + * @return The startTime. */ public com.google.protobuf.Duration getStartTime() { if (startTimeBuilder_ == null) { @@ -873,6 +894,8 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() { * * * .google.protobuf.Duration end_time = 2; + * + * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; @@ -888,6 +911,8 @@ public boolean hasEndTime() { * * * .google.protobuf.Duration end_time = 2; + * + * @return The endTime. */ public com.google.protobuf.Duration getEndTime() { if (endTimeBuilder_ == null) { @@ -1067,6 +1092,8 @@ public com.google.protobuf.DurationOrBuilder getEndTimeOrBuilder() { * * * string word = 3; + * + * @return The word. */ public java.lang.String getWord() { java.lang.Object ref = word_; @@ -1087,6 +1114,8 @@ public java.lang.String getWord() { * * * string word = 3; + * + * @return The bytes for word. */ public com.google.protobuf.ByteString getWordBytes() { java.lang.Object ref = word_; @@ -1107,6 +1136,9 @@ public com.google.protobuf.ByteString getWordBytes() { * * * string word = 3; + * + * @param value The word to set. + * @return This builder for chaining. */ public Builder setWord(java.lang.String value) { if (value == null) { @@ -1125,6 +1157,8 @@ public Builder setWord(java.lang.String value) { * * * string word = 3; + * + * @return This builder for chaining. */ public Builder clearWord() { @@ -1140,6 +1174,9 @@ public Builder clearWord() { * * * string word = 3; + * + * @param value The bytes for word to set. + * @return This builder for chaining. */ public Builder setWordBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/WordInfoOrBuilder.java b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/WordInfoOrBuilder.java index bd267165e..7850ae612 100644 --- a/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/WordInfoOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p1beta1/src/main/java/com/google/cloud/videointelligence/v1p1beta1/WordInfoOrBuilder.java @@ -34,6 +34,8 @@ public interface WordInfoOrBuilder * * * .google.protobuf.Duration start_time = 1; + * + * @return Whether the startTime field is set. */ boolean hasStartTime(); /** @@ -47,6 +49,8 @@ public interface WordInfoOrBuilder * * * .google.protobuf.Duration start_time = 1; + * + * @return The startTime. */ com.google.protobuf.Duration getStartTime(); /** @@ -74,6 +78,8 @@ public interface WordInfoOrBuilder * * * .google.protobuf.Duration end_time = 2; + * + * @return Whether the endTime field is set. */ boolean hasEndTime(); /** @@ -87,6 +93,8 @@ public interface WordInfoOrBuilder * * * .google.protobuf.Duration end_time = 2; + * + * @return The endTime. */ com.google.protobuf.Duration getEndTime(); /** @@ -111,6 +119,8 @@ public interface WordInfoOrBuilder * * * string word = 3; + * + * @return The word. */ java.lang.String getWord(); /** @@ -121,6 +131,8 @@ public interface WordInfoOrBuilder * * * string word = 3; + * + * @return The bytes for word. */ com.google.protobuf.ByteString getWordBytes(); } diff --git a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/AnnotateVideoProgress.java b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/AnnotateVideoProgress.java index 16106435d..e94d5c5ba 100644 --- a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/AnnotateVideoProgress.java +++ b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/AnnotateVideoProgress.java @@ -43,6 +43,12 @@ private AnnotateVideoProgress() { annotationProgress_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AnnotateVideoProgress(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; diff --git a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/AnnotateVideoRequest.java b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/AnnotateVideoRequest.java index 8645c0e77..9cf0b4428 100644 --- a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/AnnotateVideoRequest.java +++ b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/AnnotateVideoRequest.java @@ -45,6 +45,12 @@ private AnnotateVideoRequest() { locationId_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AnnotateVideoRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -79,9 +85,9 @@ private AnnotateVideoRequest( case 16: { int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { features_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000001; } features_.add(rawValue); break; @@ -92,9 +98,9 @@ private AnnotateVideoRequest( int oldLimit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { features_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000001; } features_.add(rawValue); } @@ -151,7 +157,7 @@ private AnnotateVideoRequest( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { features_ = java.util.Collections.unmodifiableList(features_); } this.unknownFields = unknownFields.build(); @@ -174,7 +180,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest.Builder.class); } - private int bitField0_; public static final int INPUT_URI_FIELD_NUMBER = 1; private volatile java.lang.Object inputUri_; /** @@ -194,6 +199,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string input_uri = 1; + * + * @return The inputUri. */ public java.lang.String getInputUri() { java.lang.Object ref = inputUri_; @@ -223,6 +230,8 @@ public java.lang.String getInputUri() { * * * string input_uri = 1; + * + * @return The bytes for inputUri. */ public com.google.protobuf.ByteString getInputUriBytes() { java.lang.Object ref = inputUri_; @@ -248,6 +257,8 @@ public com.google.protobuf.ByteString getInputUriBytes() { * * * bytes input_content = 6; + * + * @return The inputContent. */ public com.google.protobuf.ByteString getInputContent() { return inputContent_; @@ -278,6 +289,8 @@ public com.google.cloud.videointelligence.v1p2beta1.Feature convert( * * * repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2; + * + * @return A list containing the features. */ public java.util.List getFeaturesList() { return new com.google.protobuf.Internal.ListAdapter< @@ -292,6 +305,8 @@ public java.util.List getF * * * repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2; + * + * @param value The features to add. */ public int getFeaturesCount() { return features_.size(); @@ -304,6 +319,9 @@ public int getFeaturesCount() { * * * repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2; + * + * @param index The index of the element to return. + * @return The features at the given index. */ public com.google.cloud.videointelligence.v1p2beta1.Feature getFeatures(int index) { return features_converter_.convert(features_.get(index)); @@ -316,6 +334,8 @@ public com.google.cloud.videointelligence.v1p2beta1.Feature getFeatures(int inde * * * repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2; + * + * @return A list containing the enum numeric values on the wire for features. */ public java.util.List getFeaturesValueList() { return features_; @@ -328,6 +348,9 @@ public java.util.List getFeaturesValueList() { * * * repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of features at the given index. */ public int getFeaturesValue(int index) { return features_.get(index); @@ -345,6 +368,8 @@ public int getFeaturesValue(int index) { * * * .google.cloud.videointelligence.v1p2beta1.VideoContext video_context = 3; + * + * @return Whether the videoContext field is set. */ public boolean hasVideoContext() { return videoContext_ != null; @@ -357,6 +382,8 @@ public boolean hasVideoContext() { * * * .google.cloud.videointelligence.v1p2beta1.VideoContext video_context = 3; + * + * @return The videoContext. */ public com.google.cloud.videointelligence.v1p2beta1.VideoContext getVideoContext() { return videoContext_ == null @@ -392,6 +419,8 @@ public com.google.cloud.videointelligence.v1p2beta1.VideoContext getVideoContext * * * string output_uri = 4; + * + * @return The outputUri. */ public java.lang.String getOutputUri() { java.lang.Object ref = outputUri_; @@ -417,6 +446,8 @@ public java.lang.String getOutputUri() { * * * string output_uri = 4; + * + * @return The bytes for outputUri. */ public com.google.protobuf.ByteString getOutputUriBytes() { java.lang.Object ref = outputUri_; @@ -442,6 +473,8 @@ public com.google.protobuf.ByteString getOutputUriBytes() { * * * string location_id = 5; + * + * @return The locationId. */ public java.lang.String getLocationId() { java.lang.Object ref = locationId_; @@ -464,6 +497,8 @@ public java.lang.String getLocationId() { * * * string location_id = 5; + * + * @return The bytes for locationId. */ public com.google.protobuf.ByteString getLocationIdBytes() { java.lang.Object ref = locationId_; @@ -755,7 +790,7 @@ public Builder clear() { inputContent_ = com.google.protobuf.ByteString.EMPTY; features_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); if (videoContextBuilder_ == null) { videoContext_ = null; } else { @@ -795,12 +830,11 @@ public com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest buildPa com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest result = new com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.inputUri_ = inputUri_; result.inputContent_ = inputContent_; - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { features_ = java.util.Collections.unmodifiableList(features_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } result.features_ = features_; if (videoContextBuilder_ == null) { @@ -810,7 +844,6 @@ public com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest buildPa } result.outputUri_ = outputUri_; result.locationId_ = locationId_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -873,7 +906,7 @@ public Builder mergeFrom( if (!other.features_.isEmpty()) { if (features_.isEmpty()) { features_ = other.features_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureFeaturesIsMutable(); features_.addAll(other.features_); @@ -942,6 +975,8 @@ public Builder mergeFrom( * * * string input_uri = 1; + * + * @return The inputUri. */ public java.lang.String getInputUri() { java.lang.Object ref = inputUri_; @@ -971,6 +1006,8 @@ public java.lang.String getInputUri() { * * * string input_uri = 1; + * + * @return The bytes for inputUri. */ public com.google.protobuf.ByteString getInputUriBytes() { java.lang.Object ref = inputUri_; @@ -1000,6 +1037,9 @@ public com.google.protobuf.ByteString getInputUriBytes() { * * * string input_uri = 1; + * + * @param value The inputUri to set. + * @return This builder for chaining. */ public Builder setInputUri(java.lang.String value) { if (value == null) { @@ -1027,6 +1067,8 @@ public Builder setInputUri(java.lang.String value) { * * * string input_uri = 1; + * + * @return This builder for chaining. */ public Builder clearInputUri() { @@ -1051,6 +1093,9 @@ public Builder clearInputUri() { * * * string input_uri = 1; + * + * @param value The bytes for inputUri to set. + * @return This builder for chaining. */ public Builder setInputUriBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1074,6 +1119,8 @@ public Builder setInputUriBytes(com.google.protobuf.ByteString value) { * * * bytes input_content = 6; + * + * @return The inputContent. */ public com.google.protobuf.ByteString getInputContent() { return inputContent_; @@ -1088,6 +1135,9 @@ public com.google.protobuf.ByteString getInputContent() { * * * bytes input_content = 6; + * + * @param value The inputContent to set. + * @return This builder for chaining. */ public Builder setInputContent(com.google.protobuf.ByteString value) { if (value == null) { @@ -1108,6 +1158,8 @@ public Builder setInputContent(com.google.protobuf.ByteString value) { * * * bytes input_content = 6; + * + * @return This builder for chaining. */ public Builder clearInputContent() { @@ -1119,9 +1171,9 @@ public Builder clearInputContent() { private java.util.List features_ = java.util.Collections.emptyList(); private void ensureFeaturesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { features_ = new java.util.ArrayList(features_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; } } /** @@ -1132,6 +1184,8 @@ private void ensureFeaturesIsMutable() { * * * repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2; + * + * @return A list containing the features. */ public java.util.List getFeaturesList() { return new com.google.protobuf.Internal.ListAdapter< @@ -1146,6 +1200,8 @@ public java.util.List getF * * * repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2; + * + * @return The count of features. */ public int getFeaturesCount() { return features_.size(); @@ -1158,6 +1214,9 @@ public int getFeaturesCount() { * * * repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2; + * + * @param index The index of the element to return. + * @return The features at the given index. */ public com.google.cloud.videointelligence.v1p2beta1.Feature getFeatures(int index) { return features_converter_.convert(features_.get(index)); @@ -1170,6 +1229,10 @@ public com.google.cloud.videointelligence.v1p2beta1.Feature getFeatures(int inde * * * repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2; + * + * @param index The index to set the value at. + * @param value The features to set. + * @return This builder for chaining. */ public Builder setFeatures( int index, com.google.cloud.videointelligence.v1p2beta1.Feature value) { @@ -1189,6 +1252,9 @@ public Builder setFeatures( * * * repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2; + * + * @param value The features to add. + * @return This builder for chaining. */ public Builder addFeatures(com.google.cloud.videointelligence.v1p2beta1.Feature value) { if (value == null) { @@ -1207,6 +1273,9 @@ public Builder addFeatures(com.google.cloud.videointelligence.v1p2beta1.Feature * * * repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2; + * + * @param values The features to add. + * @return This builder for chaining. */ public Builder addAllFeatures( java.lang.Iterable values) { @@ -1225,10 +1294,12 @@ public Builder addAllFeatures( * * * repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2; + * + * @return This builder for chaining. */ public Builder clearFeatures() { features_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1240,6 +1311,8 @@ public Builder clearFeatures() { * * * repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2; + * + * @return A list containing the enum numeric values on the wire for features. */ public java.util.List getFeaturesValueList() { return java.util.Collections.unmodifiableList(features_); @@ -1252,6 +1325,9 @@ public java.util.List getFeaturesValueList() { * * * repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of features at the given index. */ public int getFeaturesValue(int index) { return features_.get(index); @@ -1264,6 +1340,10 @@ public int getFeaturesValue(int index) { * * * repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of features at the given index. + * @return This builder for chaining. */ public Builder setFeaturesValue(int index, int value) { ensureFeaturesIsMutable(); @@ -1279,6 +1359,9 @@ public Builder setFeaturesValue(int index, int value) { * * * repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2; + * + * @param value The enum numeric value on the wire for features to add. + * @return This builder for chaining. */ public Builder addFeaturesValue(int value) { ensureFeaturesIsMutable(); @@ -1294,6 +1377,9 @@ public Builder addFeaturesValue(int value) { * * * repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2; + * + * @param values The enum numeric values on the wire for features to add. + * @return This builder for chaining. */ public Builder addAllFeaturesValue(java.lang.Iterable values) { ensureFeaturesIsMutable(); @@ -1318,6 +1404,8 @@ public Builder addAllFeaturesValue(java.lang.Iterable values) * * * .google.cloud.videointelligence.v1p2beta1.VideoContext video_context = 3; + * + * @return Whether the videoContext field is set. */ public boolean hasVideoContext() { return videoContextBuilder_ != null || videoContext_ != null; @@ -1330,6 +1418,8 @@ public boolean hasVideoContext() { * * * .google.cloud.videointelligence.v1p2beta1.VideoContext video_context = 3; + * + * @return The videoContext. */ public com.google.cloud.videointelligence.v1p2beta1.VideoContext getVideoContext() { if (videoContextBuilder_ == null) { @@ -1504,6 +1594,8 @@ public Builder clearVideoContext() { * * * string output_uri = 4; + * + * @return The outputUri. */ public java.lang.String getOutputUri() { java.lang.Object ref = outputUri_; @@ -1529,6 +1621,8 @@ public java.lang.String getOutputUri() { * * * string output_uri = 4; + * + * @return The bytes for outputUri. */ public com.google.protobuf.ByteString getOutputUriBytes() { java.lang.Object ref = outputUri_; @@ -1554,6 +1648,9 @@ public com.google.protobuf.ByteString getOutputUriBytes() { * * * string output_uri = 4; + * + * @param value The outputUri to set. + * @return This builder for chaining. */ public Builder setOutputUri(java.lang.String value) { if (value == null) { @@ -1577,6 +1674,8 @@ public Builder setOutputUri(java.lang.String value) { * * * string output_uri = 4; + * + * @return This builder for chaining. */ public Builder clearOutputUri() { @@ -1597,6 +1696,9 @@ public Builder clearOutputUri() { * * * string output_uri = 4; + * + * @param value The bytes for outputUri to set. + * @return This builder for chaining. */ public Builder setOutputUriBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1620,6 +1722,8 @@ public Builder setOutputUriBytes(com.google.protobuf.ByteString value) { * * * string location_id = 5; + * + * @return The locationId. */ public java.lang.String getLocationId() { java.lang.Object ref = locationId_; @@ -1642,6 +1746,8 @@ public java.lang.String getLocationId() { * * * string location_id = 5; + * + * @return The bytes for locationId. */ public com.google.protobuf.ByteString getLocationIdBytes() { java.lang.Object ref = locationId_; @@ -1664,6 +1770,9 @@ public com.google.protobuf.ByteString getLocationIdBytes() { * * * string location_id = 5; + * + * @param value The locationId to set. + * @return This builder for chaining. */ public Builder setLocationId(java.lang.String value) { if (value == null) { @@ -1684,6 +1793,8 @@ public Builder setLocationId(java.lang.String value) { * * * string location_id = 5; + * + * @return This builder for chaining. */ public Builder clearLocationId() { @@ -1701,6 +1812,9 @@ public Builder clearLocationId() { * * * string location_id = 5; + * + * @param value The bytes for locationId to set. + * @return This builder for chaining. */ public Builder setLocationIdBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/AnnotateVideoRequestOrBuilder.java b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/AnnotateVideoRequestOrBuilder.java index e5a1ff918..1a9e13222 100644 --- a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/AnnotateVideoRequestOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/AnnotateVideoRequestOrBuilder.java @@ -40,6 +40,8 @@ public interface AnnotateVideoRequestOrBuilder * * * string input_uri = 1; + * + * @return The inputUri. */ java.lang.String getInputUri(); /** @@ -59,6 +61,8 @@ public interface AnnotateVideoRequestOrBuilder * * * string input_uri = 1; + * + * @return The bytes for inputUri. */ com.google.protobuf.ByteString getInputUriBytes(); @@ -72,6 +76,8 @@ public interface AnnotateVideoRequestOrBuilder * * * bytes input_content = 6; + * + * @return The inputContent. */ com.google.protobuf.ByteString getInputContent(); @@ -83,6 +89,8 @@ public interface AnnotateVideoRequestOrBuilder * * * repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2; + * + * @return A list containing the features. */ java.util.List getFeaturesList(); /** @@ -93,6 +101,8 @@ public interface AnnotateVideoRequestOrBuilder * * * repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2; + * + * @return The count of features. */ int getFeaturesCount(); /** @@ -103,6 +113,9 @@ public interface AnnotateVideoRequestOrBuilder * * * repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2; + * + * @param index The index of the element to return. + * @return The features at the given index. */ com.google.cloud.videointelligence.v1p2beta1.Feature getFeatures(int index); /** @@ -113,6 +126,8 @@ public interface AnnotateVideoRequestOrBuilder * * * repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2; + * + * @return A list containing the enum numeric values on the wire for features. */ java.util.List getFeaturesValueList(); /** @@ -123,6 +138,9 @@ public interface AnnotateVideoRequestOrBuilder * * * repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of features at the given index. */ int getFeaturesValue(int index); @@ -134,6 +152,8 @@ public interface AnnotateVideoRequestOrBuilder * * * .google.cloud.videointelligence.v1p2beta1.VideoContext video_context = 3; + * + * @return Whether the videoContext field is set. */ boolean hasVideoContext(); /** @@ -144,6 +164,8 @@ public interface AnnotateVideoRequestOrBuilder * * * .google.cloud.videointelligence.v1p2beta1.VideoContext video_context = 3; + * + * @return The videoContext. */ com.google.cloud.videointelligence.v1p2beta1.VideoContext getVideoContext(); /** @@ -170,6 +192,8 @@ public interface AnnotateVideoRequestOrBuilder * * * string output_uri = 4; + * + * @return The outputUri. */ java.lang.String getOutputUri(); /** @@ -185,6 +209,8 @@ public interface AnnotateVideoRequestOrBuilder * * * string output_uri = 4; + * + * @return The bytes for outputUri. */ com.google.protobuf.ByteString getOutputUriBytes(); @@ -198,6 +224,8 @@ public interface AnnotateVideoRequestOrBuilder * * * string location_id = 5; + * + * @return The locationId. */ java.lang.String getLocationId(); /** @@ -210,6 +238,8 @@ public interface AnnotateVideoRequestOrBuilder * * * string location_id = 5; + * + * @return The bytes for locationId. */ com.google.protobuf.ByteString getLocationIdBytes(); } diff --git a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/AnnotateVideoResponse.java b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/AnnotateVideoResponse.java index e8454a17e..1bdcdb8e3 100644 --- a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/AnnotateVideoResponse.java +++ b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/AnnotateVideoResponse.java @@ -43,6 +43,12 @@ private AnnotateVideoResponse() { annotationResults_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AnnotateVideoResponse(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; diff --git a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/Entity.java b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/Entity.java index b8a0c7bbb..839ed0298 100644 --- a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/Entity.java +++ b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/Entity.java @@ -43,6 +43,12 @@ private Entity() { languageCode_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Entity(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -56,7 +62,6 @@ private Entity( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -134,6 +139,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string entity_id = 1; + * + * @return The entityId. */ public java.lang.String getEntityId() { java.lang.Object ref = entityId_; @@ -156,6 +163,8 @@ public java.lang.String getEntityId() { * * * string entity_id = 1; + * + * @return The bytes for entityId. */ public com.google.protobuf.ByteString getEntityIdBytes() { java.lang.Object ref = entityId_; @@ -179,6 +188,8 @@ public com.google.protobuf.ByteString getEntityIdBytes() { * * * string description = 2; + * + * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; @@ -199,6 +210,8 @@ public java.lang.String getDescription() { * * * string description = 2; + * + * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; @@ -222,6 +235,8 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * * string language_code = 3; + * + * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; @@ -242,6 +257,8 @@ public java.lang.String getLanguageCode() { * * * string language_code = 3; + * + * @return The bytes for languageCode. */ public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; @@ -616,6 +633,8 @@ public Builder mergeFrom( * * * string entity_id = 1; + * + * @return The entityId. */ public java.lang.String getEntityId() { java.lang.Object ref = entityId_; @@ -638,6 +657,8 @@ public java.lang.String getEntityId() { * * * string entity_id = 1; + * + * @return The bytes for entityId. */ public com.google.protobuf.ByteString getEntityIdBytes() { java.lang.Object ref = entityId_; @@ -660,6 +681,9 @@ public com.google.protobuf.ByteString getEntityIdBytes() { * * * string entity_id = 1; + * + * @param value The entityId to set. + * @return This builder for chaining. */ public Builder setEntityId(java.lang.String value) { if (value == null) { @@ -680,6 +704,8 @@ public Builder setEntityId(java.lang.String value) { * * * string entity_id = 1; + * + * @return This builder for chaining. */ public Builder clearEntityId() { @@ -697,6 +723,9 @@ public Builder clearEntityId() { * * * string entity_id = 1; + * + * @param value The bytes for entityId to set. + * @return This builder for chaining. */ public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -718,6 +747,8 @@ public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { * * * string description = 2; + * + * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; @@ -738,6 +769,8 @@ public java.lang.String getDescription() { * * * string description = 2; + * + * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; @@ -758,6 +791,9 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * * string description = 2; + * + * @param value The description to set. + * @return This builder for chaining. */ public Builder setDescription(java.lang.String value) { if (value == null) { @@ -776,6 +812,8 @@ public Builder setDescription(java.lang.String value) { * * * string description = 2; + * + * @return This builder for chaining. */ public Builder clearDescription() { @@ -791,6 +829,9 @@ public Builder clearDescription() { * * * string description = 2; + * + * @param value The bytes for description to set. + * @return This builder for chaining. */ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -812,6 +853,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * * * string language_code = 3; + * + * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; @@ -832,6 +875,8 @@ public java.lang.String getLanguageCode() { * * * string language_code = 3; + * + * @return The bytes for languageCode. */ public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; @@ -852,6 +897,9 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { * * * string language_code = 3; + * + * @param value The languageCode to set. + * @return This builder for chaining. */ public Builder setLanguageCode(java.lang.String value) { if (value == null) { @@ -870,6 +918,8 @@ public Builder setLanguageCode(java.lang.String value) { * * * string language_code = 3; + * + * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -885,6 +935,9 @@ public Builder clearLanguageCode() { * * * string language_code = 3; + * + * @param value The bytes for languageCode to set. + * @return This builder for chaining. */ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/EntityOrBuilder.java b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/EntityOrBuilder.java index b033c3d08..a8b3fdf35 100644 --- a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/EntityOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/EntityOrBuilder.java @@ -33,6 +33,8 @@ public interface EntityOrBuilder * * * string entity_id = 1; + * + * @return The entityId. */ java.lang.String getEntityId(); /** @@ -45,6 +47,8 @@ public interface EntityOrBuilder * * * string entity_id = 1; + * + * @return The bytes for entityId. */ com.google.protobuf.ByteString getEntityIdBytes(); @@ -56,6 +60,8 @@ public interface EntityOrBuilder * * * string description = 2; + * + * @return The description. */ java.lang.String getDescription(); /** @@ -66,6 +72,8 @@ public interface EntityOrBuilder * * * string description = 2; + * + * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); @@ -77,6 +85,8 @@ public interface EntityOrBuilder * * * string language_code = 3; + * + * @return The languageCode. */ java.lang.String getLanguageCode(); /** @@ -87,6 +97,8 @@ public interface EntityOrBuilder * * * string language_code = 3; + * + * @return The bytes for languageCode. */ com.google.protobuf.ByteString getLanguageCodeBytes(); } diff --git a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ExplicitContentAnnotation.java b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ExplicitContentAnnotation.java index ec9fb3bd1..06a2e4ed2 100644 --- a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ExplicitContentAnnotation.java +++ b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ExplicitContentAnnotation.java @@ -43,6 +43,12 @@ private ExplicitContentAnnotation() { frames_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExplicitContentAnnotation(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; diff --git a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ExplicitContentDetectionConfig.java b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ExplicitContentDetectionConfig.java index 9f636b6d1..00ed88507 100644 --- a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ExplicitContentDetectionConfig.java +++ b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ExplicitContentDetectionConfig.java @@ -42,6 +42,12 @@ private ExplicitContentDetectionConfig() { model_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExplicitContentDetectionConfig(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -55,7 +61,6 @@ private ExplicitContentDetectionConfig( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -120,6 +125,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string model = 1; + * + * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; @@ -142,6 +149,8 @@ public java.lang.String getModel() { * * * string model = 1; + * + * @return The bytes for model. */ public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; @@ -504,6 +513,8 @@ public Builder mergeFrom( * * * string model = 1; + * + * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; @@ -526,6 +537,8 @@ public java.lang.String getModel() { * * * string model = 1; + * + * @return The bytes for model. */ public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; @@ -548,6 +561,9 @@ public com.google.protobuf.ByteString getModelBytes() { * * * string model = 1; + * + * @param value The model to set. + * @return This builder for chaining. */ public Builder setModel(java.lang.String value) { if (value == null) { @@ -568,6 +584,8 @@ public Builder setModel(java.lang.String value) { * * * string model = 1; + * + * @return This builder for chaining. */ public Builder clearModel() { @@ -585,6 +603,9 @@ public Builder clearModel() { * * * string model = 1; + * + * @param value The bytes for model to set. + * @return This builder for chaining. */ public Builder setModelBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ExplicitContentDetectionConfigOrBuilder.java b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ExplicitContentDetectionConfigOrBuilder.java index 6234abeab..286c4b22f 100644 --- a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ExplicitContentDetectionConfigOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ExplicitContentDetectionConfigOrBuilder.java @@ -33,6 +33,8 @@ public interface ExplicitContentDetectionConfigOrBuilder * * * string model = 1; + * + * @return The model. */ java.lang.String getModel(); /** @@ -45,6 +47,8 @@ public interface ExplicitContentDetectionConfigOrBuilder * * * string model = 1; + * + * @return The bytes for model. */ com.google.protobuf.ByteString getModelBytes(); } diff --git a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ExplicitContentFrame.java b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ExplicitContentFrame.java index 2595e5493..3fc535471 100644 --- a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ExplicitContentFrame.java +++ b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ExplicitContentFrame.java @@ -41,6 +41,12 @@ private ExplicitContentFrame() { pornographyLikelihood_ = 0; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExplicitContentFrame(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private ExplicitContentFrame( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -132,6 +137,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.protobuf.Duration time_offset = 1; + * + * @return Whether the timeOffset field is set. */ public boolean hasTimeOffset() { return timeOffset_ != null; @@ -145,6 +152,8 @@ public boolean hasTimeOffset() { * * * .google.protobuf.Duration time_offset = 1; + * + * @return The timeOffset. */ public com.google.protobuf.Duration getTimeOffset() { return timeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeOffset_; @@ -173,6 +182,8 @@ public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() { * * * .google.cloud.videointelligence.v1p2beta1.Likelihood pornography_likelihood = 2; + * + * @return The enum numeric value on the wire for pornographyLikelihood. */ public int getPornographyLikelihoodValue() { return pornographyLikelihood_; @@ -185,6 +196,8 @@ public int getPornographyLikelihoodValue() { * * * .google.cloud.videointelligence.v1p2beta1.Likelihood pornography_likelihood = 2; + * + * @return The pornographyLikelihood. */ public com.google.cloud.videointelligence.v1p2beta1.Likelihood getPornographyLikelihood() { @SuppressWarnings("deprecation") @@ -566,6 +579,8 @@ public Builder mergeFrom( * * * .google.protobuf.Duration time_offset = 1; + * + * @return Whether the timeOffset field is set. */ public boolean hasTimeOffset() { return timeOffsetBuilder_ != null || timeOffset_ != null; @@ -579,6 +594,8 @@ public boolean hasTimeOffset() { * * * .google.protobuf.Duration time_offset = 1; + * + * @return The timeOffset. */ public com.google.protobuf.Duration getTimeOffset() { if (timeOffsetBuilder_ == null) { @@ -748,6 +765,8 @@ public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() { * * * .google.cloud.videointelligence.v1p2beta1.Likelihood pornography_likelihood = 2; + * + * @return The enum numeric value on the wire for pornographyLikelihood. */ public int getPornographyLikelihoodValue() { return pornographyLikelihood_; @@ -760,6 +779,9 @@ public int getPornographyLikelihoodValue() { * * * .google.cloud.videointelligence.v1p2beta1.Likelihood pornography_likelihood = 2; + * + * @param value The enum numeric value on the wire for pornographyLikelihood to set. + * @return This builder for chaining. */ public Builder setPornographyLikelihoodValue(int value) { pornographyLikelihood_ = value; @@ -774,6 +796,8 @@ public Builder setPornographyLikelihoodValue(int value) { * * * .google.cloud.videointelligence.v1p2beta1.Likelihood pornography_likelihood = 2; + * + * @return The pornographyLikelihood. */ public com.google.cloud.videointelligence.v1p2beta1.Likelihood getPornographyLikelihood() { @SuppressWarnings("deprecation") @@ -791,6 +815,9 @@ public com.google.cloud.videointelligence.v1p2beta1.Likelihood getPornographyLik * * * .google.cloud.videointelligence.v1p2beta1.Likelihood pornography_likelihood = 2; + * + * @param value The pornographyLikelihood to set. + * @return This builder for chaining. */ public Builder setPornographyLikelihood( com.google.cloud.videointelligence.v1p2beta1.Likelihood value) { @@ -810,6 +837,8 @@ public Builder setPornographyLikelihood( * * * .google.cloud.videointelligence.v1p2beta1.Likelihood pornography_likelihood = 2; + * + * @return This builder for chaining. */ public Builder clearPornographyLikelihood() { diff --git a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ExplicitContentFrameOrBuilder.java b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ExplicitContentFrameOrBuilder.java index a1b9889df..ee0f27600 100644 --- a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ExplicitContentFrameOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ExplicitContentFrameOrBuilder.java @@ -32,6 +32,8 @@ public interface ExplicitContentFrameOrBuilder * * * .google.protobuf.Duration time_offset = 1; + * + * @return Whether the timeOffset field is set. */ boolean hasTimeOffset(); /** @@ -43,6 +45,8 @@ public interface ExplicitContentFrameOrBuilder * * * .google.protobuf.Duration time_offset = 1; + * + * @return The timeOffset. */ com.google.protobuf.Duration getTimeOffset(); /** @@ -65,6 +69,8 @@ public interface ExplicitContentFrameOrBuilder * * * .google.cloud.videointelligence.v1p2beta1.Likelihood pornography_likelihood = 2; + * + * @return The enum numeric value on the wire for pornographyLikelihood. */ int getPornographyLikelihoodValue(); /** @@ -75,6 +81,8 @@ public interface ExplicitContentFrameOrBuilder * * * .google.cloud.videointelligence.v1p2beta1.Likelihood pornography_likelihood = 2; + * + * @return The pornographyLikelihood. */ com.google.cloud.videointelligence.v1p2beta1.Likelihood getPornographyLikelihood(); } diff --git a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/Feature.java b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/Feature.java index 8e6ee315f..2823c0c12 100644 --- a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/Feature.java +++ b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/Feature.java @@ -160,12 +160,20 @@ public final int getNumber() { return value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ @java.lang.Deprecated public static Feature valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Feature forNumber(int value) { switch (value) { case 0: diff --git a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelAnnotation.java b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelAnnotation.java index 1eb7c6d4d..789dab469 100644 --- a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelAnnotation.java +++ b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelAnnotation.java @@ -43,6 +43,12 @@ private LabelAnnotation() { frames_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LabelAnnotation(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -86,10 +92,10 @@ private LabelAnnotation( } case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { categoryEntities_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + mutable_bitField0_ |= 0x00000001; } categoryEntities_.add( input.readMessage( @@ -99,11 +105,11 @@ private LabelAnnotation( } case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { segments_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p2beta1.LabelSegment>(); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000002; } segments_.add( input.readMessage( @@ -113,11 +119,11 @@ private LabelAnnotation( } case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { frames_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p2beta1.LabelFrame>(); - mutable_bitField0_ |= 0x00000008; + mutable_bitField0_ |= 0x00000004; } frames_.add( input.readMessage( @@ -139,13 +145,13 @@ private LabelAnnotation( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { categoryEntities_ = java.util.Collections.unmodifiableList(categoryEntities_); } - if (((mutable_bitField0_ & 0x00000004) != 0)) { + if (((mutable_bitField0_ & 0x00000002) != 0)) { segments_ = java.util.Collections.unmodifiableList(segments_); } - if (((mutable_bitField0_ & 0x00000008) != 0)) { + if (((mutable_bitField0_ & 0x00000004) != 0)) { frames_ = java.util.Collections.unmodifiableList(frames_); } this.unknownFields = unknownFields.build(); @@ -168,7 +174,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation.Builder.class); } - private int bitField0_; public static final int ENTITY_FIELD_NUMBER = 1; private com.google.cloud.videointelligence.v1p2beta1.Entity entity_; /** @@ -179,6 +184,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.cloud.videointelligence.v1p2beta1.Entity entity = 1; + * + * @return Whether the entity field is set. */ public boolean hasEntity() { return entity_ != null; @@ -191,6 +198,8 @@ public boolean hasEntity() { * * * .google.cloud.videointelligence.v1p2beta1.Entity entity = 1; + * + * @return The entity. */ public com.google.cloud.videointelligence.v1p2beta1.Entity getEntity() { return entity_ == null @@ -678,19 +687,19 @@ public Builder clear() { } if (categoryEntitiesBuilder_ == null) { categoryEntities_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } else { categoryEntitiesBuilder_.clear(); } if (segmentsBuilder_ == null) { segments_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); } else { segmentsBuilder_.clear(); } if (framesBuilder_ == null) { frames_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); } else { framesBuilder_.clear(); } @@ -723,40 +732,38 @@ public com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation buildPartial com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation result = new com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (entityBuilder_ == null) { result.entity_ = entity_; } else { result.entity_ = entityBuilder_.build(); } if (categoryEntitiesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { categoryEntities_ = java.util.Collections.unmodifiableList(categoryEntities_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } result.categoryEntities_ = categoryEntities_; } else { result.categoryEntities_ = categoryEntitiesBuilder_.build(); } if (segmentsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { segments_ = java.util.Collections.unmodifiableList(segments_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); } result.segments_ = segments_; } else { result.segments_ = segmentsBuilder_.build(); } if (framesBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { frames_ = java.util.Collections.unmodifiableList(frames_); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); } result.frames_ = frames_; } else { result.frames_ = framesBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -815,7 +822,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1p2beta1.LabelAnnot if (!other.categoryEntities_.isEmpty()) { if (categoryEntities_.isEmpty()) { categoryEntities_ = other.categoryEntities_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureCategoryEntitiesIsMutable(); categoryEntities_.addAll(other.categoryEntities_); @@ -828,7 +835,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1p2beta1.LabelAnnot categoryEntitiesBuilder_.dispose(); categoryEntitiesBuilder_ = null; categoryEntities_ = other.categoryEntities_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); categoryEntitiesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCategoryEntitiesFieldBuilder() @@ -842,7 +849,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1p2beta1.LabelAnnot if (!other.segments_.isEmpty()) { if (segments_.isEmpty()) { segments_ = other.segments_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureSegmentsIsMutable(); segments_.addAll(other.segments_); @@ -855,7 +862,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1p2beta1.LabelAnnot segmentsBuilder_.dispose(); segmentsBuilder_ = null; segments_ = other.segments_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); segmentsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSegmentsFieldBuilder() @@ -869,7 +876,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1p2beta1.LabelAnnot if (!other.frames_.isEmpty()) { if (frames_.isEmpty()) { frames_ = other.frames_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureFramesIsMutable(); frames_.addAll(other.frames_); @@ -882,7 +889,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1p2beta1.LabelAnnot framesBuilder_.dispose(); framesBuilder_ = null; frames_ = other.frames_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); framesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFramesFieldBuilder() @@ -938,6 +945,8 @@ public Builder mergeFrom( * * * .google.cloud.videointelligence.v1p2beta1.Entity entity = 1; + * + * @return Whether the entity field is set. */ public boolean hasEntity() { return entityBuilder_ != null || entity_ != null; @@ -950,6 +959,8 @@ public boolean hasEntity() { * * * .google.cloud.videointelligence.v1p2beta1.Entity entity = 1; + * + * @return The entity. */ public com.google.cloud.videointelligence.v1p2beta1.Entity getEntity() { if (entityBuilder_ == null) { @@ -1110,11 +1121,11 @@ public com.google.cloud.videointelligence.v1p2beta1.EntityOrBuilder getEntityOrB java.util.Collections.emptyList(); private void ensureCategoryEntitiesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { categoryEntities_ = new java.util.ArrayList( categoryEntities_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } @@ -1366,7 +1377,7 @@ public Builder addAllCategoryEntities( public Builder clearCategoryEntities() { if (categoryEntitiesBuilder_ == null) { categoryEntities_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { categoryEntitiesBuilder_.clear(); @@ -1515,7 +1526,7 @@ public com.google.cloud.videointelligence.v1p2beta1.Entity.Builder addCategoryEn com.google.cloud.videointelligence.v1p2beta1.Entity.Builder, com.google.cloud.videointelligence.v1p2beta1.EntityOrBuilder>( categoryEntities_, - ((bitField0_ & 0x00000002) != 0), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); categoryEntities_ = null; @@ -1527,11 +1538,11 @@ public com.google.cloud.videointelligence.v1p2beta1.Entity.Builder addCategoryEn java.util.Collections.emptyList(); private void ensureSegmentsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { segments_ = new java.util.ArrayList( segments_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; } } @@ -1753,7 +1764,7 @@ public Builder addAllSegments( public Builder clearSegments() { if (segmentsBuilder_ == null) { segments_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { segmentsBuilder_.clear(); @@ -1882,7 +1893,7 @@ public com.google.cloud.videointelligence.v1p2beta1.LabelSegment.Builder addSegm com.google.cloud.videointelligence.v1p2beta1.LabelSegment, com.google.cloud.videointelligence.v1p2beta1.LabelSegment.Builder, com.google.cloud.videointelligence.v1p2beta1.LabelSegmentOrBuilder>( - segments_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + segments_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); segments_ = null; } return segmentsBuilder_; @@ -1892,11 +1903,11 @@ public com.google.cloud.videointelligence.v1p2beta1.LabelSegment.Builder addSegm java.util.Collections.emptyList(); private void ensureFramesIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { frames_ = new java.util.ArrayList( frames_); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; } } @@ -2117,7 +2128,7 @@ public Builder addAllFrames( public Builder clearFrames() { if (framesBuilder_ == null) { frames_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { framesBuilder_.clear(); @@ -2244,7 +2255,7 @@ public com.google.cloud.videointelligence.v1p2beta1.LabelFrame.Builder addFrames com.google.cloud.videointelligence.v1p2beta1.LabelFrame, com.google.cloud.videointelligence.v1p2beta1.LabelFrame.Builder, com.google.cloud.videointelligence.v1p2beta1.LabelFrameOrBuilder>( - frames_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + frames_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); frames_ = null; } return framesBuilder_; diff --git a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelAnnotationOrBuilder.java b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelAnnotationOrBuilder.java index 9969d2a53..4aa437123 100644 --- a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelAnnotationOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelAnnotationOrBuilder.java @@ -31,6 +31,8 @@ public interface LabelAnnotationOrBuilder * * * .google.cloud.videointelligence.v1p2beta1.Entity entity = 1; + * + * @return Whether the entity field is set. */ boolean hasEntity(); /** @@ -41,6 +43,8 @@ public interface LabelAnnotationOrBuilder * * * .google.cloud.videointelligence.v1p2beta1.Entity entity = 1; + * + * @return The entity. */ com.google.cloud.videointelligence.v1p2beta1.Entity getEntity(); /** diff --git a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelDetectionConfig.java b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelDetectionConfig.java index 540a0cc90..a09ade822 100644 --- a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelDetectionConfig.java +++ b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelDetectionConfig.java @@ -42,6 +42,12 @@ private LabelDetectionConfig() { model_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LabelDetectionConfig(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -55,7 +61,6 @@ private LabelDetectionConfig( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -132,6 +137,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * .google.cloud.videointelligence.v1p2beta1.LabelDetectionMode label_detection_mode = 1; * + * + * @return The enum numeric value on the wire for labelDetectionMode. */ public int getLabelDetectionModeValue() { return labelDetectionMode_; @@ -147,6 +154,8 @@ public int getLabelDetectionModeValue() { * * .google.cloud.videointelligence.v1p2beta1.LabelDetectionMode label_detection_mode = 1; * + * + * @return The labelDetectionMode. */ public com.google.cloud.videointelligence.v1p2beta1.LabelDetectionMode getLabelDetectionMode() { @SuppressWarnings("deprecation") @@ -170,6 +179,8 @@ public com.google.cloud.videointelligence.v1p2beta1.LabelDetectionMode getLabelD * * * bool stationary_camera = 2; + * + * @return The stationaryCamera. */ public boolean getStationaryCamera() { return stationaryCamera_; @@ -187,6 +198,8 @@ public boolean getStationaryCamera() { * * * string model = 3; + * + * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; @@ -209,6 +222,8 @@ public java.lang.String getModel() { * * * string model = 3; + * + * @return The bytes for model. */ public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; @@ -595,6 +610,8 @@ public Builder mergeFrom( * * .google.cloud.videointelligence.v1p2beta1.LabelDetectionMode label_detection_mode = 1; * + * + * @return The enum numeric value on the wire for labelDetectionMode. */ public int getLabelDetectionModeValue() { return labelDetectionMode_; @@ -610,6 +627,9 @@ public int getLabelDetectionModeValue() { * * .google.cloud.videointelligence.v1p2beta1.LabelDetectionMode label_detection_mode = 1; * + * + * @param value The enum numeric value on the wire for labelDetectionMode to set. + * @return This builder for chaining. */ public Builder setLabelDetectionModeValue(int value) { labelDetectionMode_ = value; @@ -627,6 +647,8 @@ public Builder setLabelDetectionModeValue(int value) { * * .google.cloud.videointelligence.v1p2beta1.LabelDetectionMode label_detection_mode = 1; * + * + * @return The labelDetectionMode. */ public com.google.cloud.videointelligence.v1p2beta1.LabelDetectionMode getLabelDetectionMode() { @SuppressWarnings("deprecation") @@ -648,6 +670,9 @@ public com.google.cloud.videointelligence.v1p2beta1.LabelDetectionMode getLabelD * * .google.cloud.videointelligence.v1p2beta1.LabelDetectionMode label_detection_mode = 1; * + * + * @param value The labelDetectionMode to set. + * @return This builder for chaining. */ public Builder setLabelDetectionMode( com.google.cloud.videointelligence.v1p2beta1.LabelDetectionMode value) { @@ -670,6 +695,8 @@ public Builder setLabelDetectionMode( * * .google.cloud.videointelligence.v1p2beta1.LabelDetectionMode label_detection_mode = 1; * + * + * @return This builder for chaining. */ public Builder clearLabelDetectionMode() { @@ -689,6 +716,8 @@ public Builder clearLabelDetectionMode() { * * * bool stationary_camera = 2; + * + * @return The stationaryCamera. */ public boolean getStationaryCamera() { return stationaryCamera_; @@ -703,6 +732,9 @@ public boolean getStationaryCamera() { * * * bool stationary_camera = 2; + * + * @param value The stationaryCamera to set. + * @return This builder for chaining. */ public Builder setStationaryCamera(boolean value) { @@ -720,6 +752,8 @@ public Builder setStationaryCamera(boolean value) { * * * bool stationary_camera = 2; + * + * @return This builder for chaining. */ public Builder clearStationaryCamera() { @@ -739,6 +773,8 @@ public Builder clearStationaryCamera() { * * * string model = 3; + * + * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; @@ -761,6 +797,8 @@ public java.lang.String getModel() { * * * string model = 3; + * + * @return The bytes for model. */ public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; @@ -783,6 +821,9 @@ public com.google.protobuf.ByteString getModelBytes() { * * * string model = 3; + * + * @param value The model to set. + * @return This builder for chaining. */ public Builder setModel(java.lang.String value) { if (value == null) { @@ -803,6 +844,8 @@ public Builder setModel(java.lang.String value) { * * * string model = 3; + * + * @return This builder for chaining. */ public Builder clearModel() { @@ -820,6 +863,9 @@ public Builder clearModel() { * * * string model = 3; + * + * @param value The bytes for model to set. + * @return This builder for chaining. */ public Builder setModelBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelDetectionConfigOrBuilder.java b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelDetectionConfigOrBuilder.java index f745df283..f3d8205a0 100644 --- a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelDetectionConfigOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelDetectionConfigOrBuilder.java @@ -34,6 +34,8 @@ public interface LabelDetectionConfigOrBuilder * * .google.cloud.videointelligence.v1p2beta1.LabelDetectionMode label_detection_mode = 1; * + * + * @return The enum numeric value on the wire for labelDetectionMode. */ int getLabelDetectionModeValue(); /** @@ -47,6 +49,8 @@ public interface LabelDetectionConfigOrBuilder * * .google.cloud.videointelligence.v1p2beta1.LabelDetectionMode label_detection_mode = 1; * + * + * @return The labelDetectionMode. */ com.google.cloud.videointelligence.v1p2beta1.LabelDetectionMode getLabelDetectionMode(); @@ -60,6 +64,8 @@ public interface LabelDetectionConfigOrBuilder * * * bool stationary_camera = 2; + * + * @return The stationaryCamera. */ boolean getStationaryCamera(); @@ -73,6 +79,8 @@ public interface LabelDetectionConfigOrBuilder * * * string model = 3; + * + * @return The model. */ java.lang.String getModel(); /** @@ -85,6 +93,8 @@ public interface LabelDetectionConfigOrBuilder * * * string model = 3; + * + * @return The bytes for model. */ com.google.protobuf.ByteString getModelBytes(); } diff --git a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelDetectionMode.java b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelDetectionMode.java index ad1b30af2..32e5f9dc8 100644 --- a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelDetectionMode.java +++ b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelDetectionMode.java @@ -120,12 +120,20 @@ public final int getNumber() { return value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ @java.lang.Deprecated public static LabelDetectionMode valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static LabelDetectionMode forNumber(int value) { switch (value) { case 0: diff --git a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelFrame.java b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelFrame.java index 4254108f6..7d825fed5 100644 --- a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelFrame.java +++ b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelFrame.java @@ -39,6 +39,12 @@ private LabelFrame(com.google.protobuf.GeneratedMessageV3.Builder builder) { private LabelFrame() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LabelFrame(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -52,7 +58,6 @@ private LabelFrame( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -128,6 +133,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.protobuf.Duration time_offset = 1; + * + * @return Whether the timeOffset field is set. */ public boolean hasTimeOffset() { return timeOffset_ != null; @@ -141,6 +148,8 @@ public boolean hasTimeOffset() { * * * .google.protobuf.Duration time_offset = 1; + * + * @return The timeOffset. */ public com.google.protobuf.Duration getTimeOffset() { return timeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeOffset_; @@ -169,6 +178,8 @@ public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() { * * * float confidence = 2; + * + * @return The confidence. */ public float getConfidence() { return confidence_; @@ -536,6 +547,8 @@ public Builder mergeFrom( * * * .google.protobuf.Duration time_offset = 1; + * + * @return Whether the timeOffset field is set. */ public boolean hasTimeOffset() { return timeOffsetBuilder_ != null || timeOffset_ != null; @@ -549,6 +562,8 @@ public boolean hasTimeOffset() { * * * .google.protobuf.Duration time_offset = 1; + * + * @return The timeOffset. */ public com.google.protobuf.Duration getTimeOffset() { if (timeOffsetBuilder_ == null) { @@ -718,6 +733,8 @@ public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() { * * * float confidence = 2; + * + * @return The confidence. */ public float getConfidence() { return confidence_; @@ -730,6 +747,9 @@ public float getConfidence() { * * * float confidence = 2; + * + * @param value The confidence to set. + * @return This builder for chaining. */ public Builder setConfidence(float value) { @@ -745,6 +765,8 @@ public Builder setConfidence(float value) { * * * float confidence = 2; + * + * @return This builder for chaining. */ public Builder clearConfidence() { diff --git a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelFrameOrBuilder.java b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelFrameOrBuilder.java index 1f33d11db..f0c727ad8 100644 --- a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelFrameOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelFrameOrBuilder.java @@ -32,6 +32,8 @@ public interface LabelFrameOrBuilder * * * .google.protobuf.Duration time_offset = 1; + * + * @return Whether the timeOffset field is set. */ boolean hasTimeOffset(); /** @@ -43,6 +45,8 @@ public interface LabelFrameOrBuilder * * * .google.protobuf.Duration time_offset = 1; + * + * @return The timeOffset. */ com.google.protobuf.Duration getTimeOffset(); /** @@ -65,6 +69,8 @@ public interface LabelFrameOrBuilder * * * float confidence = 2; + * + * @return The confidence. */ float getConfidence(); } diff --git a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelSegment.java b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelSegment.java index 04c833a03..3f8611885 100644 --- a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelSegment.java +++ b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelSegment.java @@ -39,6 +39,12 @@ private LabelSegment(com.google.protobuf.GeneratedMessageV3.Builder builder) private LabelSegment() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LabelSegment(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -52,7 +58,6 @@ private LabelSegment( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -129,6 +134,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 1; + * + * @return Whether the segment field is set. */ public boolean hasSegment() { return segment_ != null; @@ -141,6 +148,8 @@ public boolean hasSegment() { * * * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 1; + * + * @return The segment. */ public com.google.cloud.videointelligence.v1p2beta1.VideoSegment getSegment() { return segment_ == null @@ -170,6 +179,8 @@ public com.google.cloud.videointelligence.v1p2beta1.VideoSegmentOrBuilder getSeg * * * float confidence = 2; + * + * @return The confidence. */ public float getConfidence() { return confidence_; @@ -536,6 +547,8 @@ public Builder mergeFrom( * * * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 1; + * + * @return Whether the segment field is set. */ public boolean hasSegment() { return segmentBuilder_ != null || segment_ != null; @@ -548,6 +561,8 @@ public boolean hasSegment() { * * * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 1; + * + * @return The segment. */ public com.google.cloud.videointelligence.v1p2beta1.VideoSegment getSegment() { if (segmentBuilder_ == null) { @@ -714,6 +729,8 @@ public com.google.cloud.videointelligence.v1p2beta1.VideoSegment.Builder getSegm * * * float confidence = 2; + * + * @return The confidence. */ public float getConfidence() { return confidence_; @@ -726,6 +743,9 @@ public float getConfidence() { * * * float confidence = 2; + * + * @param value The confidence to set. + * @return This builder for chaining. */ public Builder setConfidence(float value) { @@ -741,6 +761,8 @@ public Builder setConfidence(float value) { * * * float confidence = 2; + * + * @return This builder for chaining. */ public Builder clearConfidence() { diff --git a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelSegmentOrBuilder.java b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelSegmentOrBuilder.java index cd8a655f6..f02b777f1 100644 --- a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelSegmentOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/LabelSegmentOrBuilder.java @@ -31,6 +31,8 @@ public interface LabelSegmentOrBuilder * * * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 1; + * + * @return Whether the segment field is set. */ boolean hasSegment(); /** @@ -41,6 +43,8 @@ public interface LabelSegmentOrBuilder * * * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 1; + * + * @return The segment. */ com.google.cloud.videointelligence.v1p2beta1.VideoSegment getSegment(); /** @@ -62,6 +66,8 @@ public interface LabelSegmentOrBuilder * * * float confidence = 2; + * + * @return The confidence. */ float getConfidence(); } diff --git a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/Likelihood.java b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/Likelihood.java index d7ea9a1f5..3f0bb9209 100644 --- a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/Likelihood.java +++ b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/Likelihood.java @@ -160,12 +160,20 @@ public final int getNumber() { return value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ @java.lang.Deprecated public static Likelihood valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Likelihood forNumber(int value) { switch (value) { case 0: diff --git a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/NormalizedBoundingBox.java b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/NormalizedBoundingBox.java index 64b278315..769341b0e 100644 --- a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/NormalizedBoundingBox.java +++ b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/NormalizedBoundingBox.java @@ -41,6 +41,12 @@ private NormalizedBoundingBox(com.google.protobuf.GeneratedMessageV3.Builder private NormalizedBoundingBox() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NormalizedBoundingBox(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private NormalizedBoundingBox( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -129,6 +134,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * float left = 1; + * + * @return The left. */ public float getLeft() { return left_; @@ -144,6 +151,8 @@ public float getLeft() { * * * float top = 2; + * + * @return The top. */ public float getTop() { return top_; @@ -159,6 +168,8 @@ public float getTop() { * * * float right = 3; + * + * @return The right. */ public float getRight() { return right_; @@ -174,6 +185,8 @@ public float getRight() { * * * float bottom = 4; + * + * @return The bottom. */ public float getBottom() { return bottom_; @@ -565,6 +578,8 @@ public Builder mergeFrom( * * * float left = 1; + * + * @return The left. */ public float getLeft() { return left_; @@ -577,6 +592,9 @@ public float getLeft() { * * * float left = 1; + * + * @param value The left to set. + * @return This builder for chaining. */ public Builder setLeft(float value) { @@ -592,6 +610,8 @@ public Builder setLeft(float value) { * * * float left = 1; + * + * @return This builder for chaining. */ public Builder clearLeft() { @@ -609,6 +629,8 @@ public Builder clearLeft() { * * * float top = 2; + * + * @return The top. */ public float getTop() { return top_; @@ -621,6 +643,9 @@ public float getTop() { * * * float top = 2; + * + * @param value The top to set. + * @return This builder for chaining. */ public Builder setTop(float value) { @@ -636,6 +661,8 @@ public Builder setTop(float value) { * * * float top = 2; + * + * @return This builder for chaining. */ public Builder clearTop() { @@ -653,6 +680,8 @@ public Builder clearTop() { * * * float right = 3; + * + * @return The right. */ public float getRight() { return right_; @@ -665,6 +694,9 @@ public float getRight() { * * * float right = 3; + * + * @param value The right to set. + * @return This builder for chaining. */ public Builder setRight(float value) { @@ -680,6 +712,8 @@ public Builder setRight(float value) { * * * float right = 3; + * + * @return This builder for chaining. */ public Builder clearRight() { @@ -697,6 +731,8 @@ public Builder clearRight() { * * * float bottom = 4; + * + * @return The bottom. */ public float getBottom() { return bottom_; @@ -709,6 +745,9 @@ public float getBottom() { * * * float bottom = 4; + * + * @param value The bottom to set. + * @return This builder for chaining. */ public Builder setBottom(float value) { @@ -724,6 +763,8 @@ public Builder setBottom(float value) { * * * float bottom = 4; + * + * @return This builder for chaining. */ public Builder clearBottom() { diff --git a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/NormalizedBoundingBoxOrBuilder.java b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/NormalizedBoundingBoxOrBuilder.java index ba3fadc6d..e339a40a3 100644 --- a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/NormalizedBoundingBoxOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/NormalizedBoundingBoxOrBuilder.java @@ -31,6 +31,8 @@ public interface NormalizedBoundingBoxOrBuilder * * * float left = 1; + * + * @return The left. */ float getLeft(); @@ -42,6 +44,8 @@ public interface NormalizedBoundingBoxOrBuilder * * * float top = 2; + * + * @return The top. */ float getTop(); @@ -53,6 +57,8 @@ public interface NormalizedBoundingBoxOrBuilder * * * float right = 3; + * + * @return The right. */ float getRight(); @@ -64,6 +70,8 @@ public interface NormalizedBoundingBoxOrBuilder * * * float bottom = 4; + * + * @return The bottom. */ float getBottom(); } diff --git a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/NormalizedBoundingPoly.java b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/NormalizedBoundingPoly.java index 155fab4c9..74ee6feb1 100644 --- a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/NormalizedBoundingPoly.java +++ b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/NormalizedBoundingPoly.java @@ -55,6 +55,12 @@ private NormalizedBoundingPoly() { vertices_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NormalizedBoundingPoly(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; diff --git a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/NormalizedVertex.java b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/NormalizedVertex.java index cec72169d..586326317 100644 --- a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/NormalizedVertex.java +++ b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/NormalizedVertex.java @@ -41,6 +41,12 @@ private NormalizedVertex(com.google.protobuf.GeneratedMessageV3.Builder build private NormalizedVertex() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NormalizedVertex(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private NormalizedVertex( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -119,6 +124,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * float x = 1; + * + * @return The x. */ public float getX() { return x_; @@ -134,6 +141,8 @@ public float getX() { * * * float y = 2; + * + * @return The y. */ public float getY() { return y_; @@ -488,6 +497,8 @@ public Builder mergeFrom( * * * float x = 1; + * + * @return The x. */ public float getX() { return x_; @@ -500,6 +511,9 @@ public float getX() { * * * float x = 1; + * + * @param value The x to set. + * @return This builder for chaining. */ public Builder setX(float value) { @@ -515,6 +529,8 @@ public Builder setX(float value) { * * * float x = 1; + * + * @return This builder for chaining. */ public Builder clearX() { @@ -532,6 +548,8 @@ public Builder clearX() { * * * float y = 2; + * + * @return The y. */ public float getY() { return y_; @@ -544,6 +562,9 @@ public float getY() { * * * float y = 2; + * + * @param value The y to set. + * @return This builder for chaining. */ public Builder setY(float value) { @@ -559,6 +580,8 @@ public Builder setY(float value) { * * * float y = 2; + * + * @return This builder for chaining. */ public Builder clearY() { diff --git a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/NormalizedVertexOrBuilder.java b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/NormalizedVertexOrBuilder.java index f6ea6261e..978cde057 100644 --- a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/NormalizedVertexOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/NormalizedVertexOrBuilder.java @@ -31,6 +31,8 @@ public interface NormalizedVertexOrBuilder * * * float x = 1; + * + * @return The x. */ float getX(); @@ -42,6 +44,8 @@ public interface NormalizedVertexOrBuilder * * * float y = 2; + * + * @return The y. */ float getY(); } diff --git a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ObjectTrackingAnnotation.java b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ObjectTrackingAnnotation.java index e64eaab1f..67e527c85 100644 --- a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ObjectTrackingAnnotation.java +++ b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ObjectTrackingAnnotation.java @@ -41,6 +41,12 @@ private ObjectTrackingAnnotation() { frames_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ObjectTrackingAnnotation(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -84,11 +90,11 @@ private ObjectTrackingAnnotation( } case 18: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { frames_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame>(); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000001; } frames_.add( input.readMessage( @@ -132,7 +138,7 @@ private ObjectTrackingAnnotation( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { frames_ = java.util.Collections.unmodifiableList(frames_); } this.unknownFields = unknownFields.build(); @@ -155,7 +161,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation.Builder.class); } - private int bitField0_; public static final int ENTITY_FIELD_NUMBER = 1; private com.google.cloud.videointelligence.v1p2beta1.Entity entity_; /** @@ -166,6 +171,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.cloud.videointelligence.v1p2beta1.Entity entity = 1; + * + * @return Whether the entity field is set. */ public boolean hasEntity() { return entity_ != null; @@ -178,6 +185,8 @@ public boolean hasEntity() { * * * .google.cloud.videointelligence.v1p2beta1.Entity entity = 1; + * + * @return The entity. */ public com.google.cloud.videointelligence.v1p2beta1.Entity getEntity() { return entity_ == null @@ -207,6 +216,8 @@ public com.google.cloud.videointelligence.v1p2beta1.EntityOrBuilder getEntityOrB * * * float confidence = 4; + * + * @return The confidence. */ public float getConfidence() { return confidence_; @@ -289,6 +300,8 @@ public com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame getFrame * * * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 3; + * + * @return Whether the segment field is set. */ public boolean hasSegment() { return segment_ != null; @@ -301,6 +314,8 @@ public boolean hasSegment() { * * * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 3; + * + * @return The segment. */ public com.google.cloud.videointelligence.v1p2beta1.VideoSegment getSegment() { return segment_ == null @@ -579,7 +594,7 @@ public Builder clear() { if (framesBuilder_ == null) { frames_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } else { framesBuilder_.clear(); } @@ -619,7 +634,6 @@ public com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation bui com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation result = new com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (entityBuilder_ == null) { result.entity_ = entity_; } else { @@ -627,9 +641,9 @@ public com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation bui } result.confidence_ = confidence_; if (framesBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { frames_ = java.util.Collections.unmodifiableList(frames_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } result.frames_ = frames_; } else { @@ -640,7 +654,6 @@ public com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation bui } else { result.segment_ = segmentBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -704,7 +717,7 @@ public Builder mergeFrom( if (!other.frames_.isEmpty()) { if (frames_.isEmpty()) { frames_ = other.frames_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureFramesIsMutable(); frames_.addAll(other.frames_); @@ -717,7 +730,7 @@ public Builder mergeFrom( framesBuilder_.dispose(); framesBuilder_ = null; frames_ = other.frames_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); framesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFramesFieldBuilder() @@ -777,6 +790,8 @@ public Builder mergeFrom( * * * .google.cloud.videointelligence.v1p2beta1.Entity entity = 1; + * + * @return Whether the entity field is set. */ public boolean hasEntity() { return entityBuilder_ != null || entity_ != null; @@ -789,6 +804,8 @@ public boolean hasEntity() { * * * .google.cloud.videointelligence.v1p2beta1.Entity entity = 1; + * + * @return The entity. */ public com.google.cloud.videointelligence.v1p2beta1.Entity getEntity() { if (entityBuilder_ == null) { @@ -954,6 +971,8 @@ public com.google.cloud.videointelligence.v1p2beta1.EntityOrBuilder getEntityOrB * * * float confidence = 4; + * + * @return The confidence. */ public float getConfidence() { return confidence_; @@ -966,6 +985,9 @@ public float getConfidence() { * * * float confidence = 4; + * + * @param value The confidence to set. + * @return This builder for chaining. */ public Builder setConfidence(float value) { @@ -981,6 +1003,8 @@ public Builder setConfidence(float value) { * * * float confidence = 4; + * + * @return This builder for chaining. */ public Builder clearConfidence() { @@ -993,11 +1017,11 @@ public Builder clearConfidence() { frames_ = java.util.Collections.emptyList(); private void ensureFramesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { frames_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame>(frames_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; } } @@ -1232,7 +1256,7 @@ public Builder addAllFrames( public Builder clearFrames() { if (framesBuilder_ == null) { frames_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { framesBuilder_.clear(); @@ -1371,7 +1395,7 @@ public Builder removeFrames(int index) { com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame, com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame.Builder, com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrameOrBuilder>( - frames_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + frames_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); frames_ = null; } return framesBuilder_; @@ -1391,6 +1415,8 @@ public Builder removeFrames(int index) { * * * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 3; + * + * @return Whether the segment field is set. */ public boolean hasSegment() { return segmentBuilder_ != null || segment_ != null; @@ -1403,6 +1429,8 @@ public boolean hasSegment() { * * * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 3; + * + * @return The segment. */ public com.google.cloud.videointelligence.v1p2beta1.VideoSegment getSegment() { if (segmentBuilder_ == null) { diff --git a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ObjectTrackingAnnotationOrBuilder.java b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ObjectTrackingAnnotationOrBuilder.java index 157573de1..7d939af28 100644 --- a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ObjectTrackingAnnotationOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ObjectTrackingAnnotationOrBuilder.java @@ -31,6 +31,8 @@ public interface ObjectTrackingAnnotationOrBuilder * * * .google.cloud.videointelligence.v1p2beta1.Entity entity = 1; + * + * @return Whether the entity field is set. */ boolean hasEntity(); /** @@ -41,6 +43,8 @@ public interface ObjectTrackingAnnotationOrBuilder * * * .google.cloud.videointelligence.v1p2beta1.Entity entity = 1; + * + * @return The entity. */ com.google.cloud.videointelligence.v1p2beta1.Entity getEntity(); /** @@ -62,6 +66,8 @@ public interface ObjectTrackingAnnotationOrBuilder * * * float confidence = 4; + * + * @return The confidence. */ float getConfidence(); @@ -127,6 +133,8 @@ com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrameOrBuilder getFra * * * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 3; + * + * @return Whether the segment field is set. */ boolean hasSegment(); /** @@ -137,6 +145,8 @@ com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrameOrBuilder getFra * * * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 3; + * + * @return The segment. */ com.google.cloud.videointelligence.v1p2beta1.VideoSegment getSegment(); /** diff --git a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ObjectTrackingFrame.java b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ObjectTrackingFrame.java index 942299a61..2e4abab6a 100644 --- a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ObjectTrackingFrame.java +++ b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ObjectTrackingFrame.java @@ -40,6 +40,12 @@ private ObjectTrackingFrame(com.google.protobuf.GeneratedMessageV3.Builder bu private ObjectTrackingFrame() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ObjectTrackingFrame(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -53,7 +59,6 @@ private ObjectTrackingFrame( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -143,6 +148,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * .google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox normalized_bounding_box = 1; * + * + * @return Whether the normalizedBoundingBox field is set. */ public boolean hasNormalizedBoundingBox() { return normalizedBoundingBox_ != null; @@ -157,6 +164,8 @@ public boolean hasNormalizedBoundingBox() { * * .google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox normalized_bounding_box = 1; * + * + * @return The normalizedBoundingBox. */ public com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox getNormalizedBoundingBox() { @@ -190,6 +199,8 @@ public boolean hasNormalizedBoundingBox() { * * * .google.protobuf.Duration time_offset = 2; + * + * @return Whether the timeOffset field is set. */ public boolean hasTimeOffset() { return timeOffset_ != null; @@ -202,6 +213,8 @@ public boolean hasTimeOffset() { * * * .google.protobuf.Duration time_offset = 2; + * + * @return The timeOffset. */ public com.google.protobuf.Duration getTimeOffset() { return timeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeOffset_; @@ -601,6 +614,8 @@ public Builder mergeFrom( * * .google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox normalized_bounding_box = 1; * + * + * @return Whether the normalizedBoundingBox field is set. */ public boolean hasNormalizedBoundingBox() { return normalizedBoundingBoxBuilder_ != null || normalizedBoundingBox_ != null; @@ -615,6 +630,8 @@ public boolean hasNormalizedBoundingBox() { * * .google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox normalized_bounding_box = 1; * + * + * @return The normalizedBoundingBox. */ public com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox getNormalizedBoundingBox() { @@ -808,6 +825,8 @@ public Builder clearNormalizedBoundingBox() { * * * .google.protobuf.Duration time_offset = 2; + * + * @return Whether the timeOffset field is set. */ public boolean hasTimeOffset() { return timeOffsetBuilder_ != null || timeOffset_ != null; @@ -820,6 +839,8 @@ public boolean hasTimeOffset() { * * * .google.protobuf.Duration time_offset = 2; + * + * @return The timeOffset. */ public com.google.protobuf.Duration getTimeOffset() { if (timeOffsetBuilder_ == null) { diff --git a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ObjectTrackingFrameOrBuilder.java b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ObjectTrackingFrameOrBuilder.java index 0b248f0d8..4ac2ef352 100644 --- a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ObjectTrackingFrameOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ObjectTrackingFrameOrBuilder.java @@ -33,6 +33,8 @@ public interface ObjectTrackingFrameOrBuilder * * .google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox normalized_bounding_box = 1; * + * + * @return Whether the normalizedBoundingBox field is set. */ boolean hasNormalizedBoundingBox(); /** @@ -45,6 +47,8 @@ public interface ObjectTrackingFrameOrBuilder * * .google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox normalized_bounding_box = 1; * + * + * @return The normalizedBoundingBox. */ com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox getNormalizedBoundingBox(); /** @@ -69,6 +73,8 @@ public interface ObjectTrackingFrameOrBuilder * * * .google.protobuf.Duration time_offset = 2; + * + * @return Whether the timeOffset field is set. */ boolean hasTimeOffset(); /** @@ -79,6 +85,8 @@ public interface ObjectTrackingFrameOrBuilder * * * .google.protobuf.Duration time_offset = 2; + * + * @return The timeOffset. */ com.google.protobuf.Duration getTimeOffset(); /** diff --git a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ShotChangeDetectionConfig.java b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ShotChangeDetectionConfig.java index 9525f584b..ce27ff253 100644 --- a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ShotChangeDetectionConfig.java +++ b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ShotChangeDetectionConfig.java @@ -41,6 +41,12 @@ private ShotChangeDetectionConfig() { model_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ShotChangeDetectionConfig(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private ShotChangeDetectionConfig( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -118,6 +123,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string model = 1; + * + * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; @@ -140,6 +147,8 @@ public java.lang.String getModel() { * * * string model = 1; + * + * @return The bytes for model. */ public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; @@ -492,6 +501,8 @@ public Builder mergeFrom( * * * string model = 1; + * + * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; @@ -514,6 +525,8 @@ public java.lang.String getModel() { * * * string model = 1; + * + * @return The bytes for model. */ public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; @@ -536,6 +549,9 @@ public com.google.protobuf.ByteString getModelBytes() { * * * string model = 1; + * + * @param value The model to set. + * @return This builder for chaining. */ public Builder setModel(java.lang.String value) { if (value == null) { @@ -556,6 +572,8 @@ public Builder setModel(java.lang.String value) { * * * string model = 1; + * + * @return This builder for chaining. */ public Builder clearModel() { @@ -573,6 +591,9 @@ public Builder clearModel() { * * * string model = 1; + * + * @param value The bytes for model to set. + * @return This builder for chaining. */ public Builder setModelBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ShotChangeDetectionConfigOrBuilder.java b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ShotChangeDetectionConfigOrBuilder.java index 08d5ba014..dafa15d6a 100644 --- a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ShotChangeDetectionConfigOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/ShotChangeDetectionConfigOrBuilder.java @@ -33,6 +33,8 @@ public interface ShotChangeDetectionConfigOrBuilder * * * string model = 1; + * + * @return The model. */ java.lang.String getModel(); /** @@ -45,6 +47,8 @@ public interface ShotChangeDetectionConfigOrBuilder * * * string model = 1; + * + * @return The bytes for model. */ com.google.protobuf.ByteString getModelBytes(); } diff --git a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextAnnotation.java b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextAnnotation.java index b95056035..275e38280 100644 --- a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextAnnotation.java +++ b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextAnnotation.java @@ -44,6 +44,12 @@ private TextAnnotation() { segments_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TextAnnotation(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -77,11 +83,11 @@ private TextAnnotation( } case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { segments_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p2beta1.TextSegment>(); - mutable_bitField0_ |= 0x00000002; + mutable_bitField0_ |= 0x00000001; } segments_.add( input.readMessage( @@ -103,7 +109,7 @@ private TextAnnotation( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { segments_ = java.util.Collections.unmodifiableList(segments_); } this.unknownFields = unknownFields.build(); @@ -126,7 +132,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.videointelligence.v1p2beta1.TextAnnotation.Builder.class); } - private int bitField0_; public static final int TEXT_FIELD_NUMBER = 1; private volatile java.lang.Object text_; /** @@ -137,6 +142,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string text = 1; + * + * @return The text. */ public java.lang.String getText() { java.lang.Object ref = text_; @@ -157,6 +164,8 @@ public java.lang.String getText() { * * * string text = 1; + * + * @return The bytes for text. */ public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = text_; @@ -460,7 +469,7 @@ public Builder clear() { if (segmentsBuilder_ == null) { segments_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } else { segmentsBuilder_.clear(); } @@ -492,18 +501,16 @@ public com.google.cloud.videointelligence.v1p2beta1.TextAnnotation buildPartial( com.google.cloud.videointelligence.v1p2beta1.TextAnnotation result = new com.google.cloud.videointelligence.v1p2beta1.TextAnnotation(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.text_ = text_; if (segmentsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { segments_ = java.util.Collections.unmodifiableList(segments_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } result.segments_ = segments_; } else { result.segments_ = segmentsBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -562,7 +569,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1p2beta1.TextAnnota if (!other.segments_.isEmpty()) { if (segments_.isEmpty()) { segments_ = other.segments_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSegmentsIsMutable(); segments_.addAll(other.segments_); @@ -575,7 +582,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1p2beta1.TextAnnota segmentsBuilder_.dispose(); segmentsBuilder_ = null; segments_ = other.segments_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); segmentsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSegmentsFieldBuilder() @@ -626,6 +633,8 @@ public Builder mergeFrom( * * * string text = 1; + * + * @return The text. */ public java.lang.String getText() { java.lang.Object ref = text_; @@ -646,6 +655,8 @@ public java.lang.String getText() { * * * string text = 1; + * + * @return The bytes for text. */ public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = text_; @@ -666,6 +677,9 @@ public com.google.protobuf.ByteString getTextBytes() { * * * string text = 1; + * + * @param value The text to set. + * @return This builder for chaining. */ public Builder setText(java.lang.String value) { if (value == null) { @@ -684,6 +698,8 @@ public Builder setText(java.lang.String value) { * * * string text = 1; + * + * @return This builder for chaining. */ public Builder clearText() { @@ -699,6 +715,9 @@ public Builder clearText() { * * * string text = 1; + * + * @param value The bytes for text to set. + * @return This builder for chaining. */ public Builder setTextBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -715,11 +734,11 @@ public Builder setTextBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureSegmentsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { segments_ = new java.util.ArrayList( segments_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } @@ -941,7 +960,7 @@ public Builder addAllSegments( public Builder clearSegments() { if (segmentsBuilder_ == null) { segments_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { segmentsBuilder_.clear(); @@ -1069,7 +1088,7 @@ public com.google.cloud.videointelligence.v1p2beta1.TextSegment.Builder addSegme com.google.cloud.videointelligence.v1p2beta1.TextSegment, com.google.cloud.videointelligence.v1p2beta1.TextSegment.Builder, com.google.cloud.videointelligence.v1p2beta1.TextSegmentOrBuilder>( - segments_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + segments_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); segments_ = null; } return segmentsBuilder_; diff --git a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextAnnotationOrBuilder.java b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextAnnotationOrBuilder.java index adee0df01..c4762fb83 100644 --- a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextAnnotationOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextAnnotationOrBuilder.java @@ -31,6 +31,8 @@ public interface TextAnnotationOrBuilder * * * string text = 1; + * + * @return The text. */ java.lang.String getText(); /** @@ -41,6 +43,8 @@ public interface TextAnnotationOrBuilder * * * string text = 1; + * + * @return The bytes for text. */ com.google.protobuf.ByteString getTextBytes(); diff --git a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextDetectionConfig.java b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextDetectionConfig.java index 051849711..261b35df9 100644 --- a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextDetectionConfig.java +++ b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextDetectionConfig.java @@ -41,6 +41,12 @@ private TextDetectionConfig() { languageHints_ = com.google.protobuf.LazyStringArrayList.EMPTY; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TextDetectionConfig(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -125,6 +131,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * repeated string language_hints = 1; + * + * @return A list containing the languageHints. */ public com.google.protobuf.ProtocolStringList getLanguageHintsList() { return languageHints_; @@ -140,6 +148,8 @@ public com.google.protobuf.ProtocolStringList getLanguageHintsList() { * * * repeated string language_hints = 1; + * + * @return The count of languageHints. */ public int getLanguageHintsCount() { return languageHints_.size(); @@ -155,6 +165,9 @@ public int getLanguageHintsCount() { * * * repeated string language_hints = 1; + * + * @param index The index of the element to return. + * @return The languageHints at the given index. */ public java.lang.String getLanguageHints(int index) { return languageHints_.get(index); @@ -170,6 +183,9 @@ public java.lang.String getLanguageHints(int index) { * * * repeated string language_hints = 1; + * + * @param index The index of the value to return. + * @return The bytes of the languageHints at the given index. */ public com.google.protobuf.ByteString getLanguageHintsBytes(int index) { return languageHints_.getByteString(index); @@ -538,6 +554,8 @@ private void ensureLanguageHintsIsMutable() { * * * repeated string language_hints = 1; + * + * @return A list containing the languageHints. */ public com.google.protobuf.ProtocolStringList getLanguageHintsList() { return languageHints_.getUnmodifiableView(); @@ -553,6 +571,8 @@ public com.google.protobuf.ProtocolStringList getLanguageHintsList() { * * * repeated string language_hints = 1; + * + * @return The count of languageHints. */ public int getLanguageHintsCount() { return languageHints_.size(); @@ -568,6 +588,9 @@ public int getLanguageHintsCount() { * * * repeated string language_hints = 1; + * + * @param index The index of the element to return. + * @return The languageHints at the given index. */ public java.lang.String getLanguageHints(int index) { return languageHints_.get(index); @@ -583,6 +606,9 @@ public java.lang.String getLanguageHints(int index) { * * * repeated string language_hints = 1; + * + * @param index The index of the value to return. + * @return The bytes of the languageHints at the given index. */ public com.google.protobuf.ByteString getLanguageHintsBytes(int index) { return languageHints_.getByteString(index); @@ -598,6 +624,10 @@ public com.google.protobuf.ByteString getLanguageHintsBytes(int index) { * * * repeated string language_hints = 1; + * + * @param index The index to set the value at. + * @param value The languageHints to set. + * @return This builder for chaining. */ public Builder setLanguageHints(int index, java.lang.String value) { if (value == null) { @@ -619,6 +649,9 @@ public Builder setLanguageHints(int index, java.lang.String value) { * * * repeated string language_hints = 1; + * + * @param value The languageHints to add. + * @return This builder for chaining. */ public Builder addLanguageHints(java.lang.String value) { if (value == null) { @@ -640,6 +673,9 @@ public Builder addLanguageHints(java.lang.String value) { * * * repeated string language_hints = 1; + * + * @param values The languageHints to add. + * @return This builder for chaining. */ public Builder addAllLanguageHints(java.lang.Iterable values) { ensureLanguageHintsIsMutable(); @@ -658,6 +694,8 @@ public Builder addAllLanguageHints(java.lang.Iterable values) * * * repeated string language_hints = 1; + * + * @return This builder for chaining. */ public Builder clearLanguageHints() { languageHints_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -676,6 +714,9 @@ public Builder clearLanguageHints() { * * * repeated string language_hints = 1; + * + * @param value The bytes of the languageHints to add. + * @return This builder for chaining. */ public Builder addLanguageHintsBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextDetectionConfigOrBuilder.java b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextDetectionConfigOrBuilder.java index c04a9b144..f914bc1e9 100644 --- a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextDetectionConfigOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextDetectionConfigOrBuilder.java @@ -34,6 +34,8 @@ public interface TextDetectionConfigOrBuilder * * * repeated string language_hints = 1; + * + * @return A list containing the languageHints. */ java.util.List getLanguageHintsList(); /** @@ -47,6 +49,8 @@ public interface TextDetectionConfigOrBuilder * * * repeated string language_hints = 1; + * + * @return The count of languageHints. */ int getLanguageHintsCount(); /** @@ -60,6 +64,9 @@ public interface TextDetectionConfigOrBuilder * * * repeated string language_hints = 1; + * + * @param index The index of the element to return. + * @return The languageHints at the given index. */ java.lang.String getLanguageHints(int index); /** @@ -73,6 +80,9 @@ public interface TextDetectionConfigOrBuilder * * * repeated string language_hints = 1; + * + * @param index The index of the value to return. + * @return The bytes of the languageHints at the given index. */ com.google.protobuf.ByteString getLanguageHintsBytes(int index); } diff --git a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextFrame.java b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextFrame.java index b454e8d52..9aa151162 100644 --- a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextFrame.java +++ b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextFrame.java @@ -41,6 +41,12 @@ private TextFrame(com.google.protobuf.GeneratedMessageV3.Builder builder) { private TextFrame() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TextFrame(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private TextFrame( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -144,6 +149,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * .google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly rotated_bounding_box = 1; * + * + * @return Whether the rotatedBoundingBox field is set. */ public boolean hasRotatedBoundingBox() { return rotatedBoundingBox_ != null; @@ -158,6 +165,8 @@ public boolean hasRotatedBoundingBox() { * * .google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly rotated_bounding_box = 1; * + * + * @return The rotatedBoundingBox. */ public com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly getRotatedBoundingBox() { @@ -191,6 +200,8 @@ public boolean hasRotatedBoundingBox() { * * * .google.protobuf.Duration time_offset = 2; + * + * @return Whether the timeOffset field is set. */ public boolean hasTimeOffset() { return timeOffset_ != null; @@ -203,6 +214,8 @@ public boolean hasTimeOffset() { * * * .google.protobuf.Duration time_offset = 2; + * + * @return The timeOffset. */ public com.google.protobuf.Duration getTimeOffset() { return timeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeOffset_; @@ -597,6 +610,8 @@ public Builder mergeFrom( * * .google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly rotated_bounding_box = 1; * + * + * @return Whether the rotatedBoundingBox field is set. */ public boolean hasRotatedBoundingBox() { return rotatedBoundingBoxBuilder_ != null || rotatedBoundingBox_ != null; @@ -611,6 +626,8 @@ public boolean hasRotatedBoundingBox() { * * .google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly rotated_bounding_box = 1; * + * + * @return The rotatedBoundingBox. */ public com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly getRotatedBoundingBox() { @@ -804,6 +821,8 @@ public Builder clearRotatedBoundingBox() { * * * .google.protobuf.Duration time_offset = 2; + * + * @return Whether the timeOffset field is set. */ public boolean hasTimeOffset() { return timeOffsetBuilder_ != null || timeOffset_ != null; @@ -816,6 +835,8 @@ public boolean hasTimeOffset() { * * * .google.protobuf.Duration time_offset = 2; + * + * @return The timeOffset. */ public com.google.protobuf.Duration getTimeOffset() { if (timeOffsetBuilder_ == null) { diff --git a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextFrameOrBuilder.java b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextFrameOrBuilder.java index 4d6d8987a..01de0e90c 100644 --- a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextFrameOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextFrameOrBuilder.java @@ -33,6 +33,8 @@ public interface TextFrameOrBuilder * * .google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly rotated_bounding_box = 1; * + * + * @return Whether the rotatedBoundingBox field is set. */ boolean hasRotatedBoundingBox(); /** @@ -45,6 +47,8 @@ public interface TextFrameOrBuilder * * .google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly rotated_bounding_box = 1; * + * + * @return The rotatedBoundingBox. */ com.google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly getRotatedBoundingBox(); /** @@ -69,6 +73,8 @@ public interface TextFrameOrBuilder * * * .google.protobuf.Duration time_offset = 2; + * + * @return Whether the timeOffset field is set. */ boolean hasTimeOffset(); /** @@ -79,6 +85,8 @@ public interface TextFrameOrBuilder * * * .google.protobuf.Duration time_offset = 2; + * + * @return The timeOffset. */ com.google.protobuf.Duration getTimeOffset(); /** diff --git a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextSegment.java b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextSegment.java index b685b1268..69387af8a 100644 --- a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextSegment.java +++ b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextSegment.java @@ -41,6 +41,12 @@ private TextSegment() { frames_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TextSegment(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -89,11 +95,11 @@ private TextSegment( } case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { frames_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p2beta1.TextFrame>(); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000001; } frames_.add( input.readMessage( @@ -115,7 +121,7 @@ private TextSegment( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { frames_ = java.util.Collections.unmodifiableList(frames_); } this.unknownFields = unknownFields.build(); @@ -138,7 +144,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.videointelligence.v1p2beta1.TextSegment.Builder.class); } - private int bitField0_; public static final int SEGMENT_FIELD_NUMBER = 1; private com.google.cloud.videointelligence.v1p2beta1.VideoSegment segment_; /** @@ -149,6 +154,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 1; + * + * @return Whether the segment field is set. */ public boolean hasSegment() { return segment_ != null; @@ -161,6 +168,8 @@ public boolean hasSegment() { * * * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 1; + * + * @return The segment. */ public com.google.cloud.videointelligence.v1p2beta1.VideoSegment getSegment() { return segment_ == null @@ -191,6 +200,8 @@ public com.google.cloud.videointelligence.v1p2beta1.VideoSegmentOrBuilder getSeg * * * float confidence = 2; + * + * @return The confidence. */ public float getConfidence() { return confidence_; @@ -504,7 +515,7 @@ public Builder clear() { if (framesBuilder_ == null) { frames_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } else { framesBuilder_.clear(); } @@ -536,7 +547,6 @@ public com.google.cloud.videointelligence.v1p2beta1.TextSegment buildPartial() { com.google.cloud.videointelligence.v1p2beta1.TextSegment result = new com.google.cloud.videointelligence.v1p2beta1.TextSegment(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (segmentBuilder_ == null) { result.segment_ = segment_; } else { @@ -544,15 +554,14 @@ public com.google.cloud.videointelligence.v1p2beta1.TextSegment buildPartial() { } result.confidence_ = confidence_; if (framesBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { frames_ = java.util.Collections.unmodifiableList(frames_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } result.frames_ = frames_; } else { result.frames_ = framesBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -613,7 +622,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1p2beta1.TextSegmen if (!other.frames_.isEmpty()) { if (frames_.isEmpty()) { frames_ = other.frames_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureFramesIsMutable(); frames_.addAll(other.frames_); @@ -626,7 +635,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1p2beta1.TextSegmen framesBuilder_.dispose(); framesBuilder_ = null; frames_ = other.frames_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); framesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFramesFieldBuilder() @@ -682,6 +691,8 @@ public Builder mergeFrom( * * * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 1; + * + * @return Whether the segment field is set. */ public boolean hasSegment() { return segmentBuilder_ != null || segment_ != null; @@ -694,6 +705,8 @@ public boolean hasSegment() { * * * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 1; + * + * @return The segment. */ public com.google.cloud.videointelligence.v1p2beta1.VideoSegment getSegment() { if (segmentBuilder_ == null) { @@ -861,6 +874,8 @@ public com.google.cloud.videointelligence.v1p2beta1.VideoSegment.Builder getSegm * * * float confidence = 2; + * + * @return The confidence. */ public float getConfidence() { return confidence_; @@ -874,6 +889,9 @@ public float getConfidence() { * * * float confidence = 2; + * + * @param value The confidence to set. + * @return This builder for chaining. */ public Builder setConfidence(float value) { @@ -890,6 +908,8 @@ public Builder setConfidence(float value) { * * * float confidence = 2; + * + * @return This builder for chaining. */ public Builder clearConfidence() { @@ -902,11 +922,11 @@ public Builder clearConfidence() { java.util.Collections.emptyList(); private void ensureFramesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { frames_ = new java.util.ArrayList( frames_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; } } @@ -1125,7 +1145,7 @@ public Builder addAllFrames( public Builder clearFrames() { if (framesBuilder_ == null) { frames_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { framesBuilder_.clear(); @@ -1251,7 +1271,7 @@ public com.google.cloud.videointelligence.v1p2beta1.TextFrame.Builder addFramesB com.google.cloud.videointelligence.v1p2beta1.TextFrame, com.google.cloud.videointelligence.v1p2beta1.TextFrame.Builder, com.google.cloud.videointelligence.v1p2beta1.TextFrameOrBuilder>( - frames_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + frames_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); frames_ = null; } return framesBuilder_; diff --git a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextSegmentOrBuilder.java b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextSegmentOrBuilder.java index 59dd1d2dd..5d5c645f0 100644 --- a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextSegmentOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/TextSegmentOrBuilder.java @@ -31,6 +31,8 @@ public interface TextSegmentOrBuilder * * * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 1; + * + * @return Whether the segment field is set. */ boolean hasSegment(); /** @@ -41,6 +43,8 @@ public interface TextSegmentOrBuilder * * * .google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 1; + * + * @return The segment. */ com.google.cloud.videointelligence.v1p2beta1.VideoSegment getSegment(); /** @@ -63,6 +67,8 @@ public interface TextSegmentOrBuilder * * * float confidence = 2; + * + * @return The confidence. */ float getConfidence(); diff --git a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoAnnotationProgress.java b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoAnnotationProgress.java index 5a5f64fe2..58b883052 100644 --- a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoAnnotationProgress.java +++ b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoAnnotationProgress.java @@ -41,6 +41,12 @@ private VideoAnnotationProgress() { inputUri_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VideoAnnotationProgress(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private VideoAnnotationProgress( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -152,6 +157,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string input_uri = 1; + * + * @return The inputUri. */ public java.lang.String getInputUri() { java.lang.Object ref = inputUri_; @@ -173,6 +180,8 @@ public java.lang.String getInputUri() { * * * string input_uri = 1; + * + * @return The bytes for inputUri. */ public com.google.protobuf.ByteString getInputUriBytes() { java.lang.Object ref = inputUri_; @@ -197,6 +206,8 @@ public com.google.protobuf.ByteString getInputUriBytes() { * * * int32 progress_percent = 2; + * + * @return The progressPercent. */ public int getProgressPercent() { return progressPercent_; @@ -212,6 +223,8 @@ public int getProgressPercent() { * * * .google.protobuf.Timestamp start_time = 3; + * + * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTime_ != null; @@ -224,6 +237,8 @@ public boolean hasStartTime() { * * * .google.protobuf.Timestamp start_time = 3; + * + * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; @@ -251,6 +266,8 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * * * .google.protobuf.Timestamp update_time = 4; + * + * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTime_ != null; @@ -263,6 +280,8 @@ public boolean hasUpdateTime() { * * * .google.protobuf.Timestamp update_time = 4; + * + * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; @@ -688,6 +707,8 @@ public Builder mergeFrom( * * * string input_uri = 1; + * + * @return The inputUri. */ public java.lang.String getInputUri() { java.lang.Object ref = inputUri_; @@ -709,6 +730,8 @@ public java.lang.String getInputUri() { * * * string input_uri = 1; + * + * @return The bytes for inputUri. */ public com.google.protobuf.ByteString getInputUriBytes() { java.lang.Object ref = inputUri_; @@ -730,6 +753,9 @@ public com.google.protobuf.ByteString getInputUriBytes() { * * * string input_uri = 1; + * + * @param value The inputUri to set. + * @return This builder for chaining. */ public Builder setInputUri(java.lang.String value) { if (value == null) { @@ -749,6 +775,8 @@ public Builder setInputUri(java.lang.String value) { * * * string input_uri = 1; + * + * @return This builder for chaining. */ public Builder clearInputUri() { @@ -765,6 +793,9 @@ public Builder clearInputUri() { * * * string input_uri = 1; + * + * @param value The bytes for inputUri to set. + * @return This builder for chaining. */ public Builder setInputUriBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -787,6 +818,8 @@ public Builder setInputUriBytes(com.google.protobuf.ByteString value) { * * * int32 progress_percent = 2; + * + * @return The progressPercent. */ public int getProgressPercent() { return progressPercent_; @@ -800,6 +833,9 @@ public int getProgressPercent() { * * * int32 progress_percent = 2; + * + * @param value The progressPercent to set. + * @return This builder for chaining. */ public Builder setProgressPercent(int value) { @@ -816,6 +852,8 @@ public Builder setProgressPercent(int value) { * * * int32 progress_percent = 2; + * + * @return This builder for chaining. */ public Builder clearProgressPercent() { @@ -838,6 +876,8 @@ public Builder clearProgressPercent() { * * * .google.protobuf.Timestamp start_time = 3; + * + * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; @@ -850,6 +890,8 @@ public boolean hasStartTime() { * * * .google.protobuf.Timestamp start_time = 3; + * + * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { if (startTimeBuilder_ == null) { @@ -1013,6 +1055,8 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * * * .google.protobuf.Timestamp update_time = 4; + * + * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; @@ -1025,6 +1069,8 @@ public boolean hasUpdateTime() { * * * .google.protobuf.Timestamp update_time = 4; + * + * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { diff --git a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoAnnotationProgressOrBuilder.java b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoAnnotationProgressOrBuilder.java index d577e2929..88344eba3 100644 --- a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoAnnotationProgressOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoAnnotationProgressOrBuilder.java @@ -32,6 +32,8 @@ public interface VideoAnnotationProgressOrBuilder * * * string input_uri = 1; + * + * @return The inputUri. */ java.lang.String getInputUri(); /** @@ -43,6 +45,8 @@ public interface VideoAnnotationProgressOrBuilder * * * string input_uri = 1; + * + * @return The bytes for inputUri. */ com.google.protobuf.ByteString getInputUriBytes(); @@ -55,6 +59,8 @@ public interface VideoAnnotationProgressOrBuilder * * * int32 progress_percent = 2; + * + * @return The progressPercent. */ int getProgressPercent(); @@ -66,6 +72,8 @@ public interface VideoAnnotationProgressOrBuilder * * * .google.protobuf.Timestamp start_time = 3; + * + * @return Whether the startTime field is set. */ boolean hasStartTime(); /** @@ -76,6 +84,8 @@ public interface VideoAnnotationProgressOrBuilder * * * .google.protobuf.Timestamp start_time = 3; + * + * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** @@ -97,6 +107,8 @@ public interface VideoAnnotationProgressOrBuilder * * * .google.protobuf.Timestamp update_time = 4; + * + * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** @@ -107,6 +119,8 @@ public interface VideoAnnotationProgressOrBuilder * * * .google.protobuf.Timestamp update_time = 4; + * + * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** diff --git a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoAnnotationResults.java b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoAnnotationResults.java index 8d747399e..08265d4df 100644 --- a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoAnnotationResults.java +++ b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoAnnotationResults.java @@ -47,6 +47,12 @@ private VideoAnnotationResults() { objectAnnotations_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VideoAnnotationResults(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -80,11 +86,11 @@ private VideoAnnotationResults( } case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { segmentLabelAnnotations_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation>(); - mutable_bitField0_ |= 0x00000002; + mutable_bitField0_ |= 0x00000001; } segmentLabelAnnotations_.add( input.readMessage( @@ -94,11 +100,11 @@ private VideoAnnotationResults( } case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { shotLabelAnnotations_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation>(); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000002; } shotLabelAnnotations_.add( input.readMessage( @@ -108,11 +114,11 @@ private VideoAnnotationResults( } case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { frameLabelAnnotations_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation>(); - mutable_bitField0_ |= 0x00000008; + mutable_bitField0_ |= 0x00000004; } frameLabelAnnotations_.add( input.readMessage( @@ -122,11 +128,11 @@ private VideoAnnotationResults( } case 50: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { shotAnnotations_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p2beta1.VideoSegment>(); - mutable_bitField0_ |= 0x00000010; + mutable_bitField0_ |= 0x00000008; } shotAnnotations_.add( input.readMessage( @@ -169,11 +175,11 @@ private VideoAnnotationResults( } case 98: { - if (!((mutable_bitField0_ & 0x00000040) != 0)) { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { textAnnotations_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p2beta1.TextAnnotation>(); - mutable_bitField0_ |= 0x00000040; + mutable_bitField0_ |= 0x00000010; } textAnnotations_.add( input.readMessage( @@ -183,11 +189,11 @@ private VideoAnnotationResults( } case 114: { - if (!((mutable_bitField0_ & 0x00000080) != 0)) { + if (!((mutable_bitField0_ & 0x00000020) != 0)) { objectAnnotations_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation>(); - mutable_bitField0_ |= 0x00000080; + mutable_bitField0_ |= 0x00000020; } objectAnnotations_.add( input.readMessage( @@ -210,22 +216,22 @@ private VideoAnnotationResults( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { segmentLabelAnnotations_ = java.util.Collections.unmodifiableList(segmentLabelAnnotations_); } - if (((mutable_bitField0_ & 0x00000004) != 0)) { + if (((mutable_bitField0_ & 0x00000002) != 0)) { shotLabelAnnotations_ = java.util.Collections.unmodifiableList(shotLabelAnnotations_); } - if (((mutable_bitField0_ & 0x00000008) != 0)) { + if (((mutable_bitField0_ & 0x00000004) != 0)) { frameLabelAnnotations_ = java.util.Collections.unmodifiableList(frameLabelAnnotations_); } - if (((mutable_bitField0_ & 0x00000010) != 0)) { + if (((mutable_bitField0_ & 0x00000008) != 0)) { shotAnnotations_ = java.util.Collections.unmodifiableList(shotAnnotations_); } - if (((mutable_bitField0_ & 0x00000040) != 0)) { + if (((mutable_bitField0_ & 0x00000010) != 0)) { textAnnotations_ = java.util.Collections.unmodifiableList(textAnnotations_); } - if (((mutable_bitField0_ & 0x00000080) != 0)) { + if (((mutable_bitField0_ & 0x00000020) != 0)) { objectAnnotations_ = java.util.Collections.unmodifiableList(objectAnnotations_); } this.unknownFields = unknownFields.build(); @@ -248,7 +254,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults.Builder.class); } - private int bitField0_; public static final int INPUT_URI_FIELD_NUMBER = 1; private volatile java.lang.Object inputUri_; /** @@ -260,6 +265,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string input_uri = 1; + * + * @return The inputUri. */ public java.lang.String getInputUri() { java.lang.Object ref = inputUri_; @@ -281,6 +288,8 @@ public java.lang.String getInputUri() { * * * string input_uri = 1; + * + * @return The bytes for inputUri. */ public com.google.protobuf.ByteString getInputUriBytes() { java.lang.Object ref = inputUri_; @@ -632,6 +641,8 @@ public com.google.cloud.videointelligence.v1p2beta1.VideoSegment getShotAnnotati * * .google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation explicit_annotation = 7; * + * + * @return Whether the explicitAnnotation field is set. */ public boolean hasExplicitAnnotation() { return explicitAnnotation_ != null; @@ -646,6 +657,8 @@ public boolean hasExplicitAnnotation() { * * .google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation explicit_annotation = 7; * + * + * @return The explicitAnnotation. */ public com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation getExplicitAnnotation() { @@ -843,6 +856,8 @@ public com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation get * * * .google.rpc.Status error = 9; + * + * @return Whether the error field is set. */ public boolean hasError() { return error_ != null; @@ -856,6 +871,8 @@ public boolean hasError() { * * * .google.rpc.Status error = 9; + * + * @return The error. */ public com.google.rpc.Status getError() { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; @@ -1193,25 +1210,25 @@ public Builder clear() { if (segmentLabelAnnotationsBuilder_ == null) { segmentLabelAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } else { segmentLabelAnnotationsBuilder_.clear(); } if (shotLabelAnnotationsBuilder_ == null) { shotLabelAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); } else { shotLabelAnnotationsBuilder_.clear(); } if (frameLabelAnnotationsBuilder_ == null) { frameLabelAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); } else { frameLabelAnnotationsBuilder_.clear(); } if (shotAnnotationsBuilder_ == null) { shotAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000008); } else { shotAnnotationsBuilder_.clear(); } @@ -1223,13 +1240,13 @@ public Builder clear() { } if (textAnnotationsBuilder_ == null) { textAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000010); } else { textAnnotationsBuilder_.clear(); } if (objectAnnotationsBuilder_ == null) { objectAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000020); } else { objectAnnotationsBuilder_.clear(); } @@ -1269,40 +1286,39 @@ public com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults build com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults result = new com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.inputUri_ = inputUri_; if (segmentLabelAnnotationsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { segmentLabelAnnotations_ = java.util.Collections.unmodifiableList(segmentLabelAnnotations_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } result.segmentLabelAnnotations_ = segmentLabelAnnotations_; } else { result.segmentLabelAnnotations_ = segmentLabelAnnotationsBuilder_.build(); } if (shotLabelAnnotationsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { shotLabelAnnotations_ = java.util.Collections.unmodifiableList(shotLabelAnnotations_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); } result.shotLabelAnnotations_ = shotLabelAnnotations_; } else { result.shotLabelAnnotations_ = shotLabelAnnotationsBuilder_.build(); } if (frameLabelAnnotationsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { frameLabelAnnotations_ = java.util.Collections.unmodifiableList(frameLabelAnnotations_); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); } result.frameLabelAnnotations_ = frameLabelAnnotations_; } else { result.frameLabelAnnotations_ = frameLabelAnnotationsBuilder_.build(); } if (shotAnnotationsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { shotAnnotations_ = java.util.Collections.unmodifiableList(shotAnnotations_); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000008); } result.shotAnnotations_ = shotAnnotations_; } else { @@ -1314,18 +1330,18 @@ public com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults build result.explicitAnnotation_ = explicitAnnotationBuilder_.build(); } if (textAnnotationsBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { textAnnotations_ = java.util.Collections.unmodifiableList(textAnnotations_); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000010); } result.textAnnotations_ = textAnnotations_; } else { result.textAnnotations_ = textAnnotationsBuilder_.build(); } if (objectAnnotationsBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { objectAnnotations_ = java.util.Collections.unmodifiableList(objectAnnotations_); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000020); } result.objectAnnotations_ = objectAnnotations_; } else { @@ -1336,7 +1352,6 @@ public com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults build } else { result.error_ = errorBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -1398,7 +1413,7 @@ public Builder mergeFrom( if (!other.segmentLabelAnnotations_.isEmpty()) { if (segmentLabelAnnotations_.isEmpty()) { segmentLabelAnnotations_ = other.segmentLabelAnnotations_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSegmentLabelAnnotationsIsMutable(); segmentLabelAnnotations_.addAll(other.segmentLabelAnnotations_); @@ -1411,7 +1426,7 @@ public Builder mergeFrom( segmentLabelAnnotationsBuilder_.dispose(); segmentLabelAnnotationsBuilder_ = null; segmentLabelAnnotations_ = other.segmentLabelAnnotations_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); segmentLabelAnnotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSegmentLabelAnnotationsFieldBuilder() @@ -1425,7 +1440,7 @@ public Builder mergeFrom( if (!other.shotLabelAnnotations_.isEmpty()) { if (shotLabelAnnotations_.isEmpty()) { shotLabelAnnotations_ = other.shotLabelAnnotations_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureShotLabelAnnotationsIsMutable(); shotLabelAnnotations_.addAll(other.shotLabelAnnotations_); @@ -1438,7 +1453,7 @@ public Builder mergeFrom( shotLabelAnnotationsBuilder_.dispose(); shotLabelAnnotationsBuilder_ = null; shotLabelAnnotations_ = other.shotLabelAnnotations_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); shotLabelAnnotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getShotLabelAnnotationsFieldBuilder() @@ -1452,7 +1467,7 @@ public Builder mergeFrom( if (!other.frameLabelAnnotations_.isEmpty()) { if (frameLabelAnnotations_.isEmpty()) { frameLabelAnnotations_ = other.frameLabelAnnotations_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureFrameLabelAnnotationsIsMutable(); frameLabelAnnotations_.addAll(other.frameLabelAnnotations_); @@ -1465,7 +1480,7 @@ public Builder mergeFrom( frameLabelAnnotationsBuilder_.dispose(); frameLabelAnnotationsBuilder_ = null; frameLabelAnnotations_ = other.frameLabelAnnotations_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); frameLabelAnnotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFrameLabelAnnotationsFieldBuilder() @@ -1479,7 +1494,7 @@ public Builder mergeFrom( if (!other.shotAnnotations_.isEmpty()) { if (shotAnnotations_.isEmpty()) { shotAnnotations_ = other.shotAnnotations_; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensureShotAnnotationsIsMutable(); shotAnnotations_.addAll(other.shotAnnotations_); @@ -1492,7 +1507,7 @@ public Builder mergeFrom( shotAnnotationsBuilder_.dispose(); shotAnnotationsBuilder_ = null; shotAnnotations_ = other.shotAnnotations_; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000008); shotAnnotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getShotAnnotationsFieldBuilder() @@ -1509,7 +1524,7 @@ public Builder mergeFrom( if (!other.textAnnotations_.isEmpty()) { if (textAnnotations_.isEmpty()) { textAnnotations_ = other.textAnnotations_; - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000010); } else { ensureTextAnnotationsIsMutable(); textAnnotations_.addAll(other.textAnnotations_); @@ -1522,7 +1537,7 @@ public Builder mergeFrom( textAnnotationsBuilder_.dispose(); textAnnotationsBuilder_ = null; textAnnotations_ = other.textAnnotations_; - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000010); textAnnotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTextAnnotationsFieldBuilder() @@ -1536,7 +1551,7 @@ public Builder mergeFrom( if (!other.objectAnnotations_.isEmpty()) { if (objectAnnotations_.isEmpty()) { objectAnnotations_ = other.objectAnnotations_; - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000020); } else { ensureObjectAnnotationsIsMutable(); objectAnnotations_.addAll(other.objectAnnotations_); @@ -1549,7 +1564,7 @@ public Builder mergeFrom( objectAnnotationsBuilder_.dispose(); objectAnnotationsBuilder_ = null; objectAnnotations_ = other.objectAnnotations_; - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000020); objectAnnotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getObjectAnnotationsFieldBuilder() @@ -1605,6 +1620,8 @@ public Builder mergeFrom( * * * string input_uri = 1; + * + * @return The inputUri. */ public java.lang.String getInputUri() { java.lang.Object ref = inputUri_; @@ -1626,6 +1643,8 @@ public java.lang.String getInputUri() { * * * string input_uri = 1; + * + * @return The bytes for inputUri. */ public com.google.protobuf.ByteString getInputUriBytes() { java.lang.Object ref = inputUri_; @@ -1647,6 +1666,9 @@ public com.google.protobuf.ByteString getInputUriBytes() { * * * string input_uri = 1; + * + * @param value The inputUri to set. + * @return This builder for chaining. */ public Builder setInputUri(java.lang.String value) { if (value == null) { @@ -1666,6 +1688,8 @@ public Builder setInputUri(java.lang.String value) { * * * string input_uri = 1; + * + * @return This builder for chaining. */ public Builder clearInputUri() { @@ -1682,6 +1706,9 @@ public Builder clearInputUri() { * * * string input_uri = 1; + * + * @param value The bytes for inputUri to set. + * @return This builder for chaining. */ public Builder setInputUriBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1698,11 +1725,11 @@ public Builder setInputUriBytes(com.google.protobuf.ByteString value) { segmentLabelAnnotations_ = java.util.Collections.emptyList(); private void ensureSegmentLabelAnnotationsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { segmentLabelAnnotations_ = new java.util.ArrayList( segmentLabelAnnotations_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } @@ -1959,7 +1986,7 @@ public Builder addAllSegmentLabelAnnotations( public Builder clearSegmentLabelAnnotations() { if (segmentLabelAnnotationsBuilder_ == null) { segmentLabelAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { segmentLabelAnnotationsBuilder_.clear(); @@ -2111,7 +2138,7 @@ public Builder removeSegmentLabelAnnotations(int index) { com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation.Builder, com.google.cloud.videointelligence.v1p2beta1.LabelAnnotationOrBuilder>( segmentLabelAnnotations_, - ((bitField0_ & 0x00000002) != 0), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); segmentLabelAnnotations_ = null; @@ -2123,11 +2150,11 @@ public Builder removeSegmentLabelAnnotations(int index) { shotLabelAnnotations_ = java.util.Collections.emptyList(); private void ensureShotLabelAnnotationsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { shotLabelAnnotations_ = new java.util.ArrayList( shotLabelAnnotations_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; } } @@ -2384,7 +2411,7 @@ public Builder addAllShotLabelAnnotations( public Builder clearShotLabelAnnotations() { if (shotLabelAnnotationsBuilder_ == null) { shotLabelAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { shotLabelAnnotationsBuilder_.clear(); @@ -2536,7 +2563,7 @@ public Builder removeShotLabelAnnotations(int index) { com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation.Builder, com.google.cloud.videointelligence.v1p2beta1.LabelAnnotationOrBuilder>( shotLabelAnnotations_, - ((bitField0_ & 0x00000004) != 0), + ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); shotLabelAnnotations_ = null; @@ -2548,11 +2575,11 @@ public Builder removeShotLabelAnnotations(int index) { frameLabelAnnotations_ = java.util.Collections.emptyList(); private void ensureFrameLabelAnnotationsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { frameLabelAnnotations_ = new java.util.ArrayList( frameLabelAnnotations_); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; } } @@ -2809,7 +2836,7 @@ public Builder addAllFrameLabelAnnotations( public Builder clearFrameLabelAnnotations() { if (frameLabelAnnotationsBuilder_ == null) { frameLabelAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { frameLabelAnnotationsBuilder_.clear(); @@ -2961,7 +2988,7 @@ public Builder removeFrameLabelAnnotations(int index) { com.google.cloud.videointelligence.v1p2beta1.LabelAnnotation.Builder, com.google.cloud.videointelligence.v1p2beta1.LabelAnnotationOrBuilder>( frameLabelAnnotations_, - ((bitField0_ & 0x00000008) != 0), + ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); frameLabelAnnotations_ = null; @@ -2973,11 +3000,11 @@ public Builder removeFrameLabelAnnotations(int index) { shotAnnotations_ = java.util.Collections.emptyList(); private void ensureShotAnnotationsIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { shotAnnotations_ = new java.util.ArrayList( shotAnnotations_); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; } } @@ -3211,7 +3238,7 @@ public Builder addAllShotAnnotations( public Builder clearShotAnnotations() { if (shotAnnotationsBuilder_ == null) { shotAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { shotAnnotationsBuilder_.clear(); @@ -3349,7 +3376,7 @@ public Builder removeShotAnnotations(int index) { com.google.cloud.videointelligence.v1p2beta1.VideoSegment.Builder, com.google.cloud.videointelligence.v1p2beta1.VideoSegmentOrBuilder>( shotAnnotations_, - ((bitField0_ & 0x00000010) != 0), + ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); shotAnnotations_ = null; @@ -3374,6 +3401,8 @@ public Builder removeShotAnnotations(int index) { * * .google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation explicit_annotation = 7; * + * + * @return Whether the explicitAnnotation field is set. */ public boolean hasExplicitAnnotation() { return explicitAnnotationBuilder_ != null || explicitAnnotation_ != null; @@ -3388,6 +3417,8 @@ public boolean hasExplicitAnnotation() { * * .google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation explicit_annotation = 7; * + * + * @return The explicitAnnotation. */ public com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation getExplicitAnnotation() { @@ -3571,11 +3602,11 @@ public Builder clearExplicitAnnotation() { textAnnotations_ = java.util.Collections.emptyList(); private void ensureTextAnnotationsIsMutable() { - if (!((bitField0_ & 0x00000040) != 0)) { + if (!((bitField0_ & 0x00000010) != 0)) { textAnnotations_ = new java.util.ArrayList( textAnnotations_); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000010; } } @@ -3843,7 +3874,7 @@ public Builder addAllTextAnnotations( public Builder clearTextAnnotations() { if (textAnnotationsBuilder_ == null) { textAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { textAnnotationsBuilder_.clear(); @@ -4002,7 +4033,7 @@ public Builder removeTextAnnotations(int index) { com.google.cloud.videointelligence.v1p2beta1.TextAnnotation.Builder, com.google.cloud.videointelligence.v1p2beta1.TextAnnotationOrBuilder>( textAnnotations_, - ((bitField0_ & 0x00000040) != 0), + ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); textAnnotations_ = null; @@ -4014,12 +4045,12 @@ public Builder removeTextAnnotations(int index) { objectAnnotations_ = java.util.Collections.emptyList(); private void ensureObjectAnnotationsIsMutable() { - if (!((bitField0_ & 0x00000080) != 0)) { + if (!((bitField0_ & 0x00000020) != 0)) { objectAnnotations_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation>( objectAnnotations_); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000020; } } @@ -4269,7 +4300,7 @@ public Builder addAllObjectAnnotations( public Builder clearObjectAnnotations() { if (objectAnnotationsBuilder_ == null) { objectAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { objectAnnotationsBuilder_.clear(); @@ -4418,7 +4449,7 @@ public Builder removeObjectAnnotations(int index) { com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation.Builder, com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotationOrBuilder>( objectAnnotations_, - ((bitField0_ & 0x00000080) != 0), + ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); objectAnnotations_ = null; @@ -4439,6 +4470,8 @@ public Builder removeObjectAnnotations(int index) { * * * .google.rpc.Status error = 9; + * + * @return Whether the error field is set. */ public boolean hasError() { return errorBuilder_ != null || error_ != null; @@ -4452,6 +4485,8 @@ public boolean hasError() { * * * .google.rpc.Status error = 9; + * + * @return The error. */ public com.google.rpc.Status getError() { if (errorBuilder_ == null) { diff --git a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoAnnotationResultsOrBuilder.java b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoAnnotationResultsOrBuilder.java index 01dc68c52..b718e8991 100644 --- a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoAnnotationResultsOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoAnnotationResultsOrBuilder.java @@ -32,6 +32,8 @@ public interface VideoAnnotationResultsOrBuilder * * * string input_uri = 1; + * + * @return The inputUri. */ java.lang.String getInputUri(); /** @@ -43,6 +45,8 @@ public interface VideoAnnotationResultsOrBuilder * * * string input_uri = 1; + * + * @return The bytes for inputUri. */ com.google.protobuf.ByteString getInputUriBytes(); @@ -323,6 +327,8 @@ com.google.cloud.videointelligence.v1p2beta1.VideoSegmentOrBuilder getShotAnnota * * .google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation explicit_annotation = 7; * + * + * @return Whether the explicitAnnotation field is set. */ boolean hasExplicitAnnotation(); /** @@ -335,6 +341,8 @@ com.google.cloud.videointelligence.v1p2beta1.VideoSegmentOrBuilder getShotAnnota * * .google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation explicit_annotation = 7; * + * + * @return The explicitAnnotation. */ com.google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation getExplicitAnnotation(); /** @@ -495,6 +503,8 @@ com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation getObjectA * * * .google.rpc.Status error = 9; + * + * @return Whether the error field is set. */ boolean hasError(); /** @@ -506,6 +516,8 @@ com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation getObjectA * * * .google.rpc.Status error = 9; + * + * @return The error. */ com.google.rpc.Status getError(); /** diff --git a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoContext.java b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoContext.java index 53e998be6..dfec05131 100644 --- a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoContext.java +++ b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoContext.java @@ -41,6 +41,12 @@ private VideoContext() { segments_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VideoContext(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -190,7 +196,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.videointelligence.v1p2beta1.VideoContext.Builder.class); } - private int bitField0_; public static final int SEGMENTS_FIELD_NUMBER = 1; private java.util.List segments_; /** @@ -280,6 +285,8 @@ public com.google.cloud.videointelligence.v1p2beta1.VideoSegmentOrBuilder getSeg * * .google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig label_detection_config = 2; * + * + * @return Whether the labelDetectionConfig field is set. */ public boolean hasLabelDetectionConfig() { return labelDetectionConfig_ != null; @@ -294,6 +301,8 @@ public boolean hasLabelDetectionConfig() { * * .google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig label_detection_config = 2; * + * + * @return The labelDetectionConfig. */ public com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig getLabelDetectionConfig() { @@ -330,6 +339,8 @@ public boolean hasLabelDetectionConfig() { * * .google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig shot_change_detection_config = 3; * + * + * @return Whether the shotChangeDetectionConfig field is set. */ public boolean hasShotChangeDetectionConfig() { return shotChangeDetectionConfig_ != null; @@ -344,6 +355,8 @@ public boolean hasShotChangeDetectionConfig() { * * .google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig shot_change_detection_config = 3; * + * + * @return The shotChangeDetectionConfig. */ public com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig getShotChangeDetectionConfig() { @@ -381,6 +394,8 @@ public boolean hasShotChangeDetectionConfig() { * * .google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; * + * + * @return Whether the explicitContentDetectionConfig field is set. */ public boolean hasExplicitContentDetectionConfig() { return explicitContentDetectionConfig_ != null; @@ -395,6 +410,8 @@ public boolean hasExplicitContentDetectionConfig() { * * .google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; * + * + * @return The explicitContentDetectionConfig. */ public com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig getExplicitContentDetectionConfig() { @@ -430,6 +447,8 @@ public boolean hasExplicitContentDetectionConfig() { * * .google.cloud.videointelligence.v1p2beta1.TextDetectionConfig text_detection_config = 8; * + * + * @return Whether the textDetectionConfig field is set. */ public boolean hasTextDetectionConfig() { return textDetectionConfig_ != null; @@ -443,6 +462,8 @@ public boolean hasTextDetectionConfig() { * * .google.cloud.videointelligence.v1p2beta1.TextDetectionConfig text_detection_config = 8; * + * + * @return The textDetectionConfig. */ public com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig getTextDetectionConfig() { return textDetectionConfig_ == null @@ -795,7 +816,6 @@ public com.google.cloud.videointelligence.v1p2beta1.VideoContext buildPartial() com.google.cloud.videointelligence.v1p2beta1.VideoContext result = new com.google.cloud.videointelligence.v1p2beta1.VideoContext(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (segmentsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { segments_ = java.util.Collections.unmodifiableList(segments_); @@ -825,7 +845,6 @@ public com.google.cloud.videointelligence.v1p2beta1.VideoContext buildPartial() } else { result.textDetectionConfig_ = textDetectionConfigBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -1364,6 +1383,8 @@ public com.google.cloud.videointelligence.v1p2beta1.VideoSegment.Builder addSegm * * .google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig label_detection_config = 2; * + * + * @return Whether the labelDetectionConfig field is set. */ public boolean hasLabelDetectionConfig() { return labelDetectionConfigBuilder_ != null || labelDetectionConfig_ != null; @@ -1378,6 +1399,8 @@ public boolean hasLabelDetectionConfig() { * * .google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig label_detection_config = 2; * + * + * @return The labelDetectionConfig. */ public com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig getLabelDetectionConfig() { @@ -1571,6 +1594,8 @@ public Builder clearLabelDetectionConfig() { * * .google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig shot_change_detection_config = 3; * + * + * @return Whether the shotChangeDetectionConfig field is set. */ public boolean hasShotChangeDetectionConfig() { return shotChangeDetectionConfigBuilder_ != null || shotChangeDetectionConfig_ != null; @@ -1585,6 +1610,8 @@ public boolean hasShotChangeDetectionConfig() { * * .google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig shot_change_detection_config = 3; * + * + * @return The shotChangeDetectionConfig. */ public com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig getShotChangeDetectionConfig() { @@ -1781,6 +1808,8 @@ public Builder clearShotChangeDetectionConfig() { * * .google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; * + * + * @return Whether the explicitContentDetectionConfig field is set. */ public boolean hasExplicitContentDetectionConfig() { return explicitContentDetectionConfigBuilder_ != null @@ -1796,6 +1825,8 @@ public boolean hasExplicitContentDetectionConfig() { * * .google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; * + * + * @return The explicitContentDetectionConfig. */ public com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig getExplicitContentDetectionConfig() { @@ -1992,6 +2023,8 @@ public Builder clearExplicitContentDetectionConfig() { * * .google.cloud.videointelligence.v1p2beta1.TextDetectionConfig text_detection_config = 8; * + * + * @return Whether the textDetectionConfig field is set. */ public boolean hasTextDetectionConfig() { return textDetectionConfigBuilder_ != null || textDetectionConfig_ != null; @@ -2006,6 +2039,8 @@ public boolean hasTextDetectionConfig() { * * .google.cloud.videointelligence.v1p2beta1.TextDetectionConfig text_detection_config = 8; * + * + * @return The textDetectionConfig. */ public com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig getTextDetectionConfig() { diff --git a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoContextOrBuilder.java b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoContextOrBuilder.java index 2a084790a..1bdc66ec2 100644 --- a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoContextOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoContextOrBuilder.java @@ -96,6 +96,8 @@ com.google.cloud.videointelligence.v1p2beta1.VideoSegmentOrBuilder getSegmentsOr * * .google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig label_detection_config = 2; * + * + * @return Whether the labelDetectionConfig field is set. */ boolean hasLabelDetectionConfig(); /** @@ -108,6 +110,8 @@ com.google.cloud.videointelligence.v1p2beta1.VideoSegmentOrBuilder getSegmentsOr * * .google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig label_detection_config = 2; * + * + * @return The labelDetectionConfig. */ com.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig getLabelDetectionConfig(); /** @@ -134,6 +138,8 @@ com.google.cloud.videointelligence.v1p2beta1.VideoSegmentOrBuilder getSegmentsOr * * .google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig shot_change_detection_config = 3; * + * + * @return Whether the shotChangeDetectionConfig field is set. */ boolean hasShotChangeDetectionConfig(); /** @@ -146,6 +152,8 @@ com.google.cloud.videointelligence.v1p2beta1.VideoSegmentOrBuilder getSegmentsOr * * .google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig shot_change_detection_config = 3; * + * + * @return The shotChangeDetectionConfig. */ com.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig getShotChangeDetectionConfig(); @@ -173,6 +181,8 @@ com.google.cloud.videointelligence.v1p2beta1.VideoSegmentOrBuilder getSegmentsOr * * .google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; * + * + * @return Whether the explicitContentDetectionConfig field is set. */ boolean hasExplicitContentDetectionConfig(); /** @@ -185,6 +195,8 @@ com.google.cloud.videointelligence.v1p2beta1.VideoSegmentOrBuilder getSegmentsOr * * .google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; * + * + * @return The explicitContentDetectionConfig. */ com.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig getExplicitContentDetectionConfig(); @@ -211,6 +223,8 @@ com.google.cloud.videointelligence.v1p2beta1.VideoSegmentOrBuilder getSegmentsOr * * .google.cloud.videointelligence.v1p2beta1.TextDetectionConfig text_detection_config = 8; * + * + * @return Whether the textDetectionConfig field is set. */ boolean hasTextDetectionConfig(); /** @@ -222,6 +236,8 @@ com.google.cloud.videointelligence.v1p2beta1.VideoSegmentOrBuilder getSegmentsOr * * .google.cloud.videointelligence.v1p2beta1.TextDetectionConfig text_detection_config = 8; * + * + * @return The textDetectionConfig. */ com.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig getTextDetectionConfig(); /** diff --git a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoIntelligenceServiceProto.java b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoIntelligenceServiceProto.java index a0ffbb983..c1d129a63 100644 --- a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoIntelligenceServiceProto.java +++ b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoIntelligenceServiceProto.java @@ -273,24 +273,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "gle::Cloud::VideoIntelligence::V1p2beta1" + "b\006proto3" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }, - assigner); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); internal_static_google_cloud_videointelligence_v1p2beta1_AnnotateVideoRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_cloud_videointelligence_v1p2beta1_AnnotateVideoRequest_fieldAccessorTable = diff --git a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoSegment.java b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoSegment.java index 95fe6fe3d..c183835b4 100644 --- a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoSegment.java +++ b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoSegment.java @@ -39,6 +39,12 @@ private VideoSegment(com.google.protobuf.GeneratedMessageV3.Builder builder) private VideoSegment() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VideoSegment(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -52,7 +58,6 @@ private VideoSegment( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -138,6 +143,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.protobuf.Duration start_time_offset = 1; + * + * @return Whether the startTimeOffset field is set. */ public boolean hasStartTimeOffset() { return startTimeOffset_ != null; @@ -151,6 +158,8 @@ public boolean hasStartTimeOffset() { * * * .google.protobuf.Duration start_time_offset = 1; + * + * @return The startTimeOffset. */ public com.google.protobuf.Duration getStartTimeOffset() { return startTimeOffset_ == null @@ -182,6 +191,8 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOffsetOrBuilder() { * * * .google.protobuf.Duration end_time_offset = 2; + * + * @return Whether the endTimeOffset field is set. */ public boolean hasEndTimeOffset() { return endTimeOffset_ != null; @@ -195,6 +206,8 @@ public boolean hasEndTimeOffset() { * * * .google.protobuf.Duration end_time_offset = 2; + * + * @return The endTimeOffset. */ public com.google.protobuf.Duration getEndTimeOffset() { return endTimeOffset_ == null @@ -589,6 +602,8 @@ public Builder mergeFrom( * * * .google.protobuf.Duration start_time_offset = 1; + * + * @return Whether the startTimeOffset field is set. */ public boolean hasStartTimeOffset() { return startTimeOffsetBuilder_ != null || startTimeOffset_ != null; @@ -602,6 +617,8 @@ public boolean hasStartTimeOffset() { * * * .google.protobuf.Duration start_time_offset = 1; + * + * @return The startTimeOffset. */ public com.google.protobuf.Duration getStartTimeOffset() { if (startTimeOffsetBuilder_ == null) { @@ -779,6 +796,8 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOffsetOrBuilder() { * * * .google.protobuf.Duration end_time_offset = 2; + * + * @return Whether the endTimeOffset field is set. */ public boolean hasEndTimeOffset() { return endTimeOffsetBuilder_ != null || endTimeOffset_ != null; @@ -792,6 +811,8 @@ public boolean hasEndTimeOffset() { * * * .google.protobuf.Duration end_time_offset = 2; + * + * @return The endTimeOffset. */ public com.google.protobuf.Duration getEndTimeOffset() { if (endTimeOffsetBuilder_ == null) { diff --git a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoSegmentOrBuilder.java b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoSegmentOrBuilder.java index 45bb0a092..34bf699de 100644 --- a/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoSegmentOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoSegmentOrBuilder.java @@ -32,6 +32,8 @@ public interface VideoSegmentOrBuilder * * * .google.protobuf.Duration start_time_offset = 1; + * + * @return Whether the startTimeOffset field is set. */ boolean hasStartTimeOffset(); /** @@ -43,6 +45,8 @@ public interface VideoSegmentOrBuilder * * * .google.protobuf.Duration start_time_offset = 1; + * + * @return The startTimeOffset. */ com.google.protobuf.Duration getStartTimeOffset(); /** @@ -66,6 +70,8 @@ public interface VideoSegmentOrBuilder * * * .google.protobuf.Duration end_time_offset = 2; + * + * @return Whether the endTimeOffset field is set. */ boolean hasEndTimeOffset(); /** @@ -77,6 +83,8 @@ public interface VideoSegmentOrBuilder * * * .google.protobuf.Duration end_time_offset = 2; + * + * @return The endTimeOffset. */ com.google.protobuf.Duration getEndTimeOffset(); /** diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoProgress.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoProgress.java index 2159450a0..8dbaa5f3d 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoProgress.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoProgress.java @@ -43,6 +43,12 @@ private AnnotateVideoProgress() { annotationProgress_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AnnotateVideoProgress(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoRequest.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoRequest.java index 18a0f2837..e9d7794d3 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoRequest.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoRequest.java @@ -45,6 +45,12 @@ private AnnotateVideoRequest() { locationId_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AnnotateVideoRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -79,9 +85,9 @@ private AnnotateVideoRequest( case 16: { int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { features_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000001; } features_.add(rawValue); break; @@ -92,9 +98,9 @@ private AnnotateVideoRequest( int oldLimit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { features_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000001; } features_.add(rawValue); } @@ -151,7 +157,7 @@ private AnnotateVideoRequest( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { features_ = java.util.Collections.unmodifiableList(features_); } this.unknownFields = unknownFields.build(); @@ -174,7 +180,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest.Builder.class); } - private int bitField0_; public static final int INPUT_URI_FIELD_NUMBER = 1; private volatile java.lang.Object inputUri_; /** @@ -194,6 +199,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string input_uri = 1; + * + * @return The inputUri. */ public java.lang.String getInputUri() { java.lang.Object ref = inputUri_; @@ -223,6 +230,8 @@ public java.lang.String getInputUri() { * * * string input_uri = 1; + * + * @return The bytes for inputUri. */ public com.google.protobuf.ByteString getInputUriBytes() { java.lang.Object ref = inputUri_; @@ -248,6 +257,8 @@ public com.google.protobuf.ByteString getInputUriBytes() { * * * bytes input_content = 6; + * + * @return The inputContent. */ public com.google.protobuf.ByteString getInputContent() { return inputContent_; @@ -280,6 +291,8 @@ public com.google.cloud.videointelligence.v1p3beta1.Feature convert( * * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return A list containing the features. */ public java.util.List getFeaturesList() { return new com.google.protobuf.Internal.ListAdapter< @@ -296,6 +309,8 @@ public java.util.List getF * * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param value The features to add. */ public int getFeaturesCount() { return features_.size(); @@ -310,6 +325,9 @@ public int getFeaturesCount() { * * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param index The index of the element to return. + * @return The features at the given index. */ public com.google.cloud.videointelligence.v1p3beta1.Feature getFeatures(int index) { return features_converter_.convert(features_.get(index)); @@ -324,6 +342,8 @@ public com.google.cloud.videointelligence.v1p3beta1.Feature getFeatures(int inde * * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return A list containing the enum numeric values on the wire for features. */ public java.util.List getFeaturesValueList() { return features_; @@ -338,6 +358,9 @@ public java.util.List getFeaturesValueList() { * * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of features at the given index. */ public int getFeaturesValue(int index) { return features_.get(index); @@ -355,6 +378,8 @@ public int getFeaturesValue(int index) { * * * .google.cloud.videointelligence.v1p3beta1.VideoContext video_context = 3; + * + * @return Whether the videoContext field is set. */ public boolean hasVideoContext() { return videoContext_ != null; @@ -367,6 +392,8 @@ public boolean hasVideoContext() { * * * .google.cloud.videointelligence.v1p3beta1.VideoContext video_context = 3; + * + * @return The videoContext. */ public com.google.cloud.videointelligence.v1p3beta1.VideoContext getVideoContext() { return videoContext_ == null @@ -402,6 +429,8 @@ public com.google.cloud.videointelligence.v1p3beta1.VideoContext getVideoContext * * * string output_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The outputUri. */ public java.lang.String getOutputUri() { java.lang.Object ref = outputUri_; @@ -427,6 +456,8 @@ public java.lang.String getOutputUri() { * * * string output_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for outputUri. */ public com.google.protobuf.ByteString getOutputUriBytes() { java.lang.Object ref = outputUri_; @@ -452,6 +483,8 @@ public com.google.protobuf.ByteString getOutputUriBytes() { * * * string location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The locationId. */ public java.lang.String getLocationId() { java.lang.Object ref = locationId_; @@ -474,6 +507,8 @@ public java.lang.String getLocationId() { * * * string location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for locationId. */ public com.google.protobuf.ByteString getLocationIdBytes() { java.lang.Object ref = locationId_; @@ -765,7 +800,7 @@ public Builder clear() { inputContent_ = com.google.protobuf.ByteString.EMPTY; features_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); if (videoContextBuilder_ == null) { videoContext_ = null; } else { @@ -805,12 +840,11 @@ public com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest buildPa com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest result = new com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.inputUri_ = inputUri_; result.inputContent_ = inputContent_; - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { features_ = java.util.Collections.unmodifiableList(features_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } result.features_ = features_; if (videoContextBuilder_ == null) { @@ -820,7 +854,6 @@ public com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest buildPa } result.outputUri_ = outputUri_; result.locationId_ = locationId_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -883,7 +916,7 @@ public Builder mergeFrom( if (!other.features_.isEmpty()) { if (features_.isEmpty()) { features_ = other.features_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureFeaturesIsMutable(); features_.addAll(other.features_); @@ -952,6 +985,8 @@ public Builder mergeFrom( * * * string input_uri = 1; + * + * @return The inputUri. */ public java.lang.String getInputUri() { java.lang.Object ref = inputUri_; @@ -981,6 +1016,8 @@ public java.lang.String getInputUri() { * * * string input_uri = 1; + * + * @return The bytes for inputUri. */ public com.google.protobuf.ByteString getInputUriBytes() { java.lang.Object ref = inputUri_; @@ -1010,6 +1047,9 @@ public com.google.protobuf.ByteString getInputUriBytes() { * * * string input_uri = 1; + * + * @param value The inputUri to set. + * @return This builder for chaining. */ public Builder setInputUri(java.lang.String value) { if (value == null) { @@ -1037,6 +1077,8 @@ public Builder setInputUri(java.lang.String value) { * * * string input_uri = 1; + * + * @return This builder for chaining. */ public Builder clearInputUri() { @@ -1061,6 +1103,9 @@ public Builder clearInputUri() { * * * string input_uri = 1; + * + * @param value The bytes for inputUri to set. + * @return This builder for chaining. */ public Builder setInputUriBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1084,6 +1129,8 @@ public Builder setInputUriBytes(com.google.protobuf.ByteString value) { * * * bytes input_content = 6; + * + * @return The inputContent. */ public com.google.protobuf.ByteString getInputContent() { return inputContent_; @@ -1098,6 +1145,9 @@ public com.google.protobuf.ByteString getInputContent() { * * * bytes input_content = 6; + * + * @param value The inputContent to set. + * @return This builder for chaining. */ public Builder setInputContent(com.google.protobuf.ByteString value) { if (value == null) { @@ -1118,6 +1168,8 @@ public Builder setInputContent(com.google.protobuf.ByteString value) { * * * bytes input_content = 6; + * + * @return This builder for chaining. */ public Builder clearInputContent() { @@ -1129,9 +1181,9 @@ public Builder clearInputContent() { private java.util.List features_ = java.util.Collections.emptyList(); private void ensureFeaturesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { features_ = new java.util.ArrayList(features_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; } } /** @@ -1144,6 +1196,8 @@ private void ensureFeaturesIsMutable() { * * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return A list containing the features. */ public java.util.List getFeaturesList() { return new com.google.protobuf.Internal.ListAdapter< @@ -1160,6 +1214,8 @@ public java.util.List getF * * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return The count of features. */ public int getFeaturesCount() { return features_.size(); @@ -1174,6 +1230,9 @@ public int getFeaturesCount() { * * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param index The index of the element to return. + * @return The features at the given index. */ public com.google.cloud.videointelligence.v1p3beta1.Feature getFeatures(int index) { return features_converter_.convert(features_.get(index)); @@ -1188,6 +1247,10 @@ public com.google.cloud.videointelligence.v1p3beta1.Feature getFeatures(int inde * * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param index The index to set the value at. + * @param value The features to set. + * @return This builder for chaining. */ public Builder setFeatures( int index, com.google.cloud.videointelligence.v1p3beta1.Feature value) { @@ -1209,6 +1272,9 @@ public Builder setFeatures( * * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param value The features to add. + * @return This builder for chaining. */ public Builder addFeatures(com.google.cloud.videointelligence.v1p3beta1.Feature value) { if (value == null) { @@ -1229,6 +1295,9 @@ public Builder addFeatures(com.google.cloud.videointelligence.v1p3beta1.Feature * * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param values The features to add. + * @return This builder for chaining. */ public Builder addAllFeatures( java.lang.Iterable values) { @@ -1249,10 +1318,12 @@ public Builder addAllFeatures( * * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return This builder for chaining. */ public Builder clearFeatures() { features_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1266,6 +1337,8 @@ public Builder clearFeatures() { * * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return A list containing the enum numeric values on the wire for features. */ public java.util.List getFeaturesValueList() { return java.util.Collections.unmodifiableList(features_); @@ -1280,6 +1353,9 @@ public java.util.List getFeaturesValueList() { * * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of features at the given index. */ public int getFeaturesValue(int index) { return features_.get(index); @@ -1294,6 +1370,10 @@ public int getFeaturesValue(int index) { * * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of features at the given index. + * @return This builder for chaining. */ public Builder setFeaturesValue(int index, int value) { ensureFeaturesIsMutable(); @@ -1311,6 +1391,9 @@ public Builder setFeaturesValue(int index, int value) { * * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param value The enum numeric value on the wire for features to add. + * @return This builder for chaining. */ public Builder addFeaturesValue(int value) { ensureFeaturesIsMutable(); @@ -1328,6 +1411,9 @@ public Builder addFeaturesValue(int value) { * * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param values The enum numeric values on the wire for features to add. + * @return This builder for chaining. */ public Builder addAllFeaturesValue(java.lang.Iterable values) { ensureFeaturesIsMutable(); @@ -1352,6 +1438,8 @@ public Builder addAllFeaturesValue(java.lang.Iterable values) * * * .google.cloud.videointelligence.v1p3beta1.VideoContext video_context = 3; + * + * @return Whether the videoContext field is set. */ public boolean hasVideoContext() { return videoContextBuilder_ != null || videoContext_ != null; @@ -1364,6 +1452,8 @@ public boolean hasVideoContext() { * * * .google.cloud.videointelligence.v1p3beta1.VideoContext video_context = 3; + * + * @return The videoContext. */ public com.google.cloud.videointelligence.v1p3beta1.VideoContext getVideoContext() { if (videoContextBuilder_ == null) { @@ -1538,6 +1628,8 @@ public Builder clearVideoContext() { * * * string output_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The outputUri. */ public java.lang.String getOutputUri() { java.lang.Object ref = outputUri_; @@ -1563,6 +1655,8 @@ public java.lang.String getOutputUri() { * * * string output_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for outputUri. */ public com.google.protobuf.ByteString getOutputUriBytes() { java.lang.Object ref = outputUri_; @@ -1588,6 +1682,9 @@ public com.google.protobuf.ByteString getOutputUriBytes() { * * * string output_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The outputUri to set. + * @return This builder for chaining. */ public Builder setOutputUri(java.lang.String value) { if (value == null) { @@ -1611,6 +1708,8 @@ public Builder setOutputUri(java.lang.String value) { * * * string output_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. */ public Builder clearOutputUri() { @@ -1631,6 +1730,9 @@ public Builder clearOutputUri() { * * * string output_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for outputUri to set. + * @return This builder for chaining. */ public Builder setOutputUriBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1654,6 +1756,8 @@ public Builder setOutputUriBytes(com.google.protobuf.ByteString value) { * * * string location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The locationId. */ public java.lang.String getLocationId() { java.lang.Object ref = locationId_; @@ -1676,6 +1780,8 @@ public java.lang.String getLocationId() { * * * string location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for locationId. */ public com.google.protobuf.ByteString getLocationIdBytes() { java.lang.Object ref = locationId_; @@ -1698,6 +1804,9 @@ public com.google.protobuf.ByteString getLocationIdBytes() { * * * string location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The locationId to set. + * @return This builder for chaining. */ public Builder setLocationId(java.lang.String value) { if (value == null) { @@ -1718,6 +1827,8 @@ public Builder setLocationId(java.lang.String value) { * * * string location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. */ public Builder clearLocationId() { @@ -1735,6 +1846,9 @@ public Builder clearLocationId() { * * * string location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for locationId to set. + * @return This builder for chaining. */ public Builder setLocationIdBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoRequestOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoRequestOrBuilder.java index 715a4f767..534e9eacd 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoRequestOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoRequestOrBuilder.java @@ -40,6 +40,8 @@ public interface AnnotateVideoRequestOrBuilder * * * string input_uri = 1; + * + * @return The inputUri. */ java.lang.String getInputUri(); /** @@ -59,6 +61,8 @@ public interface AnnotateVideoRequestOrBuilder * * * string input_uri = 1; + * + * @return The bytes for inputUri. */ com.google.protobuf.ByteString getInputUriBytes(); @@ -72,6 +76,8 @@ public interface AnnotateVideoRequestOrBuilder * * * bytes input_content = 6; + * + * @return The inputContent. */ com.google.protobuf.ByteString getInputContent(); @@ -85,6 +91,8 @@ public interface AnnotateVideoRequestOrBuilder * * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return A list containing the features. */ java.util.List getFeaturesList(); /** @@ -97,6 +105,8 @@ public interface AnnotateVideoRequestOrBuilder * * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return The count of features. */ int getFeaturesCount(); /** @@ -109,6 +119,9 @@ public interface AnnotateVideoRequestOrBuilder * * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param index The index of the element to return. + * @return The features at the given index. */ com.google.cloud.videointelligence.v1p3beta1.Feature getFeatures(int index); /** @@ -121,6 +134,8 @@ public interface AnnotateVideoRequestOrBuilder * * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return A list containing the enum numeric values on the wire for features. */ java.util.List getFeaturesValueList(); /** @@ -133,6 +148,9 @@ public interface AnnotateVideoRequestOrBuilder * * repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of features at the given index. */ int getFeaturesValue(int index); @@ -144,6 +162,8 @@ public interface AnnotateVideoRequestOrBuilder * * * .google.cloud.videointelligence.v1p3beta1.VideoContext video_context = 3; + * + * @return Whether the videoContext field is set. */ boolean hasVideoContext(); /** @@ -154,6 +174,8 @@ public interface AnnotateVideoRequestOrBuilder * * * .google.cloud.videointelligence.v1p3beta1.VideoContext video_context = 3; + * + * @return The videoContext. */ com.google.cloud.videointelligence.v1p3beta1.VideoContext getVideoContext(); /** @@ -180,6 +202,8 @@ public interface AnnotateVideoRequestOrBuilder * * * string output_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The outputUri. */ java.lang.String getOutputUri(); /** @@ -195,6 +219,8 @@ public interface AnnotateVideoRequestOrBuilder * * * string output_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for outputUri. */ com.google.protobuf.ByteString getOutputUriBytes(); @@ -208,6 +234,8 @@ public interface AnnotateVideoRequestOrBuilder * * * string location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The locationId. */ java.lang.String getLocationId(); /** @@ -220,6 +248,8 @@ public interface AnnotateVideoRequestOrBuilder * * * string location_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for locationId. */ com.google.protobuf.ByteString getLocationIdBytes(); } diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoResponse.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoResponse.java index 3b3432e22..f318d33ea 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoResponse.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoResponse.java @@ -43,6 +43,12 @@ private AnnotateVideoResponse() { annotationResults_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AnnotateVideoResponse(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/Celebrity.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/Celebrity.java index 5f7b2702e..15788a7ba 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/Celebrity.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/Celebrity.java @@ -43,6 +43,12 @@ private Celebrity() { description_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Celebrity(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -56,7 +62,6 @@ private Celebrity( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -135,6 +140,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -158,6 +165,8 @@ public java.lang.String getName() { * * * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -181,6 +190,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * * string display_name = 2; + * + * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; @@ -201,6 +212,8 @@ public java.lang.String getDisplayName() { * * * string display_name = 2; + * + * @return The bytes for displayName. */ public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; @@ -225,6 +238,8 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * * string description = 3; + * + * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; @@ -246,6 +261,8 @@ public java.lang.String getDescription() { * * * string description = 3; + * + * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; @@ -622,6 +639,8 @@ public Builder mergeFrom( * * * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -645,6 +664,8 @@ public java.lang.String getName() { * * * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -668,6 +689,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -689,6 +713,8 @@ public Builder setName(java.lang.String value) { * * * string name = 1; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -707,6 +733,9 @@ public Builder clearName() { * * * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -728,6 +757,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * * string display_name = 2; + * + * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; @@ -748,6 +779,8 @@ public java.lang.String getDisplayName() { * * * string display_name = 2; + * + * @return The bytes for displayName. */ public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; @@ -768,6 +801,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * * string display_name = 2; + * + * @param value The displayName to set. + * @return This builder for chaining. */ public Builder setDisplayName(java.lang.String value) { if (value == null) { @@ -786,6 +822,8 @@ public Builder setDisplayName(java.lang.String value) { * * * string display_name = 2; + * + * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -801,6 +839,9 @@ public Builder clearDisplayName() { * * * string display_name = 2; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. */ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -823,6 +864,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * * * string description = 3; + * + * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; @@ -844,6 +887,8 @@ public java.lang.String getDescription() { * * * string description = 3; + * + * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; @@ -865,6 +910,9 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * * string description = 3; + * + * @param value The description to set. + * @return This builder for chaining. */ public Builder setDescription(java.lang.String value) { if (value == null) { @@ -884,6 +932,8 @@ public Builder setDescription(java.lang.String value) { * * * string description = 3; + * + * @return This builder for chaining. */ public Builder clearDescription() { @@ -900,6 +950,9 @@ public Builder clearDescription() { * * * string description = 3; + * + * @param value The bytes for description to set. + * @return This builder for chaining. */ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/CelebrityOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/CelebrityOrBuilder.java index 46994bfae..21d8470c4 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/CelebrityOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/CelebrityOrBuilder.java @@ -34,6 +34,8 @@ public interface CelebrityOrBuilder * * * string name = 1; + * + * @return The name. */ java.lang.String getName(); /** @@ -47,6 +49,8 @@ public interface CelebrityOrBuilder * * * string name = 1; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); @@ -58,6 +62,8 @@ public interface CelebrityOrBuilder * * * string display_name = 2; + * + * @return The displayName. */ java.lang.String getDisplayName(); /** @@ -68,6 +74,8 @@ public interface CelebrityOrBuilder * * * string display_name = 2; + * + * @return The bytes for displayName. */ com.google.protobuf.ByteString getDisplayNameBytes(); @@ -80,6 +88,8 @@ public interface CelebrityOrBuilder * * * string description = 3; + * + * @return The description. */ java.lang.String getDescription(); /** @@ -91,6 +101,8 @@ public interface CelebrityOrBuilder * * * string description = 3; + * + * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); } diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/CelebrityRecognitionAnnotation.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/CelebrityRecognitionAnnotation.java index 3e9aafbe5..93fbd536f 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/CelebrityRecognitionAnnotation.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/CelebrityRecognitionAnnotation.java @@ -42,6 +42,12 @@ private CelebrityRecognitionAnnotation() { celebrityTracks_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CelebrityRecognitionAnnotation(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/CelebrityTrack.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/CelebrityTrack.java index 29a6b0201..a4eaa6830 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/CelebrityTrack.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/CelebrityTrack.java @@ -42,6 +42,12 @@ private CelebrityTrack() { celebrities_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CelebrityTrack(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -149,6 +155,8 @@ public interface RecognizedCelebrityOrBuilder * * * .google.cloud.videointelligence.v1p3beta1.Celebrity celebrity = 1; + * + * @return Whether the celebrity field is set. */ boolean hasCelebrity(); /** @@ -159,6 +167,8 @@ public interface RecognizedCelebrityOrBuilder * * * .google.cloud.videointelligence.v1p3beta1.Celebrity celebrity = 1; + * + * @return The celebrity. */ com.google.cloud.videointelligence.v1p3beta1.Celebrity getCelebrity(); /** @@ -180,6 +190,8 @@ public interface RecognizedCelebrityOrBuilder * * * float confidence = 2; + * + * @return The confidence. */ float getConfidence(); } @@ -205,6 +217,12 @@ private RecognizedCelebrity(com.google.protobuf.GeneratedMessageV3.Builder bu private RecognizedCelebrity() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RecognizedCelebrity(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -218,7 +236,6 @@ private RecognizedCelebrity( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -296,6 +313,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.cloud.videointelligence.v1p3beta1.Celebrity celebrity = 1; + * + * @return Whether the celebrity field is set. */ public boolean hasCelebrity() { return celebrity_ != null; @@ -308,6 +327,8 @@ public boolean hasCelebrity() { * * * .google.cloud.videointelligence.v1p3beta1.Celebrity celebrity = 1; + * + * @return The celebrity. */ public com.google.cloud.videointelligence.v1p3beta1.Celebrity getCelebrity() { return celebrity_ == null @@ -337,6 +358,8 @@ public com.google.cloud.videointelligence.v1p3beta1.CelebrityOrBuilder getCelebr * * * float confidence = 2; + * + * @return The confidence. */ public float getConfidence() { return confidence_; @@ -733,6 +756,8 @@ public Builder mergeFrom( * * * .google.cloud.videointelligence.v1p3beta1.Celebrity celebrity = 1; + * + * @return Whether the celebrity field is set. */ public boolean hasCelebrity() { return celebrityBuilder_ != null || celebrity_ != null; @@ -745,6 +770,8 @@ public boolean hasCelebrity() { * * * .google.cloud.videointelligence.v1p3beta1.Celebrity celebrity = 1; + * + * @return The celebrity. */ public com.google.cloud.videointelligence.v1p3beta1.Celebrity getCelebrity() { if (celebrityBuilder_ == null) { @@ -911,6 +938,8 @@ public com.google.cloud.videointelligence.v1p3beta1.Celebrity.Builder getCelebri * * * float confidence = 2; + * + * @return The confidence. */ public float getConfidence() { return confidence_; @@ -923,6 +952,9 @@ public float getConfidence() { * * * float confidence = 2; + * + * @param value The confidence to set. + * @return This builder for chaining. */ public Builder setConfidence(float value) { @@ -938,6 +970,8 @@ public Builder setConfidence(float value) { * * * float confidence = 2; + * + * @return This builder for chaining. */ public Builder clearConfidence() { @@ -1003,7 +1037,6 @@ public com.google.protobuf.Parser getParserForType() { } } - private int bitField0_; public static final int CELEBRITIES_FIELD_NUMBER = 1; private java.util.List< com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity> @@ -1097,6 +1130,8 @@ public int getCelebritiesCount() { * * * .google.cloud.videointelligence.v1p3beta1.Track face_track = 3; + * + * @return Whether the faceTrack field is set. */ public boolean hasFaceTrack() { return faceTrack_ != null; @@ -1109,6 +1144,8 @@ public boolean hasFaceTrack() { * * * .google.cloud.videointelligence.v1p3beta1.Track face_track = 3; + * + * @return The faceTrack. */ public com.google.cloud.videointelligence.v1p3beta1.Track getFaceTrack() { return faceTrack_ == null @@ -1392,7 +1429,6 @@ public com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack buildPartial( com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack result = new com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (celebritiesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { celebrities_ = java.util.Collections.unmodifiableList(celebrities_); @@ -1407,7 +1443,6 @@ public com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack buildPartial( } else { result.faceTrack_ = faceTrackBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -1957,6 +1992,8 @@ public Builder removeCelebrities(int index) { * * * .google.cloud.videointelligence.v1p3beta1.Track face_track = 3; + * + * @return Whether the faceTrack field is set. */ public boolean hasFaceTrack() { return faceTrackBuilder_ != null || faceTrack_ != null; @@ -1969,6 +2006,8 @@ public boolean hasFaceTrack() { * * * .google.cloud.videointelligence.v1p3beta1.Track face_track = 3; + * + * @return The faceTrack. */ public com.google.cloud.videointelligence.v1p3beta1.Track getFaceTrack() { if (faceTrackBuilder_ == null) { diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/CelebrityTrackOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/CelebrityTrackOrBuilder.java index 878817cb3..9f14b2d8a 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/CelebrityTrackOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/CelebrityTrackOrBuilder.java @@ -99,6 +99,8 @@ com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity * * * .google.cloud.videointelligence.v1p3beta1.Track face_track = 3; + * + * @return Whether the faceTrack field is set. */ boolean hasFaceTrack(); /** @@ -109,6 +111,8 @@ com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity * * * .google.cloud.videointelligence.v1p3beta1.Track face_track = 3; + * + * @return The faceTrack. */ com.google.cloud.videointelligence.v1p3beta1.Track getFaceTrack(); /** diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/DetectedAttribute.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/DetectedAttribute.java index fc76547e3..8789bb333 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/DetectedAttribute.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/DetectedAttribute.java @@ -42,6 +42,12 @@ private DetectedAttribute() { value_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DetectedAttribute(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -55,7 +61,6 @@ private DetectedAttribute( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -130,6 +135,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -151,6 +158,8 @@ public java.lang.String getName() { * * * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -174,6 +183,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * * float confidence = 2; + * + * @return The confidence. */ public float getConfidence() { return confidence_; @@ -190,6 +201,8 @@ public float getConfidence() { * * * string value = 3; + * + * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; @@ -211,6 +224,8 @@ public java.lang.String getValue() { * * * string value = 3; + * + * @return The bytes for value. */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; @@ -588,6 +603,8 @@ public Builder mergeFrom( * * * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -609,6 +626,8 @@ public java.lang.String getName() { * * * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -630,6 +649,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -649,6 +671,8 @@ public Builder setName(java.lang.String value) { * * * string name = 1; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -665,6 +689,9 @@ public Builder clearName() { * * * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -686,6 +713,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * * float confidence = 2; + * + * @return The confidence. */ public float getConfidence() { return confidence_; @@ -698,6 +727,9 @@ public float getConfidence() { * * * float confidence = 2; + * + * @param value The confidence to set. + * @return This builder for chaining. */ public Builder setConfidence(float value) { @@ -713,6 +745,8 @@ public Builder setConfidence(float value) { * * * float confidence = 2; + * + * @return This builder for chaining. */ public Builder clearConfidence() { @@ -731,6 +765,8 @@ public Builder clearConfidence() { * * * string value = 3; + * + * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; @@ -752,6 +788,8 @@ public java.lang.String getValue() { * * * string value = 3; + * + * @return The bytes for value. */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; @@ -773,6 +811,9 @@ public com.google.protobuf.ByteString getValueBytes() { * * * string value = 3; + * + * @param value The value to set. + * @return This builder for chaining. */ public Builder setValue(java.lang.String value) { if (value == null) { @@ -792,6 +833,8 @@ public Builder setValue(java.lang.String value) { * * * string value = 3; + * + * @return This builder for chaining. */ public Builder clearValue() { @@ -808,6 +851,9 @@ public Builder clearValue() { * * * string value = 3; + * + * @param value The bytes for value to set. + * @return This builder for chaining. */ public Builder setValueBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/DetectedAttributeOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/DetectedAttributeOrBuilder.java index e550931fa..c08f73761 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/DetectedAttributeOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/DetectedAttributeOrBuilder.java @@ -32,6 +32,8 @@ public interface DetectedAttributeOrBuilder * * * string name = 1; + * + * @return The name. */ java.lang.String getName(); /** @@ -43,6 +45,8 @@ public interface DetectedAttributeOrBuilder * * * string name = 1; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); @@ -54,6 +58,8 @@ public interface DetectedAttributeOrBuilder * * * float confidence = 2; + * + * @return The confidence. */ float getConfidence(); @@ -66,6 +72,8 @@ public interface DetectedAttributeOrBuilder * * * string value = 3; + * + * @return The value. */ java.lang.String getValue(); /** @@ -77,6 +85,8 @@ public interface DetectedAttributeOrBuilder * * * string value = 3; + * + * @return The bytes for value. */ com.google.protobuf.ByteString getValueBytes(); } diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/Entity.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/Entity.java index 83c62dc4e..bcf5e62f4 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/Entity.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/Entity.java @@ -43,6 +43,12 @@ private Entity() { languageCode_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Entity(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -56,7 +62,6 @@ private Entity( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -134,6 +139,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string entity_id = 1; + * + * @return The entityId. */ public java.lang.String getEntityId() { java.lang.Object ref = entityId_; @@ -156,6 +163,8 @@ public java.lang.String getEntityId() { * * * string entity_id = 1; + * + * @return The bytes for entityId. */ public com.google.protobuf.ByteString getEntityIdBytes() { java.lang.Object ref = entityId_; @@ -179,6 +188,8 @@ public com.google.protobuf.ByteString getEntityIdBytes() { * * * string description = 2; + * + * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; @@ -199,6 +210,8 @@ public java.lang.String getDescription() { * * * string description = 2; + * + * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; @@ -222,6 +235,8 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * * string language_code = 3; + * + * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; @@ -242,6 +257,8 @@ public java.lang.String getLanguageCode() { * * * string language_code = 3; + * + * @return The bytes for languageCode. */ public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; @@ -616,6 +633,8 @@ public Builder mergeFrom( * * * string entity_id = 1; + * + * @return The entityId. */ public java.lang.String getEntityId() { java.lang.Object ref = entityId_; @@ -638,6 +657,8 @@ public java.lang.String getEntityId() { * * * string entity_id = 1; + * + * @return The bytes for entityId. */ public com.google.protobuf.ByteString getEntityIdBytes() { java.lang.Object ref = entityId_; @@ -660,6 +681,9 @@ public com.google.protobuf.ByteString getEntityIdBytes() { * * * string entity_id = 1; + * + * @param value The entityId to set. + * @return This builder for chaining. */ public Builder setEntityId(java.lang.String value) { if (value == null) { @@ -680,6 +704,8 @@ public Builder setEntityId(java.lang.String value) { * * * string entity_id = 1; + * + * @return This builder for chaining. */ public Builder clearEntityId() { @@ -697,6 +723,9 @@ public Builder clearEntityId() { * * * string entity_id = 1; + * + * @param value The bytes for entityId to set. + * @return This builder for chaining. */ public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -718,6 +747,8 @@ public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { * * * string description = 2; + * + * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; @@ -738,6 +769,8 @@ public java.lang.String getDescription() { * * * string description = 2; + * + * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; @@ -758,6 +791,9 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * * string description = 2; + * + * @param value The description to set. + * @return This builder for chaining. */ public Builder setDescription(java.lang.String value) { if (value == null) { @@ -776,6 +812,8 @@ public Builder setDescription(java.lang.String value) { * * * string description = 2; + * + * @return This builder for chaining. */ public Builder clearDescription() { @@ -791,6 +829,9 @@ public Builder clearDescription() { * * * string description = 2; + * + * @param value The bytes for description to set. + * @return This builder for chaining. */ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -812,6 +853,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * * * string language_code = 3; + * + * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; @@ -832,6 +875,8 @@ public java.lang.String getLanguageCode() { * * * string language_code = 3; + * + * @return The bytes for languageCode. */ public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; @@ -852,6 +897,9 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { * * * string language_code = 3; + * + * @param value The languageCode to set. + * @return This builder for chaining. */ public Builder setLanguageCode(java.lang.String value) { if (value == null) { @@ -870,6 +918,8 @@ public Builder setLanguageCode(java.lang.String value) { * * * string language_code = 3; + * + * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -885,6 +935,9 @@ public Builder clearLanguageCode() { * * * string language_code = 3; + * + * @param value The bytes for languageCode to set. + * @return This builder for chaining. */ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/EntityOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/EntityOrBuilder.java index dc3390058..b61333689 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/EntityOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/EntityOrBuilder.java @@ -33,6 +33,8 @@ public interface EntityOrBuilder * * * string entity_id = 1; + * + * @return The entityId. */ java.lang.String getEntityId(); /** @@ -45,6 +47,8 @@ public interface EntityOrBuilder * * * string entity_id = 1; + * + * @return The bytes for entityId. */ com.google.protobuf.ByteString getEntityIdBytes(); @@ -56,6 +60,8 @@ public interface EntityOrBuilder * * * string description = 2; + * + * @return The description. */ java.lang.String getDescription(); /** @@ -66,6 +72,8 @@ public interface EntityOrBuilder * * * string description = 2; + * + * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); @@ -77,6 +85,8 @@ public interface EntityOrBuilder * * * string language_code = 3; + * + * @return The languageCode. */ java.lang.String getLanguageCode(); /** @@ -87,6 +97,8 @@ public interface EntityOrBuilder * * * string language_code = 3; + * + * @return The bytes for languageCode. */ com.google.protobuf.ByteString getLanguageCodeBytes(); } diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ExplicitContentAnnotation.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ExplicitContentAnnotation.java index 7f9dbfc26..fca679a69 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ExplicitContentAnnotation.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ExplicitContentAnnotation.java @@ -43,6 +43,12 @@ private ExplicitContentAnnotation() { frames_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExplicitContentAnnotation(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ExplicitContentDetectionConfig.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ExplicitContentDetectionConfig.java index 8a66f3a6f..01871d3aa 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ExplicitContentDetectionConfig.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ExplicitContentDetectionConfig.java @@ -42,6 +42,12 @@ private ExplicitContentDetectionConfig() { model_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExplicitContentDetectionConfig(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -55,7 +61,6 @@ private ExplicitContentDetectionConfig( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -120,6 +125,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string model = 1; + * + * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; @@ -142,6 +149,8 @@ public java.lang.String getModel() { * * * string model = 1; + * + * @return The bytes for model. */ public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; @@ -504,6 +513,8 @@ public Builder mergeFrom( * * * string model = 1; + * + * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; @@ -526,6 +537,8 @@ public java.lang.String getModel() { * * * string model = 1; + * + * @return The bytes for model. */ public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; @@ -548,6 +561,9 @@ public com.google.protobuf.ByteString getModelBytes() { * * * string model = 1; + * + * @param value The model to set. + * @return This builder for chaining. */ public Builder setModel(java.lang.String value) { if (value == null) { @@ -568,6 +584,8 @@ public Builder setModel(java.lang.String value) { * * * string model = 1; + * + * @return This builder for chaining. */ public Builder clearModel() { @@ -585,6 +603,9 @@ public Builder clearModel() { * * * string model = 1; + * + * @param value The bytes for model to set. + * @return This builder for chaining. */ public Builder setModelBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ExplicitContentDetectionConfigOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ExplicitContentDetectionConfigOrBuilder.java index b82da2a51..415e954d9 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ExplicitContentDetectionConfigOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ExplicitContentDetectionConfigOrBuilder.java @@ -33,6 +33,8 @@ public interface ExplicitContentDetectionConfigOrBuilder * * * string model = 1; + * + * @return The model. */ java.lang.String getModel(); /** @@ -45,6 +47,8 @@ public interface ExplicitContentDetectionConfigOrBuilder * * * string model = 1; + * + * @return The bytes for model. */ com.google.protobuf.ByteString getModelBytes(); } diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ExplicitContentFrame.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ExplicitContentFrame.java index 525ad429c..07dfa3a69 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ExplicitContentFrame.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ExplicitContentFrame.java @@ -41,6 +41,12 @@ private ExplicitContentFrame() { pornographyLikelihood_ = 0; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExplicitContentFrame(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private ExplicitContentFrame( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -132,6 +137,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.protobuf.Duration time_offset = 1; + * + * @return Whether the timeOffset field is set. */ public boolean hasTimeOffset() { return timeOffset_ != null; @@ -145,6 +152,8 @@ public boolean hasTimeOffset() { * * * .google.protobuf.Duration time_offset = 1; + * + * @return The timeOffset. */ public com.google.protobuf.Duration getTimeOffset() { return timeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeOffset_; @@ -173,6 +182,8 @@ public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() { * * * .google.cloud.videointelligence.v1p3beta1.Likelihood pornography_likelihood = 2; + * + * @return The enum numeric value on the wire for pornographyLikelihood. */ public int getPornographyLikelihoodValue() { return pornographyLikelihood_; @@ -185,6 +196,8 @@ public int getPornographyLikelihoodValue() { * * * .google.cloud.videointelligence.v1p3beta1.Likelihood pornography_likelihood = 2; + * + * @return The pornographyLikelihood. */ public com.google.cloud.videointelligence.v1p3beta1.Likelihood getPornographyLikelihood() { @SuppressWarnings("deprecation") @@ -566,6 +579,8 @@ public Builder mergeFrom( * * * .google.protobuf.Duration time_offset = 1; + * + * @return Whether the timeOffset field is set. */ public boolean hasTimeOffset() { return timeOffsetBuilder_ != null || timeOffset_ != null; @@ -579,6 +594,8 @@ public boolean hasTimeOffset() { * * * .google.protobuf.Duration time_offset = 1; + * + * @return The timeOffset. */ public com.google.protobuf.Duration getTimeOffset() { if (timeOffsetBuilder_ == null) { @@ -748,6 +765,8 @@ public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() { * * * .google.cloud.videointelligence.v1p3beta1.Likelihood pornography_likelihood = 2; + * + * @return The enum numeric value on the wire for pornographyLikelihood. */ public int getPornographyLikelihoodValue() { return pornographyLikelihood_; @@ -760,6 +779,9 @@ public int getPornographyLikelihoodValue() { * * * .google.cloud.videointelligence.v1p3beta1.Likelihood pornography_likelihood = 2; + * + * @param value The enum numeric value on the wire for pornographyLikelihood to set. + * @return This builder for chaining. */ public Builder setPornographyLikelihoodValue(int value) { pornographyLikelihood_ = value; @@ -774,6 +796,8 @@ public Builder setPornographyLikelihoodValue(int value) { * * * .google.cloud.videointelligence.v1p3beta1.Likelihood pornography_likelihood = 2; + * + * @return The pornographyLikelihood. */ public com.google.cloud.videointelligence.v1p3beta1.Likelihood getPornographyLikelihood() { @SuppressWarnings("deprecation") @@ -791,6 +815,9 @@ public com.google.cloud.videointelligence.v1p3beta1.Likelihood getPornographyLik * * * .google.cloud.videointelligence.v1p3beta1.Likelihood pornography_likelihood = 2; + * + * @param value The pornographyLikelihood to set. + * @return This builder for chaining. */ public Builder setPornographyLikelihood( com.google.cloud.videointelligence.v1p3beta1.Likelihood value) { @@ -810,6 +837,8 @@ public Builder setPornographyLikelihood( * * * .google.cloud.videointelligence.v1p3beta1.Likelihood pornography_likelihood = 2; + * + * @return This builder for chaining. */ public Builder clearPornographyLikelihood() { diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ExplicitContentFrameOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ExplicitContentFrameOrBuilder.java index 80a464a8a..6fed0fb1f 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ExplicitContentFrameOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ExplicitContentFrameOrBuilder.java @@ -32,6 +32,8 @@ public interface ExplicitContentFrameOrBuilder * * * .google.protobuf.Duration time_offset = 1; + * + * @return Whether the timeOffset field is set. */ boolean hasTimeOffset(); /** @@ -43,6 +45,8 @@ public interface ExplicitContentFrameOrBuilder * * * .google.protobuf.Duration time_offset = 1; + * + * @return The timeOffset. */ com.google.protobuf.Duration getTimeOffset(); /** @@ -65,6 +69,8 @@ public interface ExplicitContentFrameOrBuilder * * * .google.cloud.videointelligence.v1p3beta1.Likelihood pornography_likelihood = 2; + * + * @return The enum numeric value on the wire for pornographyLikelihood. */ int getPornographyLikelihoodValue(); /** @@ -75,6 +81,8 @@ public interface ExplicitContentFrameOrBuilder * * * .google.cloud.videointelligence.v1p3beta1.Likelihood pornography_likelihood = 2; + * + * @return The pornographyLikelihood. */ com.google.cloud.videointelligence.v1p3beta1.Likelihood getPornographyLikelihood(); } diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/Feature.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/Feature.java index 1ce8b3771..1b4373fc5 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/Feature.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/Feature.java @@ -220,12 +220,20 @@ public final int getNumber() { return value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ @java.lang.Deprecated public static Feature valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Feature forNumber(int value) { switch (value) { case 0: diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelAnnotation.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelAnnotation.java index 73f310ad4..95ddeaa82 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelAnnotation.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelAnnotation.java @@ -43,6 +43,12 @@ private LabelAnnotation() { frames_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LabelAnnotation(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -86,10 +92,10 @@ private LabelAnnotation( } case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { categoryEntities_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + mutable_bitField0_ |= 0x00000001; } categoryEntities_.add( input.readMessage( @@ -99,11 +105,11 @@ private LabelAnnotation( } case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { segments_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p3beta1.LabelSegment>(); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000002; } segments_.add( input.readMessage( @@ -113,11 +119,11 @@ private LabelAnnotation( } case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { frames_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p3beta1.LabelFrame>(); - mutable_bitField0_ |= 0x00000008; + mutable_bitField0_ |= 0x00000004; } frames_.add( input.readMessage( @@ -139,13 +145,13 @@ private LabelAnnotation( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { categoryEntities_ = java.util.Collections.unmodifiableList(categoryEntities_); } - if (((mutable_bitField0_ & 0x00000004) != 0)) { + if (((mutable_bitField0_ & 0x00000002) != 0)) { segments_ = java.util.Collections.unmodifiableList(segments_); } - if (((mutable_bitField0_ & 0x00000008) != 0)) { + if (((mutable_bitField0_ & 0x00000004) != 0)) { frames_ = java.util.Collections.unmodifiableList(frames_); } this.unknownFields = unknownFields.build(); @@ -168,7 +174,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder.class); } - private int bitField0_; public static final int ENTITY_FIELD_NUMBER = 1; private com.google.cloud.videointelligence.v1p3beta1.Entity entity_; /** @@ -179,6 +184,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.cloud.videointelligence.v1p3beta1.Entity entity = 1; + * + * @return Whether the entity field is set. */ public boolean hasEntity() { return entity_ != null; @@ -191,6 +198,8 @@ public boolean hasEntity() { * * * .google.cloud.videointelligence.v1p3beta1.Entity entity = 1; + * + * @return The entity. */ public com.google.cloud.videointelligence.v1p3beta1.Entity getEntity() { return entity_ == null @@ -678,19 +687,19 @@ public Builder clear() { } if (categoryEntitiesBuilder_ == null) { categoryEntities_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } else { categoryEntitiesBuilder_.clear(); } if (segmentsBuilder_ == null) { segments_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); } else { segmentsBuilder_.clear(); } if (framesBuilder_ == null) { frames_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); } else { framesBuilder_.clear(); } @@ -723,40 +732,38 @@ public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation buildPartial com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation result = new com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (entityBuilder_ == null) { result.entity_ = entity_; } else { result.entity_ = entityBuilder_.build(); } if (categoryEntitiesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { categoryEntities_ = java.util.Collections.unmodifiableList(categoryEntities_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } result.categoryEntities_ = categoryEntities_; } else { result.categoryEntities_ = categoryEntitiesBuilder_.build(); } if (segmentsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { segments_ = java.util.Collections.unmodifiableList(segments_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); } result.segments_ = segments_; } else { result.segments_ = segmentsBuilder_.build(); } if (framesBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { frames_ = java.util.Collections.unmodifiableList(frames_); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); } result.frames_ = frames_; } else { result.frames_ = framesBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -815,7 +822,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1p3beta1.LabelAnnot if (!other.categoryEntities_.isEmpty()) { if (categoryEntities_.isEmpty()) { categoryEntities_ = other.categoryEntities_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureCategoryEntitiesIsMutable(); categoryEntities_.addAll(other.categoryEntities_); @@ -828,7 +835,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1p3beta1.LabelAnnot categoryEntitiesBuilder_.dispose(); categoryEntitiesBuilder_ = null; categoryEntities_ = other.categoryEntities_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); categoryEntitiesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCategoryEntitiesFieldBuilder() @@ -842,7 +849,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1p3beta1.LabelAnnot if (!other.segments_.isEmpty()) { if (segments_.isEmpty()) { segments_ = other.segments_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureSegmentsIsMutable(); segments_.addAll(other.segments_); @@ -855,7 +862,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1p3beta1.LabelAnnot segmentsBuilder_.dispose(); segmentsBuilder_ = null; segments_ = other.segments_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); segmentsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSegmentsFieldBuilder() @@ -869,7 +876,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1p3beta1.LabelAnnot if (!other.frames_.isEmpty()) { if (frames_.isEmpty()) { frames_ = other.frames_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureFramesIsMutable(); frames_.addAll(other.frames_); @@ -882,7 +889,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1p3beta1.LabelAnnot framesBuilder_.dispose(); framesBuilder_ = null; frames_ = other.frames_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); framesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFramesFieldBuilder() @@ -938,6 +945,8 @@ public Builder mergeFrom( * * * .google.cloud.videointelligence.v1p3beta1.Entity entity = 1; + * + * @return Whether the entity field is set. */ public boolean hasEntity() { return entityBuilder_ != null || entity_ != null; @@ -950,6 +959,8 @@ public boolean hasEntity() { * * * .google.cloud.videointelligence.v1p3beta1.Entity entity = 1; + * + * @return The entity. */ public com.google.cloud.videointelligence.v1p3beta1.Entity getEntity() { if (entityBuilder_ == null) { @@ -1110,11 +1121,11 @@ public com.google.cloud.videointelligence.v1p3beta1.EntityOrBuilder getEntityOrB java.util.Collections.emptyList(); private void ensureCategoryEntitiesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { categoryEntities_ = new java.util.ArrayList( categoryEntities_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } @@ -1366,7 +1377,7 @@ public Builder addAllCategoryEntities( public Builder clearCategoryEntities() { if (categoryEntitiesBuilder_ == null) { categoryEntities_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { categoryEntitiesBuilder_.clear(); @@ -1515,7 +1526,7 @@ public com.google.cloud.videointelligence.v1p3beta1.Entity.Builder addCategoryEn com.google.cloud.videointelligence.v1p3beta1.Entity.Builder, com.google.cloud.videointelligence.v1p3beta1.EntityOrBuilder>( categoryEntities_, - ((bitField0_ & 0x00000002) != 0), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); categoryEntities_ = null; @@ -1527,11 +1538,11 @@ public com.google.cloud.videointelligence.v1p3beta1.Entity.Builder addCategoryEn java.util.Collections.emptyList(); private void ensureSegmentsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { segments_ = new java.util.ArrayList( segments_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; } } @@ -1753,7 +1764,7 @@ public Builder addAllSegments( public Builder clearSegments() { if (segmentsBuilder_ == null) { segments_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { segmentsBuilder_.clear(); @@ -1882,7 +1893,7 @@ public com.google.cloud.videointelligence.v1p3beta1.LabelSegment.Builder addSegm com.google.cloud.videointelligence.v1p3beta1.LabelSegment, com.google.cloud.videointelligence.v1p3beta1.LabelSegment.Builder, com.google.cloud.videointelligence.v1p3beta1.LabelSegmentOrBuilder>( - segments_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + segments_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); segments_ = null; } return segmentsBuilder_; @@ -1892,11 +1903,11 @@ public com.google.cloud.videointelligence.v1p3beta1.LabelSegment.Builder addSegm java.util.Collections.emptyList(); private void ensureFramesIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { frames_ = new java.util.ArrayList( frames_); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; } } @@ -2117,7 +2128,7 @@ public Builder addAllFrames( public Builder clearFrames() { if (framesBuilder_ == null) { frames_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { framesBuilder_.clear(); @@ -2244,7 +2255,7 @@ public com.google.cloud.videointelligence.v1p3beta1.LabelFrame.Builder addFrames com.google.cloud.videointelligence.v1p3beta1.LabelFrame, com.google.cloud.videointelligence.v1p3beta1.LabelFrame.Builder, com.google.cloud.videointelligence.v1p3beta1.LabelFrameOrBuilder>( - frames_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + frames_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); frames_ = null; } return framesBuilder_; diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelAnnotationOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelAnnotationOrBuilder.java index d29fd84da..a50451330 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelAnnotationOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelAnnotationOrBuilder.java @@ -31,6 +31,8 @@ public interface LabelAnnotationOrBuilder * * * .google.cloud.videointelligence.v1p3beta1.Entity entity = 1; + * + * @return Whether the entity field is set. */ boolean hasEntity(); /** @@ -41,6 +43,8 @@ public interface LabelAnnotationOrBuilder * * * .google.cloud.videointelligence.v1p3beta1.Entity entity = 1; + * + * @return The entity. */ com.google.cloud.videointelligence.v1p3beta1.Entity getEntity(); /** diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelDetectionConfig.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelDetectionConfig.java index e0d72d42b..3dcfeb58d 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelDetectionConfig.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelDetectionConfig.java @@ -42,6 +42,12 @@ private LabelDetectionConfig() { model_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LabelDetectionConfig(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -55,7 +61,6 @@ private LabelDetectionConfig( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -142,6 +147,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * .google.cloud.videointelligence.v1p3beta1.LabelDetectionMode label_detection_mode = 1; * + * + * @return The enum numeric value on the wire for labelDetectionMode. */ public int getLabelDetectionModeValue() { return labelDetectionMode_; @@ -157,6 +164,8 @@ public int getLabelDetectionModeValue() { * * .google.cloud.videointelligence.v1p3beta1.LabelDetectionMode label_detection_mode = 1; * + * + * @return The labelDetectionMode. */ public com.google.cloud.videointelligence.v1p3beta1.LabelDetectionMode getLabelDetectionMode() { @SuppressWarnings("deprecation") @@ -180,6 +189,8 @@ public com.google.cloud.videointelligence.v1p3beta1.LabelDetectionMode getLabelD * * * bool stationary_camera = 2; + * + * @return The stationaryCamera. */ public boolean getStationaryCamera() { return stationaryCamera_; @@ -197,6 +208,8 @@ public boolean getStationaryCamera() { * * * string model = 3; + * + * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; @@ -219,6 +232,8 @@ public java.lang.String getModel() { * * * string model = 3; + * + * @return The bytes for model. */ public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; @@ -247,6 +262,8 @@ public com.google.protobuf.ByteString getModelBytes() { * * * float frame_confidence_threshold = 4; + * + * @return The frameConfidenceThreshold. */ public float getFrameConfidenceThreshold() { return frameConfidenceThreshold_; @@ -267,6 +284,8 @@ public float getFrameConfidenceThreshold() { * * * float video_confidence_threshold = 5; + * + * @return The videoConfidenceThreshold. */ public float getVideoConfidenceThreshold() { return videoConfidenceThreshold_; @@ -677,6 +696,8 @@ public Builder mergeFrom( * * .google.cloud.videointelligence.v1p3beta1.LabelDetectionMode label_detection_mode = 1; * + * + * @return The enum numeric value on the wire for labelDetectionMode. */ public int getLabelDetectionModeValue() { return labelDetectionMode_; @@ -692,6 +713,9 @@ public int getLabelDetectionModeValue() { * * .google.cloud.videointelligence.v1p3beta1.LabelDetectionMode label_detection_mode = 1; * + * + * @param value The enum numeric value on the wire for labelDetectionMode to set. + * @return This builder for chaining. */ public Builder setLabelDetectionModeValue(int value) { labelDetectionMode_ = value; @@ -709,6 +733,8 @@ public Builder setLabelDetectionModeValue(int value) { * * .google.cloud.videointelligence.v1p3beta1.LabelDetectionMode label_detection_mode = 1; * + * + * @return The labelDetectionMode. */ public com.google.cloud.videointelligence.v1p3beta1.LabelDetectionMode getLabelDetectionMode() { @SuppressWarnings("deprecation") @@ -730,6 +756,9 @@ public com.google.cloud.videointelligence.v1p3beta1.LabelDetectionMode getLabelD * * .google.cloud.videointelligence.v1p3beta1.LabelDetectionMode label_detection_mode = 1; * + * + * @param value The labelDetectionMode to set. + * @return This builder for chaining. */ public Builder setLabelDetectionMode( com.google.cloud.videointelligence.v1p3beta1.LabelDetectionMode value) { @@ -752,6 +781,8 @@ public Builder setLabelDetectionMode( * * .google.cloud.videointelligence.v1p3beta1.LabelDetectionMode label_detection_mode = 1; * + * + * @return This builder for chaining. */ public Builder clearLabelDetectionMode() { @@ -771,6 +802,8 @@ public Builder clearLabelDetectionMode() { * * * bool stationary_camera = 2; + * + * @return The stationaryCamera. */ public boolean getStationaryCamera() { return stationaryCamera_; @@ -785,6 +818,9 @@ public boolean getStationaryCamera() { * * * bool stationary_camera = 2; + * + * @param value The stationaryCamera to set. + * @return This builder for chaining. */ public Builder setStationaryCamera(boolean value) { @@ -802,6 +838,8 @@ public Builder setStationaryCamera(boolean value) { * * * bool stationary_camera = 2; + * + * @return This builder for chaining. */ public Builder clearStationaryCamera() { @@ -821,6 +859,8 @@ public Builder clearStationaryCamera() { * * * string model = 3; + * + * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; @@ -843,6 +883,8 @@ public java.lang.String getModel() { * * * string model = 3; + * + * @return The bytes for model. */ public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; @@ -865,6 +907,9 @@ public com.google.protobuf.ByteString getModelBytes() { * * * string model = 3; + * + * @param value The model to set. + * @return This builder for chaining. */ public Builder setModel(java.lang.String value) { if (value == null) { @@ -885,6 +930,8 @@ public Builder setModel(java.lang.String value) { * * * string model = 3; + * + * @return This builder for chaining. */ public Builder clearModel() { @@ -902,6 +949,9 @@ public Builder clearModel() { * * * string model = 3; + * + * @param value The bytes for model to set. + * @return This builder for chaining. */ public Builder setModelBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -928,6 +978,8 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { * * * float frame_confidence_threshold = 4; + * + * @return The frameConfidenceThreshold. */ public float getFrameConfidenceThreshold() { return frameConfidenceThreshold_; @@ -945,6 +997,9 @@ public float getFrameConfidenceThreshold() { * * * float frame_confidence_threshold = 4; + * + * @param value The frameConfidenceThreshold to set. + * @return This builder for chaining. */ public Builder setFrameConfidenceThreshold(float value) { @@ -965,6 +1020,8 @@ public Builder setFrameConfidenceThreshold(float value) { * * * float frame_confidence_threshold = 4; + * + * @return This builder for chaining. */ public Builder clearFrameConfidenceThreshold() { @@ -987,6 +1044,8 @@ public Builder clearFrameConfidenceThreshold() { * * * float video_confidence_threshold = 5; + * + * @return The videoConfidenceThreshold. */ public float getVideoConfidenceThreshold() { return videoConfidenceThreshold_; @@ -1004,6 +1063,9 @@ public float getVideoConfidenceThreshold() { * * * float video_confidence_threshold = 5; + * + * @param value The videoConfidenceThreshold to set. + * @return This builder for chaining. */ public Builder setVideoConfidenceThreshold(float value) { @@ -1024,6 +1086,8 @@ public Builder setVideoConfidenceThreshold(float value) { * * * float video_confidence_threshold = 5; + * + * @return This builder for chaining. */ public Builder clearVideoConfidenceThreshold() { diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelDetectionConfigOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelDetectionConfigOrBuilder.java index 6ffc64347..1860cf923 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelDetectionConfigOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelDetectionConfigOrBuilder.java @@ -34,6 +34,8 @@ public interface LabelDetectionConfigOrBuilder * * .google.cloud.videointelligence.v1p3beta1.LabelDetectionMode label_detection_mode = 1; * + * + * @return The enum numeric value on the wire for labelDetectionMode. */ int getLabelDetectionModeValue(); /** @@ -47,6 +49,8 @@ public interface LabelDetectionConfigOrBuilder * * .google.cloud.videointelligence.v1p3beta1.LabelDetectionMode label_detection_mode = 1; * + * + * @return The labelDetectionMode. */ com.google.cloud.videointelligence.v1p3beta1.LabelDetectionMode getLabelDetectionMode(); @@ -60,6 +64,8 @@ public interface LabelDetectionConfigOrBuilder * * * bool stationary_camera = 2; + * + * @return The stationaryCamera. */ boolean getStationaryCamera(); @@ -73,6 +79,8 @@ public interface LabelDetectionConfigOrBuilder * * * string model = 3; + * + * @return The model. */ java.lang.String getModel(); /** @@ -85,6 +93,8 @@ public interface LabelDetectionConfigOrBuilder * * * string model = 3; + * + * @return The bytes for model. */ com.google.protobuf.ByteString getModelBytes(); @@ -101,6 +111,8 @@ public interface LabelDetectionConfigOrBuilder * * * float frame_confidence_threshold = 4; + * + * @return The frameConfidenceThreshold. */ float getFrameConfidenceThreshold(); @@ -117,6 +129,8 @@ public interface LabelDetectionConfigOrBuilder * * * float video_confidence_threshold = 5; + * + * @return The videoConfidenceThreshold. */ float getVideoConfidenceThreshold(); } diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelDetectionMode.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelDetectionMode.java index 3f319d5d5..604ebbaa6 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelDetectionMode.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelDetectionMode.java @@ -120,12 +120,20 @@ public final int getNumber() { return value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ @java.lang.Deprecated public static LabelDetectionMode valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static LabelDetectionMode forNumber(int value) { switch (value) { case 0: diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelFrame.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelFrame.java index 233ead9a7..e897b9c91 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelFrame.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelFrame.java @@ -39,6 +39,12 @@ private LabelFrame(com.google.protobuf.GeneratedMessageV3.Builder builder) { private LabelFrame() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LabelFrame(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -52,7 +58,6 @@ private LabelFrame( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -128,6 +133,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.protobuf.Duration time_offset = 1; + * + * @return Whether the timeOffset field is set. */ public boolean hasTimeOffset() { return timeOffset_ != null; @@ -141,6 +148,8 @@ public boolean hasTimeOffset() { * * * .google.protobuf.Duration time_offset = 1; + * + * @return The timeOffset. */ public com.google.protobuf.Duration getTimeOffset() { return timeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeOffset_; @@ -169,6 +178,8 @@ public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() { * * * float confidence = 2; + * + * @return The confidence. */ public float getConfidence() { return confidence_; @@ -536,6 +547,8 @@ public Builder mergeFrom( * * * .google.protobuf.Duration time_offset = 1; + * + * @return Whether the timeOffset field is set. */ public boolean hasTimeOffset() { return timeOffsetBuilder_ != null || timeOffset_ != null; @@ -549,6 +562,8 @@ public boolean hasTimeOffset() { * * * .google.protobuf.Duration time_offset = 1; + * + * @return The timeOffset. */ public com.google.protobuf.Duration getTimeOffset() { if (timeOffsetBuilder_ == null) { @@ -718,6 +733,8 @@ public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() { * * * float confidence = 2; + * + * @return The confidence. */ public float getConfidence() { return confidence_; @@ -730,6 +747,9 @@ public float getConfidence() { * * * float confidence = 2; + * + * @param value The confidence to set. + * @return This builder for chaining. */ public Builder setConfidence(float value) { @@ -745,6 +765,8 @@ public Builder setConfidence(float value) { * * * float confidence = 2; + * + * @return This builder for chaining. */ public Builder clearConfidence() { diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelFrameOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelFrameOrBuilder.java index 136174b2f..075410fc2 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelFrameOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelFrameOrBuilder.java @@ -32,6 +32,8 @@ public interface LabelFrameOrBuilder * * * .google.protobuf.Duration time_offset = 1; + * + * @return Whether the timeOffset field is set. */ boolean hasTimeOffset(); /** @@ -43,6 +45,8 @@ public interface LabelFrameOrBuilder * * * .google.protobuf.Duration time_offset = 1; + * + * @return The timeOffset. */ com.google.protobuf.Duration getTimeOffset(); /** @@ -65,6 +69,8 @@ public interface LabelFrameOrBuilder * * * float confidence = 2; + * + * @return The confidence. */ float getConfidence(); } diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelSegment.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelSegment.java index c6aaa5035..e89593cb6 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelSegment.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelSegment.java @@ -39,6 +39,12 @@ private LabelSegment(com.google.protobuf.GeneratedMessageV3.Builder builder) private LabelSegment() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LabelSegment(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -52,7 +58,6 @@ private LabelSegment( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -129,6 +134,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1; + * + * @return Whether the segment field is set. */ public boolean hasSegment() { return segment_ != null; @@ -141,6 +148,8 @@ public boolean hasSegment() { * * * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1; + * + * @return The segment. */ public com.google.cloud.videointelligence.v1p3beta1.VideoSegment getSegment() { return segment_ == null @@ -170,6 +179,8 @@ public com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder getSeg * * * float confidence = 2; + * + * @return The confidence. */ public float getConfidence() { return confidence_; @@ -536,6 +547,8 @@ public Builder mergeFrom( * * * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1; + * + * @return Whether the segment field is set. */ public boolean hasSegment() { return segmentBuilder_ != null || segment_ != null; @@ -548,6 +561,8 @@ public boolean hasSegment() { * * * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1; + * + * @return The segment. */ public com.google.cloud.videointelligence.v1p3beta1.VideoSegment getSegment() { if (segmentBuilder_ == null) { @@ -714,6 +729,8 @@ public com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder getSegm * * * float confidence = 2; + * + * @return The confidence. */ public float getConfidence() { return confidence_; @@ -726,6 +743,9 @@ public float getConfidence() { * * * float confidence = 2; + * + * @param value The confidence to set. + * @return This builder for chaining. */ public Builder setConfidence(float value) { @@ -741,6 +761,8 @@ public Builder setConfidence(float value) { * * * float confidence = 2; + * + * @return This builder for chaining. */ public Builder clearConfidence() { diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelSegmentOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelSegmentOrBuilder.java index 3011d844f..737eff38f 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelSegmentOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelSegmentOrBuilder.java @@ -31,6 +31,8 @@ public interface LabelSegmentOrBuilder * * * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1; + * + * @return Whether the segment field is set. */ boolean hasSegment(); /** @@ -41,6 +43,8 @@ public interface LabelSegmentOrBuilder * * * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1; + * + * @return The segment. */ com.google.cloud.videointelligence.v1p3beta1.VideoSegment getSegment(); /** @@ -62,6 +66,8 @@ public interface LabelSegmentOrBuilder * * * float confidence = 2; + * + * @return The confidence. */ float getConfidence(); } diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/Likelihood.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/Likelihood.java index 0fb776560..bfdaf7758 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/Likelihood.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/Likelihood.java @@ -160,12 +160,20 @@ public final int getNumber() { return value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ @java.lang.Deprecated public static Likelihood valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static Likelihood forNumber(int value) { switch (value) { case 0: diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LogoRecognitionAnnotation.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LogoRecognitionAnnotation.java index 3881761a1..75255bd1c 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LogoRecognitionAnnotation.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LogoRecognitionAnnotation.java @@ -42,6 +42,12 @@ private LogoRecognitionAnnotation() { segments_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LogoRecognitionAnnotation(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -85,10 +91,10 @@ private LogoRecognitionAnnotation( } case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { tracks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + mutable_bitField0_ |= 0x00000001; } tracks_.add( input.readMessage( @@ -98,11 +104,11 @@ private LogoRecognitionAnnotation( } case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { segments_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p3beta1.VideoSegment>(); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000002; } segments_.add( input.readMessage( @@ -124,10 +130,10 @@ private LogoRecognitionAnnotation( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { tracks_ = java.util.Collections.unmodifiableList(tracks_); } - if (((mutable_bitField0_ & 0x00000004) != 0)) { + if (((mutable_bitField0_ & 0x00000002) != 0)) { segments_ = java.util.Collections.unmodifiableList(segments_); } this.unknownFields = unknownFields.build(); @@ -150,7 +156,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.videointelligence.v1p3beta1.LogoRecognitionAnnotation.Builder.class); } - private int bitField0_; public static final int ENTITY_FIELD_NUMBER = 1; private com.google.cloud.videointelligence.v1p3beta1.Entity entity_; /** @@ -162,6 +167,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.cloud.videointelligence.v1p3beta1.Entity entity = 1; + * + * @return Whether the entity field is set. */ public boolean hasEntity() { return entity_ != null; @@ -175,6 +182,8 @@ public boolean hasEntity() { * * * .google.cloud.videointelligence.v1p3beta1.Entity entity = 1; + * + * @return The entity. */ public com.google.cloud.videointelligence.v1p3beta1.Entity getEntity() { return entity_ == null @@ -581,13 +590,13 @@ public Builder clear() { } if (tracksBuilder_ == null) { tracks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } else { tracksBuilder_.clear(); } if (segmentsBuilder_ == null) { segments_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); } else { segmentsBuilder_.clear(); } @@ -622,31 +631,29 @@ public com.google.cloud.videointelligence.v1p3beta1.LogoRecognitionAnnotation bu com.google.cloud.videointelligence.v1p3beta1.LogoRecognitionAnnotation result = new com.google.cloud.videointelligence.v1p3beta1.LogoRecognitionAnnotation(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (entityBuilder_ == null) { result.entity_ = entity_; } else { result.entity_ = entityBuilder_.build(); } if (tracksBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { tracks_ = java.util.Collections.unmodifiableList(tracks_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } result.tracks_ = tracks_; } else { result.tracks_ = tracksBuilder_.build(); } if (segmentsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { segments_ = java.util.Collections.unmodifiableList(segments_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); } result.segments_ = segments_; } else { result.segments_ = segmentsBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -707,7 +714,7 @@ public Builder mergeFrom( if (!other.tracks_.isEmpty()) { if (tracks_.isEmpty()) { tracks_ = other.tracks_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureTracksIsMutable(); tracks_.addAll(other.tracks_); @@ -720,7 +727,7 @@ public Builder mergeFrom( tracksBuilder_.dispose(); tracksBuilder_ = null; tracks_ = other.tracks_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); tracksBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTracksFieldBuilder() @@ -734,7 +741,7 @@ public Builder mergeFrom( if (!other.segments_.isEmpty()) { if (segments_.isEmpty()) { segments_ = other.segments_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureSegmentsIsMutable(); segments_.addAll(other.segments_); @@ -747,7 +754,7 @@ public Builder mergeFrom( segmentsBuilder_.dispose(); segmentsBuilder_ = null; segments_ = other.segments_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); segmentsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSegmentsFieldBuilder() @@ -805,6 +812,8 @@ public Builder mergeFrom( * * * .google.cloud.videointelligence.v1p3beta1.Entity entity = 1; + * + * @return Whether the entity field is set. */ public boolean hasEntity() { return entityBuilder_ != null || entity_ != null; @@ -818,6 +827,8 @@ public boolean hasEntity() { * * * .google.cloud.videointelligence.v1p3beta1.Entity entity = 1; + * + * @return The entity. */ public com.google.cloud.videointelligence.v1p3beta1.Entity getEntity() { if (entityBuilder_ == null) { @@ -985,10 +996,10 @@ public com.google.cloud.videointelligence.v1p3beta1.EntityOrBuilder getEntityOrB java.util.Collections.emptyList(); private void ensureTracksIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { tracks_ = new java.util.ArrayList(tracks_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } @@ -1215,7 +1226,7 @@ public Builder addAllTracks( public Builder clearTracks() { if (tracksBuilder_ == null) { tracks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { tracksBuilder_.clear(); @@ -1346,7 +1357,7 @@ public com.google.cloud.videointelligence.v1p3beta1.Track.Builder addTracksBuild com.google.cloud.videointelligence.v1p3beta1.Track, com.google.cloud.videointelligence.v1p3beta1.Track.Builder, com.google.cloud.videointelligence.v1p3beta1.TrackOrBuilder>( - tracks_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + tracks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); tracks_ = null; } return tracksBuilder_; @@ -1356,11 +1367,11 @@ public com.google.cloud.videointelligence.v1p3beta1.Track.Builder addTracksBuild java.util.Collections.emptyList(); private void ensureSegmentsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { segments_ = new java.util.ArrayList( segments_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; } } @@ -1593,7 +1604,7 @@ public Builder addAllSegments( public Builder clearSegments() { if (segmentsBuilder_ == null) { segments_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { segmentsBuilder_.clear(); @@ -1729,7 +1740,7 @@ public com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder addSegm com.google.cloud.videointelligence.v1p3beta1.VideoSegment, com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder, com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder>( - segments_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + segments_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); segments_ = null; } return segmentsBuilder_; diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LogoRecognitionAnnotationOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LogoRecognitionAnnotationOrBuilder.java index f9ed2cf30..48ca31b5d 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LogoRecognitionAnnotationOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LogoRecognitionAnnotationOrBuilder.java @@ -32,6 +32,8 @@ public interface LogoRecognitionAnnotationOrBuilder * * * .google.cloud.videointelligence.v1p3beta1.Entity entity = 1; + * + * @return Whether the entity field is set. */ boolean hasEntity(); /** @@ -43,6 +45,8 @@ public interface LogoRecognitionAnnotationOrBuilder * * * .google.cloud.videointelligence.v1p3beta1.Entity entity = 1; + * + * @return The entity. */ com.google.cloud.videointelligence.v1p3beta1.Entity getEntity(); /** diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/NormalizedBoundingBox.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/NormalizedBoundingBox.java index fa20f1072..5d6a43a42 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/NormalizedBoundingBox.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/NormalizedBoundingBox.java @@ -41,6 +41,12 @@ private NormalizedBoundingBox(com.google.protobuf.GeneratedMessageV3.Builder private NormalizedBoundingBox() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NormalizedBoundingBox(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private NormalizedBoundingBox( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -129,6 +134,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * float left = 1; + * + * @return The left. */ public float getLeft() { return left_; @@ -144,6 +151,8 @@ public float getLeft() { * * * float top = 2; + * + * @return The top. */ public float getTop() { return top_; @@ -159,6 +168,8 @@ public float getTop() { * * * float right = 3; + * + * @return The right. */ public float getRight() { return right_; @@ -174,6 +185,8 @@ public float getRight() { * * * float bottom = 4; + * + * @return The bottom. */ public float getBottom() { return bottom_; @@ -565,6 +578,8 @@ public Builder mergeFrom( * * * float left = 1; + * + * @return The left. */ public float getLeft() { return left_; @@ -577,6 +592,9 @@ public float getLeft() { * * * float left = 1; + * + * @param value The left to set. + * @return This builder for chaining. */ public Builder setLeft(float value) { @@ -592,6 +610,8 @@ public Builder setLeft(float value) { * * * float left = 1; + * + * @return This builder for chaining. */ public Builder clearLeft() { @@ -609,6 +629,8 @@ public Builder clearLeft() { * * * float top = 2; + * + * @return The top. */ public float getTop() { return top_; @@ -621,6 +643,9 @@ public float getTop() { * * * float top = 2; + * + * @param value The top to set. + * @return This builder for chaining. */ public Builder setTop(float value) { @@ -636,6 +661,8 @@ public Builder setTop(float value) { * * * float top = 2; + * + * @return This builder for chaining. */ public Builder clearTop() { @@ -653,6 +680,8 @@ public Builder clearTop() { * * * float right = 3; + * + * @return The right. */ public float getRight() { return right_; @@ -665,6 +694,9 @@ public float getRight() { * * * float right = 3; + * + * @param value The right to set. + * @return This builder for chaining. */ public Builder setRight(float value) { @@ -680,6 +712,8 @@ public Builder setRight(float value) { * * * float right = 3; + * + * @return This builder for chaining. */ public Builder clearRight() { @@ -697,6 +731,8 @@ public Builder clearRight() { * * * float bottom = 4; + * + * @return The bottom. */ public float getBottom() { return bottom_; @@ -709,6 +745,9 @@ public float getBottom() { * * * float bottom = 4; + * + * @param value The bottom to set. + * @return This builder for chaining. */ public Builder setBottom(float value) { @@ -724,6 +763,8 @@ public Builder setBottom(float value) { * * * float bottom = 4; + * + * @return This builder for chaining. */ public Builder clearBottom() { diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/NormalizedBoundingBoxOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/NormalizedBoundingBoxOrBuilder.java index fbf918d7f..b975423a5 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/NormalizedBoundingBoxOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/NormalizedBoundingBoxOrBuilder.java @@ -31,6 +31,8 @@ public interface NormalizedBoundingBoxOrBuilder * * * float left = 1; + * + * @return The left. */ float getLeft(); @@ -42,6 +44,8 @@ public interface NormalizedBoundingBoxOrBuilder * * * float top = 2; + * + * @return The top. */ float getTop(); @@ -53,6 +57,8 @@ public interface NormalizedBoundingBoxOrBuilder * * * float right = 3; + * + * @return The right. */ float getRight(); @@ -64,6 +70,8 @@ public interface NormalizedBoundingBoxOrBuilder * * * float bottom = 4; + * + * @return The bottom. */ float getBottom(); } diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/NormalizedBoundingPoly.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/NormalizedBoundingPoly.java index 1b4f948f9..13b1de73f 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/NormalizedBoundingPoly.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/NormalizedBoundingPoly.java @@ -55,6 +55,12 @@ private NormalizedBoundingPoly() { vertices_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NormalizedBoundingPoly(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/NormalizedVertex.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/NormalizedVertex.java index abcb78dd2..2cfc7d1ce 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/NormalizedVertex.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/NormalizedVertex.java @@ -41,6 +41,12 @@ private NormalizedVertex(com.google.protobuf.GeneratedMessageV3.Builder build private NormalizedVertex() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NormalizedVertex(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private NormalizedVertex( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -119,6 +124,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * float x = 1; + * + * @return The x. */ public float getX() { return x_; @@ -134,6 +141,8 @@ public float getX() { * * * float y = 2; + * + * @return The y. */ public float getY() { return y_; @@ -488,6 +497,8 @@ public Builder mergeFrom( * * * float x = 1; + * + * @return The x. */ public float getX() { return x_; @@ -500,6 +511,9 @@ public float getX() { * * * float x = 1; + * + * @param value The x to set. + * @return This builder for chaining. */ public Builder setX(float value) { @@ -515,6 +529,8 @@ public Builder setX(float value) { * * * float x = 1; + * + * @return This builder for chaining. */ public Builder clearX() { @@ -532,6 +548,8 @@ public Builder clearX() { * * * float y = 2; + * + * @return The y. */ public float getY() { return y_; @@ -544,6 +562,9 @@ public float getY() { * * * float y = 2; + * + * @param value The y to set. + * @return This builder for chaining. */ public Builder setY(float value) { @@ -559,6 +580,8 @@ public Builder setY(float value) { * * * float y = 2; + * + * @return This builder for chaining. */ public Builder clearY() { diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/NormalizedVertexOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/NormalizedVertexOrBuilder.java index 639f57eb8..03421e89b 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/NormalizedVertexOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/NormalizedVertexOrBuilder.java @@ -31,6 +31,8 @@ public interface NormalizedVertexOrBuilder * * * float x = 1; + * + * @return The x. */ float getX(); @@ -42,6 +44,8 @@ public interface NormalizedVertexOrBuilder * * * float y = 2; + * + * @return The y. */ float getY(); } diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ObjectTrackingAnnotation.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ObjectTrackingAnnotation.java index 0cf56abf3..7f58b470c 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ObjectTrackingAnnotation.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ObjectTrackingAnnotation.java @@ -41,6 +41,12 @@ private ObjectTrackingAnnotation() { frames_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ObjectTrackingAnnotation(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -84,11 +90,11 @@ private ObjectTrackingAnnotation( } case 18: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { frames_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame>(); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000001; } frames_.add( input.readMessage( @@ -141,7 +147,7 @@ private ObjectTrackingAnnotation( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { frames_ = java.util.Collections.unmodifiableList(frames_); } this.unknownFields = unknownFields.build(); @@ -164,11 +170,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation.Builder.class); } - private int bitField0_; private int trackInfoCase_ = 0; private java.lang.Object trackInfo_; - public enum TrackInfoCase implements com.google.protobuf.Internal.EnumLite { + public enum TrackInfoCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { SEGMENT(3), TRACK_ID(5), TRACKINFO_NOT_SET(0); @@ -177,7 +185,11 @@ public enum TrackInfoCase implements com.google.protobuf.Internal.EnumLite { private TrackInfoCase(int value) { this.value = value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ @java.lang.Deprecated public static TrackInfoCase valueOf(int value) { return forNumber(value); @@ -215,6 +227,8 @@ public TrackInfoCase getTrackInfoCase() { * * * .google.cloud.videointelligence.v1p3beta1.Entity entity = 1; + * + * @return Whether the entity field is set. */ public boolean hasEntity() { return entity_ != null; @@ -227,6 +241,8 @@ public boolean hasEntity() { * * * .google.cloud.videointelligence.v1p3beta1.Entity entity = 1; + * + * @return The entity. */ public com.google.cloud.videointelligence.v1p3beta1.Entity getEntity() { return entity_ == null @@ -256,6 +272,8 @@ public com.google.cloud.videointelligence.v1p3beta1.EntityOrBuilder getEntityOrB * * * float confidence = 4; + * + * @return The confidence. */ public float getConfidence() { return confidence_; @@ -353,6 +371,8 @@ public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame getFrame * * * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 3; + * + * @return Whether the segment field is set. */ public boolean hasSegment() { return trackInfoCase_ == 3; @@ -366,6 +386,8 @@ public boolean hasSegment() { * * * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 3; + * + * @return The segment. */ public com.google.cloud.videointelligence.v1p3beta1.VideoSegment getSegment() { if (trackInfoCase_ == 3) { @@ -404,6 +426,8 @@ public com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder getSeg * * * int64 track_id = 5; + * + * @return The trackId. */ public long getTrackId() { if (trackInfoCase_ == 5) { @@ -697,7 +721,7 @@ public Builder clear() { if (framesBuilder_ == null) { frames_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } else { framesBuilder_.clear(); } @@ -733,7 +757,6 @@ public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation bui com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation result = new com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (entityBuilder_ == null) { result.entity_ = entity_; } else { @@ -741,9 +764,9 @@ public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation bui } result.confidence_ = confidence_; if (framesBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { frames_ = java.util.Collections.unmodifiableList(frames_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } result.frames_ = frames_; } else { @@ -759,7 +782,6 @@ public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation bui if (trackInfoCase_ == 5) { result.trackInfo_ = trackInfo_; } - result.bitField0_ = to_bitField0_; result.trackInfoCase_ = trackInfoCase_; onBuilt(); return result; @@ -824,7 +846,7 @@ public Builder mergeFrom( if (!other.frames_.isEmpty()) { if (frames_.isEmpty()) { frames_ = other.frames_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureFramesIsMutable(); frames_.addAll(other.frames_); @@ -837,7 +859,7 @@ public Builder mergeFrom( framesBuilder_.dispose(); framesBuilder_ = null; frames_ = other.frames_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); framesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFramesFieldBuilder() @@ -924,6 +946,8 @@ public Builder clearTrackInfo() { * * * .google.cloud.videointelligence.v1p3beta1.Entity entity = 1; + * + * @return Whether the entity field is set. */ public boolean hasEntity() { return entityBuilder_ != null || entity_ != null; @@ -936,6 +960,8 @@ public boolean hasEntity() { * * * .google.cloud.videointelligence.v1p3beta1.Entity entity = 1; + * + * @return The entity. */ public com.google.cloud.videointelligence.v1p3beta1.Entity getEntity() { if (entityBuilder_ == null) { @@ -1101,6 +1127,8 @@ public com.google.cloud.videointelligence.v1p3beta1.EntityOrBuilder getEntityOrB * * * float confidence = 4; + * + * @return The confidence. */ public float getConfidence() { return confidence_; @@ -1113,6 +1141,9 @@ public float getConfidence() { * * * float confidence = 4; + * + * @param value The confidence to set. + * @return This builder for chaining. */ public Builder setConfidence(float value) { @@ -1128,6 +1159,8 @@ public Builder setConfidence(float value) { * * * float confidence = 4; + * + * @return This builder for chaining. */ public Builder clearConfidence() { @@ -1140,11 +1173,11 @@ public Builder clearConfidence() { frames_ = java.util.Collections.emptyList(); private void ensureFramesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { frames_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame>(frames_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; } } @@ -1412,7 +1445,7 @@ public Builder addAllFrames( public Builder clearFrames() { if (framesBuilder_ == null) { frames_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { framesBuilder_.clear(); @@ -1572,7 +1605,7 @@ public Builder removeFrames(int index) { com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame, com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame.Builder, com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrameOrBuilder>( - frames_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + frames_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); frames_ = null; } return framesBuilder_; @@ -1592,6 +1625,8 @@ public Builder removeFrames(int index) { * * * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 3; + * + * @return Whether the segment field is set. */ public boolean hasSegment() { return trackInfoCase_ == 3; @@ -1605,6 +1640,8 @@ public boolean hasSegment() { * * * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 3; + * + * @return The segment. */ public com.google.cloud.videointelligence.v1p3beta1.VideoSegment getSegment() { if (segmentBuilder_ == null) { @@ -1805,6 +1842,8 @@ public com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder getSegm * * * int64 track_id = 5; + * + * @return The trackId. */ public long getTrackId() { if (trackInfoCase_ == 5) { @@ -1825,6 +1864,9 @@ public long getTrackId() { * * * int64 track_id = 5; + * + * @param value The trackId to set. + * @return This builder for chaining. */ public Builder setTrackId(long value) { trackInfoCase_ = 5; @@ -1845,6 +1887,8 @@ public Builder setTrackId(long value) { * * * int64 track_id = 5; + * + * @return This builder for chaining. */ public Builder clearTrackId() { if (trackInfoCase_ == 5) { diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ObjectTrackingAnnotationOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ObjectTrackingAnnotationOrBuilder.java index 4647c2be5..40d3eb534 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ObjectTrackingAnnotationOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ObjectTrackingAnnotationOrBuilder.java @@ -31,6 +31,8 @@ public interface ObjectTrackingAnnotationOrBuilder * * * .google.cloud.videointelligence.v1p3beta1.Entity entity = 1; + * + * @return Whether the entity field is set. */ boolean hasEntity(); /** @@ -41,6 +43,8 @@ public interface ObjectTrackingAnnotationOrBuilder * * * .google.cloud.videointelligence.v1p3beta1.Entity entity = 1; + * + * @return The entity. */ com.google.cloud.videointelligence.v1p3beta1.Entity getEntity(); /** @@ -62,6 +66,8 @@ public interface ObjectTrackingAnnotationOrBuilder * * * float confidence = 4; + * + * @return The confidence. */ float getConfidence(); @@ -143,6 +149,8 @@ com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrameOrBuilder getFra * * * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 3; + * + * @return Whether the segment field is set. */ boolean hasSegment(); /** @@ -154,6 +162,8 @@ com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrameOrBuilder getFra * * * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 3; + * + * @return The segment. */ com.google.cloud.videointelligence.v1p3beta1.VideoSegment getSegment(); /** @@ -181,6 +191,8 @@ com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrameOrBuilder getFra * * * int64 track_id = 5; + * + * @return The trackId. */ long getTrackId(); diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ObjectTrackingConfig.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ObjectTrackingConfig.java index 646040786..cf430ad73 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ObjectTrackingConfig.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ObjectTrackingConfig.java @@ -41,6 +41,12 @@ private ObjectTrackingConfig() { model_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ObjectTrackingConfig(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private ObjectTrackingConfig( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -118,6 +123,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string model = 1; + * + * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; @@ -140,6 +147,8 @@ public java.lang.String getModel() { * * * string model = 1; + * + * @return The bytes for model. */ public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; @@ -489,6 +498,8 @@ public Builder mergeFrom( * * * string model = 1; + * + * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; @@ -511,6 +522,8 @@ public java.lang.String getModel() { * * * string model = 1; + * + * @return The bytes for model. */ public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; @@ -533,6 +546,9 @@ public com.google.protobuf.ByteString getModelBytes() { * * * string model = 1; + * + * @param value The model to set. + * @return This builder for chaining. */ public Builder setModel(java.lang.String value) { if (value == null) { @@ -553,6 +569,8 @@ public Builder setModel(java.lang.String value) { * * * string model = 1; + * + * @return This builder for chaining. */ public Builder clearModel() { @@ -570,6 +588,9 @@ public Builder clearModel() { * * * string model = 1; + * + * @param value The bytes for model to set. + * @return This builder for chaining. */ public Builder setModelBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ObjectTrackingConfigOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ObjectTrackingConfigOrBuilder.java index cf87e72d9..41233ee47 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ObjectTrackingConfigOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ObjectTrackingConfigOrBuilder.java @@ -33,6 +33,8 @@ public interface ObjectTrackingConfigOrBuilder * * * string model = 1; + * + * @return The model. */ java.lang.String getModel(); /** @@ -45,6 +47,8 @@ public interface ObjectTrackingConfigOrBuilder * * * string model = 1; + * + * @return The bytes for model. */ com.google.protobuf.ByteString getModelBytes(); } diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ObjectTrackingFrame.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ObjectTrackingFrame.java index dfbfefd1d..68232b190 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ObjectTrackingFrame.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ObjectTrackingFrame.java @@ -40,6 +40,12 @@ private ObjectTrackingFrame(com.google.protobuf.GeneratedMessageV3.Builder bu private ObjectTrackingFrame() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ObjectTrackingFrame(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -53,7 +59,6 @@ private ObjectTrackingFrame( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -143,6 +148,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox normalized_bounding_box = 1; * + * + * @return Whether the normalizedBoundingBox field is set. */ public boolean hasNormalizedBoundingBox() { return normalizedBoundingBox_ != null; @@ -157,6 +164,8 @@ public boolean hasNormalizedBoundingBox() { * * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox normalized_bounding_box = 1; * + * + * @return The normalizedBoundingBox. */ public com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox getNormalizedBoundingBox() { @@ -190,6 +199,8 @@ public boolean hasNormalizedBoundingBox() { * * * .google.protobuf.Duration time_offset = 2; + * + * @return Whether the timeOffset field is set. */ public boolean hasTimeOffset() { return timeOffset_ != null; @@ -202,6 +213,8 @@ public boolean hasTimeOffset() { * * * .google.protobuf.Duration time_offset = 2; + * + * @return The timeOffset. */ public com.google.protobuf.Duration getTimeOffset() { return timeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeOffset_; @@ -601,6 +614,8 @@ public Builder mergeFrom( * * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox normalized_bounding_box = 1; * + * + * @return Whether the normalizedBoundingBox field is set. */ public boolean hasNormalizedBoundingBox() { return normalizedBoundingBoxBuilder_ != null || normalizedBoundingBox_ != null; @@ -615,6 +630,8 @@ public boolean hasNormalizedBoundingBox() { * * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox normalized_bounding_box = 1; * + * + * @return The normalizedBoundingBox. */ public com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox getNormalizedBoundingBox() { @@ -808,6 +825,8 @@ public Builder clearNormalizedBoundingBox() { * * * .google.protobuf.Duration time_offset = 2; + * + * @return Whether the timeOffset field is set. */ public boolean hasTimeOffset() { return timeOffsetBuilder_ != null || timeOffset_ != null; @@ -820,6 +839,8 @@ public boolean hasTimeOffset() { * * * .google.protobuf.Duration time_offset = 2; + * + * @return The timeOffset. */ public com.google.protobuf.Duration getTimeOffset() { if (timeOffsetBuilder_ == null) { diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ObjectTrackingFrameOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ObjectTrackingFrameOrBuilder.java index d4f869de9..bf7bebfe3 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ObjectTrackingFrameOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ObjectTrackingFrameOrBuilder.java @@ -33,6 +33,8 @@ public interface ObjectTrackingFrameOrBuilder * * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox normalized_bounding_box = 1; * + * + * @return Whether the normalizedBoundingBox field is set. */ boolean hasNormalizedBoundingBox(); /** @@ -45,6 +47,8 @@ public interface ObjectTrackingFrameOrBuilder * * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox normalized_bounding_box = 1; * + * + * @return The normalizedBoundingBox. */ com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox getNormalizedBoundingBox(); /** @@ -69,6 +73,8 @@ public interface ObjectTrackingFrameOrBuilder * * * .google.protobuf.Duration time_offset = 2; + * + * @return Whether the timeOffset field is set. */ boolean hasTimeOffset(); /** @@ -79,6 +85,8 @@ public interface ObjectTrackingFrameOrBuilder * * * .google.protobuf.Duration time_offset = 2; + * + * @return The timeOffset. */ com.google.protobuf.Duration getTimeOffset(); /** diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ShotChangeDetectionConfig.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ShotChangeDetectionConfig.java index 4c807adcb..0b07e9cb6 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ShotChangeDetectionConfig.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ShotChangeDetectionConfig.java @@ -41,6 +41,12 @@ private ShotChangeDetectionConfig() { model_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ShotChangeDetectionConfig(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private ShotChangeDetectionConfig( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -118,6 +123,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string model = 1; + * + * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; @@ -140,6 +147,8 @@ public java.lang.String getModel() { * * * string model = 1; + * + * @return The bytes for model. */ public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; @@ -492,6 +501,8 @@ public Builder mergeFrom( * * * string model = 1; + * + * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; @@ -514,6 +525,8 @@ public java.lang.String getModel() { * * * string model = 1; + * + * @return The bytes for model. */ public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; @@ -536,6 +549,9 @@ public com.google.protobuf.ByteString getModelBytes() { * * * string model = 1; + * + * @param value The model to set. + * @return This builder for chaining. */ public Builder setModel(java.lang.String value) { if (value == null) { @@ -556,6 +572,8 @@ public Builder setModel(java.lang.String value) { * * * string model = 1; + * + * @return This builder for chaining. */ public Builder clearModel() { @@ -573,6 +591,9 @@ public Builder clearModel() { * * * string model = 1; + * + * @param value The bytes for model to set. + * @return This builder for chaining. */ public Builder setModelBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ShotChangeDetectionConfigOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ShotChangeDetectionConfigOrBuilder.java index a2a1e3110..903e5fc05 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ShotChangeDetectionConfigOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ShotChangeDetectionConfigOrBuilder.java @@ -33,6 +33,8 @@ public interface ShotChangeDetectionConfigOrBuilder * * * string model = 1; + * + * @return The model. */ java.lang.String getModel(); /** @@ -45,6 +47,8 @@ public interface ShotChangeDetectionConfigOrBuilder * * * string model = 1; + * + * @return The bytes for model. */ com.google.protobuf.ByteString getModelBytes(); } diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechContext.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechContext.java index afa19a71a..9f4c6442f 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechContext.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechContext.java @@ -42,6 +42,12 @@ private SpeechContext() { phrases_ = com.google.protobuf.LazyStringArrayList.EMPTY; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SpeechContext(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -128,6 +134,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the phrases. */ public com.google.protobuf.ProtocolStringList getPhrasesList() { return phrases_; @@ -145,6 +153,8 @@ public com.google.protobuf.ProtocolStringList getPhrasesList() { * * * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of phrases. */ public int getPhrasesCount() { return phrases_.size(); @@ -162,6 +172,9 @@ public int getPhrasesCount() { * * * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The phrases at the given index. */ public java.lang.String getPhrases(int index) { return phrases_.get(index); @@ -179,6 +192,9 @@ public java.lang.String getPhrases(int index) { * * * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the phrases at the given index. */ public com.google.protobuf.ByteString getPhrasesBytes(int index) { return phrases_.getByteString(index); @@ -546,6 +562,8 @@ private void ensurePhrasesIsMutable() { * * * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the phrases. */ public com.google.protobuf.ProtocolStringList getPhrasesList() { return phrases_.getUnmodifiableView(); @@ -563,6 +581,8 @@ public com.google.protobuf.ProtocolStringList getPhrasesList() { * * * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of phrases. */ public int getPhrasesCount() { return phrases_.size(); @@ -580,6 +600,9 @@ public int getPhrasesCount() { * * * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The phrases at the given index. */ public java.lang.String getPhrases(int index) { return phrases_.get(index); @@ -597,6 +620,9 @@ public java.lang.String getPhrases(int index) { * * * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the phrases at the given index. */ public com.google.protobuf.ByteString getPhrasesBytes(int index) { return phrases_.getByteString(index); @@ -614,6 +640,10 @@ public com.google.protobuf.ByteString getPhrasesBytes(int index) { * * * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The phrases to set. + * @return This builder for chaining. */ public Builder setPhrases(int index, java.lang.String value) { if (value == null) { @@ -637,6 +667,9 @@ public Builder setPhrases(int index, java.lang.String value) { * * * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The phrases to add. + * @return This builder for chaining. */ public Builder addPhrases(java.lang.String value) { if (value == null) { @@ -660,6 +693,9 @@ public Builder addPhrases(java.lang.String value) { * * * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The phrases to add. + * @return This builder for chaining. */ public Builder addAllPhrases(java.lang.Iterable values) { ensurePhrasesIsMutable(); @@ -680,6 +716,8 @@ public Builder addAllPhrases(java.lang.Iterable values) { * * * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. */ public Builder clearPhrases() { phrases_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -700,6 +738,9 @@ public Builder clearPhrases() { * * * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the phrases to add. + * @return This builder for chaining. */ public Builder addPhrasesBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechContextOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechContextOrBuilder.java index 0f049d985..1f7d8f835 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechContextOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechContextOrBuilder.java @@ -36,6 +36,8 @@ public interface SpeechContextOrBuilder * * * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the phrases. */ java.util.List getPhrasesList(); /** @@ -51,6 +53,8 @@ public interface SpeechContextOrBuilder * * * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of phrases. */ int getPhrasesCount(); /** @@ -66,6 +70,9 @@ public interface SpeechContextOrBuilder * * * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The phrases at the given index. */ java.lang.String getPhrases(int index); /** @@ -81,6 +88,9 @@ public interface SpeechContextOrBuilder * * * repeated string phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the phrases at the given index. */ com.google.protobuf.ByteString getPhrasesBytes(int index); } diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechRecognitionAlternative.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechRecognitionAlternative.java index c9243e174..20b44e553 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechRecognitionAlternative.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechRecognitionAlternative.java @@ -42,6 +42,12 @@ private SpeechRecognitionAlternative() { words_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SpeechRecognitionAlternative(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -80,11 +86,11 @@ private SpeechRecognitionAlternative( } case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { words_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p3beta1.WordInfo>(); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000001; } words_.add( input.readMessage( @@ -106,7 +112,7 @@ private SpeechRecognitionAlternative( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { words_ = java.util.Collections.unmodifiableList(words_); } this.unknownFields = unknownFields.build(); @@ -130,7 +136,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .class); } - private int bitField0_; public static final int TRANSCRIPT_FIELD_NUMBER = 1; private volatile java.lang.Object transcript_; /** @@ -141,6 +146,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string transcript = 1; + * + * @return The transcript. */ public java.lang.String getTranscript() { java.lang.Object ref = transcript_; @@ -161,6 +168,8 @@ public java.lang.String getTranscript() { * * * string transcript = 1; + * + * @return The bytes for transcript. */ public com.google.protobuf.ByteString getTranscriptBytes() { java.lang.Object ref = transcript_; @@ -189,6 +198,8 @@ public com.google.protobuf.ByteString getTranscriptBytes() { * * * float confidence = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The confidence. */ public float getConfidence() { return confidence_; @@ -517,7 +528,7 @@ public Builder clear() { if (wordsBuilder_ == null) { words_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } else { wordsBuilder_.clear(); } @@ -553,19 +564,17 @@ public com.google.cloud.videointelligence.v1p3beta1.SpeechRecognitionAlternative com.google.cloud.videointelligence.v1p3beta1.SpeechRecognitionAlternative result = new com.google.cloud.videointelligence.v1p3beta1.SpeechRecognitionAlternative(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.transcript_ = transcript_; result.confidence_ = confidence_; if (wordsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { words_ = java.util.Collections.unmodifiableList(words_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } result.words_ = words_; } else { result.words_ = wordsBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -631,7 +640,7 @@ public Builder mergeFrom( if (!other.words_.isEmpty()) { if (words_.isEmpty()) { words_ = other.words_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureWordsIsMutable(); words_.addAll(other.words_); @@ -644,7 +653,7 @@ public Builder mergeFrom( wordsBuilder_.dispose(); wordsBuilder_ = null; words_ = other.words_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); wordsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getWordsFieldBuilder() @@ -697,6 +706,8 @@ public Builder mergeFrom( * * * string transcript = 1; + * + * @return The transcript. */ public java.lang.String getTranscript() { java.lang.Object ref = transcript_; @@ -717,6 +728,8 @@ public java.lang.String getTranscript() { * * * string transcript = 1; + * + * @return The bytes for transcript. */ public com.google.protobuf.ByteString getTranscriptBytes() { java.lang.Object ref = transcript_; @@ -737,6 +750,9 @@ public com.google.protobuf.ByteString getTranscriptBytes() { * * * string transcript = 1; + * + * @param value The transcript to set. + * @return This builder for chaining. */ public Builder setTranscript(java.lang.String value) { if (value == null) { @@ -755,6 +771,8 @@ public Builder setTranscript(java.lang.String value) { * * * string transcript = 1; + * + * @return This builder for chaining. */ public Builder clearTranscript() { @@ -770,6 +788,9 @@ public Builder clearTranscript() { * * * string transcript = 1; + * + * @param value The bytes for transcript to set. + * @return This builder for chaining. */ public Builder setTranscriptBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -796,6 +817,8 @@ public Builder setTranscriptBytes(com.google.protobuf.ByteString value) { * * * float confidence = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The confidence. */ public float getConfidence() { return confidence_; @@ -813,6 +836,9 @@ public float getConfidence() { * * * float confidence = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The confidence to set. + * @return This builder for chaining. */ public Builder setConfidence(float value) { @@ -833,6 +859,8 @@ public Builder setConfidence(float value) { * * * float confidence = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. */ public Builder clearConfidence() { @@ -845,10 +873,10 @@ public Builder clearConfidence() { java.util.Collections.emptyList(); private void ensureWordsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { words_ = new java.util.ArrayList(words_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; } } @@ -1111,7 +1139,7 @@ public Builder addAllWords( public Builder clearWords() { if (wordsBuilder_ == null) { words_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { wordsBuilder_.clear(); @@ -1265,7 +1293,7 @@ public com.google.cloud.videointelligence.v1p3beta1.WordInfo.Builder addWordsBui com.google.cloud.videointelligence.v1p3beta1.WordInfo, com.google.cloud.videointelligence.v1p3beta1.WordInfo.Builder, com.google.cloud.videointelligence.v1p3beta1.WordInfoOrBuilder>( - words_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + words_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); words_ = null; } return wordsBuilder_; diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechRecognitionAlternativeOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechRecognitionAlternativeOrBuilder.java index bc97b6237..152fccdcb 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechRecognitionAlternativeOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechRecognitionAlternativeOrBuilder.java @@ -31,6 +31,8 @@ public interface SpeechRecognitionAlternativeOrBuilder * * * string transcript = 1; + * + * @return The transcript. */ java.lang.String getTranscript(); /** @@ -41,6 +43,8 @@ public interface SpeechRecognitionAlternativeOrBuilder * * * string transcript = 1; + * + * @return The bytes for transcript. */ com.google.protobuf.ByteString getTranscriptBytes(); @@ -57,6 +61,8 @@ public interface SpeechRecognitionAlternativeOrBuilder * * * float confidence = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The confidence. */ float getConfidence(); diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechTranscription.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechTranscription.java index c293ee478..c4486e49c 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechTranscription.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechTranscription.java @@ -42,6 +42,12 @@ private SpeechTranscription() { languageCode_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SpeechTranscription(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -126,7 +132,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.videointelligence.v1p3beta1.SpeechTranscription.Builder.class); } - private int bitField0_; public static final int ALTERNATIVES_FIELD_NUMBER = 1; private java.util.List alternatives_; @@ -234,6 +239,8 @@ public com.google.cloud.videointelligence.v1p3beta1.SpeechRecognitionAlternative * * * string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; @@ -256,6 +263,8 @@ public java.lang.String getLanguageCode() { * * * string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for languageCode. */ public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; @@ -524,7 +533,6 @@ public com.google.cloud.videointelligence.v1p3beta1.SpeechTranscription buildPar com.google.cloud.videointelligence.v1p3beta1.SpeechTranscription result = new com.google.cloud.videointelligence.v1p3beta1.SpeechTranscription(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (alternativesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { alternatives_ = java.util.Collections.unmodifiableList(alternatives_); @@ -535,7 +543,6 @@ public com.google.cloud.videointelligence.v1p3beta1.SpeechTranscription buildPar result.alternatives_ = alternativesBuilder_.build(); } result.languageCode_ = languageCode_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -1133,6 +1140,8 @@ public Builder removeAlternatives(int index) { * * * string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; @@ -1155,6 +1164,8 @@ public java.lang.String getLanguageCode() { * * * string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for languageCode. */ public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; @@ -1177,6 +1188,9 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { * * * string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The languageCode to set. + * @return This builder for chaining. */ public Builder setLanguageCode(java.lang.String value) { if (value == null) { @@ -1197,6 +1211,8 @@ public Builder setLanguageCode(java.lang.String value) { * * * string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -1214,6 +1230,9 @@ public Builder clearLanguageCode() { * * * string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for languageCode to set. + * @return This builder for chaining. */ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechTranscriptionConfig.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechTranscriptionConfig.java index 2c47be5a6..2e43b0ab8 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechTranscriptionConfig.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechTranscriptionConfig.java @@ -43,6 +43,12 @@ private SpeechTranscriptionConfig() { audioTracks_ = emptyIntList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SpeechTranscriptionConfig(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -86,11 +92,11 @@ private SpeechTranscriptionConfig( } case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { speechContexts_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p3beta1.SpeechContext>(); - mutable_bitField0_ |= 0x00000008; + mutable_bitField0_ |= 0x00000001; } speechContexts_.add( input.readMessage( @@ -105,9 +111,9 @@ private SpeechTranscriptionConfig( } case 48: { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { audioTracks_ = newIntList(); - mutable_bitField0_ |= 0x00000020; + mutable_bitField0_ |= 0x00000002; } audioTracks_.addInt(input.readInt32()); break; @@ -116,9 +122,9 @@ private SpeechTranscriptionConfig( { int length = input.readRawVarint32(); int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000020) != 0) && input.getBytesUntilLimit() > 0) { + if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { audioTracks_ = newIntList(); - mutable_bitField0_ |= 0x00000020; + mutable_bitField0_ |= 0x00000002; } while (input.getBytesUntilLimit() > 0) { audioTracks_.addInt(input.readInt32()); @@ -155,10 +161,10 @@ private SpeechTranscriptionConfig( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000008) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { speechContexts_ = java.util.Collections.unmodifiableList(speechContexts_); } - if (((mutable_bitField0_ & 0x00000020) != 0)) { + if (((mutable_bitField0_ & 0x00000002) != 0)) { audioTracks_.makeImmutable(); // C } this.unknownFields = unknownFields.build(); @@ -181,7 +187,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfig.Builder.class); } - private int bitField0_; public static final int LANGUAGE_CODE_FIELD_NUMBER = 1; private volatile java.lang.Object languageCode_; /** @@ -196,6 +201,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; @@ -220,6 +227,8 @@ public java.lang.String getLanguageCode() { * * * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for languageCode. */ public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; @@ -247,6 +256,8 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { * * * int32 max_alternatives = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxAlternatives. */ public int getMaxAlternatives() { return maxAlternatives_; @@ -265,6 +276,8 @@ public int getMaxAlternatives() { * * * bool filter_profanity = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filterProfanity. */ public boolean getFilterProfanity() { return filterProfanity_; @@ -363,6 +376,8 @@ public com.google.cloud.videointelligence.v1p3beta1.SpeechContext getSpeechConte * * * bool enable_automatic_punctuation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableAutomaticPunctuation. */ public boolean getEnableAutomaticPunctuation() { return enableAutomaticPunctuation_; @@ -379,6 +394,8 @@ public boolean getEnableAutomaticPunctuation() { * * * repeated int32 audio_tracks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the audioTracks. */ public java.util.List getAudioTracksList() { return audioTracks_; @@ -392,6 +409,8 @@ public java.util.List getAudioTracksList() { * * * repeated int32 audio_tracks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of audioTracks. */ public int getAudioTracksCount() { return audioTracks_.size(); @@ -405,6 +424,9 @@ public int getAudioTracksCount() { * * * repeated int32 audio_tracks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The audioTracks at the given index. */ public int getAudioTracks(int index) { return audioTracks_.getInt(index); @@ -428,6 +450,8 @@ public int getAudioTracks(int index) { * * * bool enable_speaker_diarization = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableSpeakerDiarization. */ public boolean getEnableSpeakerDiarization() { return enableSpeakerDiarization_; @@ -445,6 +469,8 @@ public boolean getEnableSpeakerDiarization() { * * * int32 diarization_speaker_count = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The diarizationSpeakerCount. */ public int getDiarizationSpeakerCount() { return diarizationSpeakerCount_; @@ -462,6 +488,8 @@ public int getDiarizationSpeakerCount() { * * * bool enable_word_confidence = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableWordConfidence. */ public boolean getEnableWordConfidence() { return enableWordConfidence_; @@ -775,14 +803,14 @@ public Builder clear() { if (speechContextsBuilder_ == null) { speechContexts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000001); } else { speechContextsBuilder_.clear(); } enableAutomaticPunctuation_ = false; audioTracks_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000002); enableSpeakerDiarization_ = false; diarizationSpeakerCount_ = 0; @@ -820,29 +848,27 @@ public com.google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfig bu com.google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfig result = new com.google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfig(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.languageCode_ = languageCode_; result.maxAlternatives_ = maxAlternatives_; result.filterProfanity_ = filterProfanity_; if (speechContextsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { speechContexts_ = java.util.Collections.unmodifiableList(speechContexts_); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000001); } result.speechContexts_ = speechContexts_; } else { result.speechContexts_ = speechContextsBuilder_.build(); } result.enableAutomaticPunctuation_ = enableAutomaticPunctuation_; - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { audioTracks_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000002); } result.audioTracks_ = audioTracks_; result.enableSpeakerDiarization_ = enableSpeakerDiarization_; result.diarizationSpeakerCount_ = diarizationSpeakerCount_; result.enableWordConfidence_ = enableWordConfidence_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -910,7 +936,7 @@ public Builder mergeFrom( if (!other.speechContexts_.isEmpty()) { if (speechContexts_.isEmpty()) { speechContexts_ = other.speechContexts_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSpeechContextsIsMutable(); speechContexts_.addAll(other.speechContexts_); @@ -923,7 +949,7 @@ public Builder mergeFrom( speechContextsBuilder_.dispose(); speechContextsBuilder_ = null; speechContexts_ = other.speechContexts_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000001); speechContextsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSpeechContextsFieldBuilder() @@ -939,7 +965,7 @@ public Builder mergeFrom( if (!other.audioTracks_.isEmpty()) { if (audioTracks_.isEmpty()) { audioTracks_ = other.audioTracks_; - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureAudioTracksIsMutable(); audioTracks_.addAll(other.audioTracks_); @@ -1001,6 +1027,8 @@ public Builder mergeFrom( * * * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; @@ -1025,6 +1053,8 @@ public java.lang.String getLanguageCode() { * * * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for languageCode. */ public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; @@ -1049,6 +1079,9 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { * * * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The languageCode to set. + * @return This builder for chaining. */ public Builder setLanguageCode(java.lang.String value) { if (value == null) { @@ -1071,6 +1104,8 @@ public Builder setLanguageCode(java.lang.String value) { * * * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -1090,6 +1125,9 @@ public Builder clearLanguageCode() { * * * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for languageCode to set. + * @return This builder for chaining. */ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1115,6 +1153,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { * * * int32 max_alternatives = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxAlternatives. */ public int getMaxAlternatives() { return maxAlternatives_; @@ -1131,6 +1171,9 @@ public int getMaxAlternatives() { * * * int32 max_alternatives = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The maxAlternatives to set. + * @return This builder for chaining. */ public Builder setMaxAlternatives(int value) { @@ -1150,6 +1193,8 @@ public Builder setMaxAlternatives(int value) { * * * int32 max_alternatives = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. */ public Builder clearMaxAlternatives() { @@ -1170,6 +1215,8 @@ public Builder clearMaxAlternatives() { * * * bool filter_profanity = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filterProfanity. */ public boolean getFilterProfanity() { return filterProfanity_; @@ -1185,6 +1232,9 @@ public boolean getFilterProfanity() { * * * bool filter_profanity = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filterProfanity to set. + * @return This builder for chaining. */ public Builder setFilterProfanity(boolean value) { @@ -1203,6 +1253,8 @@ public Builder setFilterProfanity(boolean value) { * * * bool filter_profanity = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. */ public Builder clearFilterProfanity() { @@ -1215,11 +1267,11 @@ public Builder clearFilterProfanity() { speechContexts_ = java.util.Collections.emptyList(); private void ensureSpeechContextsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { speechContexts_ = new java.util.ArrayList( speechContexts_); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000001; } } @@ -1464,7 +1516,7 @@ public Builder addAllSpeechContexts( public Builder clearSpeechContexts() { if (speechContextsBuilder_ == null) { speechContexts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { speechContextsBuilder_.clear(); @@ -1609,7 +1661,7 @@ public Builder removeSpeechContexts(int index) { com.google.cloud.videointelligence.v1p3beta1.SpeechContext.Builder, com.google.cloud.videointelligence.v1p3beta1.SpeechContextOrBuilder>( speechContexts_, - ((bitField0_ & 0x00000008) != 0), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); speechContexts_ = null; @@ -1631,6 +1683,8 @@ public Builder removeSpeechContexts(int index) { * * * bool enable_automatic_punctuation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableAutomaticPunctuation. */ public boolean getEnableAutomaticPunctuation() { return enableAutomaticPunctuation_; @@ -1648,6 +1702,9 @@ public boolean getEnableAutomaticPunctuation() { * * * bool enable_automatic_punctuation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enableAutomaticPunctuation to set. + * @return This builder for chaining. */ public Builder setEnableAutomaticPunctuation(boolean value) { @@ -1668,6 +1725,8 @@ public Builder setEnableAutomaticPunctuation(boolean value) { * * * bool enable_automatic_punctuation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. */ public Builder clearEnableAutomaticPunctuation() { @@ -1679,9 +1738,9 @@ public Builder clearEnableAutomaticPunctuation() { private com.google.protobuf.Internal.IntList audioTracks_ = emptyIntList(); private void ensureAudioTracksIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { audioTracks_ = mutableCopy(audioTracks_); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000002; } } /** @@ -1693,9 +1752,11 @@ private void ensureAudioTracksIsMutable() { * * * repeated int32 audio_tracks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the audioTracks. */ public java.util.List getAudioTracksList() { - return ((bitField0_ & 0x00000020) != 0) + return ((bitField0_ & 0x00000002) != 0) ? java.util.Collections.unmodifiableList(audioTracks_) : audioTracks_; } @@ -1708,6 +1769,8 @@ public java.util.List getAudioTracksList() { * * * repeated int32 audio_tracks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of audioTracks. */ public int getAudioTracksCount() { return audioTracks_.size(); @@ -1721,6 +1784,9 @@ public int getAudioTracksCount() { * * * repeated int32 audio_tracks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The audioTracks at the given index. */ public int getAudioTracks(int index) { return audioTracks_.getInt(index); @@ -1734,6 +1800,10 @@ public int getAudioTracks(int index) { * * * repeated int32 audio_tracks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The audioTracks to set. + * @return This builder for chaining. */ public Builder setAudioTracks(int index, int value) { ensureAudioTracksIsMutable(); @@ -1750,6 +1820,9 @@ public Builder setAudioTracks(int index, int value) { * * * repeated int32 audio_tracks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The audioTracks to add. + * @return This builder for chaining. */ public Builder addAudioTracks(int value) { ensureAudioTracksIsMutable(); @@ -1766,6 +1839,9 @@ public Builder addAudioTracks(int value) { * * * repeated int32 audio_tracks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The audioTracks to add. + * @return This builder for chaining. */ public Builder addAllAudioTracks(java.lang.Iterable values) { ensureAudioTracksIsMutable(); @@ -1782,10 +1858,12 @@ public Builder addAllAudioTracks(java.lang.Iterable * * * repeated int32 audio_tracks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. */ public Builder clearAudioTracks() { audioTracks_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1805,6 +1883,8 @@ public Builder clearAudioTracks() { * * * bool enable_speaker_diarization = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableSpeakerDiarization. */ public boolean getEnableSpeakerDiarization() { return enableSpeakerDiarization_; @@ -1823,6 +1903,9 @@ public boolean getEnableSpeakerDiarization() { * * * bool enable_speaker_diarization = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enableSpeakerDiarization to set. + * @return This builder for chaining. */ public Builder setEnableSpeakerDiarization(boolean value) { @@ -1844,6 +1927,8 @@ public Builder setEnableSpeakerDiarization(boolean value) { * * * bool enable_speaker_diarization = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. */ public Builder clearEnableSpeakerDiarization() { @@ -1863,6 +1948,8 @@ public Builder clearEnableSpeakerDiarization() { * * * int32 diarization_speaker_count = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The diarizationSpeakerCount. */ public int getDiarizationSpeakerCount() { return diarizationSpeakerCount_; @@ -1877,6 +1964,9 @@ public int getDiarizationSpeakerCount() { * * * int32 diarization_speaker_count = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The diarizationSpeakerCount to set. + * @return This builder for chaining. */ public Builder setDiarizationSpeakerCount(int value) { @@ -1894,6 +1984,8 @@ public Builder setDiarizationSpeakerCount(int value) { * * * int32 diarization_speaker_count = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. */ public Builder clearDiarizationSpeakerCount() { @@ -1913,6 +2005,8 @@ public Builder clearDiarizationSpeakerCount() { * * * bool enable_word_confidence = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableWordConfidence. */ public boolean getEnableWordConfidence() { return enableWordConfidence_; @@ -1927,6 +2021,9 @@ public boolean getEnableWordConfidence() { * * * bool enable_word_confidence = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enableWordConfidence to set. + * @return This builder for chaining. */ public Builder setEnableWordConfidence(boolean value) { @@ -1944,6 +2041,8 @@ public Builder setEnableWordConfidence(boolean value) { * * * bool enable_word_confidence = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. */ public Builder clearEnableWordConfidence() { diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechTranscriptionConfigOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechTranscriptionConfigOrBuilder.java index f52f167d3..f37389be4 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechTranscriptionConfigOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechTranscriptionConfigOrBuilder.java @@ -35,6 +35,8 @@ public interface SpeechTranscriptionConfigOrBuilder * * * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The languageCode. */ java.lang.String getLanguageCode(); /** @@ -49,6 +51,8 @@ public interface SpeechTranscriptionConfigOrBuilder * * * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for languageCode. */ com.google.protobuf.ByteString getLanguageCodeBytes(); @@ -64,6 +68,8 @@ public interface SpeechTranscriptionConfigOrBuilder * * * int32 max_alternatives = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxAlternatives. */ int getMaxAlternatives(); @@ -78,6 +84,8 @@ public interface SpeechTranscriptionConfigOrBuilder * * * bool filter_profanity = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filterProfanity. */ boolean getFilterProfanity(); @@ -158,6 +166,8 @@ com.google.cloud.videointelligence.v1p3beta1.SpeechContextOrBuilder getSpeechCon * * * bool enable_automatic_punctuation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableAutomaticPunctuation. */ boolean getEnableAutomaticPunctuation(); @@ -170,6 +180,8 @@ com.google.cloud.videointelligence.v1p3beta1.SpeechContextOrBuilder getSpeechCon * * * repeated int32 audio_tracks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the audioTracks. */ java.util.List getAudioTracksList(); /** @@ -181,6 +193,8 @@ com.google.cloud.videointelligence.v1p3beta1.SpeechContextOrBuilder getSpeechCon * * * repeated int32 audio_tracks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of audioTracks. */ int getAudioTracksCount(); /** @@ -192,6 +206,9 @@ com.google.cloud.videointelligence.v1p3beta1.SpeechContextOrBuilder getSpeechCon * * * repeated int32 audio_tracks = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The audioTracks at the given index. */ int getAudioTracks(int index); @@ -209,6 +226,8 @@ com.google.cloud.videointelligence.v1p3beta1.SpeechContextOrBuilder getSpeechCon * * * bool enable_speaker_diarization = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableSpeakerDiarization. */ boolean getEnableSpeakerDiarization(); @@ -222,6 +241,8 @@ com.google.cloud.videointelligence.v1p3beta1.SpeechContextOrBuilder getSpeechCon * * * int32 diarization_speaker_count = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The diarizationSpeakerCount. */ int getDiarizationSpeakerCount(); @@ -235,6 +256,8 @@ com.google.cloud.videointelligence.v1p3beta1.SpeechContextOrBuilder getSpeechCon * * * bool enable_word_confidence = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableWordConfidence. */ boolean getEnableWordConfidence(); } diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechTranscriptionOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechTranscriptionOrBuilder.java index 1960c8a4c..47f04d98b 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechTranscriptionOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/SpeechTranscriptionOrBuilder.java @@ -115,6 +115,8 @@ com.google.cloud.videointelligence.v1p3beta1.SpeechRecognitionAlternative getAlt * * * string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The languageCode. */ java.lang.String getLanguageCode(); /** @@ -127,6 +129,8 @@ com.google.cloud.videointelligence.v1p3beta1.SpeechRecognitionAlternative getAlt * * * string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for languageCode. */ com.google.protobuf.ByteString getLanguageCodeBytes(); } diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAnnotateVideoRequest.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAnnotateVideoRequest.java index a90549e68..98f17d2a1 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAnnotateVideoRequest.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAnnotateVideoRequest.java @@ -42,6 +42,12 @@ private StreamingAnnotateVideoRequest(com.google.protobuf.GeneratedMessageV3.Bui private StreamingAnnotateVideoRequest() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StreamingAnnotateVideoRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -55,7 +61,6 @@ private StreamingAnnotateVideoRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -133,7 +138,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { private int streamingRequestCase_ = 0; private java.lang.Object streamingRequest_; - public enum StreamingRequestCase implements com.google.protobuf.Internal.EnumLite { + public enum StreamingRequestCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { VIDEO_CONFIG(1), INPUT_CONTENT(2), STREAMINGREQUEST_NOT_SET(0); @@ -142,7 +150,11 @@ public enum StreamingRequestCase implements com.google.protobuf.Internal.EnumLit private StreamingRequestCase(int value) { this.value = value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ @java.lang.Deprecated public static StreamingRequestCase valueOf(int value) { return forNumber(value); @@ -181,6 +193,8 @@ public StreamingRequestCase getStreamingRequestCase() { * * * .google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig video_config = 1; + * + * @return Whether the videoConfig field is set. */ public boolean hasVideoConfig() { return streamingRequestCase_ == 1; @@ -195,6 +209,8 @@ public boolean hasVideoConfig() { * * * .google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig video_config = 1; + * + * @return The videoConfig. */ public com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig getVideoConfig() { if (streamingRequestCase_ == 1) { @@ -236,6 +252,8 @@ public com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig getVide * * * bytes input_content = 2; + * + * @return The inputContent. */ public com.google.protobuf.ByteString getInputContent() { if (streamingRequestCase_ == 2) { @@ -669,6 +687,8 @@ public Builder clearStreamingRequest() { * * * .google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig video_config = 1; + * + * @return Whether the videoConfig field is set. */ public boolean hasVideoConfig() { return streamingRequestCase_ == 1; @@ -683,6 +703,8 @@ public boolean hasVideoConfig() { * * * .google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig video_config = 1; + * + * @return The videoConfig. */ public com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig getVideoConfig() { if (videoConfigBuilder_ == null) { @@ -903,6 +925,8 @@ public Builder clearVideoConfig() { * * * bytes input_content = 2; + * + * @return The inputContent. */ public com.google.protobuf.ByteString getInputContent() { if (streamingRequestCase_ == 2) { @@ -924,6 +948,9 @@ public com.google.protobuf.ByteString getInputContent() { * * * bytes input_content = 2; + * + * @param value The inputContent to set. + * @return This builder for chaining. */ public Builder setInputContent(com.google.protobuf.ByteString value) { if (value == null) { @@ -948,6 +975,8 @@ public Builder setInputContent(com.google.protobuf.ByteString value) { * * * bytes input_content = 2; + * + * @return This builder for chaining. */ public Builder clearInputContent() { if (streamingRequestCase_ == 2) { diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAnnotateVideoRequestOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAnnotateVideoRequestOrBuilder.java index 163812f65..22b5fec7a 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAnnotateVideoRequestOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAnnotateVideoRequestOrBuilder.java @@ -33,6 +33,8 @@ public interface StreamingAnnotateVideoRequestOrBuilder * * * .google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig video_config = 1; + * + * @return Whether the videoConfig field is set. */ boolean hasVideoConfig(); /** @@ -45,6 +47,8 @@ public interface StreamingAnnotateVideoRequestOrBuilder * * * .google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig video_config = 1; + * + * @return The videoConfig. */ com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig getVideoConfig(); /** @@ -75,6 +79,8 @@ public interface StreamingAnnotateVideoRequestOrBuilder * * * bytes input_content = 2; + * + * @return The inputContent. */ com.google.protobuf.ByteString getInputContent(); diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAnnotateVideoResponse.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAnnotateVideoResponse.java index 28c587f6f..abd19af46 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAnnotateVideoResponse.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAnnotateVideoResponse.java @@ -44,6 +44,12 @@ private StreamingAnnotateVideoResponse() { annotationResultsUri_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StreamingAnnotateVideoResponse(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -57,7 +63,6 @@ private StreamingAnnotateVideoResponse( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -154,6 +159,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.rpc.Status error = 1; + * + * @return Whether the error field is set. */ public boolean hasError() { return error_ != null; @@ -167,6 +174,8 @@ public boolean hasError() { * * * .google.rpc.Status error = 1; + * + * @return The error. */ public com.google.rpc.Status getError() { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; @@ -198,6 +207,8 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { * * .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2; * + * + * @return Whether the annotationResults field is set. */ public boolean hasAnnotationResults() { return annotationResults_ != null; @@ -212,6 +223,8 @@ public boolean hasAnnotationResults() { * * .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2; * + * + * @return The annotationResults. */ public com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults getAnnotationResults() { @@ -249,6 +262,8 @@ public boolean hasAnnotationResults() { * * * string annotation_results_uri = 3; + * + * @return The annotationResultsUri. */ public java.lang.String getAnnotationResultsUri() { java.lang.Object ref = annotationResultsUri_; @@ -272,6 +287,8 @@ public java.lang.String getAnnotationResultsUri() { * * * string annotation_results_uri = 3; + * + * @return The bytes for annotationResultsUri. */ public com.google.protobuf.ByteString getAnnotationResultsUriBytes() { java.lang.Object ref = annotationResultsUri_; @@ -694,6 +711,8 @@ public Builder mergeFrom( * * * .google.rpc.Status error = 1; + * + * @return Whether the error field is set. */ public boolean hasError() { return errorBuilder_ != null || error_ != null; @@ -707,6 +726,8 @@ public boolean hasError() { * * * .google.rpc.Status error = 1; + * + * @return The error. */ public com.google.rpc.Status getError() { if (errorBuilder_ == null) { @@ -876,6 +897,8 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { * * .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2; * + * + * @return Whether the annotationResults field is set. */ public boolean hasAnnotationResults() { return annotationResultsBuilder_ != null || annotationResults_ != null; @@ -890,6 +913,8 @@ public boolean hasAnnotationResults() { * * .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2; * + * + * @return The annotationResults. */ public com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults getAnnotationResults() { @@ -1083,6 +1108,8 @@ public Builder clearAnnotationResults() { * * * string annotation_results_uri = 3; + * + * @return The annotationResultsUri. */ public java.lang.String getAnnotationResultsUri() { java.lang.Object ref = annotationResultsUri_; @@ -1106,6 +1133,8 @@ public java.lang.String getAnnotationResultsUri() { * * * string annotation_results_uri = 3; + * + * @return The bytes for annotationResultsUri. */ public com.google.protobuf.ByteString getAnnotationResultsUriBytes() { java.lang.Object ref = annotationResultsUri_; @@ -1129,6 +1158,9 @@ public com.google.protobuf.ByteString getAnnotationResultsUriBytes() { * * * string annotation_results_uri = 3; + * + * @param value The annotationResultsUri to set. + * @return This builder for chaining. */ public Builder setAnnotationResultsUri(java.lang.String value) { if (value == null) { @@ -1150,6 +1182,8 @@ public Builder setAnnotationResultsUri(java.lang.String value) { * * * string annotation_results_uri = 3; + * + * @return This builder for chaining. */ public Builder clearAnnotationResultsUri() { @@ -1168,6 +1202,9 @@ public Builder clearAnnotationResultsUri() { * * * string annotation_results_uri = 3; + * + * @param value The bytes for annotationResultsUri to set. + * @return This builder for chaining. */ public Builder setAnnotationResultsUriBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAnnotateVideoResponseOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAnnotateVideoResponseOrBuilder.java index a3fcee4ca..e546ef30f 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAnnotateVideoResponseOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAnnotateVideoResponseOrBuilder.java @@ -32,6 +32,8 @@ public interface StreamingAnnotateVideoResponseOrBuilder * * * .google.rpc.Status error = 1; + * + * @return Whether the error field is set. */ boolean hasError(); /** @@ -43,6 +45,8 @@ public interface StreamingAnnotateVideoResponseOrBuilder * * * .google.rpc.Status error = 1; + * + * @return The error. */ com.google.rpc.Status getError(); /** @@ -67,6 +71,8 @@ public interface StreamingAnnotateVideoResponseOrBuilder * * .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2; * + * + * @return Whether the annotationResults field is set. */ boolean hasAnnotationResults(); /** @@ -79,6 +85,8 @@ public interface StreamingAnnotateVideoResponseOrBuilder * * .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2; * + * + * @return The annotationResults. */ com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults getAnnotationResults(); @@ -107,6 +115,8 @@ public interface StreamingAnnotateVideoResponseOrBuilder * * * string annotation_results_uri = 3; + * + * @return The annotationResultsUri. */ java.lang.String getAnnotationResultsUri(); /** @@ -120,6 +130,8 @@ public interface StreamingAnnotateVideoResponseOrBuilder * * * string annotation_results_uri = 3; + * + * @return The bytes for annotationResultsUri. */ com.google.protobuf.ByteString getAnnotationResultsUriBytes(); } diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAutomlClassificationConfig.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAutomlClassificationConfig.java index 52cac5d9a..73a5b52a4 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAutomlClassificationConfig.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAutomlClassificationConfig.java @@ -44,6 +44,12 @@ private StreamingAutomlClassificationConfig() { modelName_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StreamingAutomlClassificationConfig(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -57,7 +63,6 @@ private StreamingAutomlClassificationConfig( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -121,6 +126,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string model_name = 1; + * + * @return The modelName. */ public java.lang.String getModelName() { java.lang.Object ref = modelName_; @@ -142,6 +149,8 @@ public java.lang.String getModelName() { * * * string model_name = 1; + * + * @return The bytes for modelName. */ public com.google.protobuf.ByteString getModelNameBytes() { java.lang.Object ref = modelName_; @@ -510,6 +519,8 @@ public Builder mergeFrom( * * * string model_name = 1; + * + * @return The modelName. */ public java.lang.String getModelName() { java.lang.Object ref = modelName_; @@ -531,6 +542,8 @@ public java.lang.String getModelName() { * * * string model_name = 1; + * + * @return The bytes for modelName. */ public com.google.protobuf.ByteString getModelNameBytes() { java.lang.Object ref = modelName_; @@ -552,6 +565,9 @@ public com.google.protobuf.ByteString getModelNameBytes() { * * * string model_name = 1; + * + * @param value The modelName to set. + * @return This builder for chaining. */ public Builder setModelName(java.lang.String value) { if (value == null) { @@ -571,6 +587,8 @@ public Builder setModelName(java.lang.String value) { * * * string model_name = 1; + * + * @return This builder for chaining. */ public Builder clearModelName() { @@ -587,6 +605,9 @@ public Builder clearModelName() { * * * string model_name = 1; + * + * @param value The bytes for modelName to set. + * @return This builder for chaining. */ public Builder setModelNameBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAutomlClassificationConfigOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAutomlClassificationConfigOrBuilder.java index b3185a130..98aed2ddb 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAutomlClassificationConfigOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAutomlClassificationConfigOrBuilder.java @@ -32,6 +32,8 @@ public interface StreamingAutomlClassificationConfigOrBuilder * * * string model_name = 1; + * + * @return The modelName. */ java.lang.String getModelName(); /** @@ -43,6 +45,8 @@ public interface StreamingAutomlClassificationConfigOrBuilder * * * string model_name = 1; + * + * @return The bytes for modelName. */ com.google.protobuf.ByteString getModelNameBytes(); } diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAutomlObjectTrackingConfig.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAutomlObjectTrackingConfig.java index fe0fd471c..16c43b206 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAutomlObjectTrackingConfig.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAutomlObjectTrackingConfig.java @@ -44,6 +44,12 @@ private StreamingAutomlObjectTrackingConfig() { modelName_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StreamingAutomlObjectTrackingConfig(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -57,7 +63,6 @@ private StreamingAutomlObjectTrackingConfig( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -121,6 +126,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string model_name = 1; + * + * @return The modelName. */ public java.lang.String getModelName() { java.lang.Object ref = modelName_; @@ -142,6 +149,8 @@ public java.lang.String getModelName() { * * * string model_name = 1; + * + * @return The bytes for modelName. */ public com.google.protobuf.ByteString getModelNameBytes() { java.lang.Object ref = modelName_; @@ -510,6 +519,8 @@ public Builder mergeFrom( * * * string model_name = 1; + * + * @return The modelName. */ public java.lang.String getModelName() { java.lang.Object ref = modelName_; @@ -531,6 +542,8 @@ public java.lang.String getModelName() { * * * string model_name = 1; + * + * @return The bytes for modelName. */ public com.google.protobuf.ByteString getModelNameBytes() { java.lang.Object ref = modelName_; @@ -552,6 +565,9 @@ public com.google.protobuf.ByteString getModelNameBytes() { * * * string model_name = 1; + * + * @param value The modelName to set. + * @return This builder for chaining. */ public Builder setModelName(java.lang.String value) { if (value == null) { @@ -571,6 +587,8 @@ public Builder setModelName(java.lang.String value) { * * * string model_name = 1; + * + * @return This builder for chaining. */ public Builder clearModelName() { @@ -587,6 +605,9 @@ public Builder clearModelName() { * * * string model_name = 1; + * + * @param value The bytes for modelName to set. + * @return This builder for chaining. */ public Builder setModelNameBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAutomlObjectTrackingConfigOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAutomlObjectTrackingConfigOrBuilder.java index 1b56793ae..d9868f081 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAutomlObjectTrackingConfigOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAutomlObjectTrackingConfigOrBuilder.java @@ -32,6 +32,8 @@ public interface StreamingAutomlObjectTrackingConfigOrBuilder * * * string model_name = 1; + * + * @return The modelName. */ java.lang.String getModelName(); /** @@ -43,6 +45,8 @@ public interface StreamingAutomlObjectTrackingConfigOrBuilder * * * string model_name = 1; + * + * @return The bytes for modelName. */ com.google.protobuf.ByteString getModelNameBytes(); } diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingExplicitContentDetectionConfig.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingExplicitContentDetectionConfig.java index 0ea1cc232..7e532830b 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingExplicitContentDetectionConfig.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingExplicitContentDetectionConfig.java @@ -42,6 +42,12 @@ private StreamingExplicitContentDetectionConfig( private StreamingExplicitContentDetectionConfig() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StreamingExplicitContentDetectionConfig(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingFeature.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingFeature.java index 19f33bb24..41e0e32e3 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingFeature.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingFeature.java @@ -180,12 +180,20 @@ public final int getNumber() { return value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ @java.lang.Deprecated public static StreamingFeature valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static StreamingFeature forNumber(int value) { switch (value) { case 0: diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingLabelDetectionConfig.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingLabelDetectionConfig.java index 63408c7f4..97774fa49 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingLabelDetectionConfig.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingLabelDetectionConfig.java @@ -39,6 +39,12 @@ private StreamingLabelDetectionConfig(com.google.protobuf.GeneratedMessageV3.Bui private StreamingLabelDetectionConfig() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StreamingLabelDetectionConfig(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -52,7 +58,6 @@ private StreamingLabelDetectionConfig( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -115,6 +120,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * bool stationary_camera = 1; + * + * @return The stationaryCamera. */ public boolean getStationaryCamera() { return stationaryCamera_; @@ -468,6 +475,8 @@ public Builder mergeFrom( * * * bool stationary_camera = 1; + * + * @return The stationaryCamera. */ public boolean getStationaryCamera() { return stationaryCamera_; @@ -482,6 +491,9 @@ public boolean getStationaryCamera() { * * * bool stationary_camera = 1; + * + * @param value The stationaryCamera to set. + * @return This builder for chaining. */ public Builder setStationaryCamera(boolean value) { @@ -499,6 +511,8 @@ public Builder setStationaryCamera(boolean value) { * * * bool stationary_camera = 1; + * + * @return This builder for chaining. */ public Builder clearStationaryCamera() { diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingLabelDetectionConfigOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingLabelDetectionConfigOrBuilder.java index 648bfaf79..899059889 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingLabelDetectionConfigOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingLabelDetectionConfigOrBuilder.java @@ -33,6 +33,8 @@ public interface StreamingLabelDetectionConfigOrBuilder * * * bool stationary_camera = 1; + * + * @return The stationaryCamera. */ boolean getStationaryCamera(); } diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingObjectTrackingConfig.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingObjectTrackingConfig.java index c6f60631f..918e7ccd3 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingObjectTrackingConfig.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingObjectTrackingConfig.java @@ -39,6 +39,12 @@ private StreamingObjectTrackingConfig(com.google.protobuf.GeneratedMessageV3.Bui private StreamingObjectTrackingConfig() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StreamingObjectTrackingConfig(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingShotChangeDetectionConfig.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingShotChangeDetectionConfig.java index 781927609..088eafad3 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingShotChangeDetectionConfig.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingShotChangeDetectionConfig.java @@ -40,6 +40,12 @@ private StreamingShotChangeDetectionConfig( private StreamingShotChangeDetectionConfig() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StreamingShotChangeDetectionConfig(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingStorageConfig.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingStorageConfig.java index 569abec54..9b4f37e30 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingStorageConfig.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingStorageConfig.java @@ -41,6 +41,12 @@ private StreamingStorageConfig() { annotationResultStorageDirectory_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StreamingStorageConfig(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private StreamingStorageConfig( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -121,6 +126,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * bool enable_storage_annotation_result = 1; + * + * @return The enableStorageAnnotationResult. */ public boolean getEnableStorageAnnotationResult() { return enableStorageAnnotationResult_; @@ -145,6 +152,8 @@ public boolean getEnableStorageAnnotationResult() { * * * string annotation_result_storage_directory = 3; + * + * @return The annotationResultStorageDirectory. */ public java.lang.String getAnnotationResultStorageDirectory() { java.lang.Object ref = annotationResultStorageDirectory_; @@ -174,6 +183,8 @@ public java.lang.String getAnnotationResultStorageDirectory() { * * * string annotation_result_storage_directory = 3; + * + * @return The bytes for annotationResultStorageDirectory. */ public com.google.protobuf.ByteString getAnnotationResultStorageDirectoryBytes() { java.lang.Object ref = annotationResultStorageDirectory_; @@ -545,6 +556,8 @@ public Builder mergeFrom( * * * bool enable_storage_annotation_result = 1; + * + * @return The enableStorageAnnotationResult. */ public boolean getEnableStorageAnnotationResult() { return enableStorageAnnotationResult_; @@ -557,6 +570,9 @@ public boolean getEnableStorageAnnotationResult() { * * * bool enable_storage_annotation_result = 1; + * + * @param value The enableStorageAnnotationResult to set. + * @return This builder for chaining. */ public Builder setEnableStorageAnnotationResult(boolean value) { @@ -572,6 +588,8 @@ public Builder setEnableStorageAnnotationResult(boolean value) { * * * bool enable_storage_annotation_result = 1; + * + * @return This builder for chaining. */ public Builder clearEnableStorageAnnotationResult() { @@ -598,6 +616,8 @@ public Builder clearEnableStorageAnnotationResult() { * * * string annotation_result_storage_directory = 3; + * + * @return The annotationResultStorageDirectory. */ public java.lang.String getAnnotationResultStorageDirectory() { java.lang.Object ref = annotationResultStorageDirectory_; @@ -627,6 +647,8 @@ public java.lang.String getAnnotationResultStorageDirectory() { * * * string annotation_result_storage_directory = 3; + * + * @return The bytes for annotationResultStorageDirectory. */ public com.google.protobuf.ByteString getAnnotationResultStorageDirectoryBytes() { java.lang.Object ref = annotationResultStorageDirectory_; @@ -656,6 +678,9 @@ public com.google.protobuf.ByteString getAnnotationResultStorageDirectoryBytes() * * * string annotation_result_storage_directory = 3; + * + * @param value The annotationResultStorageDirectory to set. + * @return This builder for chaining. */ public Builder setAnnotationResultStorageDirectory(java.lang.String value) { if (value == null) { @@ -683,6 +708,8 @@ public Builder setAnnotationResultStorageDirectory(java.lang.String value) { * * * string annotation_result_storage_directory = 3; + * + * @return This builder for chaining. */ public Builder clearAnnotationResultStorageDirectory() { @@ -708,6 +735,9 @@ public Builder clearAnnotationResultStorageDirectory() { * * * string annotation_result_storage_directory = 3; + * + * @param value The bytes for annotationResultStorageDirectory to set. + * @return This builder for chaining. */ public Builder setAnnotationResultStorageDirectoryBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingStorageConfigOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingStorageConfigOrBuilder.java index 0b08b13d9..7850d9978 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingStorageConfigOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingStorageConfigOrBuilder.java @@ -31,6 +31,8 @@ public interface StreamingStorageConfigOrBuilder * * * bool enable_storage_annotation_result = 1; + * + * @return The enableStorageAnnotationResult. */ boolean getEnableStorageAnnotationResult(); @@ -51,6 +53,8 @@ public interface StreamingStorageConfigOrBuilder * * * string annotation_result_storage_directory = 3; + * + * @return The annotationResultStorageDirectory. */ java.lang.String getAnnotationResultStorageDirectory(); /** @@ -70,6 +74,8 @@ public interface StreamingStorageConfigOrBuilder * * * string annotation_result_storage_directory = 3; + * + * @return The bytes for annotationResultStorageDirectory. */ com.google.protobuf.ByteString getAnnotationResultStorageDirectoryBytes(); } diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoAnnotationResults.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoAnnotationResults.java index dbc5ea3b5..806164ad4 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoAnnotationResults.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoAnnotationResults.java @@ -45,6 +45,12 @@ private StreamingVideoAnnotationResults() { objectAnnotations_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StreamingVideoAnnotationResults(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -118,11 +124,11 @@ private StreamingVideoAnnotationResults( } case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { objectAnnotations_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation>(); - mutable_bitField0_ |= 0x00000008; + mutable_bitField0_ |= 0x00000004; } objectAnnotations_.add( input.readMessage( @@ -151,7 +157,7 @@ private StreamingVideoAnnotationResults( if (((mutable_bitField0_ & 0x00000002) != 0)) { labelAnnotations_ = java.util.Collections.unmodifiableList(labelAnnotations_); } - if (((mutable_bitField0_ & 0x00000008) != 0)) { + if (((mutable_bitField0_ & 0x00000004) != 0)) { objectAnnotations_ = java.util.Collections.unmodifiableList(objectAnnotations_); } this.unknownFields = unknownFields.build(); @@ -175,7 +181,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .class); } - private int bitField0_; public static final int SHOT_ANNOTATIONS_FIELD_NUMBER = 1; private java.util.List shotAnnotations_; @@ -336,6 +341,8 @@ public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation getLabelAnno * * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 3; * + * + * @return Whether the explicitAnnotation field is set. */ public boolean hasExplicitAnnotation() { return explicitAnnotation_ != null; @@ -350,6 +357,8 @@ public boolean hasExplicitAnnotation() { * * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 3; * + * + * @return The explicitAnnotation. */ public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation getExplicitAnnotation() { @@ -731,7 +740,7 @@ public Builder clear() { } if (objectAnnotationsBuilder_ == null) { objectAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); } else { objectAnnotationsBuilder_.clear(); } @@ -767,7 +776,6 @@ public com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResu com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults result = new com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (shotAnnotationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { shotAnnotations_ = java.util.Collections.unmodifiableList(shotAnnotations_); @@ -792,15 +800,14 @@ public com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResu result.explicitAnnotation_ = explicitAnnotationBuilder_.build(); } if (objectAnnotationsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { objectAnnotations_ = java.util.Collections.unmodifiableList(objectAnnotations_); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); } result.objectAnnotations_ = objectAnnotations_; } else { result.objectAnnotations_ = objectAnnotationsBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -916,7 +923,7 @@ public Builder mergeFrom( if (!other.objectAnnotations_.isEmpty()) { if (objectAnnotations_.isEmpty()) { objectAnnotations_ = other.objectAnnotations_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureObjectAnnotationsIsMutable(); objectAnnotations_.addAll(other.objectAnnotations_); @@ -929,7 +936,7 @@ public Builder mergeFrom( objectAnnotationsBuilder_.dispose(); objectAnnotationsBuilder_ = null; objectAnnotations_ = other.objectAnnotations_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); objectAnnotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getObjectAnnotationsFieldBuilder() @@ -1785,6 +1792,8 @@ public Builder removeLabelAnnotations(int index) { * * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 3; * + * + * @return Whether the explicitAnnotation field is set. */ public boolean hasExplicitAnnotation() { return explicitAnnotationBuilder_ != null || explicitAnnotation_ != null; @@ -1799,6 +1808,8 @@ public boolean hasExplicitAnnotation() { * * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 3; * + * + * @return The explicitAnnotation. */ public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation getExplicitAnnotation() { @@ -1982,12 +1993,12 @@ public Builder clearExplicitAnnotation() { objectAnnotations_ = java.util.Collections.emptyList(); private void ensureObjectAnnotationsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { objectAnnotations_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation>( objectAnnotations_); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; } } @@ -2237,7 +2248,7 @@ public Builder addAllObjectAnnotations( public Builder clearObjectAnnotations() { if (objectAnnotationsBuilder_ == null) { objectAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { objectAnnotationsBuilder_.clear(); @@ -2386,7 +2397,7 @@ public Builder removeObjectAnnotations(int index) { com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation.Builder, com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotationOrBuilder>( objectAnnotations_, - ((bitField0_ & 0x00000008) != 0), + ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); objectAnnotations_ = null; diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoAnnotationResultsOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoAnnotationResultsOrBuilder.java index 3b8a3775f..98213b5ae 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoAnnotationResultsOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoAnnotationResultsOrBuilder.java @@ -151,6 +151,8 @@ com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder getShotAnnota * * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 3; * + * + * @return Whether the explicitAnnotation field is set. */ boolean hasExplicitAnnotation(); /** @@ -163,6 +165,8 @@ com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder getShotAnnota * * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 3; * + * + * @return The explicitAnnotation. */ com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation getExplicitAnnotation(); /** diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoConfig.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoConfig.java index 6c3a48fe4..b64f91bdc 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoConfig.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoConfig.java @@ -42,6 +42,12 @@ private StreamingVideoConfig() { feature_ = 0; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StreamingVideoConfig(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -55,7 +61,6 @@ private StreamingVideoConfig( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -284,7 +289,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { private int streamingConfigCase_ = 0; private java.lang.Object streamingConfig_; - public enum StreamingConfigCase implements com.google.protobuf.Internal.EnumLite { + public enum StreamingConfigCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { SHOT_CHANGE_DETECTION_CONFIG(2), LABEL_DETECTION_CONFIG(3), EXPLICIT_CONTENT_DETECTION_CONFIG(4), @@ -297,7 +305,11 @@ public enum StreamingConfigCase implements com.google.protobuf.Internal.EnumLite private StreamingConfigCase(int value) { this.value = value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ @java.lang.Deprecated public static StreamingConfigCase valueOf(int value) { return forNumber(value); @@ -343,6 +355,8 @@ public StreamingConfigCase getStreamingConfigCase() { * * * .google.cloud.videointelligence.v1p3beta1.StreamingFeature feature = 1; + * + * @return The enum numeric value on the wire for feature. */ public int getFeatureValue() { return feature_; @@ -355,6 +369,8 @@ public int getFeatureValue() { * * * .google.cloud.videointelligence.v1p3beta1.StreamingFeature feature = 1; + * + * @return The feature. */ public com.google.cloud.videointelligence.v1p3beta1.StreamingFeature getFeature() { @SuppressWarnings("deprecation") @@ -376,6 +392,8 @@ public com.google.cloud.videointelligence.v1p3beta1.StreamingFeature getFeature( * * .google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig shot_change_detection_config = 2; * + * + * @return Whether the shotChangeDetectionConfig field is set. */ public boolean hasShotChangeDetectionConfig() { return streamingConfigCase_ == 2; @@ -390,6 +408,8 @@ public boolean hasShotChangeDetectionConfig() { * * .google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig shot_change_detection_config = 2; * + * + * @return The shotChangeDetectionConfig. */ public com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig getShotChangeDetectionConfig() { @@ -432,6 +452,8 @@ public boolean hasShotChangeDetectionConfig() { * * .google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig label_detection_config = 3; * + * + * @return Whether the labelDetectionConfig field is set. */ public boolean hasLabelDetectionConfig() { return streamingConfigCase_ == 3; @@ -446,6 +468,8 @@ public boolean hasLabelDetectionConfig() { * * .google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig label_detection_config = 3; * + * + * @return The labelDetectionConfig. */ public com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig getLabelDetectionConfig() { @@ -488,6 +512,8 @@ public boolean hasLabelDetectionConfig() { * * .google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig explicit_content_detection_config = 4; * + * + * @return Whether the explicitContentDetectionConfig field is set. */ public boolean hasExplicitContentDetectionConfig() { return streamingConfigCase_ == 4; @@ -502,6 +528,8 @@ public boolean hasExplicitContentDetectionConfig() { * * .google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig explicit_content_detection_config = 4; * + * + * @return The explicitContentDetectionConfig. */ public com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig getExplicitContentDetectionConfig() { @@ -545,6 +573,8 @@ public boolean hasExplicitContentDetectionConfig() { * * .google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig object_tracking_config = 5; * + * + * @return Whether the objectTrackingConfig field is set. */ public boolean hasObjectTrackingConfig() { return streamingConfigCase_ == 5; @@ -559,6 +589,8 @@ public boolean hasObjectTrackingConfig() { * * .google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig object_tracking_config = 5; * + * + * @return The objectTrackingConfig. */ public com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig getObjectTrackingConfig() { @@ -601,6 +633,8 @@ public boolean hasObjectTrackingConfig() { * * .google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig automl_classification_config = 21; * + * + * @return Whether the automlClassificationConfig field is set. */ public boolean hasAutomlClassificationConfig() { return streamingConfigCase_ == 21; @@ -615,6 +649,8 @@ public boolean hasAutomlClassificationConfig() { * * .google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig automl_classification_config = 21; * + * + * @return The automlClassificationConfig. */ public com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig getAutomlClassificationConfig() { @@ -657,6 +693,8 @@ public boolean hasAutomlClassificationConfig() { * * .google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfig automl_object_tracking_config = 22; * + * + * @return Whether the automlObjectTrackingConfig field is set. */ public boolean hasAutomlObjectTrackingConfig() { return streamingConfigCase_ == 22; @@ -671,6 +709,8 @@ public boolean hasAutomlObjectTrackingConfig() { * * .google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfig automl_object_tracking_config = 22; * + * + * @return The automlObjectTrackingConfig. */ public com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfig getAutomlObjectTrackingConfig() { @@ -713,6 +753,8 @@ public boolean hasAutomlObjectTrackingConfig() { * * .google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storage_config = 30; * + * + * @return Whether the storageConfig field is set. */ public boolean hasStorageConfig() { return storageConfig_ != null; @@ -726,6 +768,8 @@ public boolean hasStorageConfig() { * * .google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storage_config = 30; * + * + * @return The storageConfig. */ public com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig getStorageConfig() { return storageConfig_ == null @@ -1343,6 +1387,8 @@ public Builder clearStreamingConfig() { * * * .google.cloud.videointelligence.v1p3beta1.StreamingFeature feature = 1; + * + * @return The enum numeric value on the wire for feature. */ public int getFeatureValue() { return feature_; @@ -1355,6 +1401,9 @@ public int getFeatureValue() { * * * .google.cloud.videointelligence.v1p3beta1.StreamingFeature feature = 1; + * + * @param value The enum numeric value on the wire for feature to set. + * @return This builder for chaining. */ public Builder setFeatureValue(int value) { feature_ = value; @@ -1369,6 +1418,8 @@ public Builder setFeatureValue(int value) { * * * .google.cloud.videointelligence.v1p3beta1.StreamingFeature feature = 1; + * + * @return The feature. */ public com.google.cloud.videointelligence.v1p3beta1.StreamingFeature getFeature() { @SuppressWarnings("deprecation") @@ -1386,6 +1437,9 @@ public com.google.cloud.videointelligence.v1p3beta1.StreamingFeature getFeature( * * * .google.cloud.videointelligence.v1p3beta1.StreamingFeature feature = 1; + * + * @param value The feature to set. + * @return This builder for chaining. */ public Builder setFeature(com.google.cloud.videointelligence.v1p3beta1.StreamingFeature value) { if (value == null) { @@ -1404,6 +1458,8 @@ public Builder setFeature(com.google.cloud.videointelligence.v1p3beta1.Streaming * * * .google.cloud.videointelligence.v1p3beta1.StreamingFeature feature = 1; + * + * @return This builder for chaining. */ public Builder clearFeature() { @@ -1428,6 +1484,8 @@ public Builder clearFeature() { * * .google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig shot_change_detection_config = 2; * + * + * @return Whether the shotChangeDetectionConfig field is set. */ public boolean hasShotChangeDetectionConfig() { return streamingConfigCase_ == 2; @@ -1442,6 +1500,8 @@ public boolean hasShotChangeDetectionConfig() { * * .google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig shot_change_detection_config = 2; * + * + * @return The shotChangeDetectionConfig. */ public com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig getShotChangeDetectionConfig() { @@ -1670,6 +1730,8 @@ public Builder clearShotChangeDetectionConfig() { * * .google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig label_detection_config = 3; * + * + * @return Whether the labelDetectionConfig field is set. */ public boolean hasLabelDetectionConfig() { return streamingConfigCase_ == 3; @@ -1684,6 +1746,8 @@ public boolean hasLabelDetectionConfig() { * * .google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig label_detection_config = 3; * + * + * @return The labelDetectionConfig. */ public com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig getLabelDetectionConfig() { @@ -1910,6 +1974,8 @@ public Builder clearLabelDetectionConfig() { * * .google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig explicit_content_detection_config = 4; * + * + * @return Whether the explicitContentDetectionConfig field is set. */ public boolean hasExplicitContentDetectionConfig() { return streamingConfigCase_ == 4; @@ -1924,6 +1990,8 @@ public boolean hasExplicitContentDetectionConfig() { * * .google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig explicit_content_detection_config = 4; * + * + * @return The explicitContentDetectionConfig. */ public com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig getExplicitContentDetectionConfig() { @@ -2161,6 +2229,8 @@ public Builder clearExplicitContentDetectionConfig() { * * .google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig object_tracking_config = 5; * + * + * @return Whether the objectTrackingConfig field is set. */ public boolean hasObjectTrackingConfig() { return streamingConfigCase_ == 5; @@ -2175,6 +2245,8 @@ public boolean hasObjectTrackingConfig() { * * .google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig object_tracking_config = 5; * + * + * @return The objectTrackingConfig. */ public com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig getObjectTrackingConfig() { @@ -2401,6 +2473,8 @@ public Builder clearObjectTrackingConfig() { * * .google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig automl_classification_config = 21; * + * + * @return Whether the automlClassificationConfig field is set. */ public boolean hasAutomlClassificationConfig() { return streamingConfigCase_ == 21; @@ -2415,6 +2489,8 @@ public boolean hasAutomlClassificationConfig() { * * .google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig automl_classification_config = 21; * + * + * @return The automlClassificationConfig. */ public com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig getAutomlClassificationConfig() { @@ -2646,6 +2722,8 @@ public Builder clearAutomlClassificationConfig() { * * .google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfig automl_object_tracking_config = 22; * + * + * @return Whether the automlObjectTrackingConfig field is set. */ public boolean hasAutomlObjectTrackingConfig() { return streamingConfigCase_ == 22; @@ -2660,6 +2738,8 @@ public boolean hasAutomlObjectTrackingConfig() { * * .google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfig automl_object_tracking_config = 22; * + * + * @return The automlObjectTrackingConfig. */ public com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfig getAutomlObjectTrackingConfig() { @@ -2889,6 +2969,8 @@ public Builder clearAutomlObjectTrackingConfig() { * * .google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storage_config = 30; * + * + * @return Whether the storageConfig field is set. */ public boolean hasStorageConfig() { return storageConfigBuilder_ != null || storageConfig_ != null; @@ -2902,6 +2984,8 @@ public boolean hasStorageConfig() { * * .google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storage_config = 30; * + * + * @return The storageConfig. */ public com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig getStorageConfig() { if (storageConfigBuilder_ == null) { diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoConfigOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoConfigOrBuilder.java index 280d7b8ed..3f9c64a71 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoConfigOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoConfigOrBuilder.java @@ -31,6 +31,8 @@ public interface StreamingVideoConfigOrBuilder * * * .google.cloud.videointelligence.v1p3beta1.StreamingFeature feature = 1; + * + * @return The enum numeric value on the wire for feature. */ int getFeatureValue(); /** @@ -41,6 +43,8 @@ public interface StreamingVideoConfigOrBuilder * * * .google.cloud.videointelligence.v1p3beta1.StreamingFeature feature = 1; + * + * @return The feature. */ com.google.cloud.videointelligence.v1p3beta1.StreamingFeature getFeature(); @@ -54,6 +58,8 @@ public interface StreamingVideoConfigOrBuilder * * .google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig shot_change_detection_config = 2; * + * + * @return Whether the shotChangeDetectionConfig field is set. */ boolean hasShotChangeDetectionConfig(); /** @@ -66,6 +72,8 @@ public interface StreamingVideoConfigOrBuilder * * .google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig shot_change_detection_config = 2; * + * + * @return The shotChangeDetectionConfig. */ com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig getShotChangeDetectionConfig(); @@ -93,6 +101,8 @@ public interface StreamingVideoConfigOrBuilder * * .google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig label_detection_config = 3; * + * + * @return Whether the labelDetectionConfig field is set. */ boolean hasLabelDetectionConfig(); /** @@ -105,6 +115,8 @@ public interface StreamingVideoConfigOrBuilder * * .google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig label_detection_config = 3; * + * + * @return The labelDetectionConfig. */ com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig getLabelDetectionConfig(); @@ -132,6 +144,8 @@ public interface StreamingVideoConfigOrBuilder * * .google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig explicit_content_detection_config = 4; * + * + * @return Whether the explicitContentDetectionConfig field is set. */ boolean hasExplicitContentDetectionConfig(); /** @@ -144,6 +158,8 @@ public interface StreamingVideoConfigOrBuilder * * .google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig explicit_content_detection_config = 4; * + * + * @return The explicitContentDetectionConfig. */ com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig getExplicitContentDetectionConfig(); @@ -171,6 +187,8 @@ public interface StreamingVideoConfigOrBuilder * * .google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig object_tracking_config = 5; * + * + * @return Whether the objectTrackingConfig field is set. */ boolean hasObjectTrackingConfig(); /** @@ -183,6 +201,8 @@ public interface StreamingVideoConfigOrBuilder * * .google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig object_tracking_config = 5; * + * + * @return The objectTrackingConfig. */ com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig getObjectTrackingConfig(); @@ -210,6 +230,8 @@ public interface StreamingVideoConfigOrBuilder * * .google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig automl_classification_config = 21; * + * + * @return Whether the automlClassificationConfig field is set. */ boolean hasAutomlClassificationConfig(); /** @@ -222,6 +244,8 @@ public interface StreamingVideoConfigOrBuilder * * .google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig automl_classification_config = 21; * + * + * @return The automlClassificationConfig. */ com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig getAutomlClassificationConfig(); @@ -249,6 +273,8 @@ public interface StreamingVideoConfigOrBuilder * * .google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfig automl_object_tracking_config = 22; * + * + * @return Whether the automlObjectTrackingConfig field is set. */ boolean hasAutomlObjectTrackingConfig(); /** @@ -261,6 +287,8 @@ public interface StreamingVideoConfigOrBuilder * * .google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfig automl_object_tracking_config = 22; * + * + * @return The automlObjectTrackingConfig. */ com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfig getAutomlObjectTrackingConfig(); @@ -287,6 +315,8 @@ public interface StreamingVideoConfigOrBuilder * * .google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storage_config = 30; * + * + * @return Whether the storageConfig field is set. */ boolean hasStorageConfig(); /** @@ -298,6 +328,8 @@ public interface StreamingVideoConfigOrBuilder * * .google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storage_config = 30; * + * + * @return The storageConfig. */ com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig getStorageConfig(); /** diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextAnnotation.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextAnnotation.java index 8070583da..4a3c4338b 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextAnnotation.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextAnnotation.java @@ -44,6 +44,12 @@ private TextAnnotation() { segments_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TextAnnotation(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -77,11 +83,11 @@ private TextAnnotation( } case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { segments_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p3beta1.TextSegment>(); - mutable_bitField0_ |= 0x00000002; + mutable_bitField0_ |= 0x00000001; } segments_.add( input.readMessage( @@ -103,7 +109,7 @@ private TextAnnotation( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { segments_ = java.util.Collections.unmodifiableList(segments_); } this.unknownFields = unknownFields.build(); @@ -126,7 +132,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.videointelligence.v1p3beta1.TextAnnotation.Builder.class); } - private int bitField0_; public static final int TEXT_FIELD_NUMBER = 1; private volatile java.lang.Object text_; /** @@ -137,6 +142,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string text = 1; + * + * @return The text. */ public java.lang.String getText() { java.lang.Object ref = text_; @@ -157,6 +164,8 @@ public java.lang.String getText() { * * * string text = 1; + * + * @return The bytes for text. */ public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = text_; @@ -460,7 +469,7 @@ public Builder clear() { if (segmentsBuilder_ == null) { segments_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } else { segmentsBuilder_.clear(); } @@ -492,18 +501,16 @@ public com.google.cloud.videointelligence.v1p3beta1.TextAnnotation buildPartial( com.google.cloud.videointelligence.v1p3beta1.TextAnnotation result = new com.google.cloud.videointelligence.v1p3beta1.TextAnnotation(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.text_ = text_; if (segmentsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { segments_ = java.util.Collections.unmodifiableList(segments_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } result.segments_ = segments_; } else { result.segments_ = segmentsBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -562,7 +569,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1p3beta1.TextAnnota if (!other.segments_.isEmpty()) { if (segments_.isEmpty()) { segments_ = other.segments_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSegmentsIsMutable(); segments_.addAll(other.segments_); @@ -575,7 +582,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1p3beta1.TextAnnota segmentsBuilder_.dispose(); segmentsBuilder_ = null; segments_ = other.segments_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); segmentsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSegmentsFieldBuilder() @@ -626,6 +633,8 @@ public Builder mergeFrom( * * * string text = 1; + * + * @return The text. */ public java.lang.String getText() { java.lang.Object ref = text_; @@ -646,6 +655,8 @@ public java.lang.String getText() { * * * string text = 1; + * + * @return The bytes for text. */ public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = text_; @@ -666,6 +677,9 @@ public com.google.protobuf.ByteString getTextBytes() { * * * string text = 1; + * + * @param value The text to set. + * @return This builder for chaining. */ public Builder setText(java.lang.String value) { if (value == null) { @@ -684,6 +698,8 @@ public Builder setText(java.lang.String value) { * * * string text = 1; + * + * @return This builder for chaining. */ public Builder clearText() { @@ -699,6 +715,9 @@ public Builder clearText() { * * * string text = 1; + * + * @param value The bytes for text to set. + * @return This builder for chaining. */ public Builder setTextBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -715,11 +734,11 @@ public Builder setTextBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureSegmentsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { segments_ = new java.util.ArrayList( segments_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } @@ -941,7 +960,7 @@ public Builder addAllSegments( public Builder clearSegments() { if (segmentsBuilder_ == null) { segments_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { segmentsBuilder_.clear(); @@ -1069,7 +1088,7 @@ public com.google.cloud.videointelligence.v1p3beta1.TextSegment.Builder addSegme com.google.cloud.videointelligence.v1p3beta1.TextSegment, com.google.cloud.videointelligence.v1p3beta1.TextSegment.Builder, com.google.cloud.videointelligence.v1p3beta1.TextSegmentOrBuilder>( - segments_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + segments_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); segments_ = null; } return segmentsBuilder_; diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextAnnotationOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextAnnotationOrBuilder.java index d54c0891c..90cbc1eb2 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextAnnotationOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextAnnotationOrBuilder.java @@ -31,6 +31,8 @@ public interface TextAnnotationOrBuilder * * * string text = 1; + * + * @return The text. */ java.lang.String getText(); /** @@ -41,6 +43,8 @@ public interface TextAnnotationOrBuilder * * * string text = 1; + * + * @return The bytes for text. */ com.google.protobuf.ByteString getTextBytes(); diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextDetectionConfig.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextDetectionConfig.java index 7f47dc2e7..f66bd18bf 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextDetectionConfig.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextDetectionConfig.java @@ -42,6 +42,12 @@ private TextDetectionConfig() { model_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TextDetectionConfig(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -120,7 +126,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig.Builder.class); } - private int bitField0_; public static final int LANGUAGE_HINTS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList languageHints_; /** @@ -134,6 +139,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * repeated string language_hints = 1; + * + * @return A list containing the languageHints. */ public com.google.protobuf.ProtocolStringList getLanguageHintsList() { return languageHints_; @@ -149,6 +156,8 @@ public com.google.protobuf.ProtocolStringList getLanguageHintsList() { * * * repeated string language_hints = 1; + * + * @return The count of languageHints. */ public int getLanguageHintsCount() { return languageHints_.size(); @@ -164,6 +173,9 @@ public int getLanguageHintsCount() { * * * repeated string language_hints = 1; + * + * @param index The index of the element to return. + * @return The languageHints at the given index. */ public java.lang.String getLanguageHints(int index) { return languageHints_.get(index); @@ -179,6 +191,9 @@ public java.lang.String getLanguageHints(int index) { * * * repeated string language_hints = 1; + * + * @param index The index of the value to return. + * @return The bytes of the languageHints at the given index. */ public com.google.protobuf.ByteString getLanguageHintsBytes(int index) { return languageHints_.getByteString(index); @@ -196,6 +211,8 @@ public com.google.protobuf.ByteString getLanguageHintsBytes(int index) { * * * string model = 2; + * + * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; @@ -218,6 +235,8 @@ public java.lang.String getModel() { * * * string model = 2; + * + * @return The bytes for model. */ public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; @@ -485,14 +504,12 @@ public com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig buildPar com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig result = new com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) != 0)) { languageHints_ = languageHints_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.languageHints_ = languageHints_; result.model_ = model_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -612,6 +629,8 @@ private void ensureLanguageHintsIsMutable() { * * * repeated string language_hints = 1; + * + * @return A list containing the languageHints. */ public com.google.protobuf.ProtocolStringList getLanguageHintsList() { return languageHints_.getUnmodifiableView(); @@ -627,6 +646,8 @@ public com.google.protobuf.ProtocolStringList getLanguageHintsList() { * * * repeated string language_hints = 1; + * + * @return The count of languageHints. */ public int getLanguageHintsCount() { return languageHints_.size(); @@ -642,6 +663,9 @@ public int getLanguageHintsCount() { * * * repeated string language_hints = 1; + * + * @param index The index of the element to return. + * @return The languageHints at the given index. */ public java.lang.String getLanguageHints(int index) { return languageHints_.get(index); @@ -657,6 +681,9 @@ public java.lang.String getLanguageHints(int index) { * * * repeated string language_hints = 1; + * + * @param index The index of the value to return. + * @return The bytes of the languageHints at the given index. */ public com.google.protobuf.ByteString getLanguageHintsBytes(int index) { return languageHints_.getByteString(index); @@ -672,6 +699,10 @@ public com.google.protobuf.ByteString getLanguageHintsBytes(int index) { * * * repeated string language_hints = 1; + * + * @param index The index to set the value at. + * @param value The languageHints to set. + * @return This builder for chaining. */ public Builder setLanguageHints(int index, java.lang.String value) { if (value == null) { @@ -693,6 +724,9 @@ public Builder setLanguageHints(int index, java.lang.String value) { * * * repeated string language_hints = 1; + * + * @param value The languageHints to add. + * @return This builder for chaining. */ public Builder addLanguageHints(java.lang.String value) { if (value == null) { @@ -714,6 +748,9 @@ public Builder addLanguageHints(java.lang.String value) { * * * repeated string language_hints = 1; + * + * @param values The languageHints to add. + * @return This builder for chaining. */ public Builder addAllLanguageHints(java.lang.Iterable values) { ensureLanguageHintsIsMutable(); @@ -732,6 +769,8 @@ public Builder addAllLanguageHints(java.lang.Iterable values) * * * repeated string language_hints = 1; + * + * @return This builder for chaining. */ public Builder clearLanguageHints() { languageHints_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -750,6 +789,9 @@ public Builder clearLanguageHints() { * * * repeated string language_hints = 1; + * + * @param value The bytes of the languageHints to add. + * @return This builder for chaining. */ public Builder addLanguageHintsBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -773,6 +815,8 @@ public Builder addLanguageHintsBytes(com.google.protobuf.ByteString value) { * * * string model = 2; + * + * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; @@ -795,6 +839,8 @@ public java.lang.String getModel() { * * * string model = 2; + * + * @return The bytes for model. */ public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; @@ -817,6 +863,9 @@ public com.google.protobuf.ByteString getModelBytes() { * * * string model = 2; + * + * @param value The model to set. + * @return This builder for chaining. */ public Builder setModel(java.lang.String value) { if (value == null) { @@ -837,6 +886,8 @@ public Builder setModel(java.lang.String value) { * * * string model = 2; + * + * @return This builder for chaining. */ public Builder clearModel() { @@ -854,6 +905,9 @@ public Builder clearModel() { * * * string model = 2; + * + * @param value The bytes for model to set. + * @return This builder for chaining. */ public Builder setModelBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextDetectionConfigOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextDetectionConfigOrBuilder.java index 467ced59f..d85ab8e99 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextDetectionConfigOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextDetectionConfigOrBuilder.java @@ -34,6 +34,8 @@ public interface TextDetectionConfigOrBuilder * * * repeated string language_hints = 1; + * + * @return A list containing the languageHints. */ java.util.List getLanguageHintsList(); /** @@ -47,6 +49,8 @@ public interface TextDetectionConfigOrBuilder * * * repeated string language_hints = 1; + * + * @return The count of languageHints. */ int getLanguageHintsCount(); /** @@ -60,6 +64,9 @@ public interface TextDetectionConfigOrBuilder * * * repeated string language_hints = 1; + * + * @param index The index of the element to return. + * @return The languageHints at the given index. */ java.lang.String getLanguageHints(int index); /** @@ -73,6 +80,9 @@ public interface TextDetectionConfigOrBuilder * * * repeated string language_hints = 1; + * + * @param index The index of the value to return. + * @return The bytes of the languageHints at the given index. */ com.google.protobuf.ByteString getLanguageHintsBytes(int index); @@ -86,6 +96,8 @@ public interface TextDetectionConfigOrBuilder * * * string model = 2; + * + * @return The model. */ java.lang.String getModel(); /** @@ -98,6 +110,8 @@ public interface TextDetectionConfigOrBuilder * * * string model = 2; + * + * @return The bytes for model. */ com.google.protobuf.ByteString getModelBytes(); } diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextFrame.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextFrame.java index 4b72f9a8f..b6d620e77 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextFrame.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextFrame.java @@ -41,6 +41,12 @@ private TextFrame(com.google.protobuf.GeneratedMessageV3.Builder builder) { private TextFrame() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TextFrame(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private TextFrame( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -144,6 +149,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly rotated_bounding_box = 1; * + * + * @return Whether the rotatedBoundingBox field is set. */ public boolean hasRotatedBoundingBox() { return rotatedBoundingBox_ != null; @@ -158,6 +165,8 @@ public boolean hasRotatedBoundingBox() { * * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly rotated_bounding_box = 1; * + * + * @return The rotatedBoundingBox. */ public com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly getRotatedBoundingBox() { @@ -191,6 +200,8 @@ public boolean hasRotatedBoundingBox() { * * * .google.protobuf.Duration time_offset = 2; + * + * @return Whether the timeOffset field is set. */ public boolean hasTimeOffset() { return timeOffset_ != null; @@ -203,6 +214,8 @@ public boolean hasTimeOffset() { * * * .google.protobuf.Duration time_offset = 2; + * + * @return The timeOffset. */ public com.google.protobuf.Duration getTimeOffset() { return timeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeOffset_; @@ -597,6 +610,8 @@ public Builder mergeFrom( * * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly rotated_bounding_box = 1; * + * + * @return Whether the rotatedBoundingBox field is set. */ public boolean hasRotatedBoundingBox() { return rotatedBoundingBoxBuilder_ != null || rotatedBoundingBox_ != null; @@ -611,6 +626,8 @@ public boolean hasRotatedBoundingBox() { * * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly rotated_bounding_box = 1; * + * + * @return The rotatedBoundingBox. */ public com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly getRotatedBoundingBox() { @@ -804,6 +821,8 @@ public Builder clearRotatedBoundingBox() { * * * .google.protobuf.Duration time_offset = 2; + * + * @return Whether the timeOffset field is set. */ public boolean hasTimeOffset() { return timeOffsetBuilder_ != null || timeOffset_ != null; @@ -816,6 +835,8 @@ public boolean hasTimeOffset() { * * * .google.protobuf.Duration time_offset = 2; + * + * @return The timeOffset. */ public com.google.protobuf.Duration getTimeOffset() { if (timeOffsetBuilder_ == null) { diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextFrameOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextFrameOrBuilder.java index 3f24bae08..43ea0adf1 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextFrameOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextFrameOrBuilder.java @@ -33,6 +33,8 @@ public interface TextFrameOrBuilder * * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly rotated_bounding_box = 1; * + * + * @return Whether the rotatedBoundingBox field is set. */ boolean hasRotatedBoundingBox(); /** @@ -45,6 +47,8 @@ public interface TextFrameOrBuilder * * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly rotated_bounding_box = 1; * + * + * @return The rotatedBoundingBox. */ com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly getRotatedBoundingBox(); /** @@ -69,6 +73,8 @@ public interface TextFrameOrBuilder * * * .google.protobuf.Duration time_offset = 2; + * + * @return Whether the timeOffset field is set. */ boolean hasTimeOffset(); /** @@ -79,6 +85,8 @@ public interface TextFrameOrBuilder * * * .google.protobuf.Duration time_offset = 2; + * + * @return The timeOffset. */ com.google.protobuf.Duration getTimeOffset(); /** diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextSegment.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextSegment.java index 8f3061b15..521e308d1 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextSegment.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextSegment.java @@ -41,6 +41,12 @@ private TextSegment() { frames_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TextSegment(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -89,11 +95,11 @@ private TextSegment( } case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { frames_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p3beta1.TextFrame>(); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000001; } frames_.add( input.readMessage( @@ -115,7 +121,7 @@ private TextSegment( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { frames_ = java.util.Collections.unmodifiableList(frames_); } this.unknownFields = unknownFields.build(); @@ -138,7 +144,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.videointelligence.v1p3beta1.TextSegment.Builder.class); } - private int bitField0_; public static final int SEGMENT_FIELD_NUMBER = 1; private com.google.cloud.videointelligence.v1p3beta1.VideoSegment segment_; /** @@ -149,6 +154,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1; + * + * @return Whether the segment field is set. */ public boolean hasSegment() { return segment_ != null; @@ -161,6 +168,8 @@ public boolean hasSegment() { * * * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1; + * + * @return The segment. */ public com.google.cloud.videointelligence.v1p3beta1.VideoSegment getSegment() { return segment_ == null @@ -191,6 +200,8 @@ public com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder getSeg * * * float confidence = 2; + * + * @return The confidence. */ public float getConfidence() { return confidence_; @@ -504,7 +515,7 @@ public Builder clear() { if (framesBuilder_ == null) { frames_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } else { framesBuilder_.clear(); } @@ -536,7 +547,6 @@ public com.google.cloud.videointelligence.v1p3beta1.TextSegment buildPartial() { com.google.cloud.videointelligence.v1p3beta1.TextSegment result = new com.google.cloud.videointelligence.v1p3beta1.TextSegment(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (segmentBuilder_ == null) { result.segment_ = segment_; } else { @@ -544,15 +554,14 @@ public com.google.cloud.videointelligence.v1p3beta1.TextSegment buildPartial() { } result.confidence_ = confidence_; if (framesBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { frames_ = java.util.Collections.unmodifiableList(frames_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } result.frames_ = frames_; } else { result.frames_ = framesBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -613,7 +622,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1p3beta1.TextSegmen if (!other.frames_.isEmpty()) { if (frames_.isEmpty()) { frames_ = other.frames_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureFramesIsMutable(); frames_.addAll(other.frames_); @@ -626,7 +635,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1p3beta1.TextSegmen framesBuilder_.dispose(); framesBuilder_ = null; frames_ = other.frames_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); framesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFramesFieldBuilder() @@ -682,6 +691,8 @@ public Builder mergeFrom( * * * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1; + * + * @return Whether the segment field is set. */ public boolean hasSegment() { return segmentBuilder_ != null || segment_ != null; @@ -694,6 +705,8 @@ public boolean hasSegment() { * * * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1; + * + * @return The segment. */ public com.google.cloud.videointelligence.v1p3beta1.VideoSegment getSegment() { if (segmentBuilder_ == null) { @@ -861,6 +874,8 @@ public com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder getSegm * * * float confidence = 2; + * + * @return The confidence. */ public float getConfidence() { return confidence_; @@ -874,6 +889,9 @@ public float getConfidence() { * * * float confidence = 2; + * + * @param value The confidence to set. + * @return This builder for chaining. */ public Builder setConfidence(float value) { @@ -890,6 +908,8 @@ public Builder setConfidence(float value) { * * * float confidence = 2; + * + * @return This builder for chaining. */ public Builder clearConfidence() { @@ -902,11 +922,11 @@ public Builder clearConfidence() { java.util.Collections.emptyList(); private void ensureFramesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { frames_ = new java.util.ArrayList( frames_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; } } @@ -1125,7 +1145,7 @@ public Builder addAllFrames( public Builder clearFrames() { if (framesBuilder_ == null) { frames_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { framesBuilder_.clear(); @@ -1251,7 +1271,7 @@ public com.google.cloud.videointelligence.v1p3beta1.TextFrame.Builder addFramesB com.google.cloud.videointelligence.v1p3beta1.TextFrame, com.google.cloud.videointelligence.v1p3beta1.TextFrame.Builder, com.google.cloud.videointelligence.v1p3beta1.TextFrameOrBuilder>( - frames_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + frames_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); frames_ = null; } return framesBuilder_; diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextSegmentOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextSegmentOrBuilder.java index 41c3a6df1..1f3e992d3 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextSegmentOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextSegmentOrBuilder.java @@ -31,6 +31,8 @@ public interface TextSegmentOrBuilder * * * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1; + * + * @return Whether the segment field is set. */ boolean hasSegment(); /** @@ -41,6 +43,8 @@ public interface TextSegmentOrBuilder * * * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1; + * + * @return The segment. */ com.google.cloud.videointelligence.v1p3beta1.VideoSegment getSegment(); /** @@ -63,6 +67,8 @@ public interface TextSegmentOrBuilder * * * float confidence = 2; + * + * @return The confidence. */ float getConfidence(); diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TimestampedObject.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TimestampedObject.java index 2201be9a8..5cbae9ed0 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TimestampedObject.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TimestampedObject.java @@ -43,6 +43,12 @@ private TimestampedObject() { attributes_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TimestampedObject(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -102,11 +108,11 @@ private TimestampedObject( } case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { attributes_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p3beta1.DetectedAttribute>(); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000001; } attributes_.add( input.readMessage( @@ -128,7 +134,7 @@ private TimestampedObject( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { attributes_ = java.util.Collections.unmodifiableList(attributes_); } this.unknownFields = unknownFields.build(); @@ -151,7 +157,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.videointelligence.v1p3beta1.TimestampedObject.Builder.class); } - private int bitField0_; public static final int NORMALIZED_BOUNDING_BOX_FIELD_NUMBER = 1; private com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox normalizedBoundingBox_; /** @@ -164,6 +169,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox normalized_bounding_box = 1; * + * + * @return Whether the normalizedBoundingBox field is set. */ public boolean hasNormalizedBoundingBox() { return normalizedBoundingBox_ != null; @@ -178,6 +185,8 @@ public boolean hasNormalizedBoundingBox() { * * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox normalized_bounding_box = 1; * + * + * @return The normalizedBoundingBox. */ public com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox getNormalizedBoundingBox() { @@ -212,6 +221,8 @@ public boolean hasNormalizedBoundingBox() { * * * .google.protobuf.Duration time_offset = 2; + * + * @return Whether the timeOffset field is set. */ public boolean hasTimeOffset() { return timeOffset_ != null; @@ -225,6 +236,8 @@ public boolean hasTimeOffset() { * * * .google.protobuf.Duration time_offset = 2; + * + * @return The timeOffset. */ public com.google.protobuf.Duration getTimeOffset() { return timeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeOffset_; @@ -575,7 +588,7 @@ public Builder clear() { } if (attributesBuilder_ == null) { attributes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } else { attributesBuilder_.clear(); } @@ -608,7 +621,6 @@ public com.google.cloud.videointelligence.v1p3beta1.TimestampedObject buildParti com.google.cloud.videointelligence.v1p3beta1.TimestampedObject result = new com.google.cloud.videointelligence.v1p3beta1.TimestampedObject(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (normalizedBoundingBoxBuilder_ == null) { result.normalizedBoundingBox_ = normalizedBoundingBox_; } else { @@ -620,15 +632,14 @@ public com.google.cloud.videointelligence.v1p3beta1.TimestampedObject buildParti result.timeOffset_ = timeOffsetBuilder_.build(); } if (attributesBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { attributes_ = java.util.Collections.unmodifiableList(attributes_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } result.attributes_ = attributes_; } else { result.attributes_ = attributesBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -690,7 +701,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1p3beta1.Timestampe if (!other.attributes_.isEmpty()) { if (attributes_.isEmpty()) { attributes_ = other.attributes_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureAttributesIsMutable(); attributes_.addAll(other.attributes_); @@ -703,7 +714,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1p3beta1.Timestampe attributesBuilder_.dispose(); attributesBuilder_ = null; attributes_ = other.attributes_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); attributesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAttributesFieldBuilder() @@ -763,6 +774,8 @@ public Builder mergeFrom( * * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox normalized_bounding_box = 1; * + * + * @return Whether the normalizedBoundingBox field is set. */ public boolean hasNormalizedBoundingBox() { return normalizedBoundingBoxBuilder_ != null || normalizedBoundingBox_ != null; @@ -777,6 +790,8 @@ public boolean hasNormalizedBoundingBox() { * * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox normalized_bounding_box = 1; * + * + * @return The normalizedBoundingBox. */ public com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox getNormalizedBoundingBox() { @@ -971,6 +986,8 @@ public Builder clearNormalizedBoundingBox() { * * * .google.protobuf.Duration time_offset = 2; + * + * @return Whether the timeOffset field is set. */ public boolean hasTimeOffset() { return timeOffsetBuilder_ != null || timeOffset_ != null; @@ -984,6 +1001,8 @@ public boolean hasTimeOffset() { * * * .google.protobuf.Duration time_offset = 2; + * + * @return The timeOffset. */ public com.google.protobuf.Duration getTimeOffset() { if (timeOffsetBuilder_ == null) { @@ -1148,11 +1167,11 @@ public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() { attributes_ = java.util.Collections.emptyList(); private void ensureAttributesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { attributes_ = new java.util.ArrayList( attributes_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; } } @@ -1397,7 +1416,7 @@ public Builder addAllAttributes( public Builder clearAttributes() { if (attributesBuilder_ == null) { attributes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { attributesBuilder_.clear(); @@ -1541,7 +1560,7 @@ public Builder removeAttributes(int index) { com.google.cloud.videointelligence.v1p3beta1.DetectedAttribute, com.google.cloud.videointelligence.v1p3beta1.DetectedAttribute.Builder, com.google.cloud.videointelligence.v1p3beta1.DetectedAttributeOrBuilder>( - attributes_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + attributes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); attributes_ = null; } return attributesBuilder_; diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TimestampedObjectOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TimestampedObjectOrBuilder.java index 5db1d1ce9..08055107c 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TimestampedObjectOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TimestampedObjectOrBuilder.java @@ -33,6 +33,8 @@ public interface TimestampedObjectOrBuilder * * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox normalized_bounding_box = 1; * + * + * @return Whether the normalizedBoundingBox field is set. */ boolean hasNormalizedBoundingBox(); /** @@ -45,6 +47,8 @@ public interface TimestampedObjectOrBuilder * * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox normalized_bounding_box = 1; * + * + * @return The normalizedBoundingBox. */ com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox getNormalizedBoundingBox(); /** @@ -70,6 +74,8 @@ public interface TimestampedObjectOrBuilder * * * .google.protobuf.Duration time_offset = 2; + * + * @return Whether the timeOffset field is set. */ boolean hasTimeOffset(); /** @@ -81,6 +87,8 @@ public interface TimestampedObjectOrBuilder * * * .google.protobuf.Duration time_offset = 2; + * + * @return The timeOffset. */ com.google.protobuf.Duration getTimeOffset(); /** diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/Track.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/Track.java index 200a7843b..34325220f 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/Track.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/Track.java @@ -42,6 +42,12 @@ private Track() { attributes_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Track(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -85,11 +91,11 @@ private Track( } case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { timestampedObjects_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p3beta1.TimestampedObject>(); - mutable_bitField0_ |= 0x00000002; + mutable_bitField0_ |= 0x00000001; } timestampedObjects_.add( input.readMessage( @@ -99,11 +105,11 @@ private Track( } case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { attributes_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p3beta1.DetectedAttribute>(); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000002; } attributes_.add( input.readMessage( @@ -130,10 +136,10 @@ private Track( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { timestampedObjects_ = java.util.Collections.unmodifiableList(timestampedObjects_); } - if (((mutable_bitField0_ & 0x00000004) != 0)) { + if (((mutable_bitField0_ & 0x00000002) != 0)) { attributes_ = java.util.Collections.unmodifiableList(attributes_); } this.unknownFields = unknownFields.build(); @@ -156,7 +162,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.videointelligence.v1p3beta1.Track.Builder.class); } - private int bitField0_; public static final int SEGMENT_FIELD_NUMBER = 1; private com.google.cloud.videointelligence.v1p3beta1.VideoSegment segment_; /** @@ -167,6 +172,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1; + * + * @return Whether the segment field is set. */ public boolean hasSegment() { return segment_ != null; @@ -179,6 +186,8 @@ public boolean hasSegment() { * * * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1; + * + * @return The segment. */ public com.google.cloud.videointelligence.v1p3beta1.VideoSegment getSegment() { return segment_ == null @@ -365,6 +374,8 @@ public com.google.cloud.videointelligence.v1p3beta1.DetectedAttribute getAttribu * * * float confidence = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The confidence. */ public float getConfidence() { return confidence_; @@ -623,13 +634,13 @@ public Builder clear() { } if (timestampedObjectsBuilder_ == null) { timestampedObjects_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } else { timestampedObjectsBuilder_.clear(); } if (attributesBuilder_ == null) { attributes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); } else { attributesBuilder_.clear(); } @@ -663,32 +674,30 @@ public com.google.cloud.videointelligence.v1p3beta1.Track buildPartial() { com.google.cloud.videointelligence.v1p3beta1.Track result = new com.google.cloud.videointelligence.v1p3beta1.Track(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (segmentBuilder_ == null) { result.segment_ = segment_; } else { result.segment_ = segmentBuilder_.build(); } if (timestampedObjectsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { timestampedObjects_ = java.util.Collections.unmodifiableList(timestampedObjects_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } result.timestampedObjects_ = timestampedObjects_; } else { result.timestampedObjects_ = timestampedObjectsBuilder_.build(); } if (attributesBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { attributes_ = java.util.Collections.unmodifiableList(attributes_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); } result.attributes_ = attributes_; } else { result.attributes_ = attributesBuilder_.build(); } result.confidence_ = confidence_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -746,7 +755,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1p3beta1.Track othe if (!other.timestampedObjects_.isEmpty()) { if (timestampedObjects_.isEmpty()) { timestampedObjects_ = other.timestampedObjects_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureTimestampedObjectsIsMutable(); timestampedObjects_.addAll(other.timestampedObjects_); @@ -759,7 +768,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1p3beta1.Track othe timestampedObjectsBuilder_.dispose(); timestampedObjectsBuilder_ = null; timestampedObjects_ = other.timestampedObjects_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); timestampedObjectsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTimestampedObjectsFieldBuilder() @@ -773,7 +782,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1p3beta1.Track othe if (!other.attributes_.isEmpty()) { if (attributes_.isEmpty()) { attributes_ = other.attributes_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureAttributesIsMutable(); attributes_.addAll(other.attributes_); @@ -786,7 +795,7 @@ public Builder mergeFrom(com.google.cloud.videointelligence.v1p3beta1.Track othe attributesBuilder_.dispose(); attributesBuilder_ = null; attributes_ = other.attributes_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); attributesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAttributesFieldBuilder() @@ -845,6 +854,8 @@ public Builder mergeFrom( * * * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1; + * + * @return Whether the segment field is set. */ public boolean hasSegment() { return segmentBuilder_ != null || segment_ != null; @@ -857,6 +868,8 @@ public boolean hasSegment() { * * * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1; + * + * @return The segment. */ public com.google.cloud.videointelligence.v1p3beta1.VideoSegment getSegment() { if (segmentBuilder_ == null) { @@ -1018,11 +1031,11 @@ public com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder getSegm timestampedObjects_ = java.util.Collections.emptyList(); private void ensureTimestampedObjectsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { timestampedObjects_ = new java.util.ArrayList( timestampedObjects_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } @@ -1268,7 +1281,7 @@ public Builder addAllTimestampedObjects( public Builder clearTimestampedObjects() { if (timestampedObjectsBuilder_ == null) { timestampedObjects_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { timestampedObjectsBuilder_.clear(); @@ -1413,7 +1426,7 @@ public Builder removeTimestampedObjects(int index) { com.google.cloud.videointelligence.v1p3beta1.TimestampedObject.Builder, com.google.cloud.videointelligence.v1p3beta1.TimestampedObjectOrBuilder>( timestampedObjects_, - ((bitField0_ & 0x00000002) != 0), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); timestampedObjects_ = null; @@ -1425,11 +1438,11 @@ public Builder removeTimestampedObjects(int index) { attributes_ = java.util.Collections.emptyList(); private void ensureAttributesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { attributes_ = new java.util.ArrayList( attributes_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; } } @@ -1674,7 +1687,7 @@ public Builder addAllAttributes( public Builder clearAttributes() { if (attributesBuilder_ == null) { attributes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { attributesBuilder_.clear(); @@ -1818,7 +1831,7 @@ public Builder removeAttributes(int index) { com.google.cloud.videointelligence.v1p3beta1.DetectedAttribute, com.google.cloud.videointelligence.v1p3beta1.DetectedAttribute.Builder, com.google.cloud.videointelligence.v1p3beta1.DetectedAttributeOrBuilder>( - attributes_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + attributes_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); attributes_ = null; } return attributesBuilder_; @@ -1833,6 +1846,8 @@ public Builder removeAttributes(int index) { * * * float confidence = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The confidence. */ public float getConfidence() { return confidence_; @@ -1845,6 +1860,9 @@ public float getConfidence() { * * * float confidence = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The confidence to set. + * @return This builder for chaining. */ public Builder setConfidence(float value) { @@ -1860,6 +1878,8 @@ public Builder setConfidence(float value) { * * * float confidence = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. */ public Builder clearConfidence() { diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TrackOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TrackOrBuilder.java index 0f629ec8f..a04bdebe2 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TrackOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TrackOrBuilder.java @@ -31,6 +31,8 @@ public interface TrackOrBuilder * * * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1; + * + * @return Whether the segment field is set. */ boolean hasSegment(); /** @@ -41,6 +43,8 @@ public interface TrackOrBuilder * * * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1; + * + * @return The segment. */ com.google.cloud.videointelligence.v1p3beta1.VideoSegment getSegment(); /** @@ -190,6 +194,8 @@ com.google.cloud.videointelligence.v1p3beta1.DetectedAttributeOrBuilder getAttri * * * float confidence = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The confidence. */ float getConfidence(); } diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoAnnotationProgress.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoAnnotationProgress.java index f58b4bca6..d7b7586e4 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoAnnotationProgress.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoAnnotationProgress.java @@ -42,6 +42,12 @@ private VideoAnnotationProgress() { feature_ = 0; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VideoAnnotationProgress(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -55,7 +61,6 @@ private VideoAnnotationProgress( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -177,6 +182,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string input_uri = 1; + * + * @return The inputUri. */ public java.lang.String getInputUri() { java.lang.Object ref = inputUri_; @@ -198,6 +205,8 @@ public java.lang.String getInputUri() { * * * string input_uri = 1; + * + * @return The bytes for inputUri. */ public com.google.protobuf.ByteString getInputUriBytes() { java.lang.Object ref = inputUri_; @@ -222,6 +231,8 @@ public com.google.protobuf.ByteString getInputUriBytes() { * * * int32 progress_percent = 2; + * + * @return The progressPercent. */ public int getProgressPercent() { return progressPercent_; @@ -237,6 +248,8 @@ public int getProgressPercent() { * * * .google.protobuf.Timestamp start_time = 3; + * + * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTime_ != null; @@ -249,6 +262,8 @@ public boolean hasStartTime() { * * * .google.protobuf.Timestamp start_time = 3; + * + * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; @@ -276,6 +291,8 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * * * .google.protobuf.Timestamp update_time = 4; + * + * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTime_ != null; @@ -288,6 +305,8 @@ public boolean hasUpdateTime() { * * * .google.protobuf.Timestamp update_time = 4; + * + * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; @@ -316,6 +335,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * * .google.cloud.videointelligence.v1p3beta1.Feature feature = 5; + * + * @return The enum numeric value on the wire for feature. */ public int getFeatureValue() { return feature_; @@ -329,6 +350,8 @@ public int getFeatureValue() { * * * .google.cloud.videointelligence.v1p3beta1.Feature feature = 5; + * + * @return The feature. */ public com.google.cloud.videointelligence.v1p3beta1.Feature getFeature() { @SuppressWarnings("deprecation") @@ -350,6 +373,8 @@ public com.google.cloud.videointelligence.v1p3beta1.Feature getFeature() { * * * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 6; + * + * @return Whether the segment field is set. */ public boolean hasSegment() { return segment_ != null; @@ -363,6 +388,8 @@ public boolean hasSegment() { * * * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 6; + * + * @return The segment. */ public com.google.cloud.videointelligence.v1p3beta1.VideoSegment getSegment() { return segment_ == null @@ -836,6 +863,8 @@ public Builder mergeFrom( * * * string input_uri = 1; + * + * @return The inputUri. */ public java.lang.String getInputUri() { java.lang.Object ref = inputUri_; @@ -857,6 +886,8 @@ public java.lang.String getInputUri() { * * * string input_uri = 1; + * + * @return The bytes for inputUri. */ public com.google.protobuf.ByteString getInputUriBytes() { java.lang.Object ref = inputUri_; @@ -878,6 +909,9 @@ public com.google.protobuf.ByteString getInputUriBytes() { * * * string input_uri = 1; + * + * @param value The inputUri to set. + * @return This builder for chaining. */ public Builder setInputUri(java.lang.String value) { if (value == null) { @@ -897,6 +931,8 @@ public Builder setInputUri(java.lang.String value) { * * * string input_uri = 1; + * + * @return This builder for chaining. */ public Builder clearInputUri() { @@ -913,6 +949,9 @@ public Builder clearInputUri() { * * * string input_uri = 1; + * + * @param value The bytes for inputUri to set. + * @return This builder for chaining. */ public Builder setInputUriBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -935,6 +974,8 @@ public Builder setInputUriBytes(com.google.protobuf.ByteString value) { * * * int32 progress_percent = 2; + * + * @return The progressPercent. */ public int getProgressPercent() { return progressPercent_; @@ -948,6 +989,9 @@ public int getProgressPercent() { * * * int32 progress_percent = 2; + * + * @param value The progressPercent to set. + * @return This builder for chaining. */ public Builder setProgressPercent(int value) { @@ -964,6 +1008,8 @@ public Builder setProgressPercent(int value) { * * * int32 progress_percent = 2; + * + * @return This builder for chaining. */ public Builder clearProgressPercent() { @@ -986,6 +1032,8 @@ public Builder clearProgressPercent() { * * * .google.protobuf.Timestamp start_time = 3; + * + * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; @@ -998,6 +1046,8 @@ public boolean hasStartTime() { * * * .google.protobuf.Timestamp start_time = 3; + * + * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { if (startTimeBuilder_ == null) { @@ -1161,6 +1211,8 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * * * .google.protobuf.Timestamp update_time = 4; + * + * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; @@ -1173,6 +1225,8 @@ public boolean hasUpdateTime() { * * * .google.protobuf.Timestamp update_time = 4; + * + * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { @@ -1336,6 +1390,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * * .google.cloud.videointelligence.v1p3beta1.Feature feature = 5; + * + * @return The enum numeric value on the wire for feature. */ public int getFeatureValue() { return feature_; @@ -1349,6 +1405,9 @@ public int getFeatureValue() { * * * .google.cloud.videointelligence.v1p3beta1.Feature feature = 5; + * + * @param value The enum numeric value on the wire for feature to set. + * @return This builder for chaining. */ public Builder setFeatureValue(int value) { feature_ = value; @@ -1364,6 +1423,8 @@ public Builder setFeatureValue(int value) { * * * .google.cloud.videointelligence.v1p3beta1.Feature feature = 5; + * + * @return The feature. */ public com.google.cloud.videointelligence.v1p3beta1.Feature getFeature() { @SuppressWarnings("deprecation") @@ -1382,6 +1443,9 @@ public com.google.cloud.videointelligence.v1p3beta1.Feature getFeature() { * * * .google.cloud.videointelligence.v1p3beta1.Feature feature = 5; + * + * @param value The feature to set. + * @return This builder for chaining. */ public Builder setFeature(com.google.cloud.videointelligence.v1p3beta1.Feature value) { if (value == null) { @@ -1401,6 +1465,8 @@ public Builder setFeature(com.google.cloud.videointelligence.v1p3beta1.Feature v * * * .google.cloud.videointelligence.v1p3beta1.Feature feature = 5; + * + * @return This builder for chaining. */ public Builder clearFeature() { @@ -1424,6 +1490,8 @@ public Builder clearFeature() { * * * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 6; + * + * @return Whether the segment field is set. */ public boolean hasSegment() { return segmentBuilder_ != null || segment_ != null; @@ -1437,6 +1505,8 @@ public boolean hasSegment() { * * * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 6; + * + * @return The segment. */ public com.google.cloud.videointelligence.v1p3beta1.VideoSegment getSegment() { if (segmentBuilder_ == null) { diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoAnnotationProgressOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoAnnotationProgressOrBuilder.java index a428a4768..ca4410e43 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoAnnotationProgressOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoAnnotationProgressOrBuilder.java @@ -32,6 +32,8 @@ public interface VideoAnnotationProgressOrBuilder * * * string input_uri = 1; + * + * @return The inputUri. */ java.lang.String getInputUri(); /** @@ -43,6 +45,8 @@ public interface VideoAnnotationProgressOrBuilder * * * string input_uri = 1; + * + * @return The bytes for inputUri. */ com.google.protobuf.ByteString getInputUriBytes(); @@ -55,6 +59,8 @@ public interface VideoAnnotationProgressOrBuilder * * * int32 progress_percent = 2; + * + * @return The progressPercent. */ int getProgressPercent(); @@ -66,6 +72,8 @@ public interface VideoAnnotationProgressOrBuilder * * * .google.protobuf.Timestamp start_time = 3; + * + * @return Whether the startTime field is set. */ boolean hasStartTime(); /** @@ -76,6 +84,8 @@ public interface VideoAnnotationProgressOrBuilder * * * .google.protobuf.Timestamp start_time = 3; + * + * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** @@ -97,6 +107,8 @@ public interface VideoAnnotationProgressOrBuilder * * * .google.protobuf.Timestamp update_time = 4; + * + * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** @@ -107,6 +119,8 @@ public interface VideoAnnotationProgressOrBuilder * * * .google.protobuf.Timestamp update_time = 4; + * + * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** @@ -129,6 +143,8 @@ public interface VideoAnnotationProgressOrBuilder * * * .google.cloud.videointelligence.v1p3beta1.Feature feature = 5; + * + * @return The enum numeric value on the wire for feature. */ int getFeatureValue(); /** @@ -140,6 +156,8 @@ public interface VideoAnnotationProgressOrBuilder * * * .google.cloud.videointelligence.v1p3beta1.Feature feature = 5; + * + * @return The feature. */ com.google.cloud.videointelligence.v1p3beta1.Feature getFeature(); @@ -152,6 +170,8 @@ public interface VideoAnnotationProgressOrBuilder * * * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 6; + * + * @return Whether the segment field is set. */ boolean hasSegment(); /** @@ -163,6 +183,8 @@ public interface VideoAnnotationProgressOrBuilder * * * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 6; + * + * @return The segment. */ com.google.cloud.videointelligence.v1p3beta1.VideoSegment getSegment(); /** diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoAnnotationResults.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoAnnotationResults.java index 49b896773..fd3d06032 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoAnnotationResults.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoAnnotationResults.java @@ -51,6 +51,12 @@ private VideoAnnotationResults() { logoRecognitionAnnotations_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VideoAnnotationResults(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -84,11 +90,11 @@ private VideoAnnotationResults( } case 18: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { segmentLabelAnnotations_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation>(); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000001; } segmentLabelAnnotations_.add( input.readMessage( @@ -98,11 +104,11 @@ private VideoAnnotationResults( } case 26: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { shotLabelAnnotations_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation>(); - mutable_bitField0_ |= 0x00000010; + mutable_bitField0_ |= 0x00000004; } shotLabelAnnotations_.add( input.readMessage( @@ -112,11 +118,11 @@ private VideoAnnotationResults( } case 34: { - if (!((mutable_bitField0_ & 0x00000040) != 0)) { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { frameLabelAnnotations_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation>(); - mutable_bitField0_ |= 0x00000040; + mutable_bitField0_ |= 0x00000010; } frameLabelAnnotations_.add( input.readMessage( @@ -126,11 +132,11 @@ private VideoAnnotationResults( } case 50: { - if (!((mutable_bitField0_ & 0x00000080) != 0)) { + if (!((mutable_bitField0_ & 0x00000020) != 0)) { shotAnnotations_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p3beta1.VideoSegment>(); - mutable_bitField0_ |= 0x00000080; + mutable_bitField0_ |= 0x00000020; } shotAnnotations_.add( input.readMessage( @@ -190,11 +196,11 @@ private VideoAnnotationResults( } case 90: { - if (!((mutable_bitField0_ & 0x00000200) != 0)) { + if (!((mutable_bitField0_ & 0x00000040) != 0)) { speechTranscriptions_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p3beta1.SpeechTranscription>(); - mutable_bitField0_ |= 0x00000200; + mutable_bitField0_ |= 0x00000040; } speechTranscriptions_.add( input.readMessage( @@ -204,11 +210,11 @@ private VideoAnnotationResults( } case 98: { - if (!((mutable_bitField0_ & 0x00000400) != 0)) { + if (!((mutable_bitField0_ & 0x00000080) != 0)) { textAnnotations_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p3beta1.TextAnnotation>(); - mutable_bitField0_ |= 0x00000400; + mutable_bitField0_ |= 0x00000080; } textAnnotations_.add( input.readMessage( @@ -218,11 +224,11 @@ private VideoAnnotationResults( } case 114: { - if (!((mutable_bitField0_ & 0x00000800) != 0)) { + if (!((mutable_bitField0_ & 0x00000100) != 0)) { objectAnnotations_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation>(); - mutable_bitField0_ |= 0x00000800; + mutable_bitField0_ |= 0x00000100; } objectAnnotations_.add( input.readMessage( @@ -233,11 +239,11 @@ private VideoAnnotationResults( } case 154: { - if (!((mutable_bitField0_ & 0x00001000) != 0)) { + if (!((mutable_bitField0_ & 0x00000200) != 0)) { logoRecognitionAnnotations_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p3beta1.LogoRecognitionAnnotation>(); - mutable_bitField0_ |= 0x00001000; + mutable_bitField0_ |= 0x00000200; } logoRecognitionAnnotations_.add( input.readMessage( @@ -267,11 +273,11 @@ private VideoAnnotationResults( } case 186: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { segmentPresenceLabelAnnotations_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation>(); - mutable_bitField0_ |= 0x00000008; + mutable_bitField0_ |= 0x00000002; } segmentPresenceLabelAnnotations_.add( input.readMessage( @@ -281,11 +287,11 @@ private VideoAnnotationResults( } case 194: { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { shotPresenceLabelAnnotations_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation>(); - mutable_bitField0_ |= 0x00000020; + mutable_bitField0_ |= 0x00000008; } shotPresenceLabelAnnotations_.add( input.readMessage( @@ -307,36 +313,36 @@ private VideoAnnotationResults( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { segmentLabelAnnotations_ = java.util.Collections.unmodifiableList(segmentLabelAnnotations_); } - if (((mutable_bitField0_ & 0x00000010) != 0)) { + if (((mutable_bitField0_ & 0x00000004) != 0)) { shotLabelAnnotations_ = java.util.Collections.unmodifiableList(shotLabelAnnotations_); } - if (((mutable_bitField0_ & 0x00000040) != 0)) { + if (((mutable_bitField0_ & 0x00000010) != 0)) { frameLabelAnnotations_ = java.util.Collections.unmodifiableList(frameLabelAnnotations_); } - if (((mutable_bitField0_ & 0x00000080) != 0)) { + if (((mutable_bitField0_ & 0x00000020) != 0)) { shotAnnotations_ = java.util.Collections.unmodifiableList(shotAnnotations_); } - if (((mutable_bitField0_ & 0x00000200) != 0)) { + if (((mutable_bitField0_ & 0x00000040) != 0)) { speechTranscriptions_ = java.util.Collections.unmodifiableList(speechTranscriptions_); } - if (((mutable_bitField0_ & 0x00000400) != 0)) { + if (((mutable_bitField0_ & 0x00000080) != 0)) { textAnnotations_ = java.util.Collections.unmodifiableList(textAnnotations_); } - if (((mutable_bitField0_ & 0x00000800) != 0)) { + if (((mutable_bitField0_ & 0x00000100) != 0)) { objectAnnotations_ = java.util.Collections.unmodifiableList(objectAnnotations_); } - if (((mutable_bitField0_ & 0x00001000) != 0)) { + if (((mutable_bitField0_ & 0x00000200) != 0)) { logoRecognitionAnnotations_ = java.util.Collections.unmodifiableList(logoRecognitionAnnotations_); } - if (((mutable_bitField0_ & 0x00000008) != 0)) { + if (((mutable_bitField0_ & 0x00000002) != 0)) { segmentPresenceLabelAnnotations_ = java.util.Collections.unmodifiableList(segmentPresenceLabelAnnotations_); } - if (((mutable_bitField0_ & 0x00000020) != 0)) { + if (((mutable_bitField0_ & 0x00000008) != 0)) { shotPresenceLabelAnnotations_ = java.util.Collections.unmodifiableList(shotPresenceLabelAnnotations_); } @@ -360,7 +366,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults.Builder.class); } - private int bitField0_; public static final int INPUT_URI_FIELD_NUMBER = 1; private volatile java.lang.Object inputUri_; /** @@ -372,6 +377,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string input_uri = 1; + * + * @return The inputUri. */ public java.lang.String getInputUri() { java.lang.Object ref = inputUri_; @@ -393,6 +400,8 @@ public java.lang.String getInputUri() { * * * string input_uri = 1; + * + * @return The bytes for inputUri. */ public com.google.protobuf.ByteString getInputUriBytes() { java.lang.Object ref = inputUri_; @@ -416,6 +425,8 @@ public com.google.protobuf.ByteString getInputUriBytes() { * * * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 10; + * + * @return Whether the segment field is set. */ public boolean hasSegment() { return segment_ != null; @@ -428,6 +439,8 @@ public boolean hasSegment() { * * * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 10; + * + * @return The segment. */ public com.google.cloud.videointelligence.v1p3beta1.VideoSegment getSegment() { return segment_ == null @@ -988,6 +1001,8 @@ public com.google.cloud.videointelligence.v1p3beta1.VideoSegment getShotAnnotati * * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 7; * + * + * @return Whether the explicitAnnotation field is set. */ public boolean hasExplicitAnnotation() { return explicitAnnotation_ != null; @@ -1002,6 +1017,8 @@ public boolean hasExplicitAnnotation() { * * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 7; * + * + * @return The explicitAnnotation. */ public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation getExplicitAnnotation() { @@ -1359,6 +1376,8 @@ public int getLogoRecognitionAnnotationsCount() { * * .google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation celebrity_recognition_annotations = 21; * + * + * @return Whether the celebrityRecognitionAnnotations field is set. */ public boolean hasCelebrityRecognitionAnnotations() { return celebrityRecognitionAnnotations_ != null; @@ -1373,6 +1392,8 @@ public boolean hasCelebrityRecognitionAnnotations() { * * .google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation celebrity_recognition_annotations = 21; * + * + * @return The celebrityRecognitionAnnotations. */ public com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation getCelebrityRecognitionAnnotations() { @@ -1408,6 +1429,8 @@ public boolean hasCelebrityRecognitionAnnotations() { * * * .google.rpc.Status error = 9; + * + * @return Whether the error field is set. */ public boolean hasError() { return error_ != null; @@ -1421,6 +1444,8 @@ public boolean hasError() { * * * .google.rpc.Status error = 9; + * + * @return The error. */ public com.google.rpc.Status getError() { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; @@ -1855,37 +1880,37 @@ public Builder clear() { } if (segmentLabelAnnotationsBuilder_ == null) { segmentLabelAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } else { segmentLabelAnnotationsBuilder_.clear(); } if (segmentPresenceLabelAnnotationsBuilder_ == null) { segmentPresenceLabelAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000002); } else { segmentPresenceLabelAnnotationsBuilder_.clear(); } if (shotLabelAnnotationsBuilder_ == null) { shotLabelAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000004); } else { shotLabelAnnotationsBuilder_.clear(); } if (shotPresenceLabelAnnotationsBuilder_ == null) { shotPresenceLabelAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000008); } else { shotPresenceLabelAnnotationsBuilder_.clear(); } if (frameLabelAnnotationsBuilder_ == null) { frameLabelAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000010); } else { frameLabelAnnotationsBuilder_.clear(); } if (shotAnnotationsBuilder_ == null) { shotAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000020); } else { shotAnnotationsBuilder_.clear(); } @@ -1897,25 +1922,25 @@ public Builder clear() { } if (speechTranscriptionsBuilder_ == null) { speechTranscriptions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000040); } else { speechTranscriptionsBuilder_.clear(); } if (textAnnotationsBuilder_ == null) { textAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000080); } else { textAnnotationsBuilder_.clear(); } if (objectAnnotationsBuilder_ == null) { objectAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00000100); } else { objectAnnotationsBuilder_.clear(); } if (logoRecognitionAnnotationsBuilder_ == null) { logoRecognitionAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00000200); } else { logoRecognitionAnnotationsBuilder_.clear(); } @@ -1961,7 +1986,6 @@ public com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults build com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults result = new com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.inputUri_ = inputUri_; if (segmentBuilder_ == null) { result.segment_ = segment_; @@ -1969,57 +1993,57 @@ public com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults build result.segment_ = segmentBuilder_.build(); } if (segmentLabelAnnotationsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { segmentLabelAnnotations_ = java.util.Collections.unmodifiableList(segmentLabelAnnotations_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } result.segmentLabelAnnotations_ = segmentLabelAnnotations_; } else { result.segmentLabelAnnotations_ = segmentLabelAnnotationsBuilder_.build(); } if (segmentPresenceLabelAnnotationsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { segmentPresenceLabelAnnotations_ = java.util.Collections.unmodifiableList(segmentPresenceLabelAnnotations_); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000002); } result.segmentPresenceLabelAnnotations_ = segmentPresenceLabelAnnotations_; } else { result.segmentPresenceLabelAnnotations_ = segmentPresenceLabelAnnotationsBuilder_.build(); } if (shotLabelAnnotationsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { shotLabelAnnotations_ = java.util.Collections.unmodifiableList(shotLabelAnnotations_); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000004); } result.shotLabelAnnotations_ = shotLabelAnnotations_; } else { result.shotLabelAnnotations_ = shotLabelAnnotationsBuilder_.build(); } if (shotPresenceLabelAnnotationsBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { shotPresenceLabelAnnotations_ = java.util.Collections.unmodifiableList(shotPresenceLabelAnnotations_); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000008); } result.shotPresenceLabelAnnotations_ = shotPresenceLabelAnnotations_; } else { result.shotPresenceLabelAnnotations_ = shotPresenceLabelAnnotationsBuilder_.build(); } if (frameLabelAnnotationsBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { frameLabelAnnotations_ = java.util.Collections.unmodifiableList(frameLabelAnnotations_); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000010); } result.frameLabelAnnotations_ = frameLabelAnnotations_; } else { result.frameLabelAnnotations_ = frameLabelAnnotationsBuilder_.build(); } if (shotAnnotationsBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { shotAnnotations_ = java.util.Collections.unmodifiableList(shotAnnotations_); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000020); } result.shotAnnotations_ = shotAnnotations_; } else { @@ -2031,37 +2055,37 @@ public com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults build result.explicitAnnotation_ = explicitAnnotationBuilder_.build(); } if (speechTranscriptionsBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { speechTranscriptions_ = java.util.Collections.unmodifiableList(speechTranscriptions_); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000040); } result.speechTranscriptions_ = speechTranscriptions_; } else { result.speechTranscriptions_ = speechTranscriptionsBuilder_.build(); } if (textAnnotationsBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { textAnnotations_ = java.util.Collections.unmodifiableList(textAnnotations_); - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000080); } result.textAnnotations_ = textAnnotations_; } else { result.textAnnotations_ = textAnnotationsBuilder_.build(); } if (objectAnnotationsBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { objectAnnotations_ = java.util.Collections.unmodifiableList(objectAnnotations_); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00000100); } result.objectAnnotations_ = objectAnnotations_; } else { result.objectAnnotations_ = objectAnnotationsBuilder_.build(); } if (logoRecognitionAnnotationsBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { logoRecognitionAnnotations_ = java.util.Collections.unmodifiableList(logoRecognitionAnnotations_); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00000200); } result.logoRecognitionAnnotations_ = logoRecognitionAnnotations_; } else { @@ -2077,7 +2101,6 @@ public com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults build } else { result.error_ = errorBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -2142,7 +2165,7 @@ public Builder mergeFrom( if (!other.segmentLabelAnnotations_.isEmpty()) { if (segmentLabelAnnotations_.isEmpty()) { segmentLabelAnnotations_ = other.segmentLabelAnnotations_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSegmentLabelAnnotationsIsMutable(); segmentLabelAnnotations_.addAll(other.segmentLabelAnnotations_); @@ -2155,7 +2178,7 @@ public Builder mergeFrom( segmentLabelAnnotationsBuilder_.dispose(); segmentLabelAnnotationsBuilder_ = null; segmentLabelAnnotations_ = other.segmentLabelAnnotations_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); segmentLabelAnnotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSegmentLabelAnnotationsFieldBuilder() @@ -2169,7 +2192,7 @@ public Builder mergeFrom( if (!other.segmentPresenceLabelAnnotations_.isEmpty()) { if (segmentPresenceLabelAnnotations_.isEmpty()) { segmentPresenceLabelAnnotations_ = other.segmentPresenceLabelAnnotations_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureSegmentPresenceLabelAnnotationsIsMutable(); segmentPresenceLabelAnnotations_.addAll(other.segmentPresenceLabelAnnotations_); @@ -2182,7 +2205,7 @@ public Builder mergeFrom( segmentPresenceLabelAnnotationsBuilder_.dispose(); segmentPresenceLabelAnnotationsBuilder_ = null; segmentPresenceLabelAnnotations_ = other.segmentPresenceLabelAnnotations_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000002); segmentPresenceLabelAnnotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSegmentPresenceLabelAnnotationsFieldBuilder() @@ -2197,7 +2220,7 @@ public Builder mergeFrom( if (!other.shotLabelAnnotations_.isEmpty()) { if (shotLabelAnnotations_.isEmpty()) { shotLabelAnnotations_ = other.shotLabelAnnotations_; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureShotLabelAnnotationsIsMutable(); shotLabelAnnotations_.addAll(other.shotLabelAnnotations_); @@ -2210,7 +2233,7 @@ public Builder mergeFrom( shotLabelAnnotationsBuilder_.dispose(); shotLabelAnnotationsBuilder_ = null; shotLabelAnnotations_ = other.shotLabelAnnotations_; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000004); shotLabelAnnotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getShotLabelAnnotationsFieldBuilder() @@ -2224,7 +2247,7 @@ public Builder mergeFrom( if (!other.shotPresenceLabelAnnotations_.isEmpty()) { if (shotPresenceLabelAnnotations_.isEmpty()) { shotPresenceLabelAnnotations_ = other.shotPresenceLabelAnnotations_; - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensureShotPresenceLabelAnnotationsIsMutable(); shotPresenceLabelAnnotations_.addAll(other.shotPresenceLabelAnnotations_); @@ -2237,7 +2260,7 @@ public Builder mergeFrom( shotPresenceLabelAnnotationsBuilder_.dispose(); shotPresenceLabelAnnotationsBuilder_ = null; shotPresenceLabelAnnotations_ = other.shotPresenceLabelAnnotations_; - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000008); shotPresenceLabelAnnotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getShotPresenceLabelAnnotationsFieldBuilder() @@ -2252,7 +2275,7 @@ public Builder mergeFrom( if (!other.frameLabelAnnotations_.isEmpty()) { if (frameLabelAnnotations_.isEmpty()) { frameLabelAnnotations_ = other.frameLabelAnnotations_; - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000010); } else { ensureFrameLabelAnnotationsIsMutable(); frameLabelAnnotations_.addAll(other.frameLabelAnnotations_); @@ -2265,7 +2288,7 @@ public Builder mergeFrom( frameLabelAnnotationsBuilder_.dispose(); frameLabelAnnotationsBuilder_ = null; frameLabelAnnotations_ = other.frameLabelAnnotations_; - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000010); frameLabelAnnotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFrameLabelAnnotationsFieldBuilder() @@ -2279,7 +2302,7 @@ public Builder mergeFrom( if (!other.shotAnnotations_.isEmpty()) { if (shotAnnotations_.isEmpty()) { shotAnnotations_ = other.shotAnnotations_; - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000020); } else { ensureShotAnnotationsIsMutable(); shotAnnotations_.addAll(other.shotAnnotations_); @@ -2292,7 +2315,7 @@ public Builder mergeFrom( shotAnnotationsBuilder_.dispose(); shotAnnotationsBuilder_ = null; shotAnnotations_ = other.shotAnnotations_; - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000020); shotAnnotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getShotAnnotationsFieldBuilder() @@ -2309,7 +2332,7 @@ public Builder mergeFrom( if (!other.speechTranscriptions_.isEmpty()) { if (speechTranscriptions_.isEmpty()) { speechTranscriptions_ = other.speechTranscriptions_; - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000040); } else { ensureSpeechTranscriptionsIsMutable(); speechTranscriptions_.addAll(other.speechTranscriptions_); @@ -2322,7 +2345,7 @@ public Builder mergeFrom( speechTranscriptionsBuilder_.dispose(); speechTranscriptionsBuilder_ = null; speechTranscriptions_ = other.speechTranscriptions_; - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000040); speechTranscriptionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSpeechTranscriptionsFieldBuilder() @@ -2336,7 +2359,7 @@ public Builder mergeFrom( if (!other.textAnnotations_.isEmpty()) { if (textAnnotations_.isEmpty()) { textAnnotations_ = other.textAnnotations_; - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000080); } else { ensureTextAnnotationsIsMutable(); textAnnotations_.addAll(other.textAnnotations_); @@ -2349,7 +2372,7 @@ public Builder mergeFrom( textAnnotationsBuilder_.dispose(); textAnnotationsBuilder_ = null; textAnnotations_ = other.textAnnotations_; - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000080); textAnnotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTextAnnotationsFieldBuilder() @@ -2363,7 +2386,7 @@ public Builder mergeFrom( if (!other.objectAnnotations_.isEmpty()) { if (objectAnnotations_.isEmpty()) { objectAnnotations_ = other.objectAnnotations_; - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00000100); } else { ensureObjectAnnotationsIsMutable(); objectAnnotations_.addAll(other.objectAnnotations_); @@ -2376,7 +2399,7 @@ public Builder mergeFrom( objectAnnotationsBuilder_.dispose(); objectAnnotationsBuilder_ = null; objectAnnotations_ = other.objectAnnotations_; - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00000100); objectAnnotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getObjectAnnotationsFieldBuilder() @@ -2390,7 +2413,7 @@ public Builder mergeFrom( if (!other.logoRecognitionAnnotations_.isEmpty()) { if (logoRecognitionAnnotations_.isEmpty()) { logoRecognitionAnnotations_ = other.logoRecognitionAnnotations_; - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00000200); } else { ensureLogoRecognitionAnnotationsIsMutable(); logoRecognitionAnnotations_.addAll(other.logoRecognitionAnnotations_); @@ -2403,7 +2426,7 @@ public Builder mergeFrom( logoRecognitionAnnotationsBuilder_.dispose(); logoRecognitionAnnotationsBuilder_ = null; logoRecognitionAnnotations_ = other.logoRecognitionAnnotations_; - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00000200); logoRecognitionAnnotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLogoRecognitionAnnotationsFieldBuilder() @@ -2462,6 +2485,8 @@ public Builder mergeFrom( * * * string input_uri = 1; + * + * @return The inputUri. */ public java.lang.String getInputUri() { java.lang.Object ref = inputUri_; @@ -2483,6 +2508,8 @@ public java.lang.String getInputUri() { * * * string input_uri = 1; + * + * @return The bytes for inputUri. */ public com.google.protobuf.ByteString getInputUriBytes() { java.lang.Object ref = inputUri_; @@ -2504,6 +2531,9 @@ public com.google.protobuf.ByteString getInputUriBytes() { * * * string input_uri = 1; + * + * @param value The inputUri to set. + * @return This builder for chaining. */ public Builder setInputUri(java.lang.String value) { if (value == null) { @@ -2523,6 +2553,8 @@ public Builder setInputUri(java.lang.String value) { * * * string input_uri = 1; + * + * @return This builder for chaining. */ public Builder clearInputUri() { @@ -2539,6 +2571,9 @@ public Builder clearInputUri() { * * * string input_uri = 1; + * + * @param value The bytes for inputUri to set. + * @return This builder for chaining. */ public Builder setInputUriBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -2565,6 +2600,8 @@ public Builder setInputUriBytes(com.google.protobuf.ByteString value) { * * * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 10; + * + * @return Whether the segment field is set. */ public boolean hasSegment() { return segmentBuilder_ != null || segment_ != null; @@ -2577,6 +2614,8 @@ public boolean hasSegment() { * * * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 10; + * + * @return The segment. */ public com.google.cloud.videointelligence.v1p3beta1.VideoSegment getSegment() { if (segmentBuilder_ == null) { @@ -2738,11 +2777,11 @@ public com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder getSegm segmentLabelAnnotations_ = java.util.Collections.emptyList(); private void ensureSegmentLabelAnnotationsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { segmentLabelAnnotations_ = new java.util.ArrayList( segmentLabelAnnotations_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; } } @@ -2999,7 +3038,7 @@ public Builder addAllSegmentLabelAnnotations( public Builder clearSegmentLabelAnnotations() { if (segmentLabelAnnotationsBuilder_ == null) { segmentLabelAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { segmentLabelAnnotationsBuilder_.clear(); @@ -3151,7 +3190,7 @@ public Builder removeSegmentLabelAnnotations(int index) { com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder, com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder>( segmentLabelAnnotations_, - ((bitField0_ & 0x00000004) != 0), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); segmentLabelAnnotations_ = null; @@ -3163,11 +3202,11 @@ public Builder removeSegmentLabelAnnotations(int index) { segmentPresenceLabelAnnotations_ = java.util.Collections.emptyList(); private void ensureSegmentPresenceLabelAnnotationsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { segmentPresenceLabelAnnotations_ = new java.util.ArrayList( segmentPresenceLabelAnnotations_); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000002; } } @@ -3469,7 +3508,7 @@ public Builder addAllSegmentPresenceLabelAnnotations( public Builder clearSegmentPresenceLabelAnnotations() { if (segmentPresenceLabelAnnotationsBuilder_ == null) { segmentPresenceLabelAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { segmentPresenceLabelAnnotationsBuilder_.clear(); @@ -3649,7 +3688,7 @@ public Builder removeSegmentPresenceLabelAnnotations(int index) { com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder, com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder>( segmentPresenceLabelAnnotations_, - ((bitField0_ & 0x00000008) != 0), + ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); segmentPresenceLabelAnnotations_ = null; @@ -3661,11 +3700,11 @@ public Builder removeSegmentPresenceLabelAnnotations(int index) { shotLabelAnnotations_ = java.util.Collections.emptyList(); private void ensureShotLabelAnnotationsIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { shotLabelAnnotations_ = new java.util.ArrayList( shotLabelAnnotations_); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000004; } } @@ -3922,7 +3961,7 @@ public Builder addAllShotLabelAnnotations( public Builder clearShotLabelAnnotations() { if (shotLabelAnnotationsBuilder_ == null) { shotLabelAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { shotLabelAnnotationsBuilder_.clear(); @@ -4074,7 +4113,7 @@ public Builder removeShotLabelAnnotations(int index) { com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder, com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder>( shotLabelAnnotations_, - ((bitField0_ & 0x00000010) != 0), + ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); shotLabelAnnotations_ = null; @@ -4086,11 +4125,11 @@ public Builder removeShotLabelAnnotations(int index) { shotPresenceLabelAnnotations_ = java.util.Collections.emptyList(); private void ensureShotPresenceLabelAnnotationsIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { shotPresenceLabelAnnotations_ = new java.util.ArrayList( shotPresenceLabelAnnotations_); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000008; } } @@ -4381,7 +4420,7 @@ public Builder addAllShotPresenceLabelAnnotations( public Builder clearShotPresenceLabelAnnotations() { if (shotPresenceLabelAnnotationsBuilder_ == null) { shotPresenceLabelAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { shotPresenceLabelAnnotationsBuilder_.clear(); @@ -4554,7 +4593,7 @@ public Builder removeShotPresenceLabelAnnotations(int index) { com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder, com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder>( shotPresenceLabelAnnotations_, - ((bitField0_ & 0x00000020) != 0), + ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); shotPresenceLabelAnnotations_ = null; @@ -4566,11 +4605,11 @@ public Builder removeShotPresenceLabelAnnotations(int index) { frameLabelAnnotations_ = java.util.Collections.emptyList(); private void ensureFrameLabelAnnotationsIsMutable() { - if (!((bitField0_ & 0x00000040) != 0)) { + if (!((bitField0_ & 0x00000010) != 0)) { frameLabelAnnotations_ = new java.util.ArrayList( frameLabelAnnotations_); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000010; } } @@ -4827,7 +4866,7 @@ public Builder addAllFrameLabelAnnotations( public Builder clearFrameLabelAnnotations() { if (frameLabelAnnotationsBuilder_ == null) { frameLabelAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { frameLabelAnnotationsBuilder_.clear(); @@ -4979,7 +5018,7 @@ public Builder removeFrameLabelAnnotations(int index) { com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder, com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder>( frameLabelAnnotations_, - ((bitField0_ & 0x00000040) != 0), + ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); frameLabelAnnotations_ = null; @@ -4991,11 +5030,11 @@ public Builder removeFrameLabelAnnotations(int index) { shotAnnotations_ = java.util.Collections.emptyList(); private void ensureShotAnnotationsIsMutable() { - if (!((bitField0_ & 0x00000080) != 0)) { + if (!((bitField0_ & 0x00000020) != 0)) { shotAnnotations_ = new java.util.ArrayList( shotAnnotations_); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000020; } } @@ -5229,7 +5268,7 @@ public Builder addAllShotAnnotations( public Builder clearShotAnnotations() { if (shotAnnotationsBuilder_ == null) { shotAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { shotAnnotationsBuilder_.clear(); @@ -5367,7 +5406,7 @@ public Builder removeShotAnnotations(int index) { com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder, com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder>( shotAnnotations_, - ((bitField0_ & 0x00000080) != 0), + ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); shotAnnotations_ = null; @@ -5392,6 +5431,8 @@ public Builder removeShotAnnotations(int index) { * * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 7; * + * + * @return Whether the explicitAnnotation field is set. */ public boolean hasExplicitAnnotation() { return explicitAnnotationBuilder_ != null || explicitAnnotation_ != null; @@ -5406,6 +5447,8 @@ public boolean hasExplicitAnnotation() { * * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 7; * + * + * @return The explicitAnnotation. */ public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation getExplicitAnnotation() { @@ -5589,12 +5632,12 @@ public Builder clearExplicitAnnotation() { speechTranscriptions_ = java.util.Collections.emptyList(); private void ensureSpeechTranscriptionsIsMutable() { - if (!((bitField0_ & 0x00000200) != 0)) { + if (!((bitField0_ & 0x00000040) != 0)) { speechTranscriptions_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p3beta1.SpeechTranscription>( speechTranscriptions_); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000040; } } @@ -5841,7 +5884,7 @@ public Builder addAllSpeechTranscriptions( public Builder clearSpeechTranscriptions() { if (speechTranscriptionsBuilder_ == null) { speechTranscriptions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { speechTranscriptionsBuilder_.clear(); @@ -5988,7 +6031,7 @@ public Builder removeSpeechTranscriptions(int index) { com.google.cloud.videointelligence.v1p3beta1.SpeechTranscription.Builder, com.google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionOrBuilder>( speechTranscriptions_, - ((bitField0_ & 0x00000200) != 0), + ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); speechTranscriptions_ = null; @@ -6000,11 +6043,11 @@ public Builder removeSpeechTranscriptions(int index) { textAnnotations_ = java.util.Collections.emptyList(); private void ensureTextAnnotationsIsMutable() { - if (!((bitField0_ & 0x00000400) != 0)) { + if (!((bitField0_ & 0x00000080) != 0)) { textAnnotations_ = new java.util.ArrayList( textAnnotations_); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000080; } } @@ -6272,7 +6315,7 @@ public Builder addAllTextAnnotations( public Builder clearTextAnnotations() { if (textAnnotationsBuilder_ == null) { textAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { textAnnotationsBuilder_.clear(); @@ -6431,7 +6474,7 @@ public Builder removeTextAnnotations(int index) { com.google.cloud.videointelligence.v1p3beta1.TextAnnotation.Builder, com.google.cloud.videointelligence.v1p3beta1.TextAnnotationOrBuilder>( textAnnotations_, - ((bitField0_ & 0x00000400) != 0), + ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); textAnnotations_ = null; @@ -6443,12 +6486,12 @@ public Builder removeTextAnnotations(int index) { objectAnnotations_ = java.util.Collections.emptyList(); private void ensureObjectAnnotationsIsMutable() { - if (!((bitField0_ & 0x00000800) != 0)) { + if (!((bitField0_ & 0x00000100) != 0)) { objectAnnotations_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation>( objectAnnotations_); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00000100; } } @@ -6698,7 +6741,7 @@ public Builder addAllObjectAnnotations( public Builder clearObjectAnnotations() { if (objectAnnotationsBuilder_ == null) { objectAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); } else { objectAnnotationsBuilder_.clear(); @@ -6847,7 +6890,7 @@ public Builder removeObjectAnnotations(int index) { com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation.Builder, com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotationOrBuilder>( objectAnnotations_, - ((bitField0_ & 0x00000800) != 0), + ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean()); objectAnnotations_ = null; @@ -6859,12 +6902,12 @@ public Builder removeObjectAnnotations(int index) { logoRecognitionAnnotations_ = java.util.Collections.emptyList(); private void ensureLogoRecognitionAnnotationsIsMutable() { - if (!((bitField0_ & 0x00001000) != 0)) { + if (!((bitField0_ & 0x00000200) != 0)) { logoRecognitionAnnotations_ = new java.util.ArrayList< com.google.cloud.videointelligence.v1p3beta1.LogoRecognitionAnnotation>( logoRecognitionAnnotations_); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00000200; } } @@ -7114,7 +7157,7 @@ public Builder addAllLogoRecognitionAnnotations( public Builder clearLogoRecognitionAnnotations() { if (logoRecognitionAnnotationsBuilder_ == null) { logoRecognitionAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); } else { logoRecognitionAnnotationsBuilder_.clear(); @@ -7263,7 +7306,7 @@ public Builder removeLogoRecognitionAnnotations(int index) { com.google.cloud.videointelligence.v1p3beta1.LogoRecognitionAnnotation.Builder, com.google.cloud.videointelligence.v1p3beta1.LogoRecognitionAnnotationOrBuilder>( logoRecognitionAnnotations_, - ((bitField0_ & 0x00001000) != 0), + ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean()); logoRecognitionAnnotations_ = null; @@ -7288,6 +7331,8 @@ public Builder removeLogoRecognitionAnnotations(int index) { * * .google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation celebrity_recognition_annotations = 21; * + * + * @return Whether the celebrityRecognitionAnnotations field is set. */ public boolean hasCelebrityRecognitionAnnotations() { return celebrityRecognitionAnnotationsBuilder_ != null @@ -7303,6 +7348,8 @@ public boolean hasCelebrityRecognitionAnnotations() { * * .google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation celebrity_recognition_annotations = 21; * + * + * @return The celebrityRecognitionAnnotations. */ public com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation getCelebrityRecognitionAnnotations() { @@ -7496,6 +7543,8 @@ public Builder clearCelebrityRecognitionAnnotations() { * * * .google.rpc.Status error = 9; + * + * @return Whether the error field is set. */ public boolean hasError() { return errorBuilder_ != null || error_ != null; @@ -7509,6 +7558,8 @@ public boolean hasError() { * * * .google.rpc.Status error = 9; + * + * @return The error. */ public com.google.rpc.Status getError() { if (errorBuilder_ == null) { diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoAnnotationResultsOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoAnnotationResultsOrBuilder.java index c192c6fc7..25c16551e 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoAnnotationResultsOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoAnnotationResultsOrBuilder.java @@ -32,6 +32,8 @@ public interface VideoAnnotationResultsOrBuilder * * * string input_uri = 1; + * + * @return The inputUri. */ java.lang.String getInputUri(); /** @@ -43,6 +45,8 @@ public interface VideoAnnotationResultsOrBuilder * * * string input_uri = 1; + * + * @return The bytes for inputUri. */ com.google.protobuf.ByteString getInputUriBytes(); @@ -54,6 +58,8 @@ public interface VideoAnnotationResultsOrBuilder * * * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 10; + * + * @return Whether the segment field is set. */ boolean hasSegment(); /** @@ -64,6 +70,8 @@ public interface VideoAnnotationResultsOrBuilder * * * .google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 10; + * + * @return The segment. */ com.google.cloud.videointelligence.v1p3beta1.VideoSegment getSegment(); /** @@ -529,6 +537,8 @@ com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder getShotAnnota * * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 7; * + * + * @return Whether the explicitAnnotation field is set. */ boolean hasExplicitAnnotation(); /** @@ -541,6 +551,8 @@ com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder getShotAnnota * * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 7; * + * + * @return The explicitAnnotation. */ com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation getExplicitAnnotation(); /** @@ -834,6 +846,8 @@ com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation getObjectA * * .google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation celebrity_recognition_annotations = 21; * + * + * @return Whether the celebrityRecognitionAnnotations field is set. */ boolean hasCelebrityRecognitionAnnotations(); /** @@ -846,6 +860,8 @@ com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation getObjectA * * .google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation celebrity_recognition_annotations = 21; * + * + * @return The celebrityRecognitionAnnotations. */ com.google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation getCelebrityRecognitionAnnotations(); @@ -872,6 +888,8 @@ com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation getObjectA * * * .google.rpc.Status error = 9; + * + * @return Whether the error field is set. */ boolean hasError(); /** @@ -883,6 +901,8 @@ com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation getObjectA * * * .google.rpc.Status error = 9; + * + * @return The error. */ com.google.rpc.Status getError(); /** diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoContext.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoContext.java index d1966bbd7..ac6440232 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoContext.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoContext.java @@ -41,6 +41,12 @@ private VideoContext() { segments_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VideoContext(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -227,7 +233,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.videointelligence.v1p3beta1.VideoContext.Builder.class); } - private int bitField0_; public static final int SEGMENTS_FIELD_NUMBER = 1; private java.util.List segments_; /** @@ -317,6 +322,8 @@ public com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder getSeg * * .google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig label_detection_config = 2; * + * + * @return Whether the labelDetectionConfig field is set. */ public boolean hasLabelDetectionConfig() { return labelDetectionConfig_ != null; @@ -331,6 +338,8 @@ public boolean hasLabelDetectionConfig() { * * .google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig label_detection_config = 2; * + * + * @return The labelDetectionConfig. */ public com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig getLabelDetectionConfig() { @@ -367,6 +376,8 @@ public boolean hasLabelDetectionConfig() { * * .google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig shot_change_detection_config = 3; * + * + * @return Whether the shotChangeDetectionConfig field is set. */ public boolean hasShotChangeDetectionConfig() { return shotChangeDetectionConfig_ != null; @@ -381,6 +392,8 @@ public boolean hasShotChangeDetectionConfig() { * * .google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig shot_change_detection_config = 3; * + * + * @return The shotChangeDetectionConfig. */ public com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig getShotChangeDetectionConfig() { @@ -418,6 +431,8 @@ public boolean hasShotChangeDetectionConfig() { * * .google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; * + * + * @return Whether the explicitContentDetectionConfig field is set. */ public boolean hasExplicitContentDetectionConfig() { return explicitContentDetectionConfig_ != null; @@ -432,6 +447,8 @@ public boolean hasExplicitContentDetectionConfig() { * * .google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; * + * + * @return The explicitContentDetectionConfig. */ public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig getExplicitContentDetectionConfig() { @@ -469,6 +486,8 @@ public boolean hasExplicitContentDetectionConfig() { * * .google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfig speech_transcription_config = 6; * + * + * @return Whether the speechTranscriptionConfig field is set. */ public boolean hasSpeechTranscriptionConfig() { return speechTranscriptionConfig_ != null; @@ -483,6 +502,8 @@ public boolean hasSpeechTranscriptionConfig() { * * .google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfig speech_transcription_config = 6; * + * + * @return The speechTranscriptionConfig. */ public com.google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfig getSpeechTranscriptionConfig() { @@ -518,6 +539,8 @@ public boolean hasSpeechTranscriptionConfig() { * * .google.cloud.videointelligence.v1p3beta1.TextDetectionConfig text_detection_config = 8; * + * + * @return Whether the textDetectionConfig field is set. */ public boolean hasTextDetectionConfig() { return textDetectionConfig_ != null; @@ -531,6 +554,8 @@ public boolean hasTextDetectionConfig() { * * .google.cloud.videointelligence.v1p3beta1.TextDetectionConfig text_detection_config = 8; * + * + * @return The textDetectionConfig. */ public com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig getTextDetectionConfig() { return textDetectionConfig_ == null @@ -564,6 +589,8 @@ public com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig getTextD * * .google.cloud.videointelligence.v1p3beta1.ObjectTrackingConfig object_tracking_config = 13; * + * + * @return Whether the objectTrackingConfig field is set. */ public boolean hasObjectTrackingConfig() { return objectTrackingConfig_ != null; @@ -578,6 +605,8 @@ public boolean hasObjectTrackingConfig() { * * .google.cloud.videointelligence.v1p3beta1.ObjectTrackingConfig object_tracking_config = 13; * + * + * @return The objectTrackingConfig. */ public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingConfig getObjectTrackingConfig() { @@ -976,7 +1005,6 @@ public com.google.cloud.videointelligence.v1p3beta1.VideoContext buildPartial() com.google.cloud.videointelligence.v1p3beta1.VideoContext result = new com.google.cloud.videointelligence.v1p3beta1.VideoContext(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (segmentsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { segments_ = java.util.Collections.unmodifiableList(segments_); @@ -1016,7 +1044,6 @@ public com.google.cloud.videointelligence.v1p3beta1.VideoContext buildPartial() } else { result.objectTrackingConfig_ = objectTrackingConfigBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -1561,6 +1588,8 @@ public com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder addSegm * * .google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig label_detection_config = 2; * + * + * @return Whether the labelDetectionConfig field is set. */ public boolean hasLabelDetectionConfig() { return labelDetectionConfigBuilder_ != null || labelDetectionConfig_ != null; @@ -1575,6 +1604,8 @@ public boolean hasLabelDetectionConfig() { * * .google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig label_detection_config = 2; * + * + * @return The labelDetectionConfig. */ public com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig getLabelDetectionConfig() { @@ -1768,6 +1799,8 @@ public Builder clearLabelDetectionConfig() { * * .google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig shot_change_detection_config = 3; * + * + * @return Whether the shotChangeDetectionConfig field is set. */ public boolean hasShotChangeDetectionConfig() { return shotChangeDetectionConfigBuilder_ != null || shotChangeDetectionConfig_ != null; @@ -1782,6 +1815,8 @@ public boolean hasShotChangeDetectionConfig() { * * .google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig shot_change_detection_config = 3; * + * + * @return The shotChangeDetectionConfig. */ public com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig getShotChangeDetectionConfig() { @@ -1978,6 +2013,8 @@ public Builder clearShotChangeDetectionConfig() { * * .google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; * + * + * @return Whether the explicitContentDetectionConfig field is set. */ public boolean hasExplicitContentDetectionConfig() { return explicitContentDetectionConfigBuilder_ != null @@ -1993,6 +2030,8 @@ public boolean hasExplicitContentDetectionConfig() { * * .google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; * + * + * @return The explicitContentDetectionConfig. */ public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig getExplicitContentDetectionConfig() { @@ -2190,6 +2229,8 @@ public Builder clearExplicitContentDetectionConfig() { * * .google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfig speech_transcription_config = 6; * + * + * @return Whether the speechTranscriptionConfig field is set. */ public boolean hasSpeechTranscriptionConfig() { return speechTranscriptionConfigBuilder_ != null || speechTranscriptionConfig_ != null; @@ -2204,6 +2245,8 @@ public boolean hasSpeechTranscriptionConfig() { * * .google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfig speech_transcription_config = 6; * + * + * @return The speechTranscriptionConfig. */ public com.google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfig getSpeechTranscriptionConfig() { @@ -2399,6 +2442,8 @@ public Builder clearSpeechTranscriptionConfig() { * * .google.cloud.videointelligence.v1p3beta1.TextDetectionConfig text_detection_config = 8; * + * + * @return Whether the textDetectionConfig field is set. */ public boolean hasTextDetectionConfig() { return textDetectionConfigBuilder_ != null || textDetectionConfig_ != null; @@ -2413,6 +2458,8 @@ public boolean hasTextDetectionConfig() { * * .google.cloud.videointelligence.v1p3beta1.TextDetectionConfig text_detection_config = 8; * + * + * @return The textDetectionConfig. */ public com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig getTextDetectionConfig() { @@ -2605,6 +2652,8 @@ public Builder clearTextDetectionConfig() { * * .google.cloud.videointelligence.v1p3beta1.ObjectTrackingConfig object_tracking_config = 13; * + * + * @return Whether the objectTrackingConfig field is set. */ public boolean hasObjectTrackingConfig() { return objectTrackingConfigBuilder_ != null || objectTrackingConfig_ != null; @@ -2619,6 +2668,8 @@ public boolean hasObjectTrackingConfig() { * * .google.cloud.videointelligence.v1p3beta1.ObjectTrackingConfig object_tracking_config = 13; * + * + * @return The objectTrackingConfig. */ public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingConfig getObjectTrackingConfig() { diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoContextOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoContextOrBuilder.java index 716fb48a7..5026d4ecb 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoContextOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoContextOrBuilder.java @@ -96,6 +96,8 @@ com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder getSegmentsOr * * .google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig label_detection_config = 2; * + * + * @return Whether the labelDetectionConfig field is set. */ boolean hasLabelDetectionConfig(); /** @@ -108,6 +110,8 @@ com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder getSegmentsOr * * .google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig label_detection_config = 2; * + * + * @return The labelDetectionConfig. */ com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig getLabelDetectionConfig(); /** @@ -134,6 +138,8 @@ com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder getSegmentsOr * * .google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig shot_change_detection_config = 3; * + * + * @return Whether the shotChangeDetectionConfig field is set. */ boolean hasShotChangeDetectionConfig(); /** @@ -146,6 +152,8 @@ com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder getSegmentsOr * * .google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig shot_change_detection_config = 3; * + * + * @return The shotChangeDetectionConfig. */ com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig getShotChangeDetectionConfig(); @@ -173,6 +181,8 @@ com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder getSegmentsOr * * .google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; * + * + * @return Whether the explicitContentDetectionConfig field is set. */ boolean hasExplicitContentDetectionConfig(); /** @@ -185,6 +195,8 @@ com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder getSegmentsOr * * .google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4; * + * + * @return The explicitContentDetectionConfig. */ com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig getExplicitContentDetectionConfig(); @@ -212,6 +224,8 @@ com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder getSegmentsOr * * .google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfig speech_transcription_config = 6; * + * + * @return Whether the speechTranscriptionConfig field is set. */ boolean hasSpeechTranscriptionConfig(); /** @@ -224,6 +238,8 @@ com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder getSegmentsOr * * .google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfig speech_transcription_config = 6; * + * + * @return The speechTranscriptionConfig. */ com.google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfig getSpeechTranscriptionConfig(); @@ -250,6 +266,8 @@ com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder getSegmentsOr * * .google.cloud.videointelligence.v1p3beta1.TextDetectionConfig text_detection_config = 8; * + * + * @return Whether the textDetectionConfig field is set. */ boolean hasTextDetectionConfig(); /** @@ -261,6 +279,8 @@ com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder getSegmentsOr * * .google.cloud.videointelligence.v1p3beta1.TextDetectionConfig text_detection_config = 8; * + * + * @return The textDetectionConfig. */ com.google.cloud.videointelligence.v1p3beta1.TextDetectionConfig getTextDetectionConfig(); /** @@ -286,6 +306,8 @@ com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder getSegmentsOr * * .google.cloud.videointelligence.v1p3beta1.ObjectTrackingConfig object_tracking_config = 13; * + * + * @return Whether the objectTrackingConfig field is set. */ boolean hasObjectTrackingConfig(); /** @@ -298,6 +320,8 @@ com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder getSegmentsOr * * .google.cloud.videointelligence.v1p3beta1.ObjectTrackingConfig object_tracking_config = 13; * + * + * @return The objectTrackingConfig. */ com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingConfig getObjectTrackingConfig(); /** diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoIntelligenceServiceProto.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoIntelligenceServiceProto.java index 4dd0a0ec8..d4f17f0f2 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoIntelligenceServiceProto.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoIntelligenceServiceProto.java @@ -529,26 +529,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".V1P3Beta1\312\002(Google\\Cloud\\VideoIntellige" + "nce\\V1p3beta1b\006proto3" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }, - assigner); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); internal_static_google_cloud_videointelligence_v1p3beta1_AnnotateVideoRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_cloud_videointelligence_v1p3beta1_AnnotateVideoRequest_fieldAccessorTable = diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoSegment.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoSegment.java index d216f2aaf..146187864 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoSegment.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoSegment.java @@ -39,6 +39,12 @@ private VideoSegment(com.google.protobuf.GeneratedMessageV3.Builder builder) private VideoSegment() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VideoSegment(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -52,7 +58,6 @@ private VideoSegment( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -138,6 +143,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.protobuf.Duration start_time_offset = 1; + * + * @return Whether the startTimeOffset field is set. */ public boolean hasStartTimeOffset() { return startTimeOffset_ != null; @@ -151,6 +158,8 @@ public boolean hasStartTimeOffset() { * * * .google.protobuf.Duration start_time_offset = 1; + * + * @return The startTimeOffset. */ public com.google.protobuf.Duration getStartTimeOffset() { return startTimeOffset_ == null @@ -182,6 +191,8 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOffsetOrBuilder() { * * * .google.protobuf.Duration end_time_offset = 2; + * + * @return Whether the endTimeOffset field is set. */ public boolean hasEndTimeOffset() { return endTimeOffset_ != null; @@ -195,6 +206,8 @@ public boolean hasEndTimeOffset() { * * * .google.protobuf.Duration end_time_offset = 2; + * + * @return The endTimeOffset. */ public com.google.protobuf.Duration getEndTimeOffset() { return endTimeOffset_ == null @@ -589,6 +602,8 @@ public Builder mergeFrom( * * * .google.protobuf.Duration start_time_offset = 1; + * + * @return Whether the startTimeOffset field is set. */ public boolean hasStartTimeOffset() { return startTimeOffsetBuilder_ != null || startTimeOffset_ != null; @@ -602,6 +617,8 @@ public boolean hasStartTimeOffset() { * * * .google.protobuf.Duration start_time_offset = 1; + * + * @return The startTimeOffset. */ public com.google.protobuf.Duration getStartTimeOffset() { if (startTimeOffsetBuilder_ == null) { @@ -779,6 +796,8 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOffsetOrBuilder() { * * * .google.protobuf.Duration end_time_offset = 2; + * + * @return Whether the endTimeOffset field is set. */ public boolean hasEndTimeOffset() { return endTimeOffsetBuilder_ != null || endTimeOffset_ != null; @@ -792,6 +811,8 @@ public boolean hasEndTimeOffset() { * * * .google.protobuf.Duration end_time_offset = 2; + * + * @return The endTimeOffset. */ public com.google.protobuf.Duration getEndTimeOffset() { if (endTimeOffsetBuilder_ == null) { diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoSegmentOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoSegmentOrBuilder.java index ddb316a01..bd0a832bf 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoSegmentOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoSegmentOrBuilder.java @@ -32,6 +32,8 @@ public interface VideoSegmentOrBuilder * * * .google.protobuf.Duration start_time_offset = 1; + * + * @return Whether the startTimeOffset field is set. */ boolean hasStartTimeOffset(); /** @@ -43,6 +45,8 @@ public interface VideoSegmentOrBuilder * * * .google.protobuf.Duration start_time_offset = 1; + * + * @return The startTimeOffset. */ com.google.protobuf.Duration getStartTimeOffset(); /** @@ -66,6 +70,8 @@ public interface VideoSegmentOrBuilder * * * .google.protobuf.Duration end_time_offset = 2; + * + * @return Whether the endTimeOffset field is set. */ boolean hasEndTimeOffset(); /** @@ -77,6 +83,8 @@ public interface VideoSegmentOrBuilder * * * .google.protobuf.Duration end_time_offset = 2; + * + * @return The endTimeOffset. */ com.google.protobuf.Duration getEndTimeOffset(); /** diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/WordInfo.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/WordInfo.java index cefe50bbb..07fbb243e 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/WordInfo.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/WordInfo.java @@ -43,6 +43,12 @@ private WordInfo() { word_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new WordInfo(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -56,7 +62,6 @@ private WordInfo( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -161,6 +166,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.protobuf.Duration start_time = 1; + * + * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTime_ != null; @@ -176,6 +183,8 @@ public boolean hasStartTime() { * * * .google.protobuf.Duration start_time = 1; + * + * @return The startTime. */ public com.google.protobuf.Duration getStartTime() { return startTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : startTime_; @@ -209,6 +218,8 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() { * * * .google.protobuf.Duration end_time = 2; + * + * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTime_ != null; @@ -224,6 +235,8 @@ public boolean hasEndTime() { * * * .google.protobuf.Duration end_time = 2; + * + * @return The endTime. */ public com.google.protobuf.Duration getEndTime() { return endTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : endTime_; @@ -254,6 +267,8 @@ public com.google.protobuf.DurationOrBuilder getEndTimeOrBuilder() { * * * string word = 3; + * + * @return The word. */ public java.lang.String getWord() { java.lang.Object ref = word_; @@ -274,6 +289,8 @@ public java.lang.String getWord() { * * * string word = 3; + * + * @return The bytes for word. */ public com.google.protobuf.ByteString getWordBytes() { java.lang.Object ref = word_; @@ -302,6 +319,8 @@ public com.google.protobuf.ByteString getWordBytes() { * * * float confidence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The confidence. */ public float getConfidence() { return confidence_; @@ -320,6 +339,8 @@ public float getConfidence() { * * * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The speakerTag. */ public int getSpeakerTag() { return speakerTag_; @@ -750,6 +771,8 @@ public Builder mergeFrom( * * * .google.protobuf.Duration start_time = 1; + * + * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; @@ -765,6 +788,8 @@ public boolean hasStartTime() { * * * .google.protobuf.Duration start_time = 1; + * + * @return The startTime. */ public com.google.protobuf.Duration getStartTime() { if (startTimeBuilder_ == null) { @@ -952,6 +977,8 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() { * * * .google.protobuf.Duration end_time = 2; + * + * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; @@ -967,6 +994,8 @@ public boolean hasEndTime() { * * * .google.protobuf.Duration end_time = 2; + * + * @return The endTime. */ public com.google.protobuf.Duration getEndTime() { if (endTimeBuilder_ == null) { @@ -1146,6 +1175,8 @@ public com.google.protobuf.DurationOrBuilder getEndTimeOrBuilder() { * * * string word = 3; + * + * @return The word. */ public java.lang.String getWord() { java.lang.Object ref = word_; @@ -1166,6 +1197,8 @@ public java.lang.String getWord() { * * * string word = 3; + * + * @return The bytes for word. */ public com.google.protobuf.ByteString getWordBytes() { java.lang.Object ref = word_; @@ -1186,6 +1219,9 @@ public com.google.protobuf.ByteString getWordBytes() { * * * string word = 3; + * + * @param value The word to set. + * @return This builder for chaining. */ public Builder setWord(java.lang.String value) { if (value == null) { @@ -1204,6 +1240,8 @@ public Builder setWord(java.lang.String value) { * * * string word = 3; + * + * @return This builder for chaining. */ public Builder clearWord() { @@ -1219,6 +1257,9 @@ public Builder clearWord() { * * * string word = 3; + * + * @param value The bytes for word to set. + * @return This builder for chaining. */ public Builder setWordBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1245,6 +1286,8 @@ public Builder setWordBytes(com.google.protobuf.ByteString value) { * * * float confidence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The confidence. */ public float getConfidence() { return confidence_; @@ -1262,6 +1305,9 @@ public float getConfidence() { * * * float confidence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The confidence to set. + * @return This builder for chaining. */ public Builder setConfidence(float value) { @@ -1282,6 +1328,8 @@ public Builder setConfidence(float value) { * * * float confidence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. */ public Builder clearConfidence() { @@ -1302,6 +1350,8 @@ public Builder clearConfidence() { * * * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The speakerTag. */ public int getSpeakerTag() { return speakerTag_; @@ -1317,6 +1367,9 @@ public int getSpeakerTag() { * * * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The speakerTag to set. + * @return This builder for chaining. */ public Builder setSpeakerTag(int value) { @@ -1335,6 +1388,8 @@ public Builder setSpeakerTag(int value) { * * * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. */ public Builder clearSpeakerTag() { diff --git a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/WordInfoOrBuilder.java b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/WordInfoOrBuilder.java index 66d2bcb1a..9ef89ef83 100644 --- a/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/WordInfoOrBuilder.java +++ b/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/WordInfoOrBuilder.java @@ -34,6 +34,8 @@ public interface WordInfoOrBuilder * * * .google.protobuf.Duration start_time = 1; + * + * @return Whether the startTime field is set. */ boolean hasStartTime(); /** @@ -47,6 +49,8 @@ public interface WordInfoOrBuilder * * * .google.protobuf.Duration start_time = 1; + * + * @return The startTime. */ com.google.protobuf.Duration getStartTime(); /** @@ -74,6 +78,8 @@ public interface WordInfoOrBuilder * * * .google.protobuf.Duration end_time = 2; + * + * @return Whether the endTime field is set. */ boolean hasEndTime(); /** @@ -87,6 +93,8 @@ public interface WordInfoOrBuilder * * * .google.protobuf.Duration end_time = 2; + * + * @return The endTime. */ com.google.protobuf.Duration getEndTime(); /** @@ -111,6 +119,8 @@ public interface WordInfoOrBuilder * * * string word = 3; + * + * @return The word. */ java.lang.String getWord(); /** @@ -121,6 +131,8 @@ public interface WordInfoOrBuilder * * * string word = 3; + * + * @return The bytes for word. */ com.google.protobuf.ByteString getWordBytes(); @@ -137,6 +149,8 @@ public interface WordInfoOrBuilder * * * float confidence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The confidence. */ float getConfidence(); @@ -151,6 +165,8 @@ public interface WordInfoOrBuilder * * * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The speakerTag. */ int getSpeakerTag(); } diff --git a/synth.metadata b/synth.metadata index 143d4f97c..54b1732d0 100644 --- a/synth.metadata +++ b/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-11-19T20:04:44.279167Z", + "updateTime": "2019-12-12T08:53:44.326127Z", "sources": [ { "generator": { "name": "artman", - "version": "0.42.1", - "dockerImage": "googleapis/artman@sha256:c773192618c608a7a0415dd95282f841f8e6bcdef7dd760a988c93b77a64bd57" + "version": "0.42.2", + "dockerImage": "googleapis/artman@sha256:a86051ce32e2454ca2558ec9e437d46c2184b6dd291f57b0686676d77242658e" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "5af83f47b9656261cafcf88b0b3334521ab266b3", - "internalRef": "281334391" + "sha": "19c4589a3cb44b3679f7b3fba88365b3d055d5f8", + "internalRef": "285013366" } }, {