diff --git a/google-api-grpc/grpc-google-cloud-video-intelligence-v1p3beta1/pom.xml b/google-api-grpc/grpc-google-cloud-video-intelligence-v1p3beta1/pom.xml
new file mode 100644
index 000000000000..ad3c2dd09cb1
--- /dev/null
+++ b/google-api-grpc/grpc-google-cloud-video-intelligence-v1p3beta1/pom.xml
@@ -0,0 +1,31 @@
+
+ * Service that implements Google Cloud Video Intelligence Streaming API. + *+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.10.0)", + comments = "Source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto") +public final class StreamingVideoIntelligenceServiceGrpc { + + private StreamingVideoIntelligenceServiceGrpc() {} + + public static final String SERVICE_NAME = + "google.cloud.videointelligence.v1p3beta1.StreamingVideoIntelligenceService"; + + // Static method descriptors that strictly reflect the proto. + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getStreamingAnnotateVideoMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest, + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse> + METHOD_STREAMING_ANNOTATE_VIDEO = getStreamingAnnotateVideoMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest, + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse> + getStreamingAnnotateVideoMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest, + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse> + getStreamingAnnotateVideoMethod() { + return getStreamingAnnotateVideoMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest, + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse> + getStreamingAnnotateVideoMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest, + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse> + getStreamingAnnotateVideoMethod; + if ((getStreamingAnnotateVideoMethod = + StreamingVideoIntelligenceServiceGrpc.getStreamingAnnotateVideoMethod) + == null) { + synchronized (StreamingVideoIntelligenceServiceGrpc.class) { + if ((getStreamingAnnotateVideoMethod = + StreamingVideoIntelligenceServiceGrpc.getStreamingAnnotateVideoMethod) + == null) { + StreamingVideoIntelligenceServiceGrpc.getStreamingAnnotateVideoMethod = + getStreamingAnnotateVideoMethod = + io.grpc.MethodDescriptor + .
+ * Service that implements Google Cloud Video Intelligence Streaming API. + *+ */ + public abstract static class StreamingVideoIntelligenceServiceImplBase + implements io.grpc.BindableService { + + /** + * + * + *
+ * Performs video annotation with bidirectional streaming: emitting results + * while sending video/audio bytes. + * This method is only available via the gRPC API (not REST). + *+ */ + public io.grpc.stub.StreamObserver< + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest> + streamingAnnotateVideo( + io.grpc.stub.StreamObserver< + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse> + responseObserver) { + return asyncUnimplementedStreamingCall( + getStreamingAnnotateVideoMethodHelper(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getStreamingAnnotateVideoMethodHelper(), + asyncBidiStreamingCall( + new MethodHandlers< + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest, + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse>( + this, METHODID_STREAMING_ANNOTATE_VIDEO))) + .build(); + } + } + + /** + * + * + *
+ * Service that implements Google Cloud Video Intelligence Streaming API. + *+ */ + public static final class StreamingVideoIntelligenceServiceStub + extends io.grpc.stub.AbstractStub
+ * Performs video annotation with bidirectional streaming: emitting results + * while sending video/audio bytes. + * This method is only available via the gRPC API (not REST). + *+ */ + public io.grpc.stub.StreamObserver< + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest> + streamingAnnotateVideo( + io.grpc.stub.StreamObserver< + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse> + responseObserver) { + return asyncBidiStreamingCall( + getChannel().newCall(getStreamingAnnotateVideoMethodHelper(), getCallOptions()), + responseObserver); + } + } + + /** + * + * + *
+ * Service that implements Google Cloud Video Intelligence Streaming API. + *+ */ + public static final class StreamingVideoIntelligenceServiceBlockingStub + extends io.grpc.stub.AbstractStub
+ * Service that implements Google Cloud Video Intelligence Streaming API. + *+ */ + public static final class StreamingVideoIntelligenceServiceFutureStub + extends io.grpc.stub.AbstractStub
+ * Service that implements Google Cloud Video Intelligence API. + *+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.10.0)", + comments = "Source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto") +public final class VideoIntelligenceServiceGrpc { + + private VideoIntelligenceServiceGrpc() {} + + public static final String SERVICE_NAME = + "google.cloud.videointelligence.v1p3beta1.VideoIntelligenceService"; + + // Static method descriptors that strictly reflect the proto. + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getAnnotateVideoMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest, + com.google.longrunning.Operation> + METHOD_ANNOTATE_VIDEO = getAnnotateVideoMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest, + com.google.longrunning.Operation> + getAnnotateVideoMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest, + com.google.longrunning.Operation> + getAnnotateVideoMethod() { + return getAnnotateVideoMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest, + com.google.longrunning.Operation> + getAnnotateVideoMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest, + com.google.longrunning.Operation> + getAnnotateVideoMethod; + if ((getAnnotateVideoMethod = VideoIntelligenceServiceGrpc.getAnnotateVideoMethod) == null) { + synchronized (VideoIntelligenceServiceGrpc.class) { + if ((getAnnotateVideoMethod = VideoIntelligenceServiceGrpc.getAnnotateVideoMethod) + == null) { + VideoIntelligenceServiceGrpc.getAnnotateVideoMethod = + getAnnotateVideoMethod = + io.grpc.MethodDescriptor + .
+ * Service that implements Google Cloud Video Intelligence API. + *+ */ + public abstract static class VideoIntelligenceServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+ * Performs asynchronous video annotation. Progress and results can be + * retrieved through the `google.longrunning.Operations` interface. + * `Operation.metadata` contains `AnnotateVideoProgress` (progress). + * `Operation.response` contains `AnnotateVideoResponse` (results). + *+ */ + public void annotateVideo( + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest request, + io.grpc.stub.StreamObserver
+ * Service that implements Google Cloud Video Intelligence API. + *+ */ + public static final class VideoIntelligenceServiceStub + extends io.grpc.stub.AbstractStub
+ * Performs asynchronous video annotation. Progress and results can be + * retrieved through the `google.longrunning.Operations` interface. + * `Operation.metadata` contains `AnnotateVideoProgress` (progress). + * `Operation.response` contains `AnnotateVideoResponse` (results). + *+ */ + public void annotateVideo( + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest request, + io.grpc.stub.StreamObserver
+ * Service that implements Google Cloud Video Intelligence API. + *+ */ + public static final class VideoIntelligenceServiceBlockingStub + extends io.grpc.stub.AbstractStub
+ * Performs asynchronous video annotation. Progress and results can be + * retrieved through the `google.longrunning.Operations` interface. + * `Operation.metadata` contains `AnnotateVideoProgress` (progress). + * `Operation.response` contains `AnnotateVideoResponse` (results). + *+ */ + public com.google.longrunning.Operation annotateVideo( + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest request) { + return blockingUnaryCall( + getChannel(), getAnnotateVideoMethodHelper(), getCallOptions(), request); + } + } + + /** + * + * + *
+ * Service that implements Google Cloud Video Intelligence API. + *+ */ + public static final class VideoIntelligenceServiceFutureStub + extends io.grpc.stub.AbstractStub
+ * Performs asynchronous video annotation. Progress and results can be + * retrieved through the `google.longrunning.Operations` interface. + * `Operation.metadata` contains `AnnotateVideoProgress` (progress). + * `Operation.response` contains `AnnotateVideoResponse` (results). + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Video annotation progress. Included in the `metadata` + * field of the `Operation` returned by the `GetOperation` + * call of the `google::longrunning::Operations` service. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress} + */ +public final class AnnotateVideoProgress extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress) + AnnotateVideoProgressOrBuilder { + private static final long serialVersionUID = 0L; + // Use AnnotateVideoProgress.newBuilder() to construct. + private AnnotateVideoProgress(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private AnnotateVideoProgress() { + annotationProgress_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AnnotateVideoProgress( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + annotationProgress_ = + new java.util.ArrayList< + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress>(); + mutable_bitField0_ |= 0x00000001; + } + annotationProgress_.add( + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + annotationProgress_ = java.util.Collections.unmodifiableList(annotationProgress_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_AnnotateVideoProgress_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_AnnotateVideoProgress_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress.class, + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress.Builder.class); + } + + public static final int ANNOTATION_PROGRESS_FIELD_NUMBER = 1; + private java.util.List
+ * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1;
+ *
+ */
+ public java.util.List+ * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1;
+ *
+ */
+ public java.util.List<
+ ? extends com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgressOrBuilder>
+ getAnnotationProgressOrBuilderList() {
+ return annotationProgress_;
+ }
+ /**
+ *
+ *
+ * + * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1;
+ *
+ */
+ public int getAnnotationProgressCount() {
+ return annotationProgress_.size();
+ }
+ /**
+ *
+ *
+ * + * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress getAnnotationProgress(
+ int index) {
+ return annotationProgress_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgressOrBuilder
+ getAnnotationProgressOrBuilder(int index) {
+ return annotationProgress_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ for (int i = 0; i < annotationProgress_.size(); i++) {
+ output.writeMessage(1, annotationProgress_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < annotationProgress_.size(); i++) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(1, annotationProgress_.get(i));
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress other =
+ (com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress) obj;
+
+ boolean result = true;
+ result = result && getAnnotationProgressList().equals(other.getAnnotationProgressList());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getAnnotationProgressCount() > 0) {
+ hash = (37 * hash) + ANNOTATION_PROGRESS_FIELD_NUMBER;
+ hash = (53 * hash) + getAnnotationProgressList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Video annotation progress. Included in the `metadata` + * field of the `Operation` returned by the `GetOperation` + * call of the `google::longrunning::Operations` service. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1;
+ *
+ */
+ public java.util.List+ * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1;
+ *
+ */
+ public int getAnnotationProgressCount() {
+ if (annotationProgressBuilder_ == null) {
+ return annotationProgress_.size();
+ } else {
+ return annotationProgressBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress
+ getAnnotationProgress(int index) {
+ if (annotationProgressBuilder_ == null) {
+ return annotationProgress_.get(index);
+ } else {
+ return annotationProgressBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1;
+ *
+ */
+ public Builder setAnnotationProgress(
+ int index, com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress value) {
+ if (annotationProgressBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAnnotationProgressIsMutable();
+ annotationProgress_.set(index, value);
+ onChanged();
+ } else {
+ annotationProgressBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1;
+ *
+ */
+ public Builder setAnnotationProgress(
+ int index,
+ com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress.Builder
+ builderForValue) {
+ if (annotationProgressBuilder_ == null) {
+ ensureAnnotationProgressIsMutable();
+ annotationProgress_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ annotationProgressBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1;
+ *
+ */
+ public Builder addAnnotationProgress(
+ com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress value) {
+ if (annotationProgressBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAnnotationProgressIsMutable();
+ annotationProgress_.add(value);
+ onChanged();
+ } else {
+ annotationProgressBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1;
+ *
+ */
+ public Builder addAnnotationProgress(
+ int index, com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress value) {
+ if (annotationProgressBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAnnotationProgressIsMutable();
+ annotationProgress_.add(index, value);
+ onChanged();
+ } else {
+ annotationProgressBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1;
+ *
+ */
+ public Builder addAnnotationProgress(
+ com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress.Builder
+ builderForValue) {
+ if (annotationProgressBuilder_ == null) {
+ ensureAnnotationProgressIsMutable();
+ annotationProgress_.add(builderForValue.build());
+ onChanged();
+ } else {
+ annotationProgressBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1;
+ *
+ */
+ public Builder addAnnotationProgress(
+ int index,
+ com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress.Builder
+ builderForValue) {
+ if (annotationProgressBuilder_ == null) {
+ ensureAnnotationProgressIsMutable();
+ annotationProgress_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ annotationProgressBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1;
+ *
+ */
+ public Builder addAllAnnotationProgress(
+ java.lang.Iterable<
+ ? extends com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress>
+ values) {
+ if (annotationProgressBuilder_ == null) {
+ ensureAnnotationProgressIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, annotationProgress_);
+ onChanged();
+ } else {
+ annotationProgressBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1;
+ *
+ */
+ public Builder clearAnnotationProgress() {
+ if (annotationProgressBuilder_ == null) {
+ annotationProgress_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ annotationProgressBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1;
+ *
+ */
+ public Builder removeAnnotationProgress(int index) {
+ if (annotationProgressBuilder_ == null) {
+ ensureAnnotationProgressIsMutable();
+ annotationProgress_.remove(index);
+ onChanged();
+ } else {
+ annotationProgressBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress.Builder
+ getAnnotationProgressBuilder(int index) {
+ return getAnnotationProgressFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgressOrBuilder
+ getAnnotationProgressOrBuilder(int index) {
+ if (annotationProgressBuilder_ == null) {
+ return annotationProgress_.get(index);
+ } else {
+ return annotationProgressBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1;
+ *
+ */
+ public java.util.List<
+ ? extends com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgressOrBuilder>
+ getAnnotationProgressOrBuilderList() {
+ if (annotationProgressBuilder_ != null) {
+ return annotationProgressBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(annotationProgress_);
+ }
+ }
+ /**
+ *
+ *
+ * + * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress.Builder
+ addAnnotationProgressBuilder() {
+ return getAnnotationProgressFieldBuilder()
+ .addBuilder(
+ com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress
+ .getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress.Builder
+ addAnnotationProgressBuilder(int index) {
+ return getAnnotationProgressFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress
+ .getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1;
+ *
+ */
+ public java.util.List<
+ com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress.Builder>
+ getAnnotationProgressBuilderList() {
+ return getAnnotationProgressFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress,
+ com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress.Builder,
+ com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgressOrBuilder>
+ getAnnotationProgressFieldBuilder() {
+ if (annotationProgressBuilder_ == null) {
+ annotationProgressBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress,
+ com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress.Builder,
+ com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgressOrBuilder>(
+ annotationProgress_,
+ ((bitField0_ & 0x00000001) == 0x00000001),
+ getParentForChildren(),
+ isClean());
+ annotationProgress_ = null;
+ }
+ return annotationProgressBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress)
+ private static final com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress();
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1;
+ *
+ */
+ java.util.List+ * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1;
+ *
+ */
+ com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress getAnnotationProgress(
+ int index);
+ /**
+ *
+ *
+ * + * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1;
+ *
+ */
+ int getAnnotationProgressCount();
+ /**
+ *
+ *
+ * + * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1;
+ *
+ */
+ java.util.List<
+ ? extends com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgressOrBuilder>
+ getAnnotationProgressOrBuilderList();
+ /**
+ *
+ *
+ * + * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress annotation_progress = 1;
+ *
+ */
+ com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgressOrBuilder
+ getAnnotationProgressOrBuilder(int index);
+}
diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoRequest.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoRequest.java
new file mode 100644
index 000000000000..fd0bc4192263
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoRequest.java
@@ -0,0 +1,1754 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto
+
+package com.google.cloud.videointelligence.v1p3beta1;
+
+/**
+ *
+ *
+ * + * Video annotation request. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest} + */ +public final class AnnotateVideoRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest) + AnnotateVideoRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use AnnotateVideoRequest.newBuilder() to construct. + private AnnotateVideoRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private AnnotateVideoRequest() { + inputUri_ = ""; + inputContent_ = com.google.protobuf.ByteString.EMPTY; + features_ = java.util.Collections.emptyList(); + outputUri_ = ""; + locationId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AnnotateVideoRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + inputUri_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + features_ = new java.util.ArrayList
+ * Input video location. Currently, only + * [Google Cloud Storage](https://cloud.google.com/storage/) URIs are + * supported, which must be specified in the following format: + * `gs://bucket-id/object-id` (other URI formats return + * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For + * more information, see [Request URIs](/storage/docs/reference-uris). A video + * URI may include wildcards in `object-id`, and thus identify multiple + * videos. Supported wildcards: '*' to match 0 or more characters; + * '?' to match 1 character. If unset, the input video should be embedded + * in the request as `input_content`. If set, `input_content` should be unset. + *+ * + *
string input_uri = 1;
+ */
+ public java.lang.String getInputUri() {
+ java.lang.Object ref = inputUri_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ inputUri_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Input video location. Currently, only + * [Google Cloud Storage](https://cloud.google.com/storage/) URIs are + * supported, which must be specified in the following format: + * `gs://bucket-id/object-id` (other URI formats return + * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For + * more information, see [Request URIs](/storage/docs/reference-uris). A video + * URI may include wildcards in `object-id`, and thus identify multiple + * videos. Supported wildcards: '*' to match 0 or more characters; + * '?' to match 1 character. If unset, the input video should be embedded + * in the request as `input_content`. If set, `input_content` should be unset. + *+ * + *
string input_uri = 1;
+ */
+ public com.google.protobuf.ByteString getInputUriBytes() {
+ java.lang.Object ref = inputUri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ inputUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int INPUT_CONTENT_FIELD_NUMBER = 6;
+ private com.google.protobuf.ByteString inputContent_;
+ /**
+ *
+ *
+ * + * The video data bytes. + * If unset, the input video(s) should be specified via `input_uri`. + * If set, `input_uri` should be unset. + *+ * + *
bytes input_content = 6;
+ */
+ public com.google.protobuf.ByteString getInputContent() {
+ return inputContent_;
+ }
+
+ public static final int FEATURES_FIELD_NUMBER = 2;
+ private java.util.List+ * Requested video annotation features. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2;
+ */
+ public java.util.List+ * Requested video annotation features. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2;
+ */
+ public int getFeaturesCount() {
+ return features_.size();
+ }
+ /**
+ *
+ *
+ * + * Requested video annotation features. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.Feature getFeatures(int index) {
+ return features_converter_.convert(features_.get(index));
+ }
+ /**
+ *
+ *
+ * + * Requested video annotation features. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2;
+ */
+ public java.util.List+ * Requested video annotation features. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2;
+ */
+ public int getFeaturesValue(int index) {
+ return features_.get(index);
+ }
+
+ private int featuresMemoizedSerializedSize;
+
+ public static final int VIDEO_CONTEXT_FIELD_NUMBER = 3;
+ private com.google.cloud.videointelligence.v1p3beta1.VideoContext videoContext_;
+ /**
+ *
+ *
+ * + * Additional video context and/or feature-specific parameters. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.VideoContext video_context = 3;
+ */
+ public boolean hasVideoContext() {
+ return videoContext_ != null;
+ }
+ /**
+ *
+ *
+ * + * Additional video context and/or feature-specific parameters. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.VideoContext video_context = 3;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.VideoContext getVideoContext() {
+ return videoContext_ == null
+ ? com.google.cloud.videointelligence.v1p3beta1.VideoContext.getDefaultInstance()
+ : videoContext_;
+ }
+ /**
+ *
+ *
+ * + * Additional video context and/or feature-specific parameters. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.VideoContext video_context = 3;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.VideoContextOrBuilder
+ getVideoContextOrBuilder() {
+ return getVideoContext();
+ }
+
+ public static final int OUTPUT_URI_FIELD_NUMBER = 4;
+ private volatile java.lang.Object outputUri_;
+ /**
+ *
+ *
+ * + * Optional location where the output (in JSON format) should be stored. + * Currently, only [Google Cloud Storage](https://cloud.google.com/storage/) + * URIs are supported, which must be specified in the following format: + * `gs://bucket-id/object-id` (other URI formats return + * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For + * more information, see [Request URIs](/storage/docs/reference-uris). + *+ * + *
string output_uri = 4;
+ */
+ public java.lang.String getOutputUri() {
+ java.lang.Object ref = outputUri_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ outputUri_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional location where the output (in JSON format) should be stored. + * Currently, only [Google Cloud Storage](https://cloud.google.com/storage/) + * URIs are supported, which must be specified in the following format: + * `gs://bucket-id/object-id` (other URI formats return + * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For + * more information, see [Request URIs](/storage/docs/reference-uris). + *+ * + *
string output_uri = 4;
+ */
+ public com.google.protobuf.ByteString getOutputUriBytes() {
+ java.lang.Object ref = outputUri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ outputUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int LOCATION_ID_FIELD_NUMBER = 5;
+ private volatile java.lang.Object locationId_;
+ /**
+ *
+ *
+ * + * Optional cloud region where annotation should take place. Supported cloud + * regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region + * is specified, a region will be determined based on video file location. + *+ * + *
string location_id = 5;
+ */
+ public java.lang.String getLocationId() {
+ java.lang.Object ref = locationId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ locationId_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional cloud region where annotation should take place. Supported cloud + * regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region + * is specified, a region will be determined based on video file location. + *+ * + *
string location_id = 5;
+ */
+ public com.google.protobuf.ByteString getLocationIdBytes() {
+ java.lang.Object ref = locationId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ locationId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ getSerializedSize();
+ if (!getInputUriBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputUri_);
+ }
+ if (getFeaturesList().size() > 0) {
+ output.writeUInt32NoTag(18);
+ output.writeUInt32NoTag(featuresMemoizedSerializedSize);
+ }
+ for (int i = 0; i < features_.size(); i++) {
+ output.writeEnumNoTag(features_.get(i));
+ }
+ if (videoContext_ != null) {
+ output.writeMessage(3, getVideoContext());
+ }
+ if (!getOutputUriBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, outputUri_);
+ }
+ if (!getLocationIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, locationId_);
+ }
+ if (!inputContent_.isEmpty()) {
+ output.writeBytes(6, inputContent_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getInputUriBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, inputUri_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < features_.size(); i++) {
+ dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(features_.get(i));
+ }
+ size += dataSize;
+ if (!getFeaturesList().isEmpty()) {
+ size += 1;
+ size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize);
+ }
+ featuresMemoizedSerializedSize = dataSize;
+ }
+ if (videoContext_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getVideoContext());
+ }
+ if (!getOutputUriBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, outputUri_);
+ }
+ if (!getLocationIdBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, locationId_);
+ }
+ if (!inputContent_.isEmpty()) {
+ size += com.google.protobuf.CodedOutputStream.computeBytesSize(6, inputContent_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest other =
+ (com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest) obj;
+
+ boolean result = true;
+ result = result && getInputUri().equals(other.getInputUri());
+ result = result && getInputContent().equals(other.getInputContent());
+ result = result && features_.equals(other.features_);
+ result = result && (hasVideoContext() == other.hasVideoContext());
+ if (hasVideoContext()) {
+ result = result && getVideoContext().equals(other.getVideoContext());
+ }
+ result = result && getOutputUri().equals(other.getOutputUri());
+ result = result && getLocationId().equals(other.getLocationId());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + INPUT_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getInputUri().hashCode();
+ hash = (37 * hash) + INPUT_CONTENT_FIELD_NUMBER;
+ hash = (53 * hash) + getInputContent().hashCode();
+ if (getFeaturesCount() > 0) {
+ hash = (37 * hash) + FEATURES_FIELD_NUMBER;
+ hash = (53 * hash) + features_.hashCode();
+ }
+ if (hasVideoContext()) {
+ hash = (37 * hash) + VIDEO_CONTEXT_FIELD_NUMBER;
+ hash = (53 * hash) + getVideoContext().hashCode();
+ }
+ hash = (37 * hash) + OUTPUT_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getOutputUri().hashCode();
+ hash = (37 * hash) + LOCATION_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getLocationId().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Video annotation request. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Input video location. Currently, only + * [Google Cloud Storage](https://cloud.google.com/storage/) URIs are + * supported, which must be specified in the following format: + * `gs://bucket-id/object-id` (other URI formats return + * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For + * more information, see [Request URIs](/storage/docs/reference-uris). A video + * URI may include wildcards in `object-id`, and thus identify multiple + * videos. Supported wildcards: '*' to match 0 or more characters; + * '?' to match 1 character. If unset, the input video should be embedded + * in the request as `input_content`. If set, `input_content` should be unset. + *+ * + *
string input_uri = 1;
+ */
+ public java.lang.String getInputUri() {
+ java.lang.Object ref = inputUri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ inputUri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Input video location. Currently, only + * [Google Cloud Storage](https://cloud.google.com/storage/) URIs are + * supported, which must be specified in the following format: + * `gs://bucket-id/object-id` (other URI formats return + * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For + * more information, see [Request URIs](/storage/docs/reference-uris). A video + * URI may include wildcards in `object-id`, and thus identify multiple + * videos. Supported wildcards: '*' to match 0 or more characters; + * '?' to match 1 character. If unset, the input video should be embedded + * in the request as `input_content`. If set, `input_content` should be unset. + *+ * + *
string input_uri = 1;
+ */
+ public com.google.protobuf.ByteString getInputUriBytes() {
+ java.lang.Object ref = inputUri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ inputUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Input video location. Currently, only + * [Google Cloud Storage](https://cloud.google.com/storage/) URIs are + * supported, which must be specified in the following format: + * `gs://bucket-id/object-id` (other URI formats return + * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For + * more information, see [Request URIs](/storage/docs/reference-uris). A video + * URI may include wildcards in `object-id`, and thus identify multiple + * videos. Supported wildcards: '*' to match 0 or more characters; + * '?' to match 1 character. If unset, the input video should be embedded + * in the request as `input_content`. If set, `input_content` should be unset. + *+ * + *
string input_uri = 1;
+ */
+ public Builder setInputUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ inputUri_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Input video location. Currently, only + * [Google Cloud Storage](https://cloud.google.com/storage/) URIs are + * supported, which must be specified in the following format: + * `gs://bucket-id/object-id` (other URI formats return + * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For + * more information, see [Request URIs](/storage/docs/reference-uris). A video + * URI may include wildcards in `object-id`, and thus identify multiple + * videos. Supported wildcards: '*' to match 0 or more characters; + * '?' to match 1 character. If unset, the input video should be embedded + * in the request as `input_content`. If set, `input_content` should be unset. + *+ * + *
string input_uri = 1;
+ */
+ public Builder clearInputUri() {
+
+ inputUri_ = getDefaultInstance().getInputUri();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Input video location. Currently, only + * [Google Cloud Storage](https://cloud.google.com/storage/) URIs are + * supported, which must be specified in the following format: + * `gs://bucket-id/object-id` (other URI formats return + * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For + * more information, see [Request URIs](/storage/docs/reference-uris). A video + * URI may include wildcards in `object-id`, and thus identify multiple + * videos. Supported wildcards: '*' to match 0 or more characters; + * '?' to match 1 character. If unset, the input video should be embedded + * in the request as `input_content`. If set, `input_content` should be unset. + *+ * + *
string input_uri = 1;
+ */
+ public Builder setInputUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ inputUri_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.ByteString inputContent_ = com.google.protobuf.ByteString.EMPTY;
+ /**
+ *
+ *
+ * + * The video data bytes. + * If unset, the input video(s) should be specified via `input_uri`. + * If set, `input_uri` should be unset. + *+ * + *
bytes input_content = 6;
+ */
+ public com.google.protobuf.ByteString getInputContent() {
+ return inputContent_;
+ }
+ /**
+ *
+ *
+ * + * The video data bytes. + * If unset, the input video(s) should be specified via `input_uri`. + * If set, `input_uri` should be unset. + *+ * + *
bytes input_content = 6;
+ */
+ public Builder setInputContent(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ inputContent_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The video data bytes. + * If unset, the input video(s) should be specified via `input_uri`. + * If set, `input_uri` should be unset. + *+ * + *
bytes input_content = 6;
+ */
+ public Builder clearInputContent() {
+
+ inputContent_ = getDefaultInstance().getInputContent();
+ onChanged();
+ return this;
+ }
+
+ private java.util.List+ * Requested video annotation features. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2;
+ */
+ public java.util.List+ * Requested video annotation features. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2;
+ */
+ public int getFeaturesCount() {
+ return features_.size();
+ }
+ /**
+ *
+ *
+ * + * Requested video annotation features. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.Feature getFeatures(int index) {
+ return features_converter_.convert(features_.get(index));
+ }
+ /**
+ *
+ *
+ * + * Requested video annotation features. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2;
+ */
+ public Builder setFeatures(
+ int index, com.google.cloud.videointelligence.v1p3beta1.Feature value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFeaturesIsMutable();
+ features_.set(index, value.getNumber());
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Requested video annotation features. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2;
+ */
+ public Builder addFeatures(com.google.cloud.videointelligence.v1p3beta1.Feature value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFeaturesIsMutable();
+ features_.add(value.getNumber());
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Requested video annotation features. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2;
+ */
+ public Builder addAllFeatures(
+ java.lang.Iterable extends com.google.cloud.videointelligence.v1p3beta1.Feature> values) {
+ ensureFeaturesIsMutable();
+ for (com.google.cloud.videointelligence.v1p3beta1.Feature value : values) {
+ features_.add(value.getNumber());
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Requested video annotation features. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2;
+ */
+ public Builder clearFeatures() {
+ features_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Requested video annotation features. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2;
+ */
+ public java.util.List+ * Requested video annotation features. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2;
+ */
+ public int getFeaturesValue(int index) {
+ return features_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Requested video annotation features. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2;
+ */
+ public Builder setFeaturesValue(int index, int value) {
+ ensureFeaturesIsMutable();
+ features_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Requested video annotation features. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2;
+ */
+ public Builder addFeaturesValue(int value) {
+ ensureFeaturesIsMutable();
+ features_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Requested video annotation features. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2;
+ */
+ public Builder addAllFeaturesValue(java.lang.Iterable+ * Additional video context and/or feature-specific parameters. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.VideoContext video_context = 3;
+ */
+ public boolean hasVideoContext() {
+ return videoContextBuilder_ != null || videoContext_ != null;
+ }
+ /**
+ *
+ *
+ * + * Additional video context and/or feature-specific parameters. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.VideoContext video_context = 3;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.VideoContext getVideoContext() {
+ if (videoContextBuilder_ == null) {
+ return videoContext_ == null
+ ? com.google.cloud.videointelligence.v1p3beta1.VideoContext.getDefaultInstance()
+ : videoContext_;
+ } else {
+ return videoContextBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Additional video context and/or feature-specific parameters. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.VideoContext video_context = 3;
+ */
+ public Builder setVideoContext(
+ com.google.cloud.videointelligence.v1p3beta1.VideoContext value) {
+ if (videoContextBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ videoContext_ = value;
+ onChanged();
+ } else {
+ videoContextBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Additional video context and/or feature-specific parameters. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.VideoContext video_context = 3;
+ */
+ public Builder setVideoContext(
+ com.google.cloud.videointelligence.v1p3beta1.VideoContext.Builder builderForValue) {
+ if (videoContextBuilder_ == null) {
+ videoContext_ = builderForValue.build();
+ onChanged();
+ } else {
+ videoContextBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Additional video context and/or feature-specific parameters. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.VideoContext video_context = 3;
+ */
+ public Builder mergeVideoContext(
+ com.google.cloud.videointelligence.v1p3beta1.VideoContext value) {
+ if (videoContextBuilder_ == null) {
+ if (videoContext_ != null) {
+ videoContext_ =
+ com.google.cloud.videointelligence.v1p3beta1.VideoContext.newBuilder(videoContext_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ videoContext_ = value;
+ }
+ onChanged();
+ } else {
+ videoContextBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Additional video context and/or feature-specific parameters. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.VideoContext video_context = 3;
+ */
+ public Builder clearVideoContext() {
+ if (videoContextBuilder_ == null) {
+ videoContext_ = null;
+ onChanged();
+ } else {
+ videoContext_ = null;
+ videoContextBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Additional video context and/or feature-specific parameters. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.VideoContext video_context = 3;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.VideoContext.Builder
+ getVideoContextBuilder() {
+
+ onChanged();
+ return getVideoContextFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Additional video context and/or feature-specific parameters. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.VideoContext video_context = 3;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.VideoContextOrBuilder
+ getVideoContextOrBuilder() {
+ if (videoContextBuilder_ != null) {
+ return videoContextBuilder_.getMessageOrBuilder();
+ } else {
+ return videoContext_ == null
+ ? com.google.cloud.videointelligence.v1p3beta1.VideoContext.getDefaultInstance()
+ : videoContext_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Additional video context and/or feature-specific parameters. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.VideoContext video_context = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.videointelligence.v1p3beta1.VideoContext,
+ com.google.cloud.videointelligence.v1p3beta1.VideoContext.Builder,
+ com.google.cloud.videointelligence.v1p3beta1.VideoContextOrBuilder>
+ getVideoContextFieldBuilder() {
+ if (videoContextBuilder_ == null) {
+ videoContextBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.videointelligence.v1p3beta1.VideoContext,
+ com.google.cloud.videointelligence.v1p3beta1.VideoContext.Builder,
+ com.google.cloud.videointelligence.v1p3beta1.VideoContextOrBuilder>(
+ getVideoContext(), getParentForChildren(), isClean());
+ videoContext_ = null;
+ }
+ return videoContextBuilder_;
+ }
+
+ private java.lang.Object outputUri_ = "";
+ /**
+ *
+ *
+ * + * Optional location where the output (in JSON format) should be stored. + * Currently, only [Google Cloud Storage](https://cloud.google.com/storage/) + * URIs are supported, which must be specified in the following format: + * `gs://bucket-id/object-id` (other URI formats return + * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For + * more information, see [Request URIs](/storage/docs/reference-uris). + *+ * + *
string output_uri = 4;
+ */
+ public java.lang.String getOutputUri() {
+ java.lang.Object ref = outputUri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ outputUri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional location where the output (in JSON format) should be stored. + * Currently, only [Google Cloud Storage](https://cloud.google.com/storage/) + * URIs are supported, which must be specified in the following format: + * `gs://bucket-id/object-id` (other URI formats return + * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For + * more information, see [Request URIs](/storage/docs/reference-uris). + *+ * + *
string output_uri = 4;
+ */
+ public com.google.protobuf.ByteString getOutputUriBytes() {
+ java.lang.Object ref = outputUri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ outputUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional location where the output (in JSON format) should be stored. + * Currently, only [Google Cloud Storage](https://cloud.google.com/storage/) + * URIs are supported, which must be specified in the following format: + * `gs://bucket-id/object-id` (other URI formats return + * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For + * more information, see [Request URIs](/storage/docs/reference-uris). + *+ * + *
string output_uri = 4;
+ */
+ public Builder setOutputUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ outputUri_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional location where the output (in JSON format) should be stored. + * Currently, only [Google Cloud Storage](https://cloud.google.com/storage/) + * URIs are supported, which must be specified in the following format: + * `gs://bucket-id/object-id` (other URI formats return + * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For + * more information, see [Request URIs](/storage/docs/reference-uris). + *+ * + *
string output_uri = 4;
+ */
+ public Builder clearOutputUri() {
+
+ outputUri_ = getDefaultInstance().getOutputUri();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional location where the output (in JSON format) should be stored. + * Currently, only [Google Cloud Storage](https://cloud.google.com/storage/) + * URIs are supported, which must be specified in the following format: + * `gs://bucket-id/object-id` (other URI formats return + * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For + * more information, see [Request URIs](/storage/docs/reference-uris). + *+ * + *
string output_uri = 4;
+ */
+ public Builder setOutputUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ outputUri_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object locationId_ = "";
+ /**
+ *
+ *
+ * + * Optional cloud region where annotation should take place. Supported cloud + * regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region + * is specified, a region will be determined based on video file location. + *+ * + *
string location_id = 5;
+ */
+ public java.lang.String getLocationId() {
+ java.lang.Object ref = locationId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ locationId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional cloud region where annotation should take place. Supported cloud + * regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region + * is specified, a region will be determined based on video file location. + *+ * + *
string location_id = 5;
+ */
+ public com.google.protobuf.ByteString getLocationIdBytes() {
+ java.lang.Object ref = locationId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ locationId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional cloud region where annotation should take place. Supported cloud + * regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region + * is specified, a region will be determined based on video file location. + *+ * + *
string location_id = 5;
+ */
+ public Builder setLocationId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ locationId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional cloud region where annotation should take place. Supported cloud + * regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region + * is specified, a region will be determined based on video file location. + *+ * + *
string location_id = 5;
+ */
+ public Builder clearLocationId() {
+
+ locationId_ = getDefaultInstance().getLocationId();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional cloud region where annotation should take place. Supported cloud + * regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region + * is specified, a region will be determined based on video file location. + *+ * + *
string location_id = 5;
+ */
+ public Builder setLocationIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ locationId_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest)
+ private static final com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest();
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Input video location. Currently, only + * [Google Cloud Storage](https://cloud.google.com/storage/) URIs are + * supported, which must be specified in the following format: + * `gs://bucket-id/object-id` (other URI formats return + * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For + * more information, see [Request URIs](/storage/docs/reference-uris). A video + * URI may include wildcards in `object-id`, and thus identify multiple + * videos. Supported wildcards: '*' to match 0 or more characters; + * '?' to match 1 character. If unset, the input video should be embedded + * in the request as `input_content`. If set, `input_content` should be unset. + *+ * + *
string input_uri = 1;
+ */
+ java.lang.String getInputUri();
+ /**
+ *
+ *
+ * + * Input video location. Currently, only + * [Google Cloud Storage](https://cloud.google.com/storage/) URIs are + * supported, which must be specified in the following format: + * `gs://bucket-id/object-id` (other URI formats return + * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For + * more information, see [Request URIs](/storage/docs/reference-uris). A video + * URI may include wildcards in `object-id`, and thus identify multiple + * videos. Supported wildcards: '*' to match 0 or more characters; + * '?' to match 1 character. If unset, the input video should be embedded + * in the request as `input_content`. If set, `input_content` should be unset. + *+ * + *
string input_uri = 1;
+ */
+ com.google.protobuf.ByteString getInputUriBytes();
+
+ /**
+ *
+ *
+ * + * The video data bytes. + * If unset, the input video(s) should be specified via `input_uri`. + * If set, `input_uri` should be unset. + *+ * + *
bytes input_content = 6;
+ */
+ com.google.protobuf.ByteString getInputContent();
+
+ /**
+ *
+ *
+ * + * Requested video annotation features. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2;
+ */
+ java.util.List+ * Requested video annotation features. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2;
+ */
+ int getFeaturesCount();
+ /**
+ *
+ *
+ * + * Requested video annotation features. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2;
+ */
+ com.google.cloud.videointelligence.v1p3beta1.Feature getFeatures(int index);
+ /**
+ *
+ *
+ * + * Requested video annotation features. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2;
+ */
+ java.util.List+ * Requested video annotation features. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.Feature features = 2;
+ */
+ int getFeaturesValue(int index);
+
+ /**
+ *
+ *
+ * + * Additional video context and/or feature-specific parameters. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.VideoContext video_context = 3;
+ */
+ boolean hasVideoContext();
+ /**
+ *
+ *
+ * + * Additional video context and/or feature-specific parameters. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.VideoContext video_context = 3;
+ */
+ com.google.cloud.videointelligence.v1p3beta1.VideoContext getVideoContext();
+ /**
+ *
+ *
+ * + * Additional video context and/or feature-specific parameters. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.VideoContext video_context = 3;
+ */
+ com.google.cloud.videointelligence.v1p3beta1.VideoContextOrBuilder getVideoContextOrBuilder();
+
+ /**
+ *
+ *
+ * + * Optional location where the output (in JSON format) should be stored. + * Currently, only [Google Cloud Storage](https://cloud.google.com/storage/) + * URIs are supported, which must be specified in the following format: + * `gs://bucket-id/object-id` (other URI formats return + * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For + * more information, see [Request URIs](/storage/docs/reference-uris). + *+ * + *
string output_uri = 4;
+ */
+ java.lang.String getOutputUri();
+ /**
+ *
+ *
+ * + * Optional location where the output (in JSON format) should be stored. + * Currently, only [Google Cloud Storage](https://cloud.google.com/storage/) + * URIs are supported, which must be specified in the following format: + * `gs://bucket-id/object-id` (other URI formats return + * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For + * more information, see [Request URIs](/storage/docs/reference-uris). + *+ * + *
string output_uri = 4;
+ */
+ com.google.protobuf.ByteString getOutputUriBytes();
+
+ /**
+ *
+ *
+ * + * Optional cloud region where annotation should take place. Supported cloud + * regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region + * is specified, a region will be determined based on video file location. + *+ * + *
string location_id = 5;
+ */
+ java.lang.String getLocationId();
+ /**
+ *
+ *
+ * + * Optional cloud region where annotation should take place. Supported cloud + * regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region + * is specified, a region will be determined based on video file location. + *+ * + *
string location_id = 5;
+ */
+ com.google.protobuf.ByteString getLocationIdBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoResponse.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoResponse.java
new file mode 100644
index 000000000000..6589d08cc00c
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/AnnotateVideoResponse.java
@@ -0,0 +1,1025 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto
+
+package com.google.cloud.videointelligence.v1p3beta1;
+
+/**
+ *
+ *
+ * + * Video annotation response. Included in the `response` + * field of the `Operation` returned by the `GetOperation` + * call of the `google::longrunning::Operations` service. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse} + */ +public final class AnnotateVideoResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse) + AnnotateVideoResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use AnnotateVideoResponse.newBuilder() to construct. + private AnnotateVideoResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private AnnotateVideoResponse() { + annotationResults_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AnnotateVideoResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + annotationResults_ = + new java.util.ArrayList< + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults>(); + mutable_bitField0_ |= 0x00000001; + } + annotationResults_.add( + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + annotationResults_ = java.util.Collections.unmodifiableList(annotationResults_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_AnnotateVideoResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_AnnotateVideoResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse.class, + com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse.Builder.class); + } + + public static final int ANNOTATION_RESULTS_FIELD_NUMBER = 1; + private java.util.List
+ * Annotation results for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1;
+ *
+ */
+ public java.util.List+ * Annotation results for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1;
+ *
+ */
+ public java.util.List<
+ ? extends com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResultsOrBuilder>
+ getAnnotationResultsOrBuilderList() {
+ return annotationResults_;
+ }
+ /**
+ *
+ *
+ * + * Annotation results for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1;
+ *
+ */
+ public int getAnnotationResultsCount() {
+ return annotationResults_.size();
+ }
+ /**
+ *
+ *
+ * + * Annotation results for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults getAnnotationResults(
+ int index) {
+ return annotationResults_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Annotation results for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResultsOrBuilder
+ getAnnotationResultsOrBuilder(int index) {
+ return annotationResults_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ for (int i = 0; i < annotationResults_.size(); i++) {
+ output.writeMessage(1, annotationResults_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < annotationResults_.size(); i++) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(1, annotationResults_.get(i));
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse other =
+ (com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse) obj;
+
+ boolean result = true;
+ result = result && getAnnotationResultsList().equals(other.getAnnotationResultsList());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getAnnotationResultsCount() > 0) {
+ hash = (37 * hash) + ANNOTATION_RESULTS_FIELD_NUMBER;
+ hash = (53 * hash) + getAnnotationResultsList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Video annotation response. Included in the `response` + * field of the `Operation` returned by the `GetOperation` + * call of the `google::longrunning::Operations` service. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Annotation results for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1;
+ *
+ */
+ public java.util.List+ * Annotation results for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1;
+ *
+ */
+ public int getAnnotationResultsCount() {
+ if (annotationResultsBuilder_ == null) {
+ return annotationResults_.size();
+ } else {
+ return annotationResultsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * Annotation results for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults getAnnotationResults(
+ int index) {
+ if (annotationResultsBuilder_ == null) {
+ return annotationResults_.get(index);
+ } else {
+ return annotationResultsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Annotation results for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1;
+ *
+ */
+ public Builder setAnnotationResults(
+ int index, com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults value) {
+ if (annotationResultsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAnnotationResultsIsMutable();
+ annotationResults_.set(index, value);
+ onChanged();
+ } else {
+ annotationResultsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Annotation results for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1;
+ *
+ */
+ public Builder setAnnotationResults(
+ int index,
+ com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults.Builder
+ builderForValue) {
+ if (annotationResultsBuilder_ == null) {
+ ensureAnnotationResultsIsMutable();
+ annotationResults_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ annotationResultsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Annotation results for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1;
+ *
+ */
+ public Builder addAnnotationResults(
+ com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults value) {
+ if (annotationResultsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAnnotationResultsIsMutable();
+ annotationResults_.add(value);
+ onChanged();
+ } else {
+ annotationResultsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Annotation results for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1;
+ *
+ */
+ public Builder addAnnotationResults(
+ int index, com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults value) {
+ if (annotationResultsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAnnotationResultsIsMutable();
+ annotationResults_.add(index, value);
+ onChanged();
+ } else {
+ annotationResultsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Annotation results for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1;
+ *
+ */
+ public Builder addAnnotationResults(
+ com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults.Builder
+ builderForValue) {
+ if (annotationResultsBuilder_ == null) {
+ ensureAnnotationResultsIsMutable();
+ annotationResults_.add(builderForValue.build());
+ onChanged();
+ } else {
+ annotationResultsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Annotation results for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1;
+ *
+ */
+ public Builder addAnnotationResults(
+ int index,
+ com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults.Builder
+ builderForValue) {
+ if (annotationResultsBuilder_ == null) {
+ ensureAnnotationResultsIsMutable();
+ annotationResults_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ annotationResultsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Annotation results for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1;
+ *
+ */
+ public Builder addAllAnnotationResults(
+ java.lang.Iterable<
+ ? extends com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults>
+ values) {
+ if (annotationResultsBuilder_ == null) {
+ ensureAnnotationResultsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, annotationResults_);
+ onChanged();
+ } else {
+ annotationResultsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Annotation results for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1;
+ *
+ */
+ public Builder clearAnnotationResults() {
+ if (annotationResultsBuilder_ == null) {
+ annotationResults_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ annotationResultsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Annotation results for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1;
+ *
+ */
+ public Builder removeAnnotationResults(int index) {
+ if (annotationResultsBuilder_ == null) {
+ ensureAnnotationResultsIsMutable();
+ annotationResults_.remove(index);
+ onChanged();
+ } else {
+ annotationResultsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Annotation results for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults.Builder
+ getAnnotationResultsBuilder(int index) {
+ return getAnnotationResultsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * Annotation results for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResultsOrBuilder
+ getAnnotationResultsOrBuilder(int index) {
+ if (annotationResultsBuilder_ == null) {
+ return annotationResults_.get(index);
+ } else {
+ return annotationResultsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Annotation results for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1;
+ *
+ */
+ public java.util.List<
+ ? extends com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResultsOrBuilder>
+ getAnnotationResultsOrBuilderList() {
+ if (annotationResultsBuilder_ != null) {
+ return annotationResultsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(annotationResults_);
+ }
+ }
+ /**
+ *
+ *
+ * + * Annotation results for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults.Builder
+ addAnnotationResultsBuilder() {
+ return getAnnotationResultsFieldBuilder()
+ .addBuilder(
+ com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults
+ .getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Annotation results for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults.Builder
+ addAnnotationResultsBuilder(int index) {
+ return getAnnotationResultsFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults
+ .getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Annotation results for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1;
+ *
+ */
+ public java.util.List<
+ com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults.Builder>
+ getAnnotationResultsBuilderList() {
+ return getAnnotationResultsFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults,
+ com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults.Builder,
+ com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResultsOrBuilder>
+ getAnnotationResultsFieldBuilder() {
+ if (annotationResultsBuilder_ == null) {
+ annotationResultsBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults,
+ com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults.Builder,
+ com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResultsOrBuilder>(
+ annotationResults_,
+ ((bitField0_ & 0x00000001) == 0x00000001),
+ getParentForChildren(),
+ isClean());
+ annotationResults_ = null;
+ }
+ return annotationResultsBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse)
+ private static final com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse();
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Annotation results for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1;
+ *
+ */
+ java.util.List+ * Annotation results for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1;
+ *
+ */
+ com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults getAnnotationResults(
+ int index);
+ /**
+ *
+ *
+ * + * Annotation results for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1;
+ *
+ */
+ int getAnnotationResultsCount();
+ /**
+ *
+ *
+ * + * Annotation results for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1;
+ *
+ */
+ java.util.List<
+ ? extends com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResultsOrBuilder>
+ getAnnotationResultsOrBuilderList();
+ /**
+ *
+ *
+ * + * Annotation results for all videos specified in `AnnotateVideoRequest`. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults annotation_results = 1;
+ *
+ */
+ com.google.cloud.videointelligence.v1p3beta1.VideoAnnotationResultsOrBuilder
+ getAnnotationResultsOrBuilder(int index);
+}
diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/Entity.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/Entity.java
new file mode 100644
index 000000000000..088bf998db2e
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/Entity.java
@@ -0,0 +1,935 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto
+
+package com.google.cloud.videointelligence.v1p3beta1;
+
+/**
+ *
+ *
+ * + * Detected entity from video analysis. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.Entity} + */ +public final class Entity extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.Entity) + EntityOrBuilder { + private static final long serialVersionUID = 0L; + // Use Entity.newBuilder() to construct. + private Entity(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private Entity() { + entityId_ = ""; + description_ = ""; + languageCode_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Entity( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + entityId_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + languageCode_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_Entity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_Entity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.Entity.class, + com.google.cloud.videointelligence.v1p3beta1.Entity.Builder.class); + } + + public static final int ENTITY_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object entityId_; + /** + * + * + *
+ * Opaque entity ID. Some IDs may be available in + * [Google Knowledge Graph Search + * API](https://developers.google.com/knowledge-graph/). + *+ * + *
string entity_id = 1;
+ */
+ public java.lang.String getEntityId() {
+ java.lang.Object ref = entityId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ entityId_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Opaque entity ID. Some IDs may be available in + * [Google Knowledge Graph Search + * API](https://developers.google.com/knowledge-graph/). + *+ * + *
string entity_id = 1;
+ */
+ public com.google.protobuf.ByteString getEntityIdBytes() {
+ java.lang.Object ref = entityId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ entityId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DESCRIPTION_FIELD_NUMBER = 2;
+ private volatile java.lang.Object description_;
+ /**
+ *
+ *
+ * + * Textual description, e.g. `Fixed-gear bicycle`. + *+ * + *
string description = 2;
+ */
+ public java.lang.String getDescription() {
+ java.lang.Object ref = description_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ description_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Textual description, e.g. `Fixed-gear bicycle`. + *+ * + *
string description = 2;
+ */
+ public com.google.protobuf.ByteString getDescriptionBytes() {
+ java.lang.Object ref = description_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ description_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int LANGUAGE_CODE_FIELD_NUMBER = 3;
+ private volatile java.lang.Object languageCode_;
+ /**
+ *
+ *
+ * + * Language code for `description` in BCP-47 format. + *+ * + *
string language_code = 3;
+ */
+ public java.lang.String getLanguageCode() {
+ java.lang.Object ref = languageCode_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ languageCode_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Language code for `description` in BCP-47 format. + *+ * + *
string language_code = 3;
+ */
+ public com.google.protobuf.ByteString getLanguageCodeBytes() {
+ java.lang.Object ref = languageCode_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ languageCode_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getEntityIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, entityId_);
+ }
+ if (!getDescriptionBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_);
+ }
+ if (!getLanguageCodeBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, languageCode_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getEntityIdBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, entityId_);
+ }
+ if (!getDescriptionBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_);
+ }
+ if (!getLanguageCodeBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, languageCode_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.videointelligence.v1p3beta1.Entity)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.videointelligence.v1p3beta1.Entity other =
+ (com.google.cloud.videointelligence.v1p3beta1.Entity) obj;
+
+ boolean result = true;
+ result = result && getEntityId().equals(other.getEntityId());
+ result = result && getDescription().equals(other.getDescription());
+ result = result && getLanguageCode().equals(other.getLanguageCode());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + ENTITY_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getEntityId().hashCode();
+ hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
+ hash = (53 * hash) + getDescription().hashCode();
+ hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER;
+ hash = (53 * hash) + getLanguageCode().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.Entity parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.Entity parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.Entity parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.Entity parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.Entity parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.Entity parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.Entity parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.Entity parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.Entity parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.Entity parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.Entity parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.Entity parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.videointelligence.v1p3beta1.Entity prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Detected entity from video analysis. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.Entity} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Opaque entity ID. Some IDs may be available in + * [Google Knowledge Graph Search + * API](https://developers.google.com/knowledge-graph/). + *+ * + *
string entity_id = 1;
+ */
+ public java.lang.String getEntityId() {
+ java.lang.Object ref = entityId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ entityId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Opaque entity ID. Some IDs may be available in + * [Google Knowledge Graph Search + * API](https://developers.google.com/knowledge-graph/). + *+ * + *
string entity_id = 1;
+ */
+ public com.google.protobuf.ByteString getEntityIdBytes() {
+ java.lang.Object ref = entityId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ entityId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Opaque entity ID. Some IDs may be available in + * [Google Knowledge Graph Search + * API](https://developers.google.com/knowledge-graph/). + *+ * + *
string entity_id = 1;
+ */
+ public Builder setEntityId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ entityId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Opaque entity ID. Some IDs may be available in + * [Google Knowledge Graph Search + * API](https://developers.google.com/knowledge-graph/). + *+ * + *
string entity_id = 1;
+ */
+ public Builder clearEntityId() {
+
+ entityId_ = getDefaultInstance().getEntityId();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Opaque entity ID. Some IDs may be available in + * [Google Knowledge Graph Search + * API](https://developers.google.com/knowledge-graph/). + *+ * + *
string entity_id = 1;
+ */
+ public Builder setEntityIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ entityId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object description_ = "";
+ /**
+ *
+ *
+ * + * Textual description, e.g. `Fixed-gear bicycle`. + *+ * + *
string description = 2;
+ */
+ public java.lang.String getDescription() {
+ java.lang.Object ref = description_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ description_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Textual description, e.g. `Fixed-gear bicycle`. + *+ * + *
string description = 2;
+ */
+ public com.google.protobuf.ByteString getDescriptionBytes() {
+ java.lang.Object ref = description_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ description_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Textual description, e.g. `Fixed-gear bicycle`. + *+ * + *
string description = 2;
+ */
+ public Builder setDescription(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ description_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Textual description, e.g. `Fixed-gear bicycle`. + *+ * + *
string description = 2;
+ */
+ public Builder clearDescription() {
+
+ description_ = getDefaultInstance().getDescription();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Textual description, e.g. `Fixed-gear bicycle`. + *+ * + *
string description = 2;
+ */
+ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ description_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object languageCode_ = "";
+ /**
+ *
+ *
+ * + * Language code for `description` in BCP-47 format. + *+ * + *
string language_code = 3;
+ */
+ public java.lang.String getLanguageCode() {
+ java.lang.Object ref = languageCode_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ languageCode_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Language code for `description` in BCP-47 format. + *+ * + *
string language_code = 3;
+ */
+ public com.google.protobuf.ByteString getLanguageCodeBytes() {
+ java.lang.Object ref = languageCode_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ languageCode_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Language code for `description` in BCP-47 format. + *+ * + *
string language_code = 3;
+ */
+ public Builder setLanguageCode(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ languageCode_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Language code for `description` in BCP-47 format. + *+ * + *
string language_code = 3;
+ */
+ public Builder clearLanguageCode() {
+
+ languageCode_ = getDefaultInstance().getLanguageCode();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Language code for `description` in BCP-47 format. + *+ * + *
string language_code = 3;
+ */
+ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ languageCode_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.Entity)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.Entity)
+ private static final com.google.cloud.videointelligence.v1p3beta1.Entity DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p3beta1.Entity();
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.Entity getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Opaque entity ID. Some IDs may be available in + * [Google Knowledge Graph Search + * API](https://developers.google.com/knowledge-graph/). + *+ * + *
string entity_id = 1;
+ */
+ java.lang.String getEntityId();
+ /**
+ *
+ *
+ * + * Opaque entity ID. Some IDs may be available in + * [Google Knowledge Graph Search + * API](https://developers.google.com/knowledge-graph/). + *+ * + *
string entity_id = 1;
+ */
+ com.google.protobuf.ByteString getEntityIdBytes();
+
+ /**
+ *
+ *
+ * + * Textual description, e.g. `Fixed-gear bicycle`. + *+ * + *
string description = 2;
+ */
+ java.lang.String getDescription();
+ /**
+ *
+ *
+ * + * Textual description, e.g. `Fixed-gear bicycle`. + *+ * + *
string description = 2;
+ */
+ com.google.protobuf.ByteString getDescriptionBytes();
+
+ /**
+ *
+ *
+ * + * Language code for `description` in BCP-47 format. + *+ * + *
string language_code = 3;
+ */
+ java.lang.String getLanguageCode();
+ /**
+ *
+ *
+ * + * Language code for `description` in BCP-47 format. + *+ * + *
string language_code = 3;
+ */
+ com.google.protobuf.ByteString getLanguageCodeBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ExplicitContentAnnotation.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ExplicitContentAnnotation.java
new file mode 100644
index 000000000000..66997b5cba0f
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ExplicitContentAnnotation.java
@@ -0,0 +1,994 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto
+
+package com.google.cloud.videointelligence.v1p3beta1;
+
+/**
+ *
+ *
+ * + * Explicit content annotation (based on per-frame visual signals only). + * If no explicit content has been detected in a frame, no annotations are + * present for that frame. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation} + */ +public final class ExplicitContentAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation) + ExplicitContentAnnotationOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExplicitContentAnnotation.newBuilder() to construct. + private ExplicitContentAnnotation(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ExplicitContentAnnotation() { + frames_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ExplicitContentAnnotation( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + frames_ = + new java.util.ArrayList< + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame>(); + mutable_bitField0_ |= 0x00000001; + } + frames_.add( + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + frames_ = java.util.Collections.unmodifiableList(frames_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_ExplicitContentAnnotation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_ExplicitContentAnnotation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation.class, + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation.Builder.class); + } + + public static final int FRAMES_FIELD_NUMBER = 1; + private java.util.List
+ * All video frames where explicit content was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1;
+ *
+ */
+ public java.util.List+ * All video frames where explicit content was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1;
+ *
+ */
+ public java.util.List<
+ ? extends com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrameOrBuilder>
+ getFramesOrBuilderList() {
+ return frames_;
+ }
+ /**
+ *
+ *
+ * + * All video frames where explicit content was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1;
+ *
+ */
+ public int getFramesCount() {
+ return frames_.size();
+ }
+ /**
+ *
+ *
+ * + * All video frames where explicit content was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame getFrames(int index) {
+ return frames_.get(index);
+ }
+ /**
+ *
+ *
+ * + * All video frames where explicit content was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrameOrBuilder
+ getFramesOrBuilder(int index) {
+ return frames_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ for (int i = 0; i < frames_.size(); i++) {
+ output.writeMessage(1, frames_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < frames_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, frames_.get(i));
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation other =
+ (com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation) obj;
+
+ boolean result = true;
+ result = result && getFramesList().equals(other.getFramesList());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getFramesCount() > 0) {
+ hash = (37 * hash) + FRAMES_FIELD_NUMBER;
+ hash = (53 * hash) + getFramesList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Explicit content annotation (based on per-frame visual signals only). + * If no explicit content has been detected in a frame, no annotations are + * present for that frame. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * All video frames where explicit content was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1;
+ *
+ */
+ public java.util.List+ * All video frames where explicit content was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1;
+ *
+ */
+ public int getFramesCount() {
+ if (framesBuilder_ == null) {
+ return frames_.size();
+ } else {
+ return framesBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * All video frames where explicit content was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame getFrames(int index) {
+ if (framesBuilder_ == null) {
+ return frames_.get(index);
+ } else {
+ return framesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * All video frames where explicit content was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1;
+ *
+ */
+ public Builder setFrames(
+ int index, com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame value) {
+ if (framesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFramesIsMutable();
+ frames_.set(index, value);
+ onChanged();
+ } else {
+ framesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * All video frames where explicit content was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1;
+ *
+ */
+ public Builder setFrames(
+ int index,
+ com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame.Builder builderForValue) {
+ if (framesBuilder_ == null) {
+ ensureFramesIsMutable();
+ frames_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ framesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * All video frames where explicit content was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1;
+ *
+ */
+ public Builder addFrames(
+ com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame value) {
+ if (framesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFramesIsMutable();
+ frames_.add(value);
+ onChanged();
+ } else {
+ framesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * All video frames where explicit content was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1;
+ *
+ */
+ public Builder addFrames(
+ int index, com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame value) {
+ if (framesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFramesIsMutable();
+ frames_.add(index, value);
+ onChanged();
+ } else {
+ framesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * All video frames where explicit content was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1;
+ *
+ */
+ public Builder addFrames(
+ com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame.Builder builderForValue) {
+ if (framesBuilder_ == null) {
+ ensureFramesIsMutable();
+ frames_.add(builderForValue.build());
+ onChanged();
+ } else {
+ framesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * All video frames where explicit content was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1;
+ *
+ */
+ public Builder addFrames(
+ int index,
+ com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame.Builder builderForValue) {
+ if (framesBuilder_ == null) {
+ ensureFramesIsMutable();
+ frames_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ framesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * All video frames where explicit content was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1;
+ *
+ */
+ public Builder addAllFrames(
+ java.lang.Iterable<
+ ? extends com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame>
+ values) {
+ if (framesBuilder_ == null) {
+ ensureFramesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, frames_);
+ onChanged();
+ } else {
+ framesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * All video frames where explicit content was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1;
+ *
+ */
+ public Builder clearFrames() {
+ if (framesBuilder_ == null) {
+ frames_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ framesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * All video frames where explicit content was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1;
+ *
+ */
+ public Builder removeFrames(int index) {
+ if (framesBuilder_ == null) {
+ ensureFramesIsMutable();
+ frames_.remove(index);
+ onChanged();
+ } else {
+ framesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * All video frames where explicit content was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame.Builder
+ getFramesBuilder(int index) {
+ return getFramesFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * All video frames where explicit content was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrameOrBuilder
+ getFramesOrBuilder(int index) {
+ if (framesBuilder_ == null) {
+ return frames_.get(index);
+ } else {
+ return framesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * All video frames where explicit content was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1;
+ *
+ */
+ public java.util.List<
+ ? extends com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrameOrBuilder>
+ getFramesOrBuilderList() {
+ if (framesBuilder_ != null) {
+ return framesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(frames_);
+ }
+ }
+ /**
+ *
+ *
+ * + * All video frames where explicit content was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame.Builder
+ addFramesBuilder() {
+ return getFramesFieldBuilder()
+ .addBuilder(
+ com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame
+ .getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * All video frames where explicit content was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame.Builder
+ addFramesBuilder(int index) {
+ return getFramesFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame
+ .getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * All video frames where explicit content was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1;
+ *
+ */
+ public java.util.List+ * All video frames where explicit content was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1;
+ *
+ */
+ java.util.List+ * All video frames where explicit content was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1;
+ *
+ */
+ com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame getFrames(int index);
+ /**
+ *
+ *
+ * + * All video frames where explicit content was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1;
+ *
+ */
+ int getFramesCount();
+ /**
+ *
+ *
+ * + * All video frames where explicit content was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1;
+ *
+ */
+ java.util.List<
+ ? extends com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrameOrBuilder>
+ getFramesOrBuilderList();
+ /**
+ *
+ *
+ * + * All video frames where explicit content was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame frames = 1;
+ *
+ */
+ com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrameOrBuilder getFramesOrBuilder(
+ int index);
+}
diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ExplicitContentDetectionConfig.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ExplicitContentDetectionConfig.java
new file mode 100644
index 000000000000..e56643658a02
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ExplicitContentDetectionConfig.java
@@ -0,0 +1,639 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto
+
+package com.google.cloud.videointelligence.v1p3beta1;
+
+/**
+ *
+ *
+ * + * Config for EXPLICIT_CONTENT_DETECTION. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig} + */ +public final class ExplicitContentDetectionConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig) + ExplicitContentDetectionConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExplicitContentDetectionConfig.newBuilder() to construct. + private ExplicitContentDetectionConfig( + com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ExplicitContentDetectionConfig() { + model_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ExplicitContentDetectionConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + model_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_ExplicitContentDetectionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_ExplicitContentDetectionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig.class, + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig.Builder + .class); + } + + public static final int MODEL_FIELD_NUMBER = 1; + private volatile java.lang.Object model_; + /** + * + * + *
+ * Model to use for explicit content detection. + * Supported values: "builtin/stable" (the default if unset) and + * "builtin/latest". + *+ * + *
string model = 1;
+ */
+ public java.lang.String getModel() {
+ java.lang.Object ref = model_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ model_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Model to use for explicit content detection. + * Supported values: "builtin/stable" (the default if unset) and + * "builtin/latest". + *+ * + *
string model = 1;
+ */
+ public com.google.protobuf.ByteString getModelBytes() {
+ java.lang.Object ref = model_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ model_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getModelBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, model_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getModelBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, model_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj
+ instanceof com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig other =
+ (com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig) obj;
+
+ boolean result = true;
+ result = result && getModel().equals(other.getModel());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + MODEL_FIELD_NUMBER;
+ hash = (53 * hash) + getModel().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig
+ parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig
+ parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig
+ parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Config for EXPLICIT_CONTENT_DETECTION. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Model to use for explicit content detection. + * Supported values: "builtin/stable" (the default if unset) and + * "builtin/latest". + *+ * + *
string model = 1;
+ */
+ public java.lang.String getModel() {
+ java.lang.Object ref = model_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ model_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Model to use for explicit content detection. + * Supported values: "builtin/stable" (the default if unset) and + * "builtin/latest". + *+ * + *
string model = 1;
+ */
+ public com.google.protobuf.ByteString getModelBytes() {
+ java.lang.Object ref = model_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ model_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Model to use for explicit content detection. + * Supported values: "builtin/stable" (the default if unset) and + * "builtin/latest". + *+ * + *
string model = 1;
+ */
+ public Builder setModel(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ model_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Model to use for explicit content detection. + * Supported values: "builtin/stable" (the default if unset) and + * "builtin/latest". + *+ * + *
string model = 1;
+ */
+ public Builder clearModel() {
+
+ model_ = getDefaultInstance().getModel();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Model to use for explicit content detection. + * Supported values: "builtin/stable" (the default if unset) and + * "builtin/latest". + *+ * + *
string model = 1;
+ */
+ public Builder setModelBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ model_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig)
+ private static final com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig();
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Model to use for explicit content detection. + * Supported values: "builtin/stable" (the default if unset) and + * "builtin/latest". + *+ * + *
string model = 1;
+ */
+ java.lang.String getModel();
+ /**
+ *
+ *
+ * + * Model to use for explicit content detection. + * Supported values: "builtin/stable" (the default if unset) and + * "builtin/latest". + *+ * + *
string model = 1;
+ */
+ com.google.protobuf.ByteString getModelBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ExplicitContentFrame.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ExplicitContentFrame.java
new file mode 100644
index 000000000000..eacb4d53b3f6
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ExplicitContentFrame.java
@@ -0,0 +1,859 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto
+
+package com.google.cloud.videointelligence.v1p3beta1;
+
+/**
+ *
+ *
+ * + * Video frame level annotation results for explicit content. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame} + */ +public final class ExplicitContentFrame extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame) + ExplicitContentFrameOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExplicitContentFrame.newBuilder() to construct. + private ExplicitContentFrame(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ExplicitContentFrame() { + pornographyLikelihood_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ExplicitContentFrame( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (timeOffset_ != null) { + subBuilder = timeOffset_.toBuilder(); + } + timeOffset_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(timeOffset_); + timeOffset_ = subBuilder.buildPartial(); + } + + break; + } + case 16: + { + int rawValue = input.readEnum(); + + pornographyLikelihood_ = rawValue; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_ExplicitContentFrame_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_ExplicitContentFrame_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame.class, + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame.Builder.class); + } + + public static final int TIME_OFFSET_FIELD_NUMBER = 1; + private com.google.protobuf.Duration timeOffset_; + /** + * + * + *
+ * Time-offset, relative to the beginning of the video, corresponding to the + * video frame for this location. + *+ * + *
.google.protobuf.Duration time_offset = 1;
+ */
+ public boolean hasTimeOffset() {
+ return timeOffset_ != null;
+ }
+ /**
+ *
+ *
+ * + * Time-offset, relative to the beginning of the video, corresponding to the + * video frame for this location. + *+ * + *
.google.protobuf.Duration time_offset = 1;
+ */
+ public com.google.protobuf.Duration getTimeOffset() {
+ return timeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeOffset_;
+ }
+ /**
+ *
+ *
+ * + * Time-offset, relative to the beginning of the video, corresponding to the + * video frame for this location. + *+ * + *
.google.protobuf.Duration time_offset = 1;
+ */
+ public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() {
+ return getTimeOffset();
+ }
+
+ public static final int PORNOGRAPHY_LIKELIHOOD_FIELD_NUMBER = 2;
+ private int pornographyLikelihood_;
+ /**
+ *
+ *
+ * + * Likelihood of the pornography content.. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.Likelihood pornography_likelihood = 2;
+ */
+ public int getPornographyLikelihoodValue() {
+ return pornographyLikelihood_;
+ }
+ /**
+ *
+ *
+ * + * Likelihood of the pornography content.. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.Likelihood pornography_likelihood = 2;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.Likelihood getPornographyLikelihood() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.videointelligence.v1p3beta1.Likelihood result =
+ com.google.cloud.videointelligence.v1p3beta1.Likelihood.valueOf(pornographyLikelihood_);
+ return result == null
+ ? com.google.cloud.videointelligence.v1p3beta1.Likelihood.UNRECOGNIZED
+ : result;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (timeOffset_ != null) {
+ output.writeMessage(1, getTimeOffset());
+ }
+ if (pornographyLikelihood_
+ != com.google.cloud.videointelligence.v1p3beta1.Likelihood.LIKELIHOOD_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(2, pornographyLikelihood_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (timeOffset_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTimeOffset());
+ }
+ if (pornographyLikelihood_
+ != com.google.cloud.videointelligence.v1p3beta1.Likelihood.LIKELIHOOD_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, pornographyLikelihood_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame other =
+ (com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame) obj;
+
+ boolean result = true;
+ result = result && (hasTimeOffset() == other.hasTimeOffset());
+ if (hasTimeOffset()) {
+ result = result && getTimeOffset().equals(other.getTimeOffset());
+ }
+ result = result && pornographyLikelihood_ == other.pornographyLikelihood_;
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasTimeOffset()) {
+ hash = (37 * hash) + TIME_OFFSET_FIELD_NUMBER;
+ hash = (53 * hash) + getTimeOffset().hashCode();
+ }
+ hash = (37 * hash) + PORNOGRAPHY_LIKELIHOOD_FIELD_NUMBER;
+ hash = (53 * hash) + pornographyLikelihood_;
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Video frame level annotation results for explicit content. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Time-offset, relative to the beginning of the video, corresponding to the + * video frame for this location. + *+ * + *
.google.protobuf.Duration time_offset = 1;
+ */
+ public boolean hasTimeOffset() {
+ return timeOffsetBuilder_ != null || timeOffset_ != null;
+ }
+ /**
+ *
+ *
+ * + * Time-offset, relative to the beginning of the video, corresponding to the + * video frame for this location. + *+ * + *
.google.protobuf.Duration time_offset = 1;
+ */
+ public com.google.protobuf.Duration getTimeOffset() {
+ if (timeOffsetBuilder_ == null) {
+ return timeOffset_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : timeOffset_;
+ } else {
+ return timeOffsetBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Time-offset, relative to the beginning of the video, corresponding to the + * video frame for this location. + *+ * + *
.google.protobuf.Duration time_offset = 1;
+ */
+ public Builder setTimeOffset(com.google.protobuf.Duration value) {
+ if (timeOffsetBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ timeOffset_ = value;
+ onChanged();
+ } else {
+ timeOffsetBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Time-offset, relative to the beginning of the video, corresponding to the + * video frame for this location. + *+ * + *
.google.protobuf.Duration time_offset = 1;
+ */
+ public Builder setTimeOffset(com.google.protobuf.Duration.Builder builderForValue) {
+ if (timeOffsetBuilder_ == null) {
+ timeOffset_ = builderForValue.build();
+ onChanged();
+ } else {
+ timeOffsetBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Time-offset, relative to the beginning of the video, corresponding to the + * video frame for this location. + *+ * + *
.google.protobuf.Duration time_offset = 1;
+ */
+ public Builder mergeTimeOffset(com.google.protobuf.Duration value) {
+ if (timeOffsetBuilder_ == null) {
+ if (timeOffset_ != null) {
+ timeOffset_ =
+ com.google.protobuf.Duration.newBuilder(timeOffset_).mergeFrom(value).buildPartial();
+ } else {
+ timeOffset_ = value;
+ }
+ onChanged();
+ } else {
+ timeOffsetBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Time-offset, relative to the beginning of the video, corresponding to the + * video frame for this location. + *+ * + *
.google.protobuf.Duration time_offset = 1;
+ */
+ public Builder clearTimeOffset() {
+ if (timeOffsetBuilder_ == null) {
+ timeOffset_ = null;
+ onChanged();
+ } else {
+ timeOffset_ = null;
+ timeOffsetBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Time-offset, relative to the beginning of the video, corresponding to the + * video frame for this location. + *+ * + *
.google.protobuf.Duration time_offset = 1;
+ */
+ public com.google.protobuf.Duration.Builder getTimeOffsetBuilder() {
+
+ onChanged();
+ return getTimeOffsetFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Time-offset, relative to the beginning of the video, corresponding to the + * video frame for this location. + *+ * + *
.google.protobuf.Duration time_offset = 1;
+ */
+ public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() {
+ if (timeOffsetBuilder_ != null) {
+ return timeOffsetBuilder_.getMessageOrBuilder();
+ } else {
+ return timeOffset_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : timeOffset_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Time-offset, relative to the beginning of the video, corresponding to the + * video frame for this location. + *+ * + *
.google.protobuf.Duration time_offset = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ getTimeOffsetFieldBuilder() {
+ if (timeOffsetBuilder_ == null) {
+ timeOffsetBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>(
+ getTimeOffset(), getParentForChildren(), isClean());
+ timeOffset_ = null;
+ }
+ return timeOffsetBuilder_;
+ }
+
+ private int pornographyLikelihood_ = 0;
+ /**
+ *
+ *
+ * + * Likelihood of the pornography content.. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.Likelihood pornography_likelihood = 2;
+ */
+ public int getPornographyLikelihoodValue() {
+ return pornographyLikelihood_;
+ }
+ /**
+ *
+ *
+ * + * Likelihood of the pornography content.. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.Likelihood pornography_likelihood = 2;
+ */
+ public Builder setPornographyLikelihoodValue(int value) {
+ pornographyLikelihood_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Likelihood of the pornography content.. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.Likelihood pornography_likelihood = 2;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.Likelihood getPornographyLikelihood() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.videointelligence.v1p3beta1.Likelihood result =
+ com.google.cloud.videointelligence.v1p3beta1.Likelihood.valueOf(pornographyLikelihood_);
+ return result == null
+ ? com.google.cloud.videointelligence.v1p3beta1.Likelihood.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ * + * Likelihood of the pornography content.. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.Likelihood pornography_likelihood = 2;
+ */
+ public Builder setPornographyLikelihood(
+ com.google.cloud.videointelligence.v1p3beta1.Likelihood value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ pornographyLikelihood_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Likelihood of the pornography content.. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.Likelihood pornography_likelihood = 2;
+ */
+ public Builder clearPornographyLikelihood() {
+
+ pornographyLikelihood_ = 0;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame)
+ private static final com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame();
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Time-offset, relative to the beginning of the video, corresponding to the + * video frame for this location. + *+ * + *
.google.protobuf.Duration time_offset = 1;
+ */
+ boolean hasTimeOffset();
+ /**
+ *
+ *
+ * + * Time-offset, relative to the beginning of the video, corresponding to the + * video frame for this location. + *+ * + *
.google.protobuf.Duration time_offset = 1;
+ */
+ com.google.protobuf.Duration getTimeOffset();
+ /**
+ *
+ *
+ * + * Time-offset, relative to the beginning of the video, corresponding to the + * video frame for this location. + *+ * + *
.google.protobuf.Duration time_offset = 1;
+ */
+ com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder();
+
+ /**
+ *
+ *
+ * + * Likelihood of the pornography content.. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.Likelihood pornography_likelihood = 2;
+ */
+ int getPornographyLikelihoodValue();
+ /**
+ *
+ *
+ * + * Likelihood of the pornography content.. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.Likelihood pornography_likelihood = 2;
+ */
+ com.google.cloud.videointelligence.v1p3beta1.Likelihood getPornographyLikelihood();
+}
diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/Feature.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/Feature.java
new file mode 100644
index 000000000000..1c808587ea21
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/Feature.java
@@ -0,0 +1,218 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto
+
+package com.google.cloud.videointelligence.v1p3beta1;
+
+/**
+ *
+ *
+ * + * Video annotation feature. + *+ * + * Protobuf enum {@code google.cloud.videointelligence.v1p3beta1.Feature} + */ +public enum Feature implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Unspecified. + *+ * + *
FEATURE_UNSPECIFIED = 0;
+ */
+ FEATURE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Label detection. Detect objects, such as dog or flower. + *+ * + *
LABEL_DETECTION = 1;
+ */
+ LABEL_DETECTION(1),
+ /**
+ *
+ *
+ * + * Shot change detection. + *+ * + *
SHOT_CHANGE_DETECTION = 2;
+ */
+ SHOT_CHANGE_DETECTION(2),
+ /**
+ *
+ *
+ * + * Explicit content detection. + *+ * + *
EXPLICIT_CONTENT_DETECTION = 3;
+ */
+ EXPLICIT_CONTENT_DETECTION(3),
+ /**
+ *
+ *
+ * + * OCR text detection and tracking. + *+ * + *
TEXT_DETECTION = 7;
+ */
+ TEXT_DETECTION(7),
+ /**
+ *
+ *
+ * + * Object detection and tracking. + *+ * + *
OBJECT_TRACKING = 9;
+ */
+ OBJECT_TRACKING(9),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * Unspecified. + *+ * + *
FEATURE_UNSPECIFIED = 0;
+ */
+ public static final int FEATURE_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * Label detection. Detect objects, such as dog or flower. + *+ * + *
LABEL_DETECTION = 1;
+ */
+ public static final int LABEL_DETECTION_VALUE = 1;
+ /**
+ *
+ *
+ * + * Shot change detection. + *+ * + *
SHOT_CHANGE_DETECTION = 2;
+ */
+ public static final int SHOT_CHANGE_DETECTION_VALUE = 2;
+ /**
+ *
+ *
+ * + * Explicit content detection. + *+ * + *
EXPLICIT_CONTENT_DETECTION = 3;
+ */
+ public static final int EXPLICIT_CONTENT_DETECTION_VALUE = 3;
+ /**
+ *
+ *
+ * + * OCR text detection and tracking. + *+ * + *
TEXT_DETECTION = 7;
+ */
+ public static final int TEXT_DETECTION_VALUE = 7;
+ /**
+ *
+ *
+ * + * Object detection and tracking. + *+ * + *
OBJECT_TRACKING = 9;
+ */
+ public static final int OBJECT_TRACKING_VALUE = 9;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /** @deprecated Use {@link #forNumber(int)} instead. */
+ @java.lang.Deprecated
+ public static Feature valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static Feature forNumber(int value) {
+ switch (value) {
+ case 0:
+ return FEATURE_UNSPECIFIED;
+ case 1:
+ return LABEL_DETECTION;
+ case 2:
+ return SHOT_CHANGE_DETECTION;
+ case 3:
+ return EXPLICIT_CONTENT_DETECTION;
+ case 7:
+ return TEXT_DETECTION;
+ case 9:
+ return OBJECT_TRACKING;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Label annotation. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.LabelAnnotation} + */ +public final class LabelAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.LabelAnnotation) + LabelAnnotationOrBuilder { + private static final long serialVersionUID = 0L; + // Use LabelAnnotation.newBuilder() to construct. + private LabelAnnotation(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private LabelAnnotation() { + categoryEntities_ = java.util.Collections.emptyList(); + segments_ = java.util.Collections.emptyList(); + frames_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private LabelAnnotation( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.videointelligence.v1p3beta1.Entity.Builder subBuilder = null; + if (entity_ != null) { + subBuilder = entity_.toBuilder(); + } + entity_ = + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.Entity.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(entity_); + entity_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + categoryEntities_ = + new java.util.ArrayList
+ * Detected entity. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.Entity entity = 1;
+ */
+ public boolean hasEntity() {
+ return entity_ != null;
+ }
+ /**
+ *
+ *
+ * + * Detected entity. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.Entity entity = 1;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.Entity getEntity() {
+ return entity_ == null
+ ? com.google.cloud.videointelligence.v1p3beta1.Entity.getDefaultInstance()
+ : entity_;
+ }
+ /**
+ *
+ *
+ * + * Detected entity. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.Entity entity = 1;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.EntityOrBuilder getEntityOrBuilder() {
+ return getEntity();
+ }
+
+ public static final int CATEGORY_ENTITIES_FIELD_NUMBER = 2;
+ private java.util.List+ * Common categories for the detected entity. + * E.g. when the label is `Terrier` the category is likely `dog`. And in some + * cases there might be more than one categories e.g. `Terrier` could also be + * a `pet`. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2;
+ */
+ public java.util.List+ * Common categories for the detected entity. + * E.g. when the label is `Terrier` the category is likely `dog`. And in some + * cases there might be more than one categories e.g. `Terrier` could also be + * a `pet`. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2;
+ */
+ public java.util.List extends com.google.cloud.videointelligence.v1p3beta1.EntityOrBuilder>
+ getCategoryEntitiesOrBuilderList() {
+ return categoryEntities_;
+ }
+ /**
+ *
+ *
+ * + * Common categories for the detected entity. + * E.g. when the label is `Terrier` the category is likely `dog`. And in some + * cases there might be more than one categories e.g. `Terrier` could also be + * a `pet`. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2;
+ */
+ public int getCategoryEntitiesCount() {
+ return categoryEntities_.size();
+ }
+ /**
+ *
+ *
+ * + * Common categories for the detected entity. + * E.g. when the label is `Terrier` the category is likely `dog`. And in some + * cases there might be more than one categories e.g. `Terrier` could also be + * a `pet`. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.Entity getCategoryEntities(int index) {
+ return categoryEntities_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Common categories for the detected entity. + * E.g. when the label is `Terrier` the category is likely `dog`. And in some + * cases there might be more than one categories e.g. `Terrier` could also be + * a `pet`. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.EntityOrBuilder getCategoryEntitiesOrBuilder(
+ int index) {
+ return categoryEntities_.get(index);
+ }
+
+ public static final int SEGMENTS_FIELD_NUMBER = 3;
+ private java.util.List+ * All video segments where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3;
+ */
+ public java.util.List+ * All video segments where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3;
+ */
+ public java.util.List<
+ ? extends com.google.cloud.videointelligence.v1p3beta1.LabelSegmentOrBuilder>
+ getSegmentsOrBuilderList() {
+ return segments_;
+ }
+ /**
+ *
+ *
+ * + * All video segments where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3;
+ */
+ public int getSegmentsCount() {
+ return segments_.size();
+ }
+ /**
+ *
+ *
+ * + * All video segments where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.LabelSegment getSegments(int index) {
+ return segments_.get(index);
+ }
+ /**
+ *
+ *
+ * + * All video segments where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.LabelSegmentOrBuilder getSegmentsOrBuilder(
+ int index) {
+ return segments_.get(index);
+ }
+
+ public static final int FRAMES_FIELD_NUMBER = 4;
+ private java.util.List+ * All video frames where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4;
+ */
+ public java.util.List+ * All video frames where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4;
+ */
+ public java.util.List extends com.google.cloud.videointelligence.v1p3beta1.LabelFrameOrBuilder>
+ getFramesOrBuilderList() {
+ return frames_;
+ }
+ /**
+ *
+ *
+ * + * All video frames where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4;
+ */
+ public int getFramesCount() {
+ return frames_.size();
+ }
+ /**
+ *
+ *
+ * + * All video frames where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.LabelFrame getFrames(int index) {
+ return frames_.get(index);
+ }
+ /**
+ *
+ *
+ * + * All video frames where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.LabelFrameOrBuilder getFramesOrBuilder(
+ int index) {
+ return frames_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (entity_ != null) {
+ output.writeMessage(1, getEntity());
+ }
+ for (int i = 0; i < categoryEntities_.size(); i++) {
+ output.writeMessage(2, categoryEntities_.get(i));
+ }
+ for (int i = 0; i < segments_.size(); i++) {
+ output.writeMessage(3, segments_.get(i));
+ }
+ for (int i = 0; i < frames_.size(); i++) {
+ output.writeMessage(4, frames_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (entity_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEntity());
+ }
+ for (int i = 0; i < categoryEntities_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, categoryEntities_.get(i));
+ }
+ for (int i = 0; i < segments_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, segments_.get(i));
+ }
+ for (int i = 0; i < frames_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, frames_.get(i));
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation other =
+ (com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation) obj;
+
+ boolean result = true;
+ result = result && (hasEntity() == other.hasEntity());
+ if (hasEntity()) {
+ result = result && getEntity().equals(other.getEntity());
+ }
+ result = result && getCategoryEntitiesList().equals(other.getCategoryEntitiesList());
+ result = result && getSegmentsList().equals(other.getSegmentsList());
+ result = result && getFramesList().equals(other.getFramesList());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasEntity()) {
+ hash = (37 * hash) + ENTITY_FIELD_NUMBER;
+ hash = (53 * hash) + getEntity().hashCode();
+ }
+ if (getCategoryEntitiesCount() > 0) {
+ hash = (37 * hash) + CATEGORY_ENTITIES_FIELD_NUMBER;
+ hash = (53 * hash) + getCategoryEntitiesList().hashCode();
+ }
+ if (getSegmentsCount() > 0) {
+ hash = (37 * hash) + SEGMENTS_FIELD_NUMBER;
+ hash = (53 * hash) + getSegmentsList().hashCode();
+ }
+ if (getFramesCount() > 0) {
+ hash = (37 * hash) + FRAMES_FIELD_NUMBER;
+ hash = (53 * hash) + getFramesList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Label annotation. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.LabelAnnotation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Detected entity. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.Entity entity = 1;
+ */
+ public boolean hasEntity() {
+ return entityBuilder_ != null || entity_ != null;
+ }
+ /**
+ *
+ *
+ * + * Detected entity. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.Entity entity = 1;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.Entity getEntity() {
+ if (entityBuilder_ == null) {
+ return entity_ == null
+ ? com.google.cloud.videointelligence.v1p3beta1.Entity.getDefaultInstance()
+ : entity_;
+ } else {
+ return entityBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Detected entity. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.Entity entity = 1;
+ */
+ public Builder setEntity(com.google.cloud.videointelligence.v1p3beta1.Entity value) {
+ if (entityBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ entity_ = value;
+ onChanged();
+ } else {
+ entityBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Detected entity. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.Entity entity = 1;
+ */
+ public Builder setEntity(
+ com.google.cloud.videointelligence.v1p3beta1.Entity.Builder builderForValue) {
+ if (entityBuilder_ == null) {
+ entity_ = builderForValue.build();
+ onChanged();
+ } else {
+ entityBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Detected entity. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.Entity entity = 1;
+ */
+ public Builder mergeEntity(com.google.cloud.videointelligence.v1p3beta1.Entity value) {
+ if (entityBuilder_ == null) {
+ if (entity_ != null) {
+ entity_ =
+ com.google.cloud.videointelligence.v1p3beta1.Entity.newBuilder(entity_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ entity_ = value;
+ }
+ onChanged();
+ } else {
+ entityBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Detected entity. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.Entity entity = 1;
+ */
+ public Builder clearEntity() {
+ if (entityBuilder_ == null) {
+ entity_ = null;
+ onChanged();
+ } else {
+ entity_ = null;
+ entityBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Detected entity. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.Entity entity = 1;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.Entity.Builder getEntityBuilder() {
+
+ onChanged();
+ return getEntityFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Detected entity. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.Entity entity = 1;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.EntityOrBuilder getEntityOrBuilder() {
+ if (entityBuilder_ != null) {
+ return entityBuilder_.getMessageOrBuilder();
+ } else {
+ return entity_ == null
+ ? com.google.cloud.videointelligence.v1p3beta1.Entity.getDefaultInstance()
+ : entity_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Detected entity. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.Entity entity = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.videointelligence.v1p3beta1.Entity,
+ com.google.cloud.videointelligence.v1p3beta1.Entity.Builder,
+ com.google.cloud.videointelligence.v1p3beta1.EntityOrBuilder>
+ getEntityFieldBuilder() {
+ if (entityBuilder_ == null) {
+ entityBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.videointelligence.v1p3beta1.Entity,
+ com.google.cloud.videointelligence.v1p3beta1.Entity.Builder,
+ com.google.cloud.videointelligence.v1p3beta1.EntityOrBuilder>(
+ getEntity(), getParentForChildren(), isClean());
+ entity_ = null;
+ }
+ return entityBuilder_;
+ }
+
+ private java.util.List+ * Common categories for the detected entity. + * E.g. when the label is `Terrier` the category is likely `dog`. And in some + * cases there might be more than one categories e.g. `Terrier` could also be + * a `pet`. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2;
+ */
+ public java.util.List+ * Common categories for the detected entity. + * E.g. when the label is `Terrier` the category is likely `dog`. And in some + * cases there might be more than one categories e.g. `Terrier` could also be + * a `pet`. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2;
+ */
+ public int getCategoryEntitiesCount() {
+ if (categoryEntitiesBuilder_ == null) {
+ return categoryEntities_.size();
+ } else {
+ return categoryEntitiesBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * Common categories for the detected entity. + * E.g. when the label is `Terrier` the category is likely `dog`. And in some + * cases there might be more than one categories e.g. `Terrier` could also be + * a `pet`. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.Entity getCategoryEntities(int index) {
+ if (categoryEntitiesBuilder_ == null) {
+ return categoryEntities_.get(index);
+ } else {
+ return categoryEntitiesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Common categories for the detected entity. + * E.g. when the label is `Terrier` the category is likely `dog`. And in some + * cases there might be more than one categories e.g. `Terrier` could also be + * a `pet`. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2;
+ */
+ public Builder setCategoryEntities(
+ int index, com.google.cloud.videointelligence.v1p3beta1.Entity value) {
+ if (categoryEntitiesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureCategoryEntitiesIsMutable();
+ categoryEntities_.set(index, value);
+ onChanged();
+ } else {
+ categoryEntitiesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Common categories for the detected entity. + * E.g. when the label is `Terrier` the category is likely `dog`. And in some + * cases there might be more than one categories e.g. `Terrier` could also be + * a `pet`. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2;
+ */
+ public Builder setCategoryEntities(
+ int index, com.google.cloud.videointelligence.v1p3beta1.Entity.Builder builderForValue) {
+ if (categoryEntitiesBuilder_ == null) {
+ ensureCategoryEntitiesIsMutable();
+ categoryEntities_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ categoryEntitiesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Common categories for the detected entity. + * E.g. when the label is `Terrier` the category is likely `dog`. And in some + * cases there might be more than one categories e.g. `Terrier` could also be + * a `pet`. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2;
+ */
+ public Builder addCategoryEntities(com.google.cloud.videointelligence.v1p3beta1.Entity value) {
+ if (categoryEntitiesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureCategoryEntitiesIsMutable();
+ categoryEntities_.add(value);
+ onChanged();
+ } else {
+ categoryEntitiesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Common categories for the detected entity. + * E.g. when the label is `Terrier` the category is likely `dog`. And in some + * cases there might be more than one categories e.g. `Terrier` could also be + * a `pet`. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2;
+ */
+ public Builder addCategoryEntities(
+ int index, com.google.cloud.videointelligence.v1p3beta1.Entity value) {
+ if (categoryEntitiesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureCategoryEntitiesIsMutable();
+ categoryEntities_.add(index, value);
+ onChanged();
+ } else {
+ categoryEntitiesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Common categories for the detected entity. + * E.g. when the label is `Terrier` the category is likely `dog`. And in some + * cases there might be more than one categories e.g. `Terrier` could also be + * a `pet`. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2;
+ */
+ public Builder addCategoryEntities(
+ com.google.cloud.videointelligence.v1p3beta1.Entity.Builder builderForValue) {
+ if (categoryEntitiesBuilder_ == null) {
+ ensureCategoryEntitiesIsMutable();
+ categoryEntities_.add(builderForValue.build());
+ onChanged();
+ } else {
+ categoryEntitiesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Common categories for the detected entity. + * E.g. when the label is `Terrier` the category is likely `dog`. And in some + * cases there might be more than one categories e.g. `Terrier` could also be + * a `pet`. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2;
+ */
+ public Builder addCategoryEntities(
+ int index, com.google.cloud.videointelligence.v1p3beta1.Entity.Builder builderForValue) {
+ if (categoryEntitiesBuilder_ == null) {
+ ensureCategoryEntitiesIsMutable();
+ categoryEntities_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ categoryEntitiesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Common categories for the detected entity. + * E.g. when the label is `Terrier` the category is likely `dog`. And in some + * cases there might be more than one categories e.g. `Terrier` could also be + * a `pet`. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2;
+ */
+ public Builder addAllCategoryEntities(
+ java.lang.Iterable extends com.google.cloud.videointelligence.v1p3beta1.Entity> values) {
+ if (categoryEntitiesBuilder_ == null) {
+ ensureCategoryEntitiesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, categoryEntities_);
+ onChanged();
+ } else {
+ categoryEntitiesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Common categories for the detected entity. + * E.g. when the label is `Terrier` the category is likely `dog`. And in some + * cases there might be more than one categories e.g. `Terrier` could also be + * a `pet`. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2;
+ */
+ public Builder clearCategoryEntities() {
+ if (categoryEntitiesBuilder_ == null) {
+ categoryEntities_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ categoryEntitiesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Common categories for the detected entity. + * E.g. when the label is `Terrier` the category is likely `dog`. And in some + * cases there might be more than one categories e.g. `Terrier` could also be + * a `pet`. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2;
+ */
+ public Builder removeCategoryEntities(int index) {
+ if (categoryEntitiesBuilder_ == null) {
+ ensureCategoryEntitiesIsMutable();
+ categoryEntities_.remove(index);
+ onChanged();
+ } else {
+ categoryEntitiesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Common categories for the detected entity. + * E.g. when the label is `Terrier` the category is likely `dog`. And in some + * cases there might be more than one categories e.g. `Terrier` could also be + * a `pet`. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.Entity.Builder getCategoryEntitiesBuilder(
+ int index) {
+ return getCategoryEntitiesFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * Common categories for the detected entity. + * E.g. when the label is `Terrier` the category is likely `dog`. And in some + * cases there might be more than one categories e.g. `Terrier` could also be + * a `pet`. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.EntityOrBuilder
+ getCategoryEntitiesOrBuilder(int index) {
+ if (categoryEntitiesBuilder_ == null) {
+ return categoryEntities_.get(index);
+ } else {
+ return categoryEntitiesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Common categories for the detected entity. + * E.g. when the label is `Terrier` the category is likely `dog`. And in some + * cases there might be more than one categories e.g. `Terrier` could also be + * a `pet`. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2;
+ */
+ public java.util.List extends com.google.cloud.videointelligence.v1p3beta1.EntityOrBuilder>
+ getCategoryEntitiesOrBuilderList() {
+ if (categoryEntitiesBuilder_ != null) {
+ return categoryEntitiesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(categoryEntities_);
+ }
+ }
+ /**
+ *
+ *
+ * + * Common categories for the detected entity. + * E.g. when the label is `Terrier` the category is likely `dog`. And in some + * cases there might be more than one categories e.g. `Terrier` could also be + * a `pet`. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.Entity.Builder
+ addCategoryEntitiesBuilder() {
+ return getCategoryEntitiesFieldBuilder()
+ .addBuilder(com.google.cloud.videointelligence.v1p3beta1.Entity.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Common categories for the detected entity. + * E.g. when the label is `Terrier` the category is likely `dog`. And in some + * cases there might be more than one categories e.g. `Terrier` could also be + * a `pet`. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.Entity.Builder addCategoryEntitiesBuilder(
+ int index) {
+ return getCategoryEntitiesFieldBuilder()
+ .addBuilder(
+ index, com.google.cloud.videointelligence.v1p3beta1.Entity.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Common categories for the detected entity. + * E.g. when the label is `Terrier` the category is likely `dog`. And in some + * cases there might be more than one categories e.g. `Terrier` could also be + * a `pet`. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2;
+ */
+ public java.util.List+ * All video segments where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3;
+ */
+ public java.util.List+ * All video segments where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3;
+ */
+ public int getSegmentsCount() {
+ if (segmentsBuilder_ == null) {
+ return segments_.size();
+ } else {
+ return segmentsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * All video segments where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.LabelSegment getSegments(int index) {
+ if (segmentsBuilder_ == null) {
+ return segments_.get(index);
+ } else {
+ return segmentsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * All video segments where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3;
+ */
+ public Builder setSegments(
+ int index, com.google.cloud.videointelligence.v1p3beta1.LabelSegment value) {
+ if (segmentsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSegmentsIsMutable();
+ segments_.set(index, value);
+ onChanged();
+ } else {
+ segmentsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * All video segments where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3;
+ */
+ public Builder setSegments(
+ int index,
+ com.google.cloud.videointelligence.v1p3beta1.LabelSegment.Builder builderForValue) {
+ if (segmentsBuilder_ == null) {
+ ensureSegmentsIsMutable();
+ segments_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ segmentsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * All video segments where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3;
+ */
+ public Builder addSegments(com.google.cloud.videointelligence.v1p3beta1.LabelSegment value) {
+ if (segmentsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSegmentsIsMutable();
+ segments_.add(value);
+ onChanged();
+ } else {
+ segmentsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * All video segments where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3;
+ */
+ public Builder addSegments(
+ int index, com.google.cloud.videointelligence.v1p3beta1.LabelSegment value) {
+ if (segmentsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSegmentsIsMutable();
+ segments_.add(index, value);
+ onChanged();
+ } else {
+ segmentsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * All video segments where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3;
+ */
+ public Builder addSegments(
+ com.google.cloud.videointelligence.v1p3beta1.LabelSegment.Builder builderForValue) {
+ if (segmentsBuilder_ == null) {
+ ensureSegmentsIsMutable();
+ segments_.add(builderForValue.build());
+ onChanged();
+ } else {
+ segmentsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * All video segments where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3;
+ */
+ public Builder addSegments(
+ int index,
+ com.google.cloud.videointelligence.v1p3beta1.LabelSegment.Builder builderForValue) {
+ if (segmentsBuilder_ == null) {
+ ensureSegmentsIsMutable();
+ segments_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ segmentsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * All video segments where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3;
+ */
+ public Builder addAllSegments(
+ java.lang.Iterable extends com.google.cloud.videointelligence.v1p3beta1.LabelSegment>
+ values) {
+ if (segmentsBuilder_ == null) {
+ ensureSegmentsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, segments_);
+ onChanged();
+ } else {
+ segmentsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * All video segments where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3;
+ */
+ public Builder clearSegments() {
+ if (segmentsBuilder_ == null) {
+ segments_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ } else {
+ segmentsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * All video segments where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3;
+ */
+ public Builder removeSegments(int index) {
+ if (segmentsBuilder_ == null) {
+ ensureSegmentsIsMutable();
+ segments_.remove(index);
+ onChanged();
+ } else {
+ segmentsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * All video segments where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.LabelSegment.Builder getSegmentsBuilder(
+ int index) {
+ return getSegmentsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * All video segments where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.LabelSegmentOrBuilder getSegmentsOrBuilder(
+ int index) {
+ if (segmentsBuilder_ == null) {
+ return segments_.get(index);
+ } else {
+ return segmentsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * All video segments where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3;
+ */
+ public java.util.List<
+ ? extends com.google.cloud.videointelligence.v1p3beta1.LabelSegmentOrBuilder>
+ getSegmentsOrBuilderList() {
+ if (segmentsBuilder_ != null) {
+ return segmentsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(segments_);
+ }
+ }
+ /**
+ *
+ *
+ * + * All video segments where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.LabelSegment.Builder addSegmentsBuilder() {
+ return getSegmentsFieldBuilder()
+ .addBuilder(
+ com.google.cloud.videointelligence.v1p3beta1.LabelSegment.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * All video segments where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.LabelSegment.Builder addSegmentsBuilder(
+ int index) {
+ return getSegmentsFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.cloud.videointelligence.v1p3beta1.LabelSegment.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * All video segments where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3;
+ */
+ public java.util.List+ * All video frames where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4;
+ */
+ public java.util.List+ * All video frames where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4;
+ */
+ public int getFramesCount() {
+ if (framesBuilder_ == null) {
+ return frames_.size();
+ } else {
+ return framesBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * All video frames where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.LabelFrame getFrames(int index) {
+ if (framesBuilder_ == null) {
+ return frames_.get(index);
+ } else {
+ return framesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * All video frames where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4;
+ */
+ public Builder setFrames(
+ int index, com.google.cloud.videointelligence.v1p3beta1.LabelFrame value) {
+ if (framesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFramesIsMutable();
+ frames_.set(index, value);
+ onChanged();
+ } else {
+ framesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * All video frames where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4;
+ */
+ public Builder setFrames(
+ int index,
+ com.google.cloud.videointelligence.v1p3beta1.LabelFrame.Builder builderForValue) {
+ if (framesBuilder_ == null) {
+ ensureFramesIsMutable();
+ frames_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ framesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * All video frames where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4;
+ */
+ public Builder addFrames(com.google.cloud.videointelligence.v1p3beta1.LabelFrame value) {
+ if (framesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFramesIsMutable();
+ frames_.add(value);
+ onChanged();
+ } else {
+ framesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * All video frames where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4;
+ */
+ public Builder addFrames(
+ int index, com.google.cloud.videointelligence.v1p3beta1.LabelFrame value) {
+ if (framesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFramesIsMutable();
+ frames_.add(index, value);
+ onChanged();
+ } else {
+ framesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * All video frames where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4;
+ */
+ public Builder addFrames(
+ com.google.cloud.videointelligence.v1p3beta1.LabelFrame.Builder builderForValue) {
+ if (framesBuilder_ == null) {
+ ensureFramesIsMutable();
+ frames_.add(builderForValue.build());
+ onChanged();
+ } else {
+ framesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * All video frames where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4;
+ */
+ public Builder addFrames(
+ int index,
+ com.google.cloud.videointelligence.v1p3beta1.LabelFrame.Builder builderForValue) {
+ if (framesBuilder_ == null) {
+ ensureFramesIsMutable();
+ frames_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ framesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * All video frames where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4;
+ */
+ public Builder addAllFrames(
+ java.lang.Iterable extends com.google.cloud.videointelligence.v1p3beta1.LabelFrame>
+ values) {
+ if (framesBuilder_ == null) {
+ ensureFramesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, frames_);
+ onChanged();
+ } else {
+ framesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * All video frames where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4;
+ */
+ public Builder clearFrames() {
+ if (framesBuilder_ == null) {
+ frames_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ } else {
+ framesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * All video frames where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4;
+ */
+ public Builder removeFrames(int index) {
+ if (framesBuilder_ == null) {
+ ensureFramesIsMutable();
+ frames_.remove(index);
+ onChanged();
+ } else {
+ framesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * All video frames where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.LabelFrame.Builder getFramesBuilder(
+ int index) {
+ return getFramesFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * All video frames where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.LabelFrameOrBuilder getFramesOrBuilder(
+ int index) {
+ if (framesBuilder_ == null) {
+ return frames_.get(index);
+ } else {
+ return framesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * All video frames where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4;
+ */
+ public java.util.List<
+ ? extends com.google.cloud.videointelligence.v1p3beta1.LabelFrameOrBuilder>
+ getFramesOrBuilderList() {
+ if (framesBuilder_ != null) {
+ return framesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(frames_);
+ }
+ }
+ /**
+ *
+ *
+ * + * All video frames where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.LabelFrame.Builder addFramesBuilder() {
+ return getFramesFieldBuilder()
+ .addBuilder(com.google.cloud.videointelligence.v1p3beta1.LabelFrame.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * All video frames where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.LabelFrame.Builder addFramesBuilder(
+ int index) {
+ return getFramesFieldBuilder()
+ .addBuilder(
+ index, com.google.cloud.videointelligence.v1p3beta1.LabelFrame.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * All video frames where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4;
+ */
+ public java.util.List+ * Detected entity. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.Entity entity = 1;
+ */
+ boolean hasEntity();
+ /**
+ *
+ *
+ * + * Detected entity. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.Entity entity = 1;
+ */
+ com.google.cloud.videointelligence.v1p3beta1.Entity getEntity();
+ /**
+ *
+ *
+ * + * Detected entity. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.Entity entity = 1;
+ */
+ com.google.cloud.videointelligence.v1p3beta1.EntityOrBuilder getEntityOrBuilder();
+
+ /**
+ *
+ *
+ * + * Common categories for the detected entity. + * E.g. when the label is `Terrier` the category is likely `dog`. And in some + * cases there might be more than one categories e.g. `Terrier` could also be + * a `pet`. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2;
+ */
+ java.util.List+ * Common categories for the detected entity. + * E.g. when the label is `Terrier` the category is likely `dog`. And in some + * cases there might be more than one categories e.g. `Terrier` could also be + * a `pet`. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2;
+ */
+ com.google.cloud.videointelligence.v1p3beta1.Entity getCategoryEntities(int index);
+ /**
+ *
+ *
+ * + * Common categories for the detected entity. + * E.g. when the label is `Terrier` the category is likely `dog`. And in some + * cases there might be more than one categories e.g. `Terrier` could also be + * a `pet`. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2;
+ */
+ int getCategoryEntitiesCount();
+ /**
+ *
+ *
+ * + * Common categories for the detected entity. + * E.g. when the label is `Terrier` the category is likely `dog`. And in some + * cases there might be more than one categories e.g. `Terrier` could also be + * a `pet`. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2;
+ */
+ java.util.List extends com.google.cloud.videointelligence.v1p3beta1.EntityOrBuilder>
+ getCategoryEntitiesOrBuilderList();
+ /**
+ *
+ *
+ * + * Common categories for the detected entity. + * E.g. when the label is `Terrier` the category is likely `dog`. And in some + * cases there might be more than one categories e.g. `Terrier` could also be + * a `pet`. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.Entity category_entities = 2;
+ */
+ com.google.cloud.videointelligence.v1p3beta1.EntityOrBuilder getCategoryEntitiesOrBuilder(
+ int index);
+
+ /**
+ *
+ *
+ * + * All video segments where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3;
+ */
+ java.util.List+ * All video segments where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3;
+ */
+ com.google.cloud.videointelligence.v1p3beta1.LabelSegment getSegments(int index);
+ /**
+ *
+ *
+ * + * All video segments where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3;
+ */
+ int getSegmentsCount();
+ /**
+ *
+ *
+ * + * All video segments where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3;
+ */
+ java.util.List extends com.google.cloud.videointelligence.v1p3beta1.LabelSegmentOrBuilder>
+ getSegmentsOrBuilderList();
+ /**
+ *
+ *
+ * + * All video segments where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3;
+ */
+ com.google.cloud.videointelligence.v1p3beta1.LabelSegmentOrBuilder getSegmentsOrBuilder(
+ int index);
+
+ /**
+ *
+ *
+ * + * All video frames where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4;
+ */
+ java.util.List+ * All video frames where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4;
+ */
+ com.google.cloud.videointelligence.v1p3beta1.LabelFrame getFrames(int index);
+ /**
+ *
+ *
+ * + * All video frames where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4;
+ */
+ int getFramesCount();
+ /**
+ *
+ *
+ * + * All video frames where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4;
+ */
+ java.util.List extends com.google.cloud.videointelligence.v1p3beta1.LabelFrameOrBuilder>
+ getFramesOrBuilderList();
+ /**
+ *
+ *
+ * + * All video frames where a label was detected. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4;
+ */
+ com.google.cloud.videointelligence.v1p3beta1.LabelFrameOrBuilder getFramesOrBuilder(int index);
+}
diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelDetectionConfig.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelDetectionConfig.java
new file mode 100644
index 000000000000..290baa79ad98
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelDetectionConfig.java
@@ -0,0 +1,874 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto
+
+package com.google.cloud.videointelligence.v1p3beta1;
+
+/**
+ *
+ *
+ * + * Config for LABEL_DETECTION. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig} + */ +public final class LabelDetectionConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig) + LabelDetectionConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use LabelDetectionConfig.newBuilder() to construct. + private LabelDetectionConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private LabelDetectionConfig() { + labelDetectionMode_ = 0; + stationaryCamera_ = false; + model_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private LabelDetectionConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + labelDetectionMode_ = rawValue; + break; + } + case 16: + { + stationaryCamera_ = input.readBool(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + model_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_LabelDetectionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_LabelDetectionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig.class, + com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig.Builder.class); + } + + public static final int LABEL_DETECTION_MODE_FIELD_NUMBER = 1; + private int labelDetectionMode_; + /** + * + * + *
+ * What labels should be detected with LABEL_DETECTION, in addition to + * video-level labels or segment-level labels. + * If unspecified, defaults to `SHOT_MODE`. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.LabelDetectionMode label_detection_mode = 1;
+ *
+ */
+ public int getLabelDetectionModeValue() {
+ return labelDetectionMode_;
+ }
+ /**
+ *
+ *
+ * + * What labels should be detected with LABEL_DETECTION, in addition to + * video-level labels or segment-level labels. + * If unspecified, defaults to `SHOT_MODE`. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.LabelDetectionMode label_detection_mode = 1;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.LabelDetectionMode getLabelDetectionMode() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.videointelligence.v1p3beta1.LabelDetectionMode result =
+ com.google.cloud.videointelligence.v1p3beta1.LabelDetectionMode.valueOf(
+ labelDetectionMode_);
+ return result == null
+ ? com.google.cloud.videointelligence.v1p3beta1.LabelDetectionMode.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int STATIONARY_CAMERA_FIELD_NUMBER = 2;
+ private boolean stationaryCamera_;
+ /**
+ *
+ *
+ * + * Whether the video has been shot from a stationary (i.e. non-moving) camera. + * When set to true, might improve detection accuracy for moving objects. + * Should be used with `SHOT_AND_FRAME_MODE` enabled. + *+ * + *
bool stationary_camera = 2;
+ */
+ public boolean getStationaryCamera() {
+ return stationaryCamera_;
+ }
+
+ public static final int MODEL_FIELD_NUMBER = 3;
+ private volatile java.lang.Object model_;
+ /**
+ *
+ *
+ * + * Model to use for label detection. + * Supported values: "builtin/stable" (the default if unset) and + * "builtin/latest". + *+ * + *
string model = 3;
+ */
+ public java.lang.String getModel() {
+ java.lang.Object ref = model_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ model_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Model to use for label detection. + * Supported values: "builtin/stable" (the default if unset) and + * "builtin/latest". + *+ * + *
string model = 3;
+ */
+ public com.google.protobuf.ByteString getModelBytes() {
+ java.lang.Object ref = model_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ model_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (labelDetectionMode_
+ != com.google.cloud.videointelligence.v1p3beta1.LabelDetectionMode
+ .LABEL_DETECTION_MODE_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(1, labelDetectionMode_);
+ }
+ if (stationaryCamera_ != false) {
+ output.writeBool(2, stationaryCamera_);
+ }
+ if (!getModelBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, model_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (labelDetectionMode_
+ != com.google.cloud.videointelligence.v1p3beta1.LabelDetectionMode
+ .LABEL_DETECTION_MODE_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, labelDetectionMode_);
+ }
+ if (stationaryCamera_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, stationaryCamera_);
+ }
+ if (!getModelBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, model_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig other =
+ (com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig) obj;
+
+ boolean result = true;
+ result = result && labelDetectionMode_ == other.labelDetectionMode_;
+ result = result && (getStationaryCamera() == other.getStationaryCamera());
+ result = result && getModel().equals(other.getModel());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + LABEL_DETECTION_MODE_FIELD_NUMBER;
+ hash = (53 * hash) + labelDetectionMode_;
+ hash = (37 * hash) + STATIONARY_CAMERA_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getStationaryCamera());
+ hash = (37 * hash) + MODEL_FIELD_NUMBER;
+ hash = (53 * hash) + getModel().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Config for LABEL_DETECTION. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * What labels should be detected with LABEL_DETECTION, in addition to + * video-level labels or segment-level labels. + * If unspecified, defaults to `SHOT_MODE`. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.LabelDetectionMode label_detection_mode = 1;
+ *
+ */
+ public int getLabelDetectionModeValue() {
+ return labelDetectionMode_;
+ }
+ /**
+ *
+ *
+ * + * What labels should be detected with LABEL_DETECTION, in addition to + * video-level labels or segment-level labels. + * If unspecified, defaults to `SHOT_MODE`. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.LabelDetectionMode label_detection_mode = 1;
+ *
+ */
+ public Builder setLabelDetectionModeValue(int value) {
+ labelDetectionMode_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * What labels should be detected with LABEL_DETECTION, in addition to + * video-level labels or segment-level labels. + * If unspecified, defaults to `SHOT_MODE`. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.LabelDetectionMode label_detection_mode = 1;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.LabelDetectionMode getLabelDetectionMode() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.videointelligence.v1p3beta1.LabelDetectionMode result =
+ com.google.cloud.videointelligence.v1p3beta1.LabelDetectionMode.valueOf(
+ labelDetectionMode_);
+ return result == null
+ ? com.google.cloud.videointelligence.v1p3beta1.LabelDetectionMode.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ * + * What labels should be detected with LABEL_DETECTION, in addition to + * video-level labels or segment-level labels. + * If unspecified, defaults to `SHOT_MODE`. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.LabelDetectionMode label_detection_mode = 1;
+ *
+ */
+ public Builder setLabelDetectionMode(
+ com.google.cloud.videointelligence.v1p3beta1.LabelDetectionMode value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ labelDetectionMode_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * What labels should be detected with LABEL_DETECTION, in addition to + * video-level labels or segment-level labels. + * If unspecified, defaults to `SHOT_MODE`. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.LabelDetectionMode label_detection_mode = 1;
+ *
+ */
+ public Builder clearLabelDetectionMode() {
+
+ labelDetectionMode_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private boolean stationaryCamera_;
+ /**
+ *
+ *
+ * + * Whether the video has been shot from a stationary (i.e. non-moving) camera. + * When set to true, might improve detection accuracy for moving objects. + * Should be used with `SHOT_AND_FRAME_MODE` enabled. + *+ * + *
bool stationary_camera = 2;
+ */
+ public boolean getStationaryCamera() {
+ return stationaryCamera_;
+ }
+ /**
+ *
+ *
+ * + * Whether the video has been shot from a stationary (i.e. non-moving) camera. + * When set to true, might improve detection accuracy for moving objects. + * Should be used with `SHOT_AND_FRAME_MODE` enabled. + *+ * + *
bool stationary_camera = 2;
+ */
+ public Builder setStationaryCamera(boolean value) {
+
+ stationaryCamera_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Whether the video has been shot from a stationary (i.e. non-moving) camera. + * When set to true, might improve detection accuracy for moving objects. + * Should be used with `SHOT_AND_FRAME_MODE` enabled. + *+ * + *
bool stationary_camera = 2;
+ */
+ public Builder clearStationaryCamera() {
+
+ stationaryCamera_ = false;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object model_ = "";
+ /**
+ *
+ *
+ * + * Model to use for label detection. + * Supported values: "builtin/stable" (the default if unset) and + * "builtin/latest". + *+ * + *
string model = 3;
+ */
+ public java.lang.String getModel() {
+ java.lang.Object ref = model_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ model_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Model to use for label detection. + * Supported values: "builtin/stable" (the default if unset) and + * "builtin/latest". + *+ * + *
string model = 3;
+ */
+ public com.google.protobuf.ByteString getModelBytes() {
+ java.lang.Object ref = model_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ model_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Model to use for label detection. + * Supported values: "builtin/stable" (the default if unset) and + * "builtin/latest". + *+ * + *
string model = 3;
+ */
+ public Builder setModel(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ model_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Model to use for label detection. + * Supported values: "builtin/stable" (the default if unset) and + * "builtin/latest". + *+ * + *
string model = 3;
+ */
+ public Builder clearModel() {
+
+ model_ = getDefaultInstance().getModel();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Model to use for label detection. + * Supported values: "builtin/stable" (the default if unset) and + * "builtin/latest". + *+ * + *
string model = 3;
+ */
+ public Builder setModelBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ model_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig)
+ private static final com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig();
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * What labels should be detected with LABEL_DETECTION, in addition to + * video-level labels or segment-level labels. + * If unspecified, defaults to `SHOT_MODE`. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.LabelDetectionMode label_detection_mode = 1;
+ *
+ */
+ int getLabelDetectionModeValue();
+ /**
+ *
+ *
+ * + * What labels should be detected with LABEL_DETECTION, in addition to + * video-level labels or segment-level labels. + * If unspecified, defaults to `SHOT_MODE`. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.LabelDetectionMode label_detection_mode = 1;
+ *
+ */
+ com.google.cloud.videointelligence.v1p3beta1.LabelDetectionMode getLabelDetectionMode();
+
+ /**
+ *
+ *
+ * + * Whether the video has been shot from a stationary (i.e. non-moving) camera. + * When set to true, might improve detection accuracy for moving objects. + * Should be used with `SHOT_AND_FRAME_MODE` enabled. + *+ * + *
bool stationary_camera = 2;
+ */
+ boolean getStationaryCamera();
+
+ /**
+ *
+ *
+ * + * Model to use for label detection. + * Supported values: "builtin/stable" (the default if unset) and + * "builtin/latest". + *+ * + *
string model = 3;
+ */
+ java.lang.String getModel();
+ /**
+ *
+ *
+ * + * Model to use for label detection. + * Supported values: "builtin/stable" (the default if unset) and + * "builtin/latest". + *+ * + *
string model = 3;
+ */
+ com.google.protobuf.ByteString getModelBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelDetectionMode.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelDetectionMode.java
new file mode 100644
index 000000000000..122651f6fb3c
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelDetectionMode.java
@@ -0,0 +1,176 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto
+
+package com.google.cloud.videointelligence.v1p3beta1;
+
+/**
+ *
+ *
+ * + * Label detection mode. + *+ * + * Protobuf enum {@code google.cloud.videointelligence.v1p3beta1.LabelDetectionMode} + */ +public enum LabelDetectionMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Unspecified. + *+ * + *
LABEL_DETECTION_MODE_UNSPECIFIED = 0;
+ */
+ LABEL_DETECTION_MODE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Detect shot-level labels. + *+ * + *
SHOT_MODE = 1;
+ */
+ SHOT_MODE(1),
+ /**
+ *
+ *
+ * + * Detect frame-level labels. + *+ * + *
FRAME_MODE = 2;
+ */
+ FRAME_MODE(2),
+ /**
+ *
+ *
+ * + * Detect both shot-level and frame-level labels. + *+ * + *
SHOT_AND_FRAME_MODE = 3;
+ */
+ SHOT_AND_FRAME_MODE(3),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * Unspecified. + *+ * + *
LABEL_DETECTION_MODE_UNSPECIFIED = 0;
+ */
+ public static final int LABEL_DETECTION_MODE_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * Detect shot-level labels. + *+ * + *
SHOT_MODE = 1;
+ */
+ public static final int SHOT_MODE_VALUE = 1;
+ /**
+ *
+ *
+ * + * Detect frame-level labels. + *+ * + *
FRAME_MODE = 2;
+ */
+ public static final int FRAME_MODE_VALUE = 2;
+ /**
+ *
+ *
+ * + * Detect both shot-level and frame-level labels. + *+ * + *
SHOT_AND_FRAME_MODE = 3;
+ */
+ public static final int SHOT_AND_FRAME_MODE_VALUE = 3;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /** @deprecated Use {@link #forNumber(int)} instead. */
+ @java.lang.Deprecated
+ public static LabelDetectionMode valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static LabelDetectionMode forNumber(int value) {
+ switch (value) {
+ case 0:
+ return LABEL_DETECTION_MODE_UNSPECIFIED;
+ case 1:
+ return SHOT_MODE;
+ case 2:
+ return FRAME_MODE;
+ case 3:
+ return SHOT_AND_FRAME_MODE;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Video frame level annotation results for label detection. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.LabelFrame} + */ +public final class LabelFrame extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.LabelFrame) + LabelFrameOrBuilder { + private static final long serialVersionUID = 0L; + // Use LabelFrame.newBuilder() to construct. + private LabelFrame(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private LabelFrame() { + confidence_ = 0F; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private LabelFrame( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (timeOffset_ != null) { + subBuilder = timeOffset_.toBuilder(); + } + timeOffset_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(timeOffset_); + timeOffset_ = subBuilder.buildPartial(); + } + + break; + } + case 21: + { + confidence_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_LabelFrame_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_LabelFrame_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.LabelFrame.class, + com.google.cloud.videointelligence.v1p3beta1.LabelFrame.Builder.class); + } + + public static final int TIME_OFFSET_FIELD_NUMBER = 1; + private com.google.protobuf.Duration timeOffset_; + /** + * + * + *
+ * Time-offset, relative to the beginning of the video, corresponding to the + * video frame for this location. + *+ * + *
.google.protobuf.Duration time_offset = 1;
+ */
+ public boolean hasTimeOffset() {
+ return timeOffset_ != null;
+ }
+ /**
+ *
+ *
+ * + * Time-offset, relative to the beginning of the video, corresponding to the + * video frame for this location. + *+ * + *
.google.protobuf.Duration time_offset = 1;
+ */
+ public com.google.protobuf.Duration getTimeOffset() {
+ return timeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeOffset_;
+ }
+ /**
+ *
+ *
+ * + * Time-offset, relative to the beginning of the video, corresponding to the + * video frame for this location. + *+ * + *
.google.protobuf.Duration time_offset = 1;
+ */
+ public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() {
+ return getTimeOffset();
+ }
+
+ public static final int CONFIDENCE_FIELD_NUMBER = 2;
+ private float confidence_;
+ /**
+ *
+ *
+ * + * Confidence that the label is accurate. Range: [0, 1]. + *+ * + *
float confidence = 2;
+ */
+ public float getConfidence() {
+ return confidence_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (timeOffset_ != null) {
+ output.writeMessage(1, getTimeOffset());
+ }
+ if (confidence_ != 0F) {
+ output.writeFloat(2, confidence_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (timeOffset_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTimeOffset());
+ }
+ if (confidence_ != 0F) {
+ size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.videointelligence.v1p3beta1.LabelFrame)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.videointelligence.v1p3beta1.LabelFrame other =
+ (com.google.cloud.videointelligence.v1p3beta1.LabelFrame) obj;
+
+ boolean result = true;
+ result = result && (hasTimeOffset() == other.hasTimeOffset());
+ if (hasTimeOffset()) {
+ result = result && getTimeOffset().equals(other.getTimeOffset());
+ }
+ result =
+ result
+ && (java.lang.Float.floatToIntBits(getConfidence())
+ == java.lang.Float.floatToIntBits(other.getConfidence()));
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasTimeOffset()) {
+ hash = (37 * hash) + TIME_OFFSET_FIELD_NUMBER;
+ hash = (53 * hash) + getTimeOffset().hashCode();
+ }
+ hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.LabelFrame parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.LabelFrame parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.LabelFrame parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.LabelFrame parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.LabelFrame parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.LabelFrame parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.LabelFrame parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.LabelFrame parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.LabelFrame parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.LabelFrame parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.LabelFrame parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.LabelFrame parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.videointelligence.v1p3beta1.LabelFrame prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Video frame level annotation results for label detection. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.LabelFrame} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Time-offset, relative to the beginning of the video, corresponding to the + * video frame for this location. + *+ * + *
.google.protobuf.Duration time_offset = 1;
+ */
+ public boolean hasTimeOffset() {
+ return timeOffsetBuilder_ != null || timeOffset_ != null;
+ }
+ /**
+ *
+ *
+ * + * Time-offset, relative to the beginning of the video, corresponding to the + * video frame for this location. + *+ * + *
.google.protobuf.Duration time_offset = 1;
+ */
+ public com.google.protobuf.Duration getTimeOffset() {
+ if (timeOffsetBuilder_ == null) {
+ return timeOffset_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : timeOffset_;
+ } else {
+ return timeOffsetBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Time-offset, relative to the beginning of the video, corresponding to the + * video frame for this location. + *+ * + *
.google.protobuf.Duration time_offset = 1;
+ */
+ public Builder setTimeOffset(com.google.protobuf.Duration value) {
+ if (timeOffsetBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ timeOffset_ = value;
+ onChanged();
+ } else {
+ timeOffsetBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Time-offset, relative to the beginning of the video, corresponding to the + * video frame for this location. + *+ * + *
.google.protobuf.Duration time_offset = 1;
+ */
+ public Builder setTimeOffset(com.google.protobuf.Duration.Builder builderForValue) {
+ if (timeOffsetBuilder_ == null) {
+ timeOffset_ = builderForValue.build();
+ onChanged();
+ } else {
+ timeOffsetBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Time-offset, relative to the beginning of the video, corresponding to the + * video frame for this location. + *+ * + *
.google.protobuf.Duration time_offset = 1;
+ */
+ public Builder mergeTimeOffset(com.google.protobuf.Duration value) {
+ if (timeOffsetBuilder_ == null) {
+ if (timeOffset_ != null) {
+ timeOffset_ =
+ com.google.protobuf.Duration.newBuilder(timeOffset_).mergeFrom(value).buildPartial();
+ } else {
+ timeOffset_ = value;
+ }
+ onChanged();
+ } else {
+ timeOffsetBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Time-offset, relative to the beginning of the video, corresponding to the + * video frame for this location. + *+ * + *
.google.protobuf.Duration time_offset = 1;
+ */
+ public Builder clearTimeOffset() {
+ if (timeOffsetBuilder_ == null) {
+ timeOffset_ = null;
+ onChanged();
+ } else {
+ timeOffset_ = null;
+ timeOffsetBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Time-offset, relative to the beginning of the video, corresponding to the + * video frame for this location. + *+ * + *
.google.protobuf.Duration time_offset = 1;
+ */
+ public com.google.protobuf.Duration.Builder getTimeOffsetBuilder() {
+
+ onChanged();
+ return getTimeOffsetFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Time-offset, relative to the beginning of the video, corresponding to the + * video frame for this location. + *+ * + *
.google.protobuf.Duration time_offset = 1;
+ */
+ public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() {
+ if (timeOffsetBuilder_ != null) {
+ return timeOffsetBuilder_.getMessageOrBuilder();
+ } else {
+ return timeOffset_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : timeOffset_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Time-offset, relative to the beginning of the video, corresponding to the + * video frame for this location. + *+ * + *
.google.protobuf.Duration time_offset = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ getTimeOffsetFieldBuilder() {
+ if (timeOffsetBuilder_ == null) {
+ timeOffsetBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>(
+ getTimeOffset(), getParentForChildren(), isClean());
+ timeOffset_ = null;
+ }
+ return timeOffsetBuilder_;
+ }
+
+ private float confidence_;
+ /**
+ *
+ *
+ * + * Confidence that the label is accurate. Range: [0, 1]. + *+ * + *
float confidence = 2;
+ */
+ public float getConfidence() {
+ return confidence_;
+ }
+ /**
+ *
+ *
+ * + * Confidence that the label is accurate. Range: [0, 1]. + *+ * + *
float confidence = 2;
+ */
+ public Builder setConfidence(float value) {
+
+ confidence_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Confidence that the label is accurate. Range: [0, 1]. + *+ * + *
float confidence = 2;
+ */
+ public Builder clearConfidence() {
+
+ confidence_ = 0F;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.LabelFrame)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.LabelFrame)
+ private static final com.google.cloud.videointelligence.v1p3beta1.LabelFrame DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p3beta1.LabelFrame();
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.LabelFrame getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Time-offset, relative to the beginning of the video, corresponding to the + * video frame for this location. + *+ * + *
.google.protobuf.Duration time_offset = 1;
+ */
+ boolean hasTimeOffset();
+ /**
+ *
+ *
+ * + * Time-offset, relative to the beginning of the video, corresponding to the + * video frame for this location. + *+ * + *
.google.protobuf.Duration time_offset = 1;
+ */
+ com.google.protobuf.Duration getTimeOffset();
+ /**
+ *
+ *
+ * + * Time-offset, relative to the beginning of the video, corresponding to the + * video frame for this location. + *+ * + *
.google.protobuf.Duration time_offset = 1;
+ */
+ com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder();
+
+ /**
+ *
+ *
+ * + * Confidence that the label is accurate. Range: [0, 1]. + *+ * + *
float confidence = 2;
+ */
+ float getConfidence();
+}
diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelSegment.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelSegment.java
new file mode 100644
index 000000000000..0869f023e290
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/LabelSegment.java
@@ -0,0 +1,791 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto
+
+package com.google.cloud.videointelligence.v1p3beta1;
+
+/**
+ *
+ *
+ * + * Video segment level annotation results for label detection. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.LabelSegment} + */ +public final class LabelSegment extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.LabelSegment) + LabelSegmentOrBuilder { + private static final long serialVersionUID = 0L; + // Use LabelSegment.newBuilder() to construct. + private LabelSegment(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private LabelSegment() { + confidence_ = 0F; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private LabelSegment( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder subBuilder = null; + if (segment_ != null) { + subBuilder = segment_.toBuilder(); + } + segment_ = + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(segment_); + segment_ = subBuilder.buildPartial(); + } + + break; + } + case 21: + { + confidence_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_LabelSegment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_LabelSegment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.LabelSegment.class, + com.google.cloud.videointelligence.v1p3beta1.LabelSegment.Builder.class); + } + + public static final int SEGMENT_FIELD_NUMBER = 1; + private com.google.cloud.videointelligence.v1p3beta1.VideoSegment segment_; + /** + * + * + *
+ * Video segment where a label was detected. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1;
+ */
+ public boolean hasSegment() {
+ return segment_ != null;
+ }
+ /**
+ *
+ *
+ * + * Video segment where a label was detected. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.VideoSegment getSegment() {
+ return segment_ == null
+ ? com.google.cloud.videointelligence.v1p3beta1.VideoSegment.getDefaultInstance()
+ : segment_;
+ }
+ /**
+ *
+ *
+ * + * Video segment where a label was detected. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder getSegmentOrBuilder() {
+ return getSegment();
+ }
+
+ public static final int CONFIDENCE_FIELD_NUMBER = 2;
+ private float confidence_;
+ /**
+ *
+ *
+ * + * Confidence that the label is accurate. Range: [0, 1]. + *+ * + *
float confidence = 2;
+ */
+ public float getConfidence() {
+ return confidence_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (segment_ != null) {
+ output.writeMessage(1, getSegment());
+ }
+ if (confidence_ != 0F) {
+ output.writeFloat(2, confidence_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (segment_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSegment());
+ }
+ if (confidence_ != 0F) {
+ size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.videointelligence.v1p3beta1.LabelSegment)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.videointelligence.v1p3beta1.LabelSegment other =
+ (com.google.cloud.videointelligence.v1p3beta1.LabelSegment) obj;
+
+ boolean result = true;
+ result = result && (hasSegment() == other.hasSegment());
+ if (hasSegment()) {
+ result = result && getSegment().equals(other.getSegment());
+ }
+ result =
+ result
+ && (java.lang.Float.floatToIntBits(getConfidence())
+ == java.lang.Float.floatToIntBits(other.getConfidence()));
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasSegment()) {
+ hash = (37 * hash) + SEGMENT_FIELD_NUMBER;
+ hash = (53 * hash) + getSegment().hashCode();
+ }
+ hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.LabelSegment parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.LabelSegment parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.LabelSegment parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.LabelSegment parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.LabelSegment parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.LabelSegment parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.LabelSegment parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.LabelSegment parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.LabelSegment parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.LabelSegment parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.LabelSegment parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.LabelSegment parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.videointelligence.v1p3beta1.LabelSegment prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Video segment level annotation results for label detection. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.LabelSegment} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Video segment where a label was detected. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1;
+ */
+ public boolean hasSegment() {
+ return segmentBuilder_ != null || segment_ != null;
+ }
+ /**
+ *
+ *
+ * + * Video segment where a label was detected. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.VideoSegment getSegment() {
+ if (segmentBuilder_ == null) {
+ return segment_ == null
+ ? com.google.cloud.videointelligence.v1p3beta1.VideoSegment.getDefaultInstance()
+ : segment_;
+ } else {
+ return segmentBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Video segment where a label was detected. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1;
+ */
+ public Builder setSegment(com.google.cloud.videointelligence.v1p3beta1.VideoSegment value) {
+ if (segmentBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ segment_ = value;
+ onChanged();
+ } else {
+ segmentBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Video segment where a label was detected. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1;
+ */
+ public Builder setSegment(
+ com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder builderForValue) {
+ if (segmentBuilder_ == null) {
+ segment_ = builderForValue.build();
+ onChanged();
+ } else {
+ segmentBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Video segment where a label was detected. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1;
+ */
+ public Builder mergeSegment(com.google.cloud.videointelligence.v1p3beta1.VideoSegment value) {
+ if (segmentBuilder_ == null) {
+ if (segment_ != null) {
+ segment_ =
+ com.google.cloud.videointelligence.v1p3beta1.VideoSegment.newBuilder(segment_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ segment_ = value;
+ }
+ onChanged();
+ } else {
+ segmentBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Video segment where a label was detected. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1;
+ */
+ public Builder clearSegment() {
+ if (segmentBuilder_ == null) {
+ segment_ = null;
+ onChanged();
+ } else {
+ segment_ = null;
+ segmentBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Video segment where a label was detected. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder getSegmentBuilder() {
+
+ onChanged();
+ return getSegmentFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Video segment where a label was detected. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder
+ getSegmentOrBuilder() {
+ if (segmentBuilder_ != null) {
+ return segmentBuilder_.getMessageOrBuilder();
+ } else {
+ return segment_ == null
+ ? com.google.cloud.videointelligence.v1p3beta1.VideoSegment.getDefaultInstance()
+ : segment_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Video segment where a label was detected. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.videointelligence.v1p3beta1.VideoSegment,
+ com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder,
+ com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder>
+ getSegmentFieldBuilder() {
+ if (segmentBuilder_ == null) {
+ segmentBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.videointelligence.v1p3beta1.VideoSegment,
+ com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder,
+ com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder>(
+ getSegment(), getParentForChildren(), isClean());
+ segment_ = null;
+ }
+ return segmentBuilder_;
+ }
+
+ private float confidence_;
+ /**
+ *
+ *
+ * + * Confidence that the label is accurate. Range: [0, 1]. + *+ * + *
float confidence = 2;
+ */
+ public float getConfidence() {
+ return confidence_;
+ }
+ /**
+ *
+ *
+ * + * Confidence that the label is accurate. Range: [0, 1]. + *+ * + *
float confidence = 2;
+ */
+ public Builder setConfidence(float value) {
+
+ confidence_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Confidence that the label is accurate. Range: [0, 1]. + *+ * + *
float confidence = 2;
+ */
+ public Builder clearConfidence() {
+
+ confidence_ = 0F;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.LabelSegment)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.LabelSegment)
+ private static final com.google.cloud.videointelligence.v1p3beta1.LabelSegment DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p3beta1.LabelSegment();
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.LabelSegment getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Video segment where a label was detected. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1;
+ */
+ boolean hasSegment();
+ /**
+ *
+ *
+ * + * Video segment where a label was detected. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1;
+ */
+ com.google.cloud.videointelligence.v1p3beta1.VideoSegment getSegment();
+ /**
+ *
+ *
+ * + * Video segment where a label was detected. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1;
+ */
+ com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder getSegmentOrBuilder();
+
+ /**
+ *
+ *
+ * + * Confidence that the label is accurate. Range: [0, 1]. + *+ * + *
float confidence = 2;
+ */
+ float getConfidence();
+}
diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/Likelihood.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/Likelihood.java
new file mode 100644
index 000000000000..f14fecb78b5f
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/Likelihood.java
@@ -0,0 +1,218 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto
+
+package com.google.cloud.videointelligence.v1p3beta1;
+
+/**
+ *
+ *
+ * + * Bucketized representation of likelihood. + *+ * + * Protobuf enum {@code google.cloud.videointelligence.v1p3beta1.Likelihood} + */ +public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Unspecified likelihood. + *+ * + *
LIKELIHOOD_UNSPECIFIED = 0;
+ */
+ LIKELIHOOD_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Very unlikely. + *+ * + *
VERY_UNLIKELY = 1;
+ */
+ VERY_UNLIKELY(1),
+ /**
+ *
+ *
+ * + * Unlikely. + *+ * + *
UNLIKELY = 2;
+ */
+ UNLIKELY(2),
+ /**
+ *
+ *
+ * + * Possible. + *+ * + *
POSSIBLE = 3;
+ */
+ POSSIBLE(3),
+ /**
+ *
+ *
+ * + * Likely. + *+ * + *
LIKELY = 4;
+ */
+ LIKELY(4),
+ /**
+ *
+ *
+ * + * Very likely. + *+ * + *
VERY_LIKELY = 5;
+ */
+ VERY_LIKELY(5),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * Unspecified likelihood. + *+ * + *
LIKELIHOOD_UNSPECIFIED = 0;
+ */
+ public static final int LIKELIHOOD_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * Very unlikely. + *+ * + *
VERY_UNLIKELY = 1;
+ */
+ public static final int VERY_UNLIKELY_VALUE = 1;
+ /**
+ *
+ *
+ * + * Unlikely. + *+ * + *
UNLIKELY = 2;
+ */
+ public static final int UNLIKELY_VALUE = 2;
+ /**
+ *
+ *
+ * + * Possible. + *+ * + *
POSSIBLE = 3;
+ */
+ public static final int POSSIBLE_VALUE = 3;
+ /**
+ *
+ *
+ * + * Likely. + *+ * + *
LIKELY = 4;
+ */
+ public static final int LIKELY_VALUE = 4;
+ /**
+ *
+ *
+ * + * Very likely. + *+ * + *
VERY_LIKELY = 5;
+ */
+ public static final int VERY_LIKELY_VALUE = 5;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /** @deprecated Use {@link #forNumber(int)} instead. */
+ @java.lang.Deprecated
+ public static Likelihood valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static Likelihood forNumber(int value) {
+ switch (value) {
+ case 0:
+ return LIKELIHOOD_UNSPECIFIED;
+ case 1:
+ return VERY_UNLIKELY;
+ case 2:
+ return UNLIKELY;
+ case 3:
+ return POSSIBLE;
+ case 4:
+ return LIKELY;
+ case 5:
+ return VERY_LIKELY;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Normalized bounding box. + * The normalized vertex coordinates are relative to the original image. + * Range: [0, 1]. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox} + */ +public final class NormalizedBoundingBox extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox) + NormalizedBoundingBoxOrBuilder { + private static final long serialVersionUID = 0L; + // Use NormalizedBoundingBox.newBuilder() to construct. + private NormalizedBoundingBox(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private NormalizedBoundingBox() { + left_ = 0F; + top_ = 0F; + right_ = 0F; + bottom_ = 0F; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private NormalizedBoundingBox( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 13: + { + left_ = input.readFloat(); + break; + } + case 21: + { + top_ = input.readFloat(); + break; + } + case 29: + { + right_ = input.readFloat(); + break; + } + case 37: + { + bottom_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_NormalizedBoundingBox_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_NormalizedBoundingBox_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox.class, + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox.Builder.class); + } + + public static final int LEFT_FIELD_NUMBER = 1; + private float left_; + /** + * + * + *
+ * Left X coordinate. + *+ * + *
float left = 1;
+ */
+ public float getLeft() {
+ return left_;
+ }
+
+ public static final int TOP_FIELD_NUMBER = 2;
+ private float top_;
+ /**
+ *
+ *
+ * + * Top Y coordinate. + *+ * + *
float top = 2;
+ */
+ public float getTop() {
+ return top_;
+ }
+
+ public static final int RIGHT_FIELD_NUMBER = 3;
+ private float right_;
+ /**
+ *
+ *
+ * + * Right X coordinate. + *+ * + *
float right = 3;
+ */
+ public float getRight() {
+ return right_;
+ }
+
+ public static final int BOTTOM_FIELD_NUMBER = 4;
+ private float bottom_;
+ /**
+ *
+ *
+ * + * Bottom Y coordinate. + *+ * + *
float bottom = 4;
+ */
+ public float getBottom() {
+ return bottom_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (left_ != 0F) {
+ output.writeFloat(1, left_);
+ }
+ if (top_ != 0F) {
+ output.writeFloat(2, top_);
+ }
+ if (right_ != 0F) {
+ output.writeFloat(3, right_);
+ }
+ if (bottom_ != 0F) {
+ output.writeFloat(4, bottom_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (left_ != 0F) {
+ size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, left_);
+ }
+ if (top_ != 0F) {
+ size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, top_);
+ }
+ if (right_ != 0F) {
+ size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, right_);
+ }
+ if (bottom_ != 0F) {
+ size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, bottom_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox other =
+ (com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox) obj;
+
+ boolean result = true;
+ result =
+ result
+ && (java.lang.Float.floatToIntBits(getLeft())
+ == java.lang.Float.floatToIntBits(other.getLeft()));
+ result =
+ result
+ && (java.lang.Float.floatToIntBits(getTop())
+ == java.lang.Float.floatToIntBits(other.getTop()));
+ result =
+ result
+ && (java.lang.Float.floatToIntBits(getRight())
+ == java.lang.Float.floatToIntBits(other.getRight()));
+ result =
+ result
+ && (java.lang.Float.floatToIntBits(getBottom())
+ == java.lang.Float.floatToIntBits(other.getBottom()));
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + LEFT_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(getLeft());
+ hash = (37 * hash) + TOP_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(getTop());
+ hash = (37 * hash) + RIGHT_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(getRight());
+ hash = (37 * hash) + BOTTOM_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(getBottom());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Normalized bounding box. + * The normalized vertex coordinates are relative to the original image. + * Range: [0, 1]. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Left X coordinate. + *+ * + *
float left = 1;
+ */
+ public float getLeft() {
+ return left_;
+ }
+ /**
+ *
+ *
+ * + * Left X coordinate. + *+ * + *
float left = 1;
+ */
+ public Builder setLeft(float value) {
+
+ left_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Left X coordinate. + *+ * + *
float left = 1;
+ */
+ public Builder clearLeft() {
+
+ left_ = 0F;
+ onChanged();
+ return this;
+ }
+
+ private float top_;
+ /**
+ *
+ *
+ * + * Top Y coordinate. + *+ * + *
float top = 2;
+ */
+ public float getTop() {
+ return top_;
+ }
+ /**
+ *
+ *
+ * + * Top Y coordinate. + *+ * + *
float top = 2;
+ */
+ public Builder setTop(float value) {
+
+ top_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Top Y coordinate. + *+ * + *
float top = 2;
+ */
+ public Builder clearTop() {
+
+ top_ = 0F;
+ onChanged();
+ return this;
+ }
+
+ private float right_;
+ /**
+ *
+ *
+ * + * Right X coordinate. + *+ * + *
float right = 3;
+ */
+ public float getRight() {
+ return right_;
+ }
+ /**
+ *
+ *
+ * + * Right X coordinate. + *+ * + *
float right = 3;
+ */
+ public Builder setRight(float value) {
+
+ right_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Right X coordinate. + *+ * + *
float right = 3;
+ */
+ public Builder clearRight() {
+
+ right_ = 0F;
+ onChanged();
+ return this;
+ }
+
+ private float bottom_;
+ /**
+ *
+ *
+ * + * Bottom Y coordinate. + *+ * + *
float bottom = 4;
+ */
+ public float getBottom() {
+ return bottom_;
+ }
+ /**
+ *
+ *
+ * + * Bottom Y coordinate. + *+ * + *
float bottom = 4;
+ */
+ public Builder setBottom(float value) {
+
+ bottom_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Bottom Y coordinate. + *+ * + *
float bottom = 4;
+ */
+ public Builder clearBottom() {
+
+ bottom_ = 0F;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox)
+ private static final com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox();
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Left X coordinate. + *+ * + *
float left = 1;
+ */
+ float getLeft();
+
+ /**
+ *
+ *
+ * + * Top Y coordinate. + *+ * + *
float top = 2;
+ */
+ float getTop();
+
+ /**
+ *
+ *
+ * + * Right X coordinate. + *+ * + *
float right = 3;
+ */
+ float getRight();
+
+ /**
+ *
+ *
+ * + * Bottom Y coordinate. + *+ * + *
float bottom = 4;
+ */
+ float getBottom();
+}
diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/NormalizedBoundingPoly.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/NormalizedBoundingPoly.java
new file mode 100644
index 000000000000..3529ba0b3c75
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/NormalizedBoundingPoly.java
@@ -0,0 +1,1009 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto
+
+package com.google.cloud.videointelligence.v1p3beta1;
+
+/**
+ *
+ *
+ * + * Normalized bounding polygon for text (that might not be aligned with axis). + * Contains list of the corner points in clockwise order starting from + * top-left corner. For example, for a rectangular bounding box: + * When the text is horizontal it might look like: + * 0----1 + * | | + * 3----2 + * When it's clockwise rotated 180 degrees around the top-left corner it + * becomes: + * 2----3 + * | | + * 1----0 + * and the vertex order will still be (0, 1, 2, 3). Note that values can be less + * than 0, or greater than 1 due to trignometric calculations for location of + * the box. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly} + */ +public final class NormalizedBoundingPoly extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly) + NormalizedBoundingPolyOrBuilder { + private static final long serialVersionUID = 0L; + // Use NormalizedBoundingPoly.newBuilder() to construct. + private NormalizedBoundingPoly(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private NormalizedBoundingPoly() { + vertices_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private NormalizedBoundingPoly( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + vertices_ = + new java.util.ArrayList< + com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex>(); + mutable_bitField0_ |= 0x00000001; + } + vertices_.add( + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + vertices_ = java.util.Collections.unmodifiableList(vertices_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_NormalizedBoundingPoly_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_NormalizedBoundingPoly_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly.class, + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly.Builder.class); + } + + public static final int VERTICES_FIELD_NUMBER = 1; + private java.util.List
+ * Normalized vertices of the bounding polygon. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1;
+ */
+ public java.util.List+ * Normalized vertices of the bounding polygon. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1;
+ */
+ public java.util.List<
+ ? extends com.google.cloud.videointelligence.v1p3beta1.NormalizedVertexOrBuilder>
+ getVerticesOrBuilderList() {
+ return vertices_;
+ }
+ /**
+ *
+ *
+ * + * Normalized vertices of the bounding polygon. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1;
+ */
+ public int getVerticesCount() {
+ return vertices_.size();
+ }
+ /**
+ *
+ *
+ * + * Normalized vertices of the bounding polygon. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex getVertices(int index) {
+ return vertices_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Normalized vertices of the bounding polygon. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.NormalizedVertexOrBuilder
+ getVerticesOrBuilder(int index) {
+ return vertices_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ for (int i = 0; i < vertices_.size(); i++) {
+ output.writeMessage(1, vertices_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < vertices_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, vertices_.get(i));
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly other =
+ (com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly) obj;
+
+ boolean result = true;
+ result = result && getVerticesList().equals(other.getVerticesList());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getVerticesCount() > 0) {
+ hash = (37 * hash) + VERTICES_FIELD_NUMBER;
+ hash = (53 * hash) + getVerticesList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Normalized bounding polygon for text (that might not be aligned with axis). + * Contains list of the corner points in clockwise order starting from + * top-left corner. For example, for a rectangular bounding box: + * When the text is horizontal it might look like: + * 0----1 + * | | + * 3----2 + * When it's clockwise rotated 180 degrees around the top-left corner it + * becomes: + * 2----3 + * | | + * 1----0 + * and the vertex order will still be (0, 1, 2, 3). Note that values can be less + * than 0, or greater than 1 due to trignometric calculations for location of + * the box. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Normalized vertices of the bounding polygon. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1;
+ *
+ */
+ public java.util.List+ * Normalized vertices of the bounding polygon. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1;
+ *
+ */
+ public int getVerticesCount() {
+ if (verticesBuilder_ == null) {
+ return vertices_.size();
+ } else {
+ return verticesBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * Normalized vertices of the bounding polygon. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex getVertices(int index) {
+ if (verticesBuilder_ == null) {
+ return vertices_.get(index);
+ } else {
+ return verticesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Normalized vertices of the bounding polygon. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1;
+ *
+ */
+ public Builder setVertices(
+ int index, com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex value) {
+ if (verticesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureVerticesIsMutable();
+ vertices_.set(index, value);
+ onChanged();
+ } else {
+ verticesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Normalized vertices of the bounding polygon. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1;
+ *
+ */
+ public Builder setVertices(
+ int index,
+ com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex.Builder builderForValue) {
+ if (verticesBuilder_ == null) {
+ ensureVerticesIsMutable();
+ vertices_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ verticesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Normalized vertices of the bounding polygon. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1;
+ *
+ */
+ public Builder addVertices(
+ com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex value) {
+ if (verticesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureVerticesIsMutable();
+ vertices_.add(value);
+ onChanged();
+ } else {
+ verticesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Normalized vertices of the bounding polygon. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1;
+ *
+ */
+ public Builder addVertices(
+ int index, com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex value) {
+ if (verticesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureVerticesIsMutable();
+ vertices_.add(index, value);
+ onChanged();
+ } else {
+ verticesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Normalized vertices of the bounding polygon. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1;
+ *
+ */
+ public Builder addVertices(
+ com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex.Builder builderForValue) {
+ if (verticesBuilder_ == null) {
+ ensureVerticesIsMutable();
+ vertices_.add(builderForValue.build());
+ onChanged();
+ } else {
+ verticesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Normalized vertices of the bounding polygon. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1;
+ *
+ */
+ public Builder addVertices(
+ int index,
+ com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex.Builder builderForValue) {
+ if (verticesBuilder_ == null) {
+ ensureVerticesIsMutable();
+ vertices_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ verticesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Normalized vertices of the bounding polygon. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1;
+ *
+ */
+ public Builder addAllVertices(
+ java.lang.Iterable extends com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex>
+ values) {
+ if (verticesBuilder_ == null) {
+ ensureVerticesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, vertices_);
+ onChanged();
+ } else {
+ verticesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Normalized vertices of the bounding polygon. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1;
+ *
+ */
+ public Builder clearVertices() {
+ if (verticesBuilder_ == null) {
+ vertices_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ verticesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Normalized vertices of the bounding polygon. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1;
+ *
+ */
+ public Builder removeVertices(int index) {
+ if (verticesBuilder_ == null) {
+ ensureVerticesIsMutable();
+ vertices_.remove(index);
+ onChanged();
+ } else {
+ verticesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Normalized vertices of the bounding polygon. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex.Builder getVerticesBuilder(
+ int index) {
+ return getVerticesFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * Normalized vertices of the bounding polygon. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.NormalizedVertexOrBuilder
+ getVerticesOrBuilder(int index) {
+ if (verticesBuilder_ == null) {
+ return vertices_.get(index);
+ } else {
+ return verticesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Normalized vertices of the bounding polygon. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1;
+ *
+ */
+ public java.util.List<
+ ? extends com.google.cloud.videointelligence.v1p3beta1.NormalizedVertexOrBuilder>
+ getVerticesOrBuilderList() {
+ if (verticesBuilder_ != null) {
+ return verticesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(vertices_);
+ }
+ }
+ /**
+ *
+ *
+ * + * Normalized vertices of the bounding polygon. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex.Builder
+ addVerticesBuilder() {
+ return getVerticesFieldBuilder()
+ .addBuilder(
+ com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Normalized vertices of the bounding polygon. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex.Builder addVerticesBuilder(
+ int index) {
+ return getVerticesFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Normalized vertices of the bounding polygon. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1;
+ *
+ */
+ public java.util.List+ * Normalized vertices of the bounding polygon. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1;
+ */
+ java.util.List+ * Normalized vertices of the bounding polygon. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1;
+ */
+ com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex getVertices(int index);
+ /**
+ *
+ *
+ * + * Normalized vertices of the bounding polygon. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1;
+ */
+ int getVerticesCount();
+ /**
+ *
+ *
+ * + * Normalized vertices of the bounding polygon. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1;
+ */
+ java.util.List extends com.google.cloud.videointelligence.v1p3beta1.NormalizedVertexOrBuilder>
+ getVerticesOrBuilderList();
+ /**
+ *
+ *
+ * + * Normalized vertices of the bounding polygon. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.NormalizedVertex vertices = 1;
+ */
+ com.google.cloud.videointelligence.v1p3beta1.NormalizedVertexOrBuilder getVerticesOrBuilder(
+ int index);
+}
diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/NormalizedVertex.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/NormalizedVertex.java
new file mode 100644
index 000000000000..9dc80bce9e23
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/NormalizedVertex.java
@@ -0,0 +1,613 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto
+
+package com.google.cloud.videointelligence.v1p3beta1;
+
+/**
+ *
+ *
+ * + * A vertex represents a 2D point in the image. + * NOTE: the normalized vertex coordinates are relative to the original image + * and range from 0 to 1. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.NormalizedVertex} + */ +public final class NormalizedVertex extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.NormalizedVertex) + NormalizedVertexOrBuilder { + private static final long serialVersionUID = 0L; + // Use NormalizedVertex.newBuilder() to construct. + private NormalizedVertex(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private NormalizedVertex() { + x_ = 0F; + y_ = 0F; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private NormalizedVertex( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 13: + { + x_ = input.readFloat(); + break; + } + case 21: + { + y_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_NormalizedVertex_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_NormalizedVertex_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex.class, + com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex.Builder.class); + } + + public static final int X_FIELD_NUMBER = 1; + private float x_; + /** + * + * + *
+ * X coordinate. + *+ * + *
float x = 1;
+ */
+ public float getX() {
+ return x_;
+ }
+
+ public static final int Y_FIELD_NUMBER = 2;
+ private float y_;
+ /**
+ *
+ *
+ * + * Y coordinate. + *+ * + *
float y = 2;
+ */
+ public float getY() {
+ return y_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (x_ != 0F) {
+ output.writeFloat(1, x_);
+ }
+ if (y_ != 0F) {
+ output.writeFloat(2, y_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (x_ != 0F) {
+ size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, x_);
+ }
+ if (y_ != 0F) {
+ size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, y_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex other =
+ (com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex) obj;
+
+ boolean result = true;
+ result =
+ result
+ && (java.lang.Float.floatToIntBits(getX())
+ == java.lang.Float.floatToIntBits(other.getX()));
+ result =
+ result
+ && (java.lang.Float.floatToIntBits(getY())
+ == java.lang.Float.floatToIntBits(other.getY()));
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + X_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(getX());
+ hash = (37 * hash) + Y_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(getY());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * A vertex represents a 2D point in the image. + * NOTE: the normalized vertex coordinates are relative to the original image + * and range from 0 to 1. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.NormalizedVertex} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * X coordinate. + *+ * + *
float x = 1;
+ */
+ public float getX() {
+ return x_;
+ }
+ /**
+ *
+ *
+ * + * X coordinate. + *+ * + *
float x = 1;
+ */
+ public Builder setX(float value) {
+
+ x_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * X coordinate. + *+ * + *
float x = 1;
+ */
+ public Builder clearX() {
+
+ x_ = 0F;
+ onChanged();
+ return this;
+ }
+
+ private float y_;
+ /**
+ *
+ *
+ * + * Y coordinate. + *+ * + *
float y = 2;
+ */
+ public float getY() {
+ return y_;
+ }
+ /**
+ *
+ *
+ * + * Y coordinate. + *+ * + *
float y = 2;
+ */
+ public Builder setY(float value) {
+
+ y_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Y coordinate. + *+ * + *
float y = 2;
+ */
+ public Builder clearY() {
+
+ y_ = 0F;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.NormalizedVertex)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.NormalizedVertex)
+ private static final com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex();
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.NormalizedVertex getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * X coordinate. + *+ * + *
float x = 1;
+ */
+ float getX();
+
+ /**
+ *
+ *
+ * + * Y coordinate. + *+ * + *
float y = 2;
+ */
+ float getY();
+}
diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ObjectTrackingAnnotation.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ObjectTrackingAnnotation.java
new file mode 100644
index 000000000000..5a80eda4f7b7
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ObjectTrackingAnnotation.java
@@ -0,0 +1,1903 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto
+
+package com.google.cloud.videointelligence.v1p3beta1;
+
+/**
+ *
+ *
+ * + * Annotations corresponding to one tracked object. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation} + */ +public final class ObjectTrackingAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation) + ObjectTrackingAnnotationOrBuilder { + private static final long serialVersionUID = 0L; + // Use ObjectTrackingAnnotation.newBuilder() to construct. + private ObjectTrackingAnnotation(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ObjectTrackingAnnotation() { + confidence_ = 0F; + frames_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ObjectTrackingAnnotation( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.videointelligence.v1p3beta1.Entity.Builder subBuilder = null; + if (entity_ != null) { + subBuilder = entity_.toBuilder(); + } + entity_ = + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.Entity.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(entity_); + entity_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + frames_ = + new java.util.ArrayList< + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame>(); + mutable_bitField0_ |= 0x00000004; + } + frames_.add( + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame.parser(), + extensionRegistry)); + break; + } + case 26: + { + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder subBuilder = null; + if (trackInfoCase_ == 3) { + subBuilder = + ((com.google.cloud.videointelligence.v1p3beta1.VideoSegment) trackInfo_) + .toBuilder(); + } + trackInfo_ = + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.videointelligence.v1p3beta1.VideoSegment) trackInfo_); + trackInfo_ = subBuilder.buildPartial(); + } + trackInfoCase_ = 3; + break; + } + case 37: + { + confidence_ = input.readFloat(); + break; + } + case 40: + { + trackInfoCase_ = 5; + trackInfo_ = input.readInt64(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + frames_ = java.util.Collections.unmodifiableList(frames_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_ObjectTrackingAnnotation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_ObjectTrackingAnnotation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation.class, + 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 { + SEGMENT(3), + TRACK_ID(5), + TRACKINFO_NOT_SET(0); + private final int value; + + private TrackInfoCase(int value) { + this.value = value; + } + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static TrackInfoCase valueOf(int value) { + return forNumber(value); + } + + public static TrackInfoCase forNumber(int value) { + switch (value) { + case 3: + return SEGMENT; + case 5: + return TRACK_ID; + case 0: + return TRACKINFO_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TrackInfoCase getTrackInfoCase() { + return TrackInfoCase.forNumber(trackInfoCase_); + } + + public static final int ENTITY_FIELD_NUMBER = 1; + private com.google.cloud.videointelligence.v1p3beta1.Entity entity_; + /** + * + * + *
+ * Entity to specify the object category that this track is labeled as. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.Entity entity = 1;
+ */
+ public boolean hasEntity() {
+ return entity_ != null;
+ }
+ /**
+ *
+ *
+ * + * Entity to specify the object category that this track is labeled as. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.Entity entity = 1;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.Entity getEntity() {
+ return entity_ == null
+ ? com.google.cloud.videointelligence.v1p3beta1.Entity.getDefaultInstance()
+ : entity_;
+ }
+ /**
+ *
+ *
+ * + * Entity to specify the object category that this track is labeled as. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.Entity entity = 1;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.EntityOrBuilder getEntityOrBuilder() {
+ return getEntity();
+ }
+
+ public static final int CONFIDENCE_FIELD_NUMBER = 4;
+ private float confidence_;
+ /**
+ *
+ *
+ * + * Object category's labeling confidence of this track. + *+ * + *
float confidence = 4;
+ */
+ public float getConfidence() {
+ return confidence_;
+ }
+
+ public static final int FRAMES_FIELD_NUMBER = 2;
+ private java.util.List+ * Information corresponding to all frames where this object track appears. + * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame + * messages in frames. + * Streaming mode: it can only be one ObjectTrackingFrame message in frames. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2;
+ */
+ public java.util.List+ * Information corresponding to all frames where this object track appears. + * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame + * messages in frames. + * Streaming mode: it can only be one ObjectTrackingFrame message in frames. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2;
+ */
+ public java.util.List<
+ ? extends com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrameOrBuilder>
+ getFramesOrBuilderList() {
+ return frames_;
+ }
+ /**
+ *
+ *
+ * + * Information corresponding to all frames where this object track appears. + * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame + * messages in frames. + * Streaming mode: it can only be one ObjectTrackingFrame message in frames. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2;
+ */
+ public int getFramesCount() {
+ return frames_.size();
+ }
+ /**
+ *
+ *
+ * + * Information corresponding to all frames where this object track appears. + * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame + * messages in frames. + * Streaming mode: it can only be one ObjectTrackingFrame message in frames. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame getFrames(int index) {
+ return frames_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Information corresponding to all frames where this object track appears. + * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame + * messages in frames. + * Streaming mode: it can only be one ObjectTrackingFrame message in frames. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrameOrBuilder
+ getFramesOrBuilder(int index) {
+ return frames_.get(index);
+ }
+
+ public static final int SEGMENT_FIELD_NUMBER = 3;
+ /**
+ *
+ *
+ * + * Non-streaming batch mode ONLY. + * Each object track corresponds to one video segment where it appears. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 3;
+ */
+ public boolean hasSegment() {
+ return trackInfoCase_ == 3;
+ }
+ /**
+ *
+ *
+ * + * Non-streaming batch mode ONLY. + * Each object track corresponds to one video segment where it appears. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 3;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.VideoSegment getSegment() {
+ if (trackInfoCase_ == 3) {
+ return (com.google.cloud.videointelligence.v1p3beta1.VideoSegment) trackInfo_;
+ }
+ return com.google.cloud.videointelligence.v1p3beta1.VideoSegment.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Non-streaming batch mode ONLY. + * Each object track corresponds to one video segment where it appears. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 3;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder getSegmentOrBuilder() {
+ if (trackInfoCase_ == 3) {
+ return (com.google.cloud.videointelligence.v1p3beta1.VideoSegment) trackInfo_;
+ }
+ return com.google.cloud.videointelligence.v1p3beta1.VideoSegment.getDefaultInstance();
+ }
+
+ public static final int TRACK_ID_FIELD_NUMBER = 5;
+ /**
+ *
+ *
+ * + * Streaming mode ONLY. + * In streaming mode, we do not know the end time of a tracked object + * before it is completed. Hence, there is no VideoSegment info returned. + * Instead, we provide a unique identifiable integer track_id so that + * the customers can correlate the results of the ongoing + * ObjectTrackAnnotation of the same track_id over time. + *+ * + *
int64 track_id = 5;
+ */
+ public long getTrackId() {
+ if (trackInfoCase_ == 5) {
+ return (java.lang.Long) trackInfo_;
+ }
+ return 0L;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (entity_ != null) {
+ output.writeMessage(1, getEntity());
+ }
+ for (int i = 0; i < frames_.size(); i++) {
+ output.writeMessage(2, frames_.get(i));
+ }
+ if (trackInfoCase_ == 3) {
+ output.writeMessage(
+ 3, (com.google.cloud.videointelligence.v1p3beta1.VideoSegment) trackInfo_);
+ }
+ if (confidence_ != 0F) {
+ output.writeFloat(4, confidence_);
+ }
+ if (trackInfoCase_ == 5) {
+ output.writeInt64(5, (long) ((java.lang.Long) trackInfo_));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (entity_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEntity());
+ }
+ for (int i = 0; i < frames_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, frames_.get(i));
+ }
+ if (trackInfoCase_ == 3) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 3, (com.google.cloud.videointelligence.v1p3beta1.VideoSegment) trackInfo_);
+ }
+ if (confidence_ != 0F) {
+ size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, confidence_);
+ }
+ if (trackInfoCase_ == 5) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeInt64Size(
+ 5, (long) ((java.lang.Long) trackInfo_));
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation other =
+ (com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation) obj;
+
+ boolean result = true;
+ result = result && (hasEntity() == other.hasEntity());
+ if (hasEntity()) {
+ result = result && getEntity().equals(other.getEntity());
+ }
+ result =
+ result
+ && (java.lang.Float.floatToIntBits(getConfidence())
+ == java.lang.Float.floatToIntBits(other.getConfidence()));
+ result = result && getFramesList().equals(other.getFramesList());
+ result = result && getTrackInfoCase().equals(other.getTrackInfoCase());
+ if (!result) return false;
+ switch (trackInfoCase_) {
+ case 3:
+ result = result && getSegment().equals(other.getSegment());
+ break;
+ case 5:
+ result = result && (getTrackId() == other.getTrackId());
+ break;
+ case 0:
+ default:
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasEntity()) {
+ hash = (37 * hash) + ENTITY_FIELD_NUMBER;
+ hash = (53 * hash) + getEntity().hashCode();
+ }
+ hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence());
+ if (getFramesCount() > 0) {
+ hash = (37 * hash) + FRAMES_FIELD_NUMBER;
+ hash = (53 * hash) + getFramesList().hashCode();
+ }
+ switch (trackInfoCase_) {
+ case 3:
+ hash = (37 * hash) + SEGMENT_FIELD_NUMBER;
+ hash = (53 * hash) + getSegment().hashCode();
+ break;
+ case 5:
+ hash = (37 * hash) + TRACK_ID_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTrackId());
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Annotations corresponding to one tracked object. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Entity to specify the object category that this track is labeled as. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.Entity entity = 1;
+ */
+ public boolean hasEntity() {
+ return entityBuilder_ != null || entity_ != null;
+ }
+ /**
+ *
+ *
+ * + * Entity to specify the object category that this track is labeled as. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.Entity entity = 1;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.Entity getEntity() {
+ if (entityBuilder_ == null) {
+ return entity_ == null
+ ? com.google.cloud.videointelligence.v1p3beta1.Entity.getDefaultInstance()
+ : entity_;
+ } else {
+ return entityBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Entity to specify the object category that this track is labeled as. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.Entity entity = 1;
+ */
+ public Builder setEntity(com.google.cloud.videointelligence.v1p3beta1.Entity value) {
+ if (entityBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ entity_ = value;
+ onChanged();
+ } else {
+ entityBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Entity to specify the object category that this track is labeled as. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.Entity entity = 1;
+ */
+ public Builder setEntity(
+ com.google.cloud.videointelligence.v1p3beta1.Entity.Builder builderForValue) {
+ if (entityBuilder_ == null) {
+ entity_ = builderForValue.build();
+ onChanged();
+ } else {
+ entityBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Entity to specify the object category that this track is labeled as. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.Entity entity = 1;
+ */
+ public Builder mergeEntity(com.google.cloud.videointelligence.v1p3beta1.Entity value) {
+ if (entityBuilder_ == null) {
+ if (entity_ != null) {
+ entity_ =
+ com.google.cloud.videointelligence.v1p3beta1.Entity.newBuilder(entity_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ entity_ = value;
+ }
+ onChanged();
+ } else {
+ entityBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Entity to specify the object category that this track is labeled as. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.Entity entity = 1;
+ */
+ public Builder clearEntity() {
+ if (entityBuilder_ == null) {
+ entity_ = null;
+ onChanged();
+ } else {
+ entity_ = null;
+ entityBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Entity to specify the object category that this track is labeled as. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.Entity entity = 1;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.Entity.Builder getEntityBuilder() {
+
+ onChanged();
+ return getEntityFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Entity to specify the object category that this track is labeled as. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.Entity entity = 1;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.EntityOrBuilder getEntityOrBuilder() {
+ if (entityBuilder_ != null) {
+ return entityBuilder_.getMessageOrBuilder();
+ } else {
+ return entity_ == null
+ ? com.google.cloud.videointelligence.v1p3beta1.Entity.getDefaultInstance()
+ : entity_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Entity to specify the object category that this track is labeled as. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.Entity entity = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.videointelligence.v1p3beta1.Entity,
+ com.google.cloud.videointelligence.v1p3beta1.Entity.Builder,
+ com.google.cloud.videointelligence.v1p3beta1.EntityOrBuilder>
+ getEntityFieldBuilder() {
+ if (entityBuilder_ == null) {
+ entityBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.videointelligence.v1p3beta1.Entity,
+ com.google.cloud.videointelligence.v1p3beta1.Entity.Builder,
+ com.google.cloud.videointelligence.v1p3beta1.EntityOrBuilder>(
+ getEntity(), getParentForChildren(), isClean());
+ entity_ = null;
+ }
+ return entityBuilder_;
+ }
+
+ private float confidence_;
+ /**
+ *
+ *
+ * + * Object category's labeling confidence of this track. + *+ * + *
float confidence = 4;
+ */
+ public float getConfidence() {
+ return confidence_;
+ }
+ /**
+ *
+ *
+ * + * Object category's labeling confidence of this track. + *+ * + *
float confidence = 4;
+ */
+ public Builder setConfidence(float value) {
+
+ confidence_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Object category's labeling confidence of this track. + *+ * + *
float confidence = 4;
+ */
+ public Builder clearConfidence() {
+
+ confidence_ = 0F;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List+ * Information corresponding to all frames where this object track appears. + * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame + * messages in frames. + * Streaming mode: it can only be one ObjectTrackingFrame message in frames. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2;
+ *
+ */
+ public java.util.List+ * Information corresponding to all frames where this object track appears. + * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame + * messages in frames. + * Streaming mode: it can only be one ObjectTrackingFrame message in frames. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2;
+ *
+ */
+ public int getFramesCount() {
+ if (framesBuilder_ == null) {
+ return frames_.size();
+ } else {
+ return framesBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * Information corresponding to all frames where this object track appears. + * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame + * messages in frames. + * Streaming mode: it can only be one ObjectTrackingFrame message in frames. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame getFrames(int index) {
+ if (framesBuilder_ == null) {
+ return frames_.get(index);
+ } else {
+ return framesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Information corresponding to all frames where this object track appears. + * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame + * messages in frames. + * Streaming mode: it can only be one ObjectTrackingFrame message in frames. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2;
+ *
+ */
+ public Builder setFrames(
+ int index, com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame value) {
+ if (framesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFramesIsMutable();
+ frames_.set(index, value);
+ onChanged();
+ } else {
+ framesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Information corresponding to all frames where this object track appears. + * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame + * messages in frames. + * Streaming mode: it can only be one ObjectTrackingFrame message in frames. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2;
+ *
+ */
+ public Builder setFrames(
+ int index,
+ com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame.Builder builderForValue) {
+ if (framesBuilder_ == null) {
+ ensureFramesIsMutable();
+ frames_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ framesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Information corresponding to all frames where this object track appears. + * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame + * messages in frames. + * Streaming mode: it can only be one ObjectTrackingFrame message in frames. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2;
+ *
+ */
+ public Builder addFrames(
+ com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame value) {
+ if (framesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFramesIsMutable();
+ frames_.add(value);
+ onChanged();
+ } else {
+ framesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Information corresponding to all frames where this object track appears. + * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame + * messages in frames. + * Streaming mode: it can only be one ObjectTrackingFrame message in frames. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2;
+ *
+ */
+ public Builder addFrames(
+ int index, com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame value) {
+ if (framesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFramesIsMutable();
+ frames_.add(index, value);
+ onChanged();
+ } else {
+ framesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Information corresponding to all frames where this object track appears. + * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame + * messages in frames. + * Streaming mode: it can only be one ObjectTrackingFrame message in frames. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2;
+ *
+ */
+ public Builder addFrames(
+ com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame.Builder builderForValue) {
+ if (framesBuilder_ == null) {
+ ensureFramesIsMutable();
+ frames_.add(builderForValue.build());
+ onChanged();
+ } else {
+ framesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Information corresponding to all frames where this object track appears. + * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame + * messages in frames. + * Streaming mode: it can only be one ObjectTrackingFrame message in frames. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2;
+ *
+ */
+ public Builder addFrames(
+ int index,
+ com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame.Builder builderForValue) {
+ if (framesBuilder_ == null) {
+ ensureFramesIsMutable();
+ frames_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ framesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Information corresponding to all frames where this object track appears. + * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame + * messages in frames. + * Streaming mode: it can only be one ObjectTrackingFrame message in frames. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2;
+ *
+ */
+ public Builder addAllFrames(
+ java.lang.Iterable<
+ ? extends com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame>
+ values) {
+ if (framesBuilder_ == null) {
+ ensureFramesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, frames_);
+ onChanged();
+ } else {
+ framesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Information corresponding to all frames where this object track appears. + * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame + * messages in frames. + * Streaming mode: it can only be one ObjectTrackingFrame message in frames. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2;
+ *
+ */
+ public Builder clearFrames() {
+ if (framesBuilder_ == null) {
+ frames_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ } else {
+ framesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Information corresponding to all frames where this object track appears. + * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame + * messages in frames. + * Streaming mode: it can only be one ObjectTrackingFrame message in frames. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2;
+ *
+ */
+ public Builder removeFrames(int index) {
+ if (framesBuilder_ == null) {
+ ensureFramesIsMutable();
+ frames_.remove(index);
+ onChanged();
+ } else {
+ framesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Information corresponding to all frames where this object track appears. + * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame + * messages in frames. + * Streaming mode: it can only be one ObjectTrackingFrame message in frames. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame.Builder
+ getFramesBuilder(int index) {
+ return getFramesFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * Information corresponding to all frames where this object track appears. + * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame + * messages in frames. + * Streaming mode: it can only be one ObjectTrackingFrame message in frames. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrameOrBuilder
+ getFramesOrBuilder(int index) {
+ if (framesBuilder_ == null) {
+ return frames_.get(index);
+ } else {
+ return framesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Information corresponding to all frames where this object track appears. + * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame + * messages in frames. + * Streaming mode: it can only be one ObjectTrackingFrame message in frames. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2;
+ *
+ */
+ public java.util.List<
+ ? extends com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrameOrBuilder>
+ getFramesOrBuilderList() {
+ if (framesBuilder_ != null) {
+ return framesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(frames_);
+ }
+ }
+ /**
+ *
+ *
+ * + * Information corresponding to all frames where this object track appears. + * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame + * messages in frames. + * Streaming mode: it can only be one ObjectTrackingFrame message in frames. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame.Builder
+ addFramesBuilder() {
+ return getFramesFieldBuilder()
+ .addBuilder(
+ com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame
+ .getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Information corresponding to all frames where this object track appears. + * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame + * messages in frames. + * Streaming mode: it can only be one ObjectTrackingFrame message in frames. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame.Builder
+ addFramesBuilder(int index) {
+ return getFramesFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame
+ .getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Information corresponding to all frames where this object track appears. + * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame + * messages in frames. + * Streaming mode: it can only be one ObjectTrackingFrame message in frames. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2;
+ *
+ */
+ public java.util.List+ * Non-streaming batch mode ONLY. + * Each object track corresponds to one video segment where it appears. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 3;
+ */
+ public boolean hasSegment() {
+ return trackInfoCase_ == 3;
+ }
+ /**
+ *
+ *
+ * + * Non-streaming batch mode ONLY. + * Each object track corresponds to one video segment where it appears. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 3;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.VideoSegment getSegment() {
+ if (segmentBuilder_ == null) {
+ if (trackInfoCase_ == 3) {
+ return (com.google.cloud.videointelligence.v1p3beta1.VideoSegment) trackInfo_;
+ }
+ return com.google.cloud.videointelligence.v1p3beta1.VideoSegment.getDefaultInstance();
+ } else {
+ if (trackInfoCase_ == 3) {
+ return segmentBuilder_.getMessage();
+ }
+ return com.google.cloud.videointelligence.v1p3beta1.VideoSegment.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Non-streaming batch mode ONLY. + * Each object track corresponds to one video segment where it appears. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 3;
+ */
+ public Builder setSegment(com.google.cloud.videointelligence.v1p3beta1.VideoSegment value) {
+ if (segmentBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ trackInfo_ = value;
+ onChanged();
+ } else {
+ segmentBuilder_.setMessage(value);
+ }
+ trackInfoCase_ = 3;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Non-streaming batch mode ONLY. + * Each object track corresponds to one video segment where it appears. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 3;
+ */
+ public Builder setSegment(
+ com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder builderForValue) {
+ if (segmentBuilder_ == null) {
+ trackInfo_ = builderForValue.build();
+ onChanged();
+ } else {
+ segmentBuilder_.setMessage(builderForValue.build());
+ }
+ trackInfoCase_ = 3;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Non-streaming batch mode ONLY. + * Each object track corresponds to one video segment where it appears. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 3;
+ */
+ public Builder mergeSegment(com.google.cloud.videointelligence.v1p3beta1.VideoSegment value) {
+ if (segmentBuilder_ == null) {
+ if (trackInfoCase_ == 3
+ && trackInfo_
+ != com.google.cloud.videointelligence.v1p3beta1.VideoSegment.getDefaultInstance()) {
+ trackInfo_ =
+ com.google.cloud.videointelligence.v1p3beta1.VideoSegment.newBuilder(
+ (com.google.cloud.videointelligence.v1p3beta1.VideoSegment) trackInfo_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ trackInfo_ = value;
+ }
+ onChanged();
+ } else {
+ if (trackInfoCase_ == 3) {
+ segmentBuilder_.mergeFrom(value);
+ }
+ segmentBuilder_.setMessage(value);
+ }
+ trackInfoCase_ = 3;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Non-streaming batch mode ONLY. + * Each object track corresponds to one video segment where it appears. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 3;
+ */
+ public Builder clearSegment() {
+ if (segmentBuilder_ == null) {
+ if (trackInfoCase_ == 3) {
+ trackInfoCase_ = 0;
+ trackInfo_ = null;
+ onChanged();
+ }
+ } else {
+ if (trackInfoCase_ == 3) {
+ trackInfoCase_ = 0;
+ trackInfo_ = null;
+ }
+ segmentBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Non-streaming batch mode ONLY. + * Each object track corresponds to one video segment where it appears. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 3;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder getSegmentBuilder() {
+ return getSegmentFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Non-streaming batch mode ONLY. + * Each object track corresponds to one video segment where it appears. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 3;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder
+ getSegmentOrBuilder() {
+ if ((trackInfoCase_ == 3) && (segmentBuilder_ != null)) {
+ return segmentBuilder_.getMessageOrBuilder();
+ } else {
+ if (trackInfoCase_ == 3) {
+ return (com.google.cloud.videointelligence.v1p3beta1.VideoSegment) trackInfo_;
+ }
+ return com.google.cloud.videointelligence.v1p3beta1.VideoSegment.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Non-streaming batch mode ONLY. + * Each object track corresponds to one video segment where it appears. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.videointelligence.v1p3beta1.VideoSegment,
+ com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder,
+ com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder>
+ getSegmentFieldBuilder() {
+ if (segmentBuilder_ == null) {
+ if (!(trackInfoCase_ == 3)) {
+ trackInfo_ =
+ com.google.cloud.videointelligence.v1p3beta1.VideoSegment.getDefaultInstance();
+ }
+ segmentBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.videointelligence.v1p3beta1.VideoSegment,
+ com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder,
+ com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder>(
+ (com.google.cloud.videointelligence.v1p3beta1.VideoSegment) trackInfo_,
+ getParentForChildren(),
+ isClean());
+ trackInfo_ = null;
+ }
+ trackInfoCase_ = 3;
+ onChanged();
+ ;
+ return segmentBuilder_;
+ }
+
+ /**
+ *
+ *
+ * + * Streaming mode ONLY. + * In streaming mode, we do not know the end time of a tracked object + * before it is completed. Hence, there is no VideoSegment info returned. + * Instead, we provide a unique identifiable integer track_id so that + * the customers can correlate the results of the ongoing + * ObjectTrackAnnotation of the same track_id over time. + *+ * + *
int64 track_id = 5;
+ */
+ public long getTrackId() {
+ if (trackInfoCase_ == 5) {
+ return (java.lang.Long) trackInfo_;
+ }
+ return 0L;
+ }
+ /**
+ *
+ *
+ * + * Streaming mode ONLY. + * In streaming mode, we do not know the end time of a tracked object + * before it is completed. Hence, there is no VideoSegment info returned. + * Instead, we provide a unique identifiable integer track_id so that + * the customers can correlate the results of the ongoing + * ObjectTrackAnnotation of the same track_id over time. + *+ * + *
int64 track_id = 5;
+ */
+ public Builder setTrackId(long value) {
+ trackInfoCase_ = 5;
+ trackInfo_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Streaming mode ONLY. + * In streaming mode, we do not know the end time of a tracked object + * before it is completed. Hence, there is no VideoSegment info returned. + * Instead, we provide a unique identifiable integer track_id so that + * the customers can correlate the results of the ongoing + * ObjectTrackAnnotation of the same track_id over time. + *+ * + *
int64 track_id = 5;
+ */
+ public Builder clearTrackId() {
+ if (trackInfoCase_ == 5) {
+ trackInfoCase_ = 0;
+ trackInfo_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation)
+ private static final com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation();
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Entity to specify the object category that this track is labeled as. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.Entity entity = 1;
+ */
+ boolean hasEntity();
+ /**
+ *
+ *
+ * + * Entity to specify the object category that this track is labeled as. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.Entity entity = 1;
+ */
+ com.google.cloud.videointelligence.v1p3beta1.Entity getEntity();
+ /**
+ *
+ *
+ * + * Entity to specify the object category that this track is labeled as. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.Entity entity = 1;
+ */
+ com.google.cloud.videointelligence.v1p3beta1.EntityOrBuilder getEntityOrBuilder();
+
+ /**
+ *
+ *
+ * + * Object category's labeling confidence of this track. + *+ * + *
float confidence = 4;
+ */
+ float getConfidence();
+
+ /**
+ *
+ *
+ * + * Information corresponding to all frames where this object track appears. + * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame + * messages in frames. + * Streaming mode: it can only be one ObjectTrackingFrame message in frames. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2;
+ */
+ java.util.List+ * Information corresponding to all frames where this object track appears. + * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame + * messages in frames. + * Streaming mode: it can only be one ObjectTrackingFrame message in frames. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2;
+ */
+ com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame getFrames(int index);
+ /**
+ *
+ *
+ * + * Information corresponding to all frames where this object track appears. + * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame + * messages in frames. + * Streaming mode: it can only be one ObjectTrackingFrame message in frames. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2;
+ */
+ int getFramesCount();
+ /**
+ *
+ *
+ * + * Information corresponding to all frames where this object track appears. + * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame + * messages in frames. + * Streaming mode: it can only be one ObjectTrackingFrame message in frames. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2;
+ */
+ java.util.List<
+ ? extends com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrameOrBuilder>
+ getFramesOrBuilderList();
+ /**
+ *
+ *
+ * + * Information corresponding to all frames where this object track appears. + * Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame + * messages in frames. + * Streaming mode: it can only be one ObjectTrackingFrame message in frames. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2;
+ */
+ com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrameOrBuilder getFramesOrBuilder(
+ int index);
+
+ /**
+ *
+ *
+ * + * Non-streaming batch mode ONLY. + * Each object track corresponds to one video segment where it appears. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 3;
+ */
+ boolean hasSegment();
+ /**
+ *
+ *
+ * + * Non-streaming batch mode ONLY. + * Each object track corresponds to one video segment where it appears. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 3;
+ */
+ com.google.cloud.videointelligence.v1p3beta1.VideoSegment getSegment();
+ /**
+ *
+ *
+ * + * Non-streaming batch mode ONLY. + * Each object track corresponds to one video segment where it appears. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 3;
+ */
+ com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder getSegmentOrBuilder();
+
+ /**
+ *
+ *
+ * + * Streaming mode ONLY. + * In streaming mode, we do not know the end time of a tracked object + * before it is completed. Hence, there is no VideoSegment info returned. + * Instead, we provide a unique identifiable integer track_id so that + * the customers can correlate the results of the ongoing + * ObjectTrackAnnotation of the same track_id over time. + *+ * + *
int64 track_id = 5;
+ */
+ long getTrackId();
+
+ public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation.TrackInfoCase
+ getTrackInfoCase();
+}
diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ObjectTrackingFrame.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ObjectTrackingFrame.java
new file mode 100644
index 000000000000..f293e743dc87
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ObjectTrackingFrame.java
@@ -0,0 +1,1014 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto
+
+package com.google.cloud.videointelligence.v1p3beta1;
+
+/**
+ *
+ *
+ * + * Video frame level annotations for object detection and tracking. This field + * stores per frame location, time offset, and confidence. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame} + */ +public final class ObjectTrackingFrame extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame) + ObjectTrackingFrameOrBuilder { + private static final long serialVersionUID = 0L; + // Use ObjectTrackingFrame.newBuilder() to construct. + private ObjectTrackingFrame(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ObjectTrackingFrame() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ObjectTrackingFrame( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox.Builder + subBuilder = null; + if (normalizedBoundingBox_ != null) { + subBuilder = normalizedBoundingBox_.toBuilder(); + } + normalizedBoundingBox_ = + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(normalizedBoundingBox_); + normalizedBoundingBox_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (timeOffset_ != null) { + subBuilder = timeOffset_.toBuilder(); + } + timeOffset_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(timeOffset_); + timeOffset_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_ObjectTrackingFrame_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_ObjectTrackingFrame_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame.class, + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame.Builder.class); + } + + public static final int NORMALIZED_BOUNDING_BOX_FIELD_NUMBER = 1; + private com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox normalizedBoundingBox_; + /** + * + * + *
+ * The normalized bounding box location of this object track for the frame. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox normalized_bounding_box = 1;
+ *
+ */
+ public boolean hasNormalizedBoundingBox() {
+ return normalizedBoundingBox_ != null;
+ }
+ /**
+ *
+ *
+ * + * The normalized bounding box location of this object track for the frame. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox normalized_bounding_box = 1;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox
+ getNormalizedBoundingBox() {
+ return normalizedBoundingBox_ == null
+ ? com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox.getDefaultInstance()
+ : normalizedBoundingBox_;
+ }
+ /**
+ *
+ *
+ * + * The normalized bounding box location of this object track for the frame. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox normalized_bounding_box = 1;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBoxOrBuilder
+ getNormalizedBoundingBoxOrBuilder() {
+ return getNormalizedBoundingBox();
+ }
+
+ public static final int TIME_OFFSET_FIELD_NUMBER = 2;
+ private com.google.protobuf.Duration timeOffset_;
+ /**
+ *
+ *
+ * + * The timestamp of the frame in microseconds. + *+ * + *
.google.protobuf.Duration time_offset = 2;
+ */
+ public boolean hasTimeOffset() {
+ return timeOffset_ != null;
+ }
+ /**
+ *
+ *
+ * + * The timestamp of the frame in microseconds. + *+ * + *
.google.protobuf.Duration time_offset = 2;
+ */
+ public com.google.protobuf.Duration getTimeOffset() {
+ return timeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeOffset_;
+ }
+ /**
+ *
+ *
+ * + * The timestamp of the frame in microseconds. + *+ * + *
.google.protobuf.Duration time_offset = 2;
+ */
+ public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() {
+ return getTimeOffset();
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (normalizedBoundingBox_ != null) {
+ output.writeMessage(1, getNormalizedBoundingBox());
+ }
+ if (timeOffset_ != null) {
+ output.writeMessage(2, getTimeOffset());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (normalizedBoundingBox_ != null) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(1, getNormalizedBoundingBox());
+ }
+ if (timeOffset_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTimeOffset());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame other =
+ (com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame) obj;
+
+ boolean result = true;
+ result = result && (hasNormalizedBoundingBox() == other.hasNormalizedBoundingBox());
+ if (hasNormalizedBoundingBox()) {
+ result = result && getNormalizedBoundingBox().equals(other.getNormalizedBoundingBox());
+ }
+ result = result && (hasTimeOffset() == other.hasTimeOffset());
+ if (hasTimeOffset()) {
+ result = result && getTimeOffset().equals(other.getTimeOffset());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasNormalizedBoundingBox()) {
+ hash = (37 * hash) + NORMALIZED_BOUNDING_BOX_FIELD_NUMBER;
+ hash = (53 * hash) + getNormalizedBoundingBox().hashCode();
+ }
+ if (hasTimeOffset()) {
+ hash = (37 * hash) + TIME_OFFSET_FIELD_NUMBER;
+ hash = (53 * hash) + getTimeOffset().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Video frame level annotations for object detection and tracking. This field + * stores per frame location, time offset, and confidence. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The normalized bounding box location of this object track for the frame. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox normalized_bounding_box = 1;
+ *
+ */
+ public boolean hasNormalizedBoundingBox() {
+ return normalizedBoundingBoxBuilder_ != null || normalizedBoundingBox_ != null;
+ }
+ /**
+ *
+ *
+ * + * The normalized bounding box location of this object track for the frame. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox normalized_bounding_box = 1;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox
+ getNormalizedBoundingBox() {
+ if (normalizedBoundingBoxBuilder_ == null) {
+ return normalizedBoundingBox_ == null
+ ? com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox
+ .getDefaultInstance()
+ : normalizedBoundingBox_;
+ } else {
+ return normalizedBoundingBoxBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The normalized bounding box location of this object track for the frame. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox normalized_bounding_box = 1;
+ *
+ */
+ public Builder setNormalizedBoundingBox(
+ com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox value) {
+ if (normalizedBoundingBoxBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ normalizedBoundingBox_ = value;
+ onChanged();
+ } else {
+ normalizedBoundingBoxBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The normalized bounding box location of this object track for the frame. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox normalized_bounding_box = 1;
+ *
+ */
+ public Builder setNormalizedBoundingBox(
+ com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox.Builder
+ builderForValue) {
+ if (normalizedBoundingBoxBuilder_ == null) {
+ normalizedBoundingBox_ = builderForValue.build();
+ onChanged();
+ } else {
+ normalizedBoundingBoxBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The normalized bounding box location of this object track for the frame. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox normalized_bounding_box = 1;
+ *
+ */
+ public Builder mergeNormalizedBoundingBox(
+ com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox value) {
+ if (normalizedBoundingBoxBuilder_ == null) {
+ if (normalizedBoundingBox_ != null) {
+ normalizedBoundingBox_ =
+ com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox.newBuilder(
+ normalizedBoundingBox_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ normalizedBoundingBox_ = value;
+ }
+ onChanged();
+ } else {
+ normalizedBoundingBoxBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The normalized bounding box location of this object track for the frame. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox normalized_bounding_box = 1;
+ *
+ */
+ public Builder clearNormalizedBoundingBox() {
+ if (normalizedBoundingBoxBuilder_ == null) {
+ normalizedBoundingBox_ = null;
+ onChanged();
+ } else {
+ normalizedBoundingBox_ = null;
+ normalizedBoundingBoxBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The normalized bounding box location of this object track for the frame. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox normalized_bounding_box = 1;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox.Builder
+ getNormalizedBoundingBoxBuilder() {
+
+ onChanged();
+ return getNormalizedBoundingBoxFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The normalized bounding box location of this object track for the frame. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox normalized_bounding_box = 1;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBoxOrBuilder
+ getNormalizedBoundingBoxOrBuilder() {
+ if (normalizedBoundingBoxBuilder_ != null) {
+ return normalizedBoundingBoxBuilder_.getMessageOrBuilder();
+ } else {
+ return normalizedBoundingBox_ == null
+ ? com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox
+ .getDefaultInstance()
+ : normalizedBoundingBox_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The normalized bounding box location of this object track for the frame. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox normalized_bounding_box = 1;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox,
+ com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox.Builder,
+ com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBoxOrBuilder>
+ getNormalizedBoundingBoxFieldBuilder() {
+ if (normalizedBoundingBoxBuilder_ == null) {
+ normalizedBoundingBoxBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox,
+ com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox.Builder,
+ com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBoxOrBuilder>(
+ getNormalizedBoundingBox(), getParentForChildren(), isClean());
+ normalizedBoundingBox_ = null;
+ }
+ return normalizedBoundingBoxBuilder_;
+ }
+
+ private com.google.protobuf.Duration timeOffset_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ timeOffsetBuilder_;
+ /**
+ *
+ *
+ * + * The timestamp of the frame in microseconds. + *+ * + *
.google.protobuf.Duration time_offset = 2;
+ */
+ public boolean hasTimeOffset() {
+ return timeOffsetBuilder_ != null || timeOffset_ != null;
+ }
+ /**
+ *
+ *
+ * + * The timestamp of the frame in microseconds. + *+ * + *
.google.protobuf.Duration time_offset = 2;
+ */
+ public com.google.protobuf.Duration getTimeOffset() {
+ if (timeOffsetBuilder_ == null) {
+ return timeOffset_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : timeOffset_;
+ } else {
+ return timeOffsetBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The timestamp of the frame in microseconds. + *+ * + *
.google.protobuf.Duration time_offset = 2;
+ */
+ public Builder setTimeOffset(com.google.protobuf.Duration value) {
+ if (timeOffsetBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ timeOffset_ = value;
+ onChanged();
+ } else {
+ timeOffsetBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The timestamp of the frame in microseconds. + *+ * + *
.google.protobuf.Duration time_offset = 2;
+ */
+ public Builder setTimeOffset(com.google.protobuf.Duration.Builder builderForValue) {
+ if (timeOffsetBuilder_ == null) {
+ timeOffset_ = builderForValue.build();
+ onChanged();
+ } else {
+ timeOffsetBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The timestamp of the frame in microseconds. + *+ * + *
.google.protobuf.Duration time_offset = 2;
+ */
+ public Builder mergeTimeOffset(com.google.protobuf.Duration value) {
+ if (timeOffsetBuilder_ == null) {
+ if (timeOffset_ != null) {
+ timeOffset_ =
+ com.google.protobuf.Duration.newBuilder(timeOffset_).mergeFrom(value).buildPartial();
+ } else {
+ timeOffset_ = value;
+ }
+ onChanged();
+ } else {
+ timeOffsetBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The timestamp of the frame in microseconds. + *+ * + *
.google.protobuf.Duration time_offset = 2;
+ */
+ public Builder clearTimeOffset() {
+ if (timeOffsetBuilder_ == null) {
+ timeOffset_ = null;
+ onChanged();
+ } else {
+ timeOffset_ = null;
+ timeOffsetBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The timestamp of the frame in microseconds. + *+ * + *
.google.protobuf.Duration time_offset = 2;
+ */
+ public com.google.protobuf.Duration.Builder getTimeOffsetBuilder() {
+
+ onChanged();
+ return getTimeOffsetFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The timestamp of the frame in microseconds. + *+ * + *
.google.protobuf.Duration time_offset = 2;
+ */
+ public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() {
+ if (timeOffsetBuilder_ != null) {
+ return timeOffsetBuilder_.getMessageOrBuilder();
+ } else {
+ return timeOffset_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : timeOffset_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The timestamp of the frame in microseconds. + *+ * + *
.google.protobuf.Duration time_offset = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ getTimeOffsetFieldBuilder() {
+ if (timeOffsetBuilder_ == null) {
+ timeOffsetBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>(
+ getTimeOffset(), getParentForChildren(), isClean());
+ timeOffset_ = null;
+ }
+ return timeOffsetBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame)
+ private static final com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame();
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The normalized bounding box location of this object track for the frame. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox normalized_bounding_box = 1;
+ *
+ */
+ boolean hasNormalizedBoundingBox();
+ /**
+ *
+ *
+ * + * The normalized bounding box location of this object track for the frame. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox normalized_bounding_box = 1;
+ *
+ */
+ com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox getNormalizedBoundingBox();
+ /**
+ *
+ *
+ * + * The normalized bounding box location of this object track for the frame. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox normalized_bounding_box = 1;
+ *
+ */
+ com.google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBoxOrBuilder
+ getNormalizedBoundingBoxOrBuilder();
+
+ /**
+ *
+ *
+ * + * The timestamp of the frame in microseconds. + *+ * + *
.google.protobuf.Duration time_offset = 2;
+ */
+ boolean hasTimeOffset();
+ /**
+ *
+ *
+ * + * The timestamp of the frame in microseconds. + *+ * + *
.google.protobuf.Duration time_offset = 2;
+ */
+ com.google.protobuf.Duration getTimeOffset();
+ /**
+ *
+ *
+ * + * The timestamp of the frame in microseconds. + *+ * + *
.google.protobuf.Duration time_offset = 2;
+ */
+ com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder();
+}
diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ShotChangeDetectionConfig.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ShotChangeDetectionConfig.java
new file mode 100644
index 000000000000..f1181ed136dc
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/ShotChangeDetectionConfig.java
@@ -0,0 +1,626 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto
+
+package com.google.cloud.videointelligence.v1p3beta1;
+
+/**
+ *
+ *
+ * + * Config for SHOT_CHANGE_DETECTION. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig} + */ +public final class ShotChangeDetectionConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig) + ShotChangeDetectionConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ShotChangeDetectionConfig.newBuilder() to construct. + private ShotChangeDetectionConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ShotChangeDetectionConfig() { + model_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ShotChangeDetectionConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + model_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_ShotChangeDetectionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_ShotChangeDetectionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig.class, + com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig.Builder.class); + } + + public static final int MODEL_FIELD_NUMBER = 1; + private volatile java.lang.Object model_; + /** + * + * + *
+ * Model to use for shot change detection. + * Supported values: "builtin/stable" (the default if unset) and + * "builtin/latest". + *+ * + *
string model = 1;
+ */
+ public java.lang.String getModel() {
+ java.lang.Object ref = model_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ model_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Model to use for shot change detection. + * Supported values: "builtin/stable" (the default if unset) and + * "builtin/latest". + *+ * + *
string model = 1;
+ */
+ public com.google.protobuf.ByteString getModelBytes() {
+ java.lang.Object ref = model_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ model_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getModelBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, model_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getModelBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, model_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig other =
+ (com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig) obj;
+
+ boolean result = true;
+ result = result && getModel().equals(other.getModel());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + MODEL_FIELD_NUMBER;
+ hash = (53 * hash) + getModel().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Config for SHOT_CHANGE_DETECTION. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Model to use for shot change detection. + * Supported values: "builtin/stable" (the default if unset) and + * "builtin/latest". + *+ * + *
string model = 1;
+ */
+ public java.lang.String getModel() {
+ java.lang.Object ref = model_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ model_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Model to use for shot change detection. + * Supported values: "builtin/stable" (the default if unset) and + * "builtin/latest". + *+ * + *
string model = 1;
+ */
+ public com.google.protobuf.ByteString getModelBytes() {
+ java.lang.Object ref = model_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ model_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Model to use for shot change detection. + * Supported values: "builtin/stable" (the default if unset) and + * "builtin/latest". + *+ * + *
string model = 1;
+ */
+ public Builder setModel(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ model_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Model to use for shot change detection. + * Supported values: "builtin/stable" (the default if unset) and + * "builtin/latest". + *+ * + *
string model = 1;
+ */
+ public Builder clearModel() {
+
+ model_ = getDefaultInstance().getModel();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Model to use for shot change detection. + * Supported values: "builtin/stable" (the default if unset) and + * "builtin/latest". + *+ * + *
string model = 1;
+ */
+ public Builder setModelBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ model_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig)
+ private static final com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig();
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Model to use for shot change detection. + * Supported values: "builtin/stable" (the default if unset) and + * "builtin/latest". + *+ * + *
string model = 1;
+ */
+ java.lang.String getModel();
+ /**
+ *
+ *
+ * + * Model to use for shot change detection. + * Supported values: "builtin/stable" (the default if unset) and + * "builtin/latest". + *+ * + *
string model = 1;
+ */
+ com.google.protobuf.ByteString getModelBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAnnotateVideoRequest.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAnnotateVideoRequest.java
new file mode 100644
index 000000000000..800c6b5d47cf
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAnnotateVideoRequest.java
@@ -0,0 +1,993 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto
+
+package com.google.cloud.videointelligence.v1p3beta1;
+
+/**
+ *
+ *
+ * + * The top-level message sent by the client for the `StreamingAnnotateVideo` + * method. Multiple `StreamingAnnotateVideoRequest` messages are sent. + * The first message must only contain a `StreamingVideoConfig` message. + * All subsequent messages must only contain `input_content` data. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest} + */ +public final class StreamingAnnotateVideoRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest) + StreamingAnnotateVideoRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use StreamingAnnotateVideoRequest.newBuilder() to construct. + private StreamingAnnotateVideoRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private StreamingAnnotateVideoRequest() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private StreamingAnnotateVideoRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig.Builder subBuilder = + null; + if (streamingRequestCase_ == 1) { + subBuilder = + ((com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig) + streamingRequest_) + .toBuilder(); + } + streamingRequest_ = + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig) + streamingRequest_); + streamingRequest_ = subBuilder.buildPartial(); + } + streamingRequestCase_ = 1; + break; + } + case 18: + { + streamingRequestCase_ = 2; + streamingRequest_ = input.readBytes(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingAnnotateVideoRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingAnnotateVideoRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest.class, + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest.Builder + .class); + } + + private int streamingRequestCase_ = 0; + private java.lang.Object streamingRequest_; + + public enum StreamingRequestCase implements com.google.protobuf.Internal.EnumLite { + VIDEO_CONFIG(1), + INPUT_CONTENT(2), + STREAMINGREQUEST_NOT_SET(0); + private final int value; + + private StreamingRequestCase(int value) { + this.value = value; + } + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static StreamingRequestCase valueOf(int value) { + return forNumber(value); + } + + public static StreamingRequestCase forNumber(int value) { + switch (value) { + case 1: + return VIDEO_CONFIG; + case 2: + return INPUT_CONTENT; + case 0: + return STREAMINGREQUEST_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public StreamingRequestCase getStreamingRequestCase() { + return StreamingRequestCase.forNumber(streamingRequestCase_); + } + + public static final int VIDEO_CONFIG_FIELD_NUMBER = 1; + /** + * + * + *
+ * Provides information to the annotator, specifing how to process the + * request. The first `AnnotateStreamingVideoRequest` message must only + * contain a `video_config` message. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig video_config = 1;
+ */
+ public boolean hasVideoConfig() {
+ return streamingRequestCase_ == 1;
+ }
+ /**
+ *
+ *
+ * + * Provides information to the annotator, specifing how to process the + * request. The first `AnnotateStreamingVideoRequest` message must only + * contain a `video_config` message. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig video_config = 1;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig getVideoConfig() {
+ if (streamingRequestCase_ == 1) {
+ return (com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig) streamingRequest_;
+ }
+ return com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Provides information to the annotator, specifing how to process the + * request. The first `AnnotateStreamingVideoRequest` message must only + * contain a `video_config` message. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig video_config = 1;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfigOrBuilder
+ getVideoConfigOrBuilder() {
+ if (streamingRequestCase_ == 1) {
+ return (com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig) streamingRequest_;
+ }
+ return com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig.getDefaultInstance();
+ }
+
+ public static final int INPUT_CONTENT_FIELD_NUMBER = 2;
+ /**
+ *
+ *
+ * + * The video data to be annotated. Chunks of video data are sequentially + * sent in `StreamingAnnotateVideoRequest` messages. Except the initial + * `StreamingAnnotateVideoRequest` message containing only + * `video_config`, all subsequent `AnnotateStreamingVideoRequest` + * messages must only contain `input_content` field. + *+ * + *
bytes input_content = 2;
+ */
+ public com.google.protobuf.ByteString getInputContent() {
+ if (streamingRequestCase_ == 2) {
+ return (com.google.protobuf.ByteString) streamingRequest_;
+ }
+ return com.google.protobuf.ByteString.EMPTY;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (streamingRequestCase_ == 1) {
+ output.writeMessage(
+ 1, (com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig) streamingRequest_);
+ }
+ if (streamingRequestCase_ == 2) {
+ output.writeBytes(2, (com.google.protobuf.ByteString) streamingRequest_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (streamingRequestCase_ == 1) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 1,
+ (com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig)
+ streamingRequest_);
+ }
+ if (streamingRequestCase_ == 2) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeBytesSize(
+ 2, (com.google.protobuf.ByteString) streamingRequest_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj
+ instanceof com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest other =
+ (com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest) obj;
+
+ boolean result = true;
+ result = result && getStreamingRequestCase().equals(other.getStreamingRequestCase());
+ if (!result) return false;
+ switch (streamingRequestCase_) {
+ case 1:
+ result = result && getVideoConfig().equals(other.getVideoConfig());
+ break;
+ case 2:
+ result = result && getInputContent().equals(other.getInputContent());
+ break;
+ case 0:
+ default:
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ switch (streamingRequestCase_) {
+ case 1:
+ hash = (37 * hash) + VIDEO_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getVideoConfig().hashCode();
+ break;
+ case 2:
+ hash = (37 * hash) + INPUT_CONTENT_FIELD_NUMBER;
+ hash = (53 * hash) + getInputContent().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest
+ parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest
+ parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest
+ parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * The top-level message sent by the client for the `StreamingAnnotateVideo` + * method. Multiple `StreamingAnnotateVideoRequest` messages are sent. + * The first message must only contain a `StreamingVideoConfig` message. + * All subsequent messages must only contain `input_content` data. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Provides information to the annotator, specifing how to process the + * request. The first `AnnotateStreamingVideoRequest` message must only + * contain a `video_config` message. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig video_config = 1;
+ */
+ public boolean hasVideoConfig() {
+ return streamingRequestCase_ == 1;
+ }
+ /**
+ *
+ *
+ * + * Provides information to the annotator, specifing how to process the + * request. The first `AnnotateStreamingVideoRequest` message must only + * contain a `video_config` message. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig video_config = 1;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig getVideoConfig() {
+ if (videoConfigBuilder_ == null) {
+ if (streamingRequestCase_ == 1) {
+ return (com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig)
+ streamingRequest_;
+ }
+ return com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig
+ .getDefaultInstance();
+ } else {
+ if (streamingRequestCase_ == 1) {
+ return videoConfigBuilder_.getMessage();
+ }
+ return com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig
+ .getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Provides information to the annotator, specifing how to process the + * request. The first `AnnotateStreamingVideoRequest` message must only + * contain a `video_config` message. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig video_config = 1;
+ */
+ public Builder setVideoConfig(
+ com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig value) {
+ if (videoConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ streamingRequest_ = value;
+ onChanged();
+ } else {
+ videoConfigBuilder_.setMessage(value);
+ }
+ streamingRequestCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Provides information to the annotator, specifing how to process the + * request. The first `AnnotateStreamingVideoRequest` message must only + * contain a `video_config` message. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig video_config = 1;
+ */
+ public Builder setVideoConfig(
+ com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig.Builder builderForValue) {
+ if (videoConfigBuilder_ == null) {
+ streamingRequest_ = builderForValue.build();
+ onChanged();
+ } else {
+ videoConfigBuilder_.setMessage(builderForValue.build());
+ }
+ streamingRequestCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Provides information to the annotator, specifing how to process the + * request. The first `AnnotateStreamingVideoRequest` message must only + * contain a `video_config` message. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig video_config = 1;
+ */
+ public Builder mergeVideoConfig(
+ com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig value) {
+ if (videoConfigBuilder_ == null) {
+ if (streamingRequestCase_ == 1
+ && streamingRequest_
+ != com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig
+ .getDefaultInstance()) {
+ streamingRequest_ =
+ com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig.newBuilder(
+ (com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig)
+ streamingRequest_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ streamingRequest_ = value;
+ }
+ onChanged();
+ } else {
+ if (streamingRequestCase_ == 1) {
+ videoConfigBuilder_.mergeFrom(value);
+ }
+ videoConfigBuilder_.setMessage(value);
+ }
+ streamingRequestCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Provides information to the annotator, specifing how to process the + * request. The first `AnnotateStreamingVideoRequest` message must only + * contain a `video_config` message. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig video_config = 1;
+ */
+ public Builder clearVideoConfig() {
+ if (videoConfigBuilder_ == null) {
+ if (streamingRequestCase_ == 1) {
+ streamingRequestCase_ = 0;
+ streamingRequest_ = null;
+ onChanged();
+ }
+ } else {
+ if (streamingRequestCase_ == 1) {
+ streamingRequestCase_ = 0;
+ streamingRequest_ = null;
+ }
+ videoConfigBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Provides information to the annotator, specifing how to process the + * request. The first `AnnotateStreamingVideoRequest` message must only + * contain a `video_config` message. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig video_config = 1;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig.Builder
+ getVideoConfigBuilder() {
+ return getVideoConfigFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Provides information to the annotator, specifing how to process the + * request. The first `AnnotateStreamingVideoRequest` message must only + * contain a `video_config` message. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig video_config = 1;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfigOrBuilder
+ getVideoConfigOrBuilder() {
+ if ((streamingRequestCase_ == 1) && (videoConfigBuilder_ != null)) {
+ return videoConfigBuilder_.getMessageOrBuilder();
+ } else {
+ if (streamingRequestCase_ == 1) {
+ return (com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig)
+ streamingRequest_;
+ }
+ return com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig
+ .getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Provides information to the annotator, specifing how to process the + * request. The first `AnnotateStreamingVideoRequest` message must only + * contain a `video_config` message. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig video_config = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig,
+ com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig.Builder,
+ com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfigOrBuilder>
+ getVideoConfigFieldBuilder() {
+ if (videoConfigBuilder_ == null) {
+ if (!(streamingRequestCase_ == 1)) {
+ streamingRequest_ =
+ com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig
+ .getDefaultInstance();
+ }
+ videoConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig,
+ com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig.Builder,
+ com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfigOrBuilder>(
+ (com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig)
+ streamingRequest_,
+ getParentForChildren(),
+ isClean());
+ streamingRequest_ = null;
+ }
+ streamingRequestCase_ = 1;
+ onChanged();
+ ;
+ return videoConfigBuilder_;
+ }
+
+ /**
+ *
+ *
+ * + * The video data to be annotated. Chunks of video data are sequentially + * sent in `StreamingAnnotateVideoRequest` messages. Except the initial + * `StreamingAnnotateVideoRequest` message containing only + * `video_config`, all subsequent `AnnotateStreamingVideoRequest` + * messages must only contain `input_content` field. + *+ * + *
bytes input_content = 2;
+ */
+ public com.google.protobuf.ByteString getInputContent() {
+ if (streamingRequestCase_ == 2) {
+ return (com.google.protobuf.ByteString) streamingRequest_;
+ }
+ return com.google.protobuf.ByteString.EMPTY;
+ }
+ /**
+ *
+ *
+ * + * The video data to be annotated. Chunks of video data are sequentially + * sent in `StreamingAnnotateVideoRequest` messages. Except the initial + * `StreamingAnnotateVideoRequest` message containing only + * `video_config`, all subsequent `AnnotateStreamingVideoRequest` + * messages must only contain `input_content` field. + *+ * + *
bytes input_content = 2;
+ */
+ public Builder setInputContent(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ streamingRequestCase_ = 2;
+ streamingRequest_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The video data to be annotated. Chunks of video data are sequentially + * sent in `StreamingAnnotateVideoRequest` messages. Except the initial + * `StreamingAnnotateVideoRequest` message containing only + * `video_config`, all subsequent `AnnotateStreamingVideoRequest` + * messages must only contain `input_content` field. + *+ * + *
bytes input_content = 2;
+ */
+ public Builder clearInputContent() {
+ if (streamingRequestCase_ == 2) {
+ streamingRequestCase_ = 0;
+ streamingRequest_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest)
+ private static final com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest();
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Provides information to the annotator, specifing how to process the + * request. The first `AnnotateStreamingVideoRequest` message must only + * contain a `video_config` message. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig video_config = 1;
+ */
+ boolean hasVideoConfig();
+ /**
+ *
+ *
+ * + * Provides information to the annotator, specifing how to process the + * request. The first `AnnotateStreamingVideoRequest` message must only + * contain a `video_config` message. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig video_config = 1;
+ */
+ com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig getVideoConfig();
+ /**
+ *
+ *
+ * + * Provides information to the annotator, specifing how to process the + * request. The first `AnnotateStreamingVideoRequest` message must only + * contain a `video_config` message. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig video_config = 1;
+ */
+ com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfigOrBuilder
+ getVideoConfigOrBuilder();
+
+ /**
+ *
+ *
+ * + * The video data to be annotated. Chunks of video data are sequentially + * sent in `StreamingAnnotateVideoRequest` messages. Except the initial + * `StreamingAnnotateVideoRequest` message containing only + * `video_config`, all subsequent `AnnotateStreamingVideoRequest` + * messages must only contain `input_content` field. + *+ * + *
bytes input_content = 2;
+ */
+ com.google.protobuf.ByteString getInputContent();
+
+ public com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest
+ .StreamingRequestCase
+ getStreamingRequestCase();
+}
diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAnnotateVideoResponse.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAnnotateVideoResponse.java
new file mode 100644
index 000000000000..729773262d45
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingAnnotateVideoResponse.java
@@ -0,0 +1,1222 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto
+
+package com.google.cloud.videointelligence.v1p3beta1;
+
+/**
+ *
+ *
+ * + * `StreamingAnnotateVideoResponse` is the only message returned to the client + * by `StreamingAnnotateVideo`. A series of zero or more + * `StreamingAnnotateVideoResponse` messages are streamed back to the client. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse} + */ +public final class StreamingAnnotateVideoResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse) + StreamingAnnotateVideoResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use StreamingAnnotateVideoResponse.newBuilder() to construct. + private StreamingAnnotateVideoResponse( + com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private StreamingAnnotateVideoResponse() { + annotationResultsUri_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private StreamingAnnotateVideoResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.rpc.Status.Builder subBuilder = null; + if (error_ != null) { + subBuilder = error_.toBuilder(); + } + error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(error_); + error_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults.Builder + subBuilder = null; + if (annotationResults_ != null) { + subBuilder = annotationResults_.toBuilder(); + } + annotationResults_ = + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(annotationResults_); + annotationResults_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + annotationResultsUri_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingAnnotateVideoResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingAnnotateVideoResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse.class, + com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse.Builder + .class); + } + + public static final int ERROR_FIELD_NUMBER = 1; + private com.google.rpc.Status error_; + /** + * + * + *
+ * If set, returns a [google.rpc.Status][] message that + * specifies the error for the operation. + *+ * + *
.google.rpc.Status error = 1;
+ */
+ public boolean hasError() {
+ return error_ != null;
+ }
+ /**
+ *
+ *
+ * + * If set, returns a [google.rpc.Status][] message that + * specifies the error for the operation. + *+ * + *
.google.rpc.Status error = 1;
+ */
+ public com.google.rpc.Status getError() {
+ return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
+ }
+ /**
+ *
+ *
+ * + * If set, returns a [google.rpc.Status][] message that + * specifies the error for the operation. + *+ * + *
.google.rpc.Status error = 1;
+ */
+ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
+ return getError();
+ }
+
+ public static final int ANNOTATION_RESULTS_FIELD_NUMBER = 2;
+ private com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults
+ annotationResults_;
+ /**
+ *
+ *
+ * + * Streaming annotation results. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2;
+ *
+ */
+ public boolean hasAnnotationResults() {
+ return annotationResults_ != null;
+ }
+ /**
+ *
+ *
+ * + * Streaming annotation results. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults
+ getAnnotationResults() {
+ return annotationResults_ == null
+ ? com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults
+ .getDefaultInstance()
+ : annotationResults_;
+ }
+ /**
+ *
+ *
+ * + * Streaming annotation results. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResultsOrBuilder
+ getAnnotationResultsOrBuilder() {
+ return getAnnotationResults();
+ }
+
+ public static final int ANNOTATION_RESULTS_URI_FIELD_NUMBER = 3;
+ private volatile java.lang.Object annotationResultsUri_;
+ /**
+ *
+ *
+ * + * GCS URI that stores annotation results of one streaming session. + * It is a directory that can hold multiple files in JSON format. + * Example uri format: + * gs://bucket_id/object_id/cloud_project_name-session_id + *+ * + *
string annotation_results_uri = 3;
+ */
+ public java.lang.String getAnnotationResultsUri() {
+ java.lang.Object ref = annotationResultsUri_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ annotationResultsUri_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * GCS URI that stores annotation results of one streaming session. + * It is a directory that can hold multiple files in JSON format. + * Example uri format: + * gs://bucket_id/object_id/cloud_project_name-session_id + *+ * + *
string annotation_results_uri = 3;
+ */
+ public com.google.protobuf.ByteString getAnnotationResultsUriBytes() {
+ java.lang.Object ref = annotationResultsUri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ annotationResultsUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (error_ != null) {
+ output.writeMessage(1, getError());
+ }
+ if (annotationResults_ != null) {
+ output.writeMessage(2, getAnnotationResults());
+ }
+ if (!getAnnotationResultsUriBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, annotationResultsUri_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (error_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getError());
+ }
+ if (annotationResults_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAnnotationResults());
+ }
+ if (!getAnnotationResultsUriBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, annotationResultsUri_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj
+ instanceof com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse other =
+ (com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse) obj;
+
+ boolean result = true;
+ result = result && (hasError() == other.hasError());
+ if (hasError()) {
+ result = result && getError().equals(other.getError());
+ }
+ result = result && (hasAnnotationResults() == other.hasAnnotationResults());
+ if (hasAnnotationResults()) {
+ result = result && getAnnotationResults().equals(other.getAnnotationResults());
+ }
+ result = result && getAnnotationResultsUri().equals(other.getAnnotationResultsUri());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasError()) {
+ hash = (37 * hash) + ERROR_FIELD_NUMBER;
+ hash = (53 * hash) + getError().hashCode();
+ }
+ if (hasAnnotationResults()) {
+ hash = (37 * hash) + ANNOTATION_RESULTS_FIELD_NUMBER;
+ hash = (53 * hash) + getAnnotationResults().hashCode();
+ }
+ hash = (37 * hash) + ANNOTATION_RESULTS_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getAnnotationResultsUri().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse
+ parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse
+ parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse
+ parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * `StreamingAnnotateVideoResponse` is the only message returned to the client + * by `StreamingAnnotateVideo`. A series of zero or more + * `StreamingAnnotateVideoResponse` messages are streamed back to the client. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * If set, returns a [google.rpc.Status][] message that + * specifies the error for the operation. + *+ * + *
.google.rpc.Status error = 1;
+ */
+ public boolean hasError() {
+ return errorBuilder_ != null || error_ != null;
+ }
+ /**
+ *
+ *
+ * + * If set, returns a [google.rpc.Status][] message that + * specifies the error for the operation. + *+ * + *
.google.rpc.Status error = 1;
+ */
+ public com.google.rpc.Status getError() {
+ if (errorBuilder_ == null) {
+ return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
+ } else {
+ return errorBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * If set, returns a [google.rpc.Status][] message that + * specifies the error for the operation. + *+ * + *
.google.rpc.Status error = 1;
+ */
+ public Builder setError(com.google.rpc.Status value) {
+ if (errorBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ error_ = value;
+ onChanged();
+ } else {
+ errorBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * If set, returns a [google.rpc.Status][] message that + * specifies the error for the operation. + *+ * + *
.google.rpc.Status error = 1;
+ */
+ public Builder setError(com.google.rpc.Status.Builder builderForValue) {
+ if (errorBuilder_ == null) {
+ error_ = builderForValue.build();
+ onChanged();
+ } else {
+ errorBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * If set, returns a [google.rpc.Status][] message that + * specifies the error for the operation. + *+ * + *
.google.rpc.Status error = 1;
+ */
+ public Builder mergeError(com.google.rpc.Status value) {
+ if (errorBuilder_ == null) {
+ if (error_ != null) {
+ error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
+ } else {
+ error_ = value;
+ }
+ onChanged();
+ } else {
+ errorBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * If set, returns a [google.rpc.Status][] message that + * specifies the error for the operation. + *+ * + *
.google.rpc.Status error = 1;
+ */
+ public Builder clearError() {
+ if (errorBuilder_ == null) {
+ error_ = null;
+ onChanged();
+ } else {
+ error_ = null;
+ errorBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * If set, returns a [google.rpc.Status][] message that + * specifies the error for the operation. + *+ * + *
.google.rpc.Status error = 1;
+ */
+ public com.google.rpc.Status.Builder getErrorBuilder() {
+
+ onChanged();
+ return getErrorFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * If set, returns a [google.rpc.Status][] message that + * specifies the error for the operation. + *+ * + *
.google.rpc.Status error = 1;
+ */
+ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
+ if (errorBuilder_ != null) {
+ return errorBuilder_.getMessageOrBuilder();
+ } else {
+ return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
+ }
+ }
+ /**
+ *
+ *
+ * + * If set, returns a [google.rpc.Status][] message that + * specifies the error for the operation. + *+ * + *
.google.rpc.Status error = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+ getErrorFieldBuilder() {
+ if (errorBuilder_ == null) {
+ errorBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.rpc.Status,
+ com.google.rpc.Status.Builder,
+ com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean());
+ error_ = null;
+ }
+ return errorBuilder_;
+ }
+
+ private com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults
+ annotationResults_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults,
+ com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults.Builder,
+ com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResultsOrBuilder>
+ annotationResultsBuilder_;
+ /**
+ *
+ *
+ * + * Streaming annotation results. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2;
+ *
+ */
+ public boolean hasAnnotationResults() {
+ return annotationResultsBuilder_ != null || annotationResults_ != null;
+ }
+ /**
+ *
+ *
+ * + * Streaming annotation results. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults
+ getAnnotationResults() {
+ if (annotationResultsBuilder_ == null) {
+ return annotationResults_ == null
+ ? com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults
+ .getDefaultInstance()
+ : annotationResults_;
+ } else {
+ return annotationResultsBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Streaming annotation results. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2;
+ *
+ */
+ public Builder setAnnotationResults(
+ com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults value) {
+ if (annotationResultsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ annotationResults_ = value;
+ onChanged();
+ } else {
+ annotationResultsBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Streaming annotation results. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2;
+ *
+ */
+ public Builder setAnnotationResults(
+ com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults.Builder
+ builderForValue) {
+ if (annotationResultsBuilder_ == null) {
+ annotationResults_ = builderForValue.build();
+ onChanged();
+ } else {
+ annotationResultsBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Streaming annotation results. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2;
+ *
+ */
+ public Builder mergeAnnotationResults(
+ com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults value) {
+ if (annotationResultsBuilder_ == null) {
+ if (annotationResults_ != null) {
+ annotationResults_ =
+ com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults
+ .newBuilder(annotationResults_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ annotationResults_ = value;
+ }
+ onChanged();
+ } else {
+ annotationResultsBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Streaming annotation results. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2;
+ *
+ */
+ public Builder clearAnnotationResults() {
+ if (annotationResultsBuilder_ == null) {
+ annotationResults_ = null;
+ onChanged();
+ } else {
+ annotationResults_ = null;
+ annotationResultsBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Streaming annotation results. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults.Builder
+ getAnnotationResultsBuilder() {
+
+ onChanged();
+ return getAnnotationResultsFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Streaming annotation results. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResultsOrBuilder
+ getAnnotationResultsOrBuilder() {
+ if (annotationResultsBuilder_ != null) {
+ return annotationResultsBuilder_.getMessageOrBuilder();
+ } else {
+ return annotationResults_ == null
+ ? com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults
+ .getDefaultInstance()
+ : annotationResults_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Streaming annotation results. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults,
+ com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults.Builder,
+ com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResultsOrBuilder>
+ getAnnotationResultsFieldBuilder() {
+ if (annotationResultsBuilder_ == null) {
+ annotationResultsBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults,
+ com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults
+ .Builder,
+ com.google.cloud.videointelligence.v1p3beta1
+ .StreamingVideoAnnotationResultsOrBuilder>(
+ getAnnotationResults(), getParentForChildren(), isClean());
+ annotationResults_ = null;
+ }
+ return annotationResultsBuilder_;
+ }
+
+ private java.lang.Object annotationResultsUri_ = "";
+ /**
+ *
+ *
+ * + * GCS URI that stores annotation results of one streaming session. + * It is a directory that can hold multiple files in JSON format. + * Example uri format: + * gs://bucket_id/object_id/cloud_project_name-session_id + *+ * + *
string annotation_results_uri = 3;
+ */
+ public java.lang.String getAnnotationResultsUri() {
+ java.lang.Object ref = annotationResultsUri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ annotationResultsUri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * GCS URI that stores annotation results of one streaming session. + * It is a directory that can hold multiple files in JSON format. + * Example uri format: + * gs://bucket_id/object_id/cloud_project_name-session_id + *+ * + *
string annotation_results_uri = 3;
+ */
+ public com.google.protobuf.ByteString getAnnotationResultsUriBytes() {
+ java.lang.Object ref = annotationResultsUri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ annotationResultsUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * GCS URI that stores annotation results of one streaming session. + * It is a directory that can hold multiple files in JSON format. + * Example uri format: + * gs://bucket_id/object_id/cloud_project_name-session_id + *+ * + *
string annotation_results_uri = 3;
+ */
+ public Builder setAnnotationResultsUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ annotationResultsUri_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * GCS URI that stores annotation results of one streaming session. + * It is a directory that can hold multiple files in JSON format. + * Example uri format: + * gs://bucket_id/object_id/cloud_project_name-session_id + *+ * + *
string annotation_results_uri = 3;
+ */
+ public Builder clearAnnotationResultsUri() {
+
+ annotationResultsUri_ = getDefaultInstance().getAnnotationResultsUri();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * GCS URI that stores annotation results of one streaming session. + * It is a directory that can hold multiple files in JSON format. + * Example uri format: + * gs://bucket_id/object_id/cloud_project_name-session_id + *+ * + *
string annotation_results_uri = 3;
+ */
+ public Builder setAnnotationResultsUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ annotationResultsUri_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse)
+ private static final com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse();
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * If set, returns a [google.rpc.Status][] message that + * specifies the error for the operation. + *+ * + *
.google.rpc.Status error = 1;
+ */
+ boolean hasError();
+ /**
+ *
+ *
+ * + * If set, returns a [google.rpc.Status][] message that + * specifies the error for the operation. + *+ * + *
.google.rpc.Status error = 1;
+ */
+ com.google.rpc.Status getError();
+ /**
+ *
+ *
+ * + * If set, returns a [google.rpc.Status][] message that + * specifies the error for the operation. + *+ * + *
.google.rpc.Status error = 1;
+ */
+ com.google.rpc.StatusOrBuilder getErrorOrBuilder();
+
+ /**
+ *
+ *
+ * + * Streaming annotation results. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2;
+ *
+ */
+ boolean hasAnnotationResults();
+ /**
+ *
+ *
+ * + * Streaming annotation results. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2;
+ *
+ */
+ com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults
+ getAnnotationResults();
+ /**
+ *
+ *
+ * + * Streaming annotation results. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults annotation_results = 2;
+ *
+ */
+ com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResultsOrBuilder
+ getAnnotationResultsOrBuilder();
+
+ /**
+ *
+ *
+ * + * GCS URI that stores annotation results of one streaming session. + * It is a directory that can hold multiple files in JSON format. + * Example uri format: + * gs://bucket_id/object_id/cloud_project_name-session_id + *+ * + *
string annotation_results_uri = 3;
+ */
+ java.lang.String getAnnotationResultsUri();
+ /**
+ *
+ *
+ * + * GCS URI that stores annotation results of one streaming session. + * It is a directory that can hold multiple files in JSON format. + * Example uri format: + * gs://bucket_id/object_id/cloud_project_name-session_id + *+ * + *
string annotation_results_uri = 3;
+ */
+ com.google.protobuf.ByteString getAnnotationResultsUriBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingExplicitContentDetectionConfig.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingExplicitContentDetectionConfig.java
new file mode 100644
index 000000000000..af2d93c9fc76
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingExplicitContentDetectionConfig.java
@@ -0,0 +1,476 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto
+
+package com.google.cloud.videointelligence.v1p3beta1;
+
+/**
+ *
+ *
+ * + * Config for EXPLICIT_CONTENT_DETECTION in streaming mode. + *+ * + * Protobuf type {@code + * google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig} + */ +public final class StreamingExplicitContentDetectionConfig + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig) + StreamingExplicitContentDetectionConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use StreamingExplicitContentDetectionConfig.newBuilder() to construct. + private StreamingExplicitContentDetectionConfig( + com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private StreamingExplicitContentDetectionConfig() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private StreamingExplicitContentDetectionConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingExplicitContentDetectionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingExplicitContentDetectionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + .class, + com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + .Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig other = + (com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+ * Config for EXPLICIT_CONTENT_DETECTION in streaming mode. + *+ * + * Protobuf type {@code + * google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Streaming video annotation feature. + *+ * + * Protobuf enum {@code google.cloud.videointelligence.v1p3beta1.StreamingFeature} + */ +public enum StreamingFeature implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Unspecified. + *+ * + *
STREAMING_FEATURE_UNSPECIFIED = 0;
+ */
+ STREAMING_FEATURE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Label detection. Detect objects, such as dog or flower. + *+ * + *
STREAMING_LABEL_DETECTION = 1;
+ */
+ STREAMING_LABEL_DETECTION(1),
+ /**
+ *
+ *
+ * + * Shot change detection. + *+ * + *
STREAMING_SHOT_CHANGE_DETECTION = 2;
+ */
+ STREAMING_SHOT_CHANGE_DETECTION(2),
+ /**
+ *
+ *
+ * + * Explicit content detection. + *+ * + *
STREAMING_EXPLICIT_CONTENT_DETECTION = 3;
+ */
+ STREAMING_EXPLICIT_CONTENT_DETECTION(3),
+ /**
+ *
+ *
+ * + * Object detection and tracking. + *+ * + *
STREAMING_OBJECT_TRACKING = 4;
+ */
+ STREAMING_OBJECT_TRACKING(4),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * Unspecified. + *+ * + *
STREAMING_FEATURE_UNSPECIFIED = 0;
+ */
+ public static final int STREAMING_FEATURE_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * Label detection. Detect objects, such as dog or flower. + *+ * + *
STREAMING_LABEL_DETECTION = 1;
+ */
+ public static final int STREAMING_LABEL_DETECTION_VALUE = 1;
+ /**
+ *
+ *
+ * + * Shot change detection. + *+ * + *
STREAMING_SHOT_CHANGE_DETECTION = 2;
+ */
+ public static final int STREAMING_SHOT_CHANGE_DETECTION_VALUE = 2;
+ /**
+ *
+ *
+ * + * Explicit content detection. + *+ * + *
STREAMING_EXPLICIT_CONTENT_DETECTION = 3;
+ */
+ public static final int STREAMING_EXPLICIT_CONTENT_DETECTION_VALUE = 3;
+ /**
+ *
+ *
+ * + * Object detection and tracking. + *+ * + *
STREAMING_OBJECT_TRACKING = 4;
+ */
+ public static final int STREAMING_OBJECT_TRACKING_VALUE = 4;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /** @deprecated Use {@link #forNumber(int)} instead. */
+ @java.lang.Deprecated
+ public static StreamingFeature valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static StreamingFeature forNumber(int value) {
+ switch (value) {
+ case 0:
+ return STREAMING_FEATURE_UNSPECIFIED;
+ case 1:
+ return STREAMING_LABEL_DETECTION;
+ case 2:
+ return STREAMING_SHOT_CHANGE_DETECTION;
+ case 3:
+ return STREAMING_EXPLICIT_CONTENT_DETECTION;
+ case 4:
+ return STREAMING_OBJECT_TRACKING;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Config for LABEL_DETECTION in streaming mode. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig} + */ +public final class StreamingLabelDetectionConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig) + StreamingLabelDetectionConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use StreamingLabelDetectionConfig.newBuilder() to construct. + private StreamingLabelDetectionConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private StreamingLabelDetectionConfig() { + stationaryCamera_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private StreamingLabelDetectionConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + stationaryCamera_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingLabelDetectionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingLabelDetectionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig.class, + com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig.Builder + .class); + } + + public static final int STATIONARY_CAMERA_FIELD_NUMBER = 1; + private boolean stationaryCamera_; + /** + * + * + *
+ * Whether the video has been captured from a stationary (i.e. non-moving) + * camera. When set to true, might improve detection accuracy for moving + * objects. Default: false. + *+ * + *
bool stationary_camera = 1;
+ */
+ public boolean getStationaryCamera() {
+ return stationaryCamera_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (stationaryCamera_ != false) {
+ output.writeBool(1, stationaryCamera_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (stationaryCamera_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, stationaryCamera_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj
+ instanceof com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig other =
+ (com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig) obj;
+
+ boolean result = true;
+ result = result && (getStationaryCamera() == other.getStationaryCamera());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + STATIONARY_CAMERA_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getStationaryCamera());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig
+ parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig
+ parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig
+ parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Config for LABEL_DETECTION in streaming mode. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Whether the video has been captured from a stationary (i.e. non-moving) + * camera. When set to true, might improve detection accuracy for moving + * objects. Default: false. + *+ * + *
bool stationary_camera = 1;
+ */
+ public boolean getStationaryCamera() {
+ return stationaryCamera_;
+ }
+ /**
+ *
+ *
+ * + * Whether the video has been captured from a stationary (i.e. non-moving) + * camera. When set to true, might improve detection accuracy for moving + * objects. Default: false. + *+ * + *
bool stationary_camera = 1;
+ */
+ public Builder setStationaryCamera(boolean value) {
+
+ stationaryCamera_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Whether the video has been captured from a stationary (i.e. non-moving) + * camera. When set to true, might improve detection accuracy for moving + * objects. Default: false. + *+ * + *
bool stationary_camera = 1;
+ */
+ public Builder clearStationaryCamera() {
+
+ stationaryCamera_ = false;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig)
+ private static final com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig();
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Whether the video has been captured from a stationary (i.e. non-moving) + * camera. When set to true, might improve detection accuracy for moving + * objects. Default: false. + *+ * + *
bool stationary_camera = 1;
+ */
+ boolean getStationaryCamera();
+}
diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingObjectTrackingConfig.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingObjectTrackingConfig.java
new file mode 100644
index 000000000000..70742a3d15f7
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingObjectTrackingConfig.java
@@ -0,0 +1,461 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto
+
+package com.google.cloud.videointelligence.v1p3beta1;
+
+/**
+ *
+ *
+ * + * Config for STREAMING_OBJECT_TRACKING. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig} + */ +public final class StreamingObjectTrackingConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig) + StreamingObjectTrackingConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use StreamingObjectTrackingConfig.newBuilder() to construct. + private StreamingObjectTrackingConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private StreamingObjectTrackingConfig() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private StreamingObjectTrackingConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingObjectTrackingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingObjectTrackingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig.class, + com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig.Builder + .class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig other = + (com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+ * Config for STREAMING_OBJECT_TRACKING. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Config for SHOT_CHANGE_DETECTION in streaming mode. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig} + */ +public final class StreamingShotChangeDetectionConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig) + StreamingShotChangeDetectionConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use StreamingShotChangeDetectionConfig.newBuilder() to construct. + private StreamingShotChangeDetectionConfig( + com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private StreamingShotChangeDetectionConfig() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private StreamingShotChangeDetectionConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingShotChangeDetectionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingShotChangeDetectionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig.class, + com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig.Builder + .class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig)) { + return super.equals(obj); + } + com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig other = + (com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+ * Config for SHOT_CHANGE_DETECTION in streaming mode. + *+ * + * Protobuf type {@code + * google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Config for streaming storage option. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig} + */ +public final class StreamingStorageConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig) + StreamingStorageConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use StreamingStorageConfig.newBuilder() to construct. + private StreamingStorageConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private StreamingStorageConfig() { + enableStorageAnnotationResult_ = false; + annotationResultStorageDirectory_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private StreamingStorageConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + enableStorageAnnotationResult_ = input.readBool(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + annotationResultStorageDirectory_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingStorageConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingStorageConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig.class, + com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig.Builder.class); + } + + public static final int ENABLE_STORAGE_ANNOTATION_RESULT_FIELD_NUMBER = 1; + private boolean enableStorageAnnotationResult_; + /** + * + * + *
+ * Enable streaming storage. Default: false. + *+ * + *
bool enable_storage_annotation_result = 1;
+ */
+ public boolean getEnableStorageAnnotationResult() {
+ return enableStorageAnnotationResult_;
+ }
+
+ public static final int ANNOTATION_RESULT_STORAGE_DIRECTORY_FIELD_NUMBER = 3;
+ private volatile java.lang.Object annotationResultStorageDirectory_;
+ /**
+ *
+ *
+ * + * GCS URI to store all annotation results for one client. Client should + * specify this field as the top-level storage directory. Annotation results + * of different sessions will be put into different sub-directories denoted + * by project_name and session_id. All sub-directories will be auto generated + * by program and will be made accessible to client in response proto. + * URIs must be specified in the following format: `gs://bucket-id/object-id` + * `bucket-id` should be a valid GCS bucket created by client and bucket + * permission shall also be configured properly. `object-id` can be arbitrary + * string that make sense to client. Other URI formats will return error and + * cause GCS write failure. + *+ * + *
string annotation_result_storage_directory = 3;
+ */
+ public java.lang.String getAnnotationResultStorageDirectory() {
+ java.lang.Object ref = annotationResultStorageDirectory_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ annotationResultStorageDirectory_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * GCS URI to store all annotation results for one client. Client should + * specify this field as the top-level storage directory. Annotation results + * of different sessions will be put into different sub-directories denoted + * by project_name and session_id. All sub-directories will be auto generated + * by program and will be made accessible to client in response proto. + * URIs must be specified in the following format: `gs://bucket-id/object-id` + * `bucket-id` should be a valid GCS bucket created by client and bucket + * permission shall also be configured properly. `object-id` can be arbitrary + * string that make sense to client. Other URI formats will return error and + * cause GCS write failure. + *+ * + *
string annotation_result_storage_directory = 3;
+ */
+ public com.google.protobuf.ByteString getAnnotationResultStorageDirectoryBytes() {
+ java.lang.Object ref = annotationResultStorageDirectory_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ annotationResultStorageDirectory_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (enableStorageAnnotationResult_ != false) {
+ output.writeBool(1, enableStorageAnnotationResult_);
+ }
+ if (!getAnnotationResultStorageDirectoryBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(
+ output, 3, annotationResultStorageDirectory_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (enableStorageAnnotationResult_ != false) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableStorageAnnotationResult_);
+ }
+ if (!getAnnotationResultStorageDirectoryBytes().isEmpty()) {
+ size +=
+ com.google.protobuf.GeneratedMessageV3.computeStringSize(
+ 3, annotationResultStorageDirectory_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig other =
+ (com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig) obj;
+
+ boolean result = true;
+ result =
+ result && (getEnableStorageAnnotationResult() == other.getEnableStorageAnnotationResult());
+ result =
+ result
+ && getAnnotationResultStorageDirectory()
+ .equals(other.getAnnotationResultStorageDirectory());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + ENABLE_STORAGE_ANNOTATION_RESULT_FIELD_NUMBER;
+ hash =
+ (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableStorageAnnotationResult());
+ hash = (37 * hash) + ANNOTATION_RESULT_STORAGE_DIRECTORY_FIELD_NUMBER;
+ hash = (53 * hash) + getAnnotationResultStorageDirectory().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Config for streaming storage option. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Enable streaming storage. Default: false. + *+ * + *
bool enable_storage_annotation_result = 1;
+ */
+ public boolean getEnableStorageAnnotationResult() {
+ return enableStorageAnnotationResult_;
+ }
+ /**
+ *
+ *
+ * + * Enable streaming storage. Default: false. + *+ * + *
bool enable_storage_annotation_result = 1;
+ */
+ public Builder setEnableStorageAnnotationResult(boolean value) {
+
+ enableStorageAnnotationResult_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Enable streaming storage. Default: false. + *+ * + *
bool enable_storage_annotation_result = 1;
+ */
+ public Builder clearEnableStorageAnnotationResult() {
+
+ enableStorageAnnotationResult_ = false;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object annotationResultStorageDirectory_ = "";
+ /**
+ *
+ *
+ * + * GCS URI to store all annotation results for one client. Client should + * specify this field as the top-level storage directory. Annotation results + * of different sessions will be put into different sub-directories denoted + * by project_name and session_id. All sub-directories will be auto generated + * by program and will be made accessible to client in response proto. + * URIs must be specified in the following format: `gs://bucket-id/object-id` + * `bucket-id` should be a valid GCS bucket created by client and bucket + * permission shall also be configured properly. `object-id` can be arbitrary + * string that make sense to client. Other URI formats will return error and + * cause GCS write failure. + *+ * + *
string annotation_result_storage_directory = 3;
+ */
+ public java.lang.String getAnnotationResultStorageDirectory() {
+ java.lang.Object ref = annotationResultStorageDirectory_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ annotationResultStorageDirectory_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * GCS URI to store all annotation results for one client. Client should + * specify this field as the top-level storage directory. Annotation results + * of different sessions will be put into different sub-directories denoted + * by project_name and session_id. All sub-directories will be auto generated + * by program and will be made accessible to client in response proto. + * URIs must be specified in the following format: `gs://bucket-id/object-id` + * `bucket-id` should be a valid GCS bucket created by client and bucket + * permission shall also be configured properly. `object-id` can be arbitrary + * string that make sense to client. Other URI formats will return error and + * cause GCS write failure. + *+ * + *
string annotation_result_storage_directory = 3;
+ */
+ public com.google.protobuf.ByteString getAnnotationResultStorageDirectoryBytes() {
+ java.lang.Object ref = annotationResultStorageDirectory_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ annotationResultStorageDirectory_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * GCS URI to store all annotation results for one client. Client should + * specify this field as the top-level storage directory. Annotation results + * of different sessions will be put into different sub-directories denoted + * by project_name and session_id. All sub-directories will be auto generated + * by program and will be made accessible to client in response proto. + * URIs must be specified in the following format: `gs://bucket-id/object-id` + * `bucket-id` should be a valid GCS bucket created by client and bucket + * permission shall also be configured properly. `object-id` can be arbitrary + * string that make sense to client. Other URI formats will return error and + * cause GCS write failure. + *+ * + *
string annotation_result_storage_directory = 3;
+ */
+ public Builder setAnnotationResultStorageDirectory(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ annotationResultStorageDirectory_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * GCS URI to store all annotation results for one client. Client should + * specify this field as the top-level storage directory. Annotation results + * of different sessions will be put into different sub-directories denoted + * by project_name and session_id. All sub-directories will be auto generated + * by program and will be made accessible to client in response proto. + * URIs must be specified in the following format: `gs://bucket-id/object-id` + * `bucket-id` should be a valid GCS bucket created by client and bucket + * permission shall also be configured properly. `object-id` can be arbitrary + * string that make sense to client. Other URI formats will return error and + * cause GCS write failure. + *+ * + *
string annotation_result_storage_directory = 3;
+ */
+ public Builder clearAnnotationResultStorageDirectory() {
+
+ annotationResultStorageDirectory_ =
+ getDefaultInstance().getAnnotationResultStorageDirectory();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * GCS URI to store all annotation results for one client. Client should + * specify this field as the top-level storage directory. Annotation results + * of different sessions will be put into different sub-directories denoted + * by project_name and session_id. All sub-directories will be auto generated + * by program and will be made accessible to client in response proto. + * URIs must be specified in the following format: `gs://bucket-id/object-id` + * `bucket-id` should be a valid GCS bucket created by client and bucket + * permission shall also be configured properly. `object-id` can be arbitrary + * string that make sense to client. Other URI formats will return error and + * cause GCS write failure. + *+ * + *
string annotation_result_storage_directory = 3;
+ */
+ public Builder setAnnotationResultStorageDirectoryBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ annotationResultStorageDirectory_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig)
+ private static final com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig();
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Enable streaming storage. Default: false. + *+ * + *
bool enable_storage_annotation_result = 1;
+ */
+ boolean getEnableStorageAnnotationResult();
+
+ /**
+ *
+ *
+ * + * GCS URI to store all annotation results for one client. Client should + * specify this field as the top-level storage directory. Annotation results + * of different sessions will be put into different sub-directories denoted + * by project_name and session_id. All sub-directories will be auto generated + * by program and will be made accessible to client in response proto. + * URIs must be specified in the following format: `gs://bucket-id/object-id` + * `bucket-id` should be a valid GCS bucket created by client and bucket + * permission shall also be configured properly. `object-id` can be arbitrary + * string that make sense to client. Other URI formats will return error and + * cause GCS write failure. + *+ * + *
string annotation_result_storage_directory = 3;
+ */
+ java.lang.String getAnnotationResultStorageDirectory();
+ /**
+ *
+ *
+ * + * GCS URI to store all annotation results for one client. Client should + * specify this field as the top-level storage directory. Annotation results + * of different sessions will be put into different sub-directories denoted + * by project_name and session_id. All sub-directories will be auto generated + * by program and will be made accessible to client in response proto. + * URIs must be specified in the following format: `gs://bucket-id/object-id` + * `bucket-id` should be a valid GCS bucket created by client and bucket + * permission shall also be configured properly. `object-id` can be arbitrary + * string that make sense to client. Other URI formats will return error and + * cause GCS write failure. + *+ * + *
string annotation_result_storage_directory = 3;
+ */
+ com.google.protobuf.ByteString getAnnotationResultStorageDirectoryBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoAnnotationResults.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoAnnotationResults.java
new file mode 100644
index 000000000000..d04db2fc740f
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoAnnotationResults.java
@@ -0,0 +1,2436 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto
+
+package com.google.cloud.videointelligence.v1p3beta1;
+
+/**
+ *
+ *
+ * + * Streaming annotation results corresponding to a portion of the video + * that is currently being processed. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults} + */ +public final class StreamingVideoAnnotationResults extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults) + StreamingVideoAnnotationResultsOrBuilder { + private static final long serialVersionUID = 0L; + // Use StreamingVideoAnnotationResults.newBuilder() to construct. + private StreamingVideoAnnotationResults( + com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private StreamingVideoAnnotationResults() { + shotAnnotations_ = java.util.Collections.emptyList(); + labelAnnotations_ = java.util.Collections.emptyList(); + objectAnnotations_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private StreamingVideoAnnotationResults( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + shotAnnotations_ = + new java.util.ArrayList< + com.google.cloud.videointelligence.v1p3beta1.VideoSegment>(); + mutable_bitField0_ |= 0x00000001; + } + shotAnnotations_.add( + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.VideoSegment.parser(), + extensionRegistry)); + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + labelAnnotations_ = + new java.util.ArrayList< + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation>(); + mutable_bitField0_ |= 0x00000002; + } + labelAnnotations_.add( + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.parser(), + extensionRegistry)); + break; + } + case 26: + { + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation.Builder + subBuilder = null; + if (explicitAnnotation_ != null) { + subBuilder = explicitAnnotation_.toBuilder(); + } + explicitAnnotation_ = + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(explicitAnnotation_); + explicitAnnotation_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + objectAnnotations_ = + new java.util.ArrayList< + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation>(); + mutable_bitField0_ |= 0x00000008; + } + objectAnnotations_.add( + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation + .parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + shotAnnotations_ = java.util.Collections.unmodifiableList(shotAnnotations_); + } + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + labelAnnotations_ = java.util.Collections.unmodifiableList(labelAnnotations_); + } + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + objectAnnotations_ = java.util.Collections.unmodifiableList(objectAnnotations_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingVideoAnnotationResults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingVideoAnnotationResults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults.class, + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults.Builder + .class); + } + + private int bitField0_; + public static final int SHOT_ANNOTATIONS_FIELD_NUMBER = 1; + private java.util.List
+ * Shot annotation results. Each shot is represented as a video segment. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1;
+ *
+ */
+ public java.util.List+ * Shot annotation results. Each shot is represented as a video segment. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1;
+ *
+ */
+ public java.util.List<
+ ? extends com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder>
+ getShotAnnotationsOrBuilderList() {
+ return shotAnnotations_;
+ }
+ /**
+ *
+ *
+ * + * Shot annotation results. Each shot is represented as a video segment. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1;
+ *
+ */
+ public int getShotAnnotationsCount() {
+ return shotAnnotations_.size();
+ }
+ /**
+ *
+ *
+ * + * Shot annotation results. Each shot is represented as a video segment. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.VideoSegment getShotAnnotations(int index) {
+ return shotAnnotations_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Shot annotation results. Each shot is represented as a video segment. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder
+ getShotAnnotationsOrBuilder(int index) {
+ return shotAnnotations_.get(index);
+ }
+
+ public static final int LABEL_ANNOTATIONS_FIELD_NUMBER = 2;
+ private java.util.List+ * Label annotation results. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2;
+ *
+ */
+ public java.util.List+ * Label annotation results. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2;
+ *
+ */
+ public java.util.List<
+ ? extends com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder>
+ getLabelAnnotationsOrBuilderList() {
+ return labelAnnotations_;
+ }
+ /**
+ *
+ *
+ * + * Label annotation results. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2;
+ *
+ */
+ public int getLabelAnnotationsCount() {
+ return labelAnnotations_.size();
+ }
+ /**
+ *
+ *
+ * + * Label annotation results. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation getLabelAnnotations(
+ int index) {
+ return labelAnnotations_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Label annotation results. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder
+ getLabelAnnotationsOrBuilder(int index) {
+ return labelAnnotations_.get(index);
+ }
+
+ public static final int EXPLICIT_ANNOTATION_FIELD_NUMBER = 3;
+ private com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation
+ explicitAnnotation_;
+ /**
+ *
+ *
+ * + * Explicit content detection results. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 3;
+ *
+ */
+ public boolean hasExplicitAnnotation() {
+ return explicitAnnotation_ != null;
+ }
+ /**
+ *
+ *
+ * + * Explicit content detection results. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 3;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation
+ getExplicitAnnotation() {
+ return explicitAnnotation_ == null
+ ? com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation
+ .getDefaultInstance()
+ : explicitAnnotation_;
+ }
+ /**
+ *
+ *
+ * + * Explicit content detection results. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 3;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotationOrBuilder
+ getExplicitAnnotationOrBuilder() {
+ return getExplicitAnnotation();
+ }
+
+ public static final int OBJECT_ANNOTATIONS_FIELD_NUMBER = 4;
+ private java.util.List+ * Object tracking results. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4;
+ *
+ */
+ public java.util.List+ * Object tracking results. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4;
+ *
+ */
+ public java.util.List<
+ ? extends com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotationOrBuilder>
+ getObjectAnnotationsOrBuilderList() {
+ return objectAnnotations_;
+ }
+ /**
+ *
+ *
+ * + * Object tracking results. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4;
+ *
+ */
+ public int getObjectAnnotationsCount() {
+ return objectAnnotations_.size();
+ }
+ /**
+ *
+ *
+ * + * Object tracking results. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation getObjectAnnotations(
+ int index) {
+ return objectAnnotations_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Object tracking results. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotationOrBuilder
+ getObjectAnnotationsOrBuilder(int index) {
+ return objectAnnotations_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ for (int i = 0; i < shotAnnotations_.size(); i++) {
+ output.writeMessage(1, shotAnnotations_.get(i));
+ }
+ for (int i = 0; i < labelAnnotations_.size(); i++) {
+ output.writeMessage(2, labelAnnotations_.get(i));
+ }
+ if (explicitAnnotation_ != null) {
+ output.writeMessage(3, getExplicitAnnotation());
+ }
+ for (int i = 0; i < objectAnnotations_.size(); i++) {
+ output.writeMessage(4, objectAnnotations_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < shotAnnotations_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, shotAnnotations_.get(i));
+ }
+ for (int i = 0; i < labelAnnotations_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, labelAnnotations_.get(i));
+ }
+ if (explicitAnnotation_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getExplicitAnnotation());
+ }
+ for (int i = 0; i < objectAnnotations_.size(); i++) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(4, objectAnnotations_.get(i));
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj
+ instanceof com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults other =
+ (com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults) obj;
+
+ boolean result = true;
+ result = result && getShotAnnotationsList().equals(other.getShotAnnotationsList());
+ result = result && getLabelAnnotationsList().equals(other.getLabelAnnotationsList());
+ result = result && (hasExplicitAnnotation() == other.hasExplicitAnnotation());
+ if (hasExplicitAnnotation()) {
+ result = result && getExplicitAnnotation().equals(other.getExplicitAnnotation());
+ }
+ result = result && getObjectAnnotationsList().equals(other.getObjectAnnotationsList());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getShotAnnotationsCount() > 0) {
+ hash = (37 * hash) + SHOT_ANNOTATIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getShotAnnotationsList().hashCode();
+ }
+ if (getLabelAnnotationsCount() > 0) {
+ hash = (37 * hash) + LABEL_ANNOTATIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getLabelAnnotationsList().hashCode();
+ }
+ if (hasExplicitAnnotation()) {
+ hash = (37 * hash) + EXPLICIT_ANNOTATION_FIELD_NUMBER;
+ hash = (53 * hash) + getExplicitAnnotation().hashCode();
+ }
+ if (getObjectAnnotationsCount() > 0) {
+ hash = (37 * hash) + OBJECT_ANNOTATIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getObjectAnnotationsList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults
+ parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults
+ parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults
+ parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Streaming annotation results corresponding to a portion of the video + * that is currently being processed. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Shot annotation results. Each shot is represented as a video segment. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1;
+ *
+ */
+ public java.util.List+ * Shot annotation results. Each shot is represented as a video segment. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1;
+ *
+ */
+ public int getShotAnnotationsCount() {
+ if (shotAnnotationsBuilder_ == null) {
+ return shotAnnotations_.size();
+ } else {
+ return shotAnnotationsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * Shot annotation results. Each shot is represented as a video segment. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.VideoSegment getShotAnnotations(int index) {
+ if (shotAnnotationsBuilder_ == null) {
+ return shotAnnotations_.get(index);
+ } else {
+ return shotAnnotationsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Shot annotation results. Each shot is represented as a video segment. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1;
+ *
+ */
+ public Builder setShotAnnotations(
+ int index, com.google.cloud.videointelligence.v1p3beta1.VideoSegment value) {
+ if (shotAnnotationsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureShotAnnotationsIsMutable();
+ shotAnnotations_.set(index, value);
+ onChanged();
+ } else {
+ shotAnnotationsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Shot annotation results. Each shot is represented as a video segment. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1;
+ *
+ */
+ public Builder setShotAnnotations(
+ int index,
+ com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder builderForValue) {
+ if (shotAnnotationsBuilder_ == null) {
+ ensureShotAnnotationsIsMutable();
+ shotAnnotations_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ shotAnnotationsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Shot annotation results. Each shot is represented as a video segment. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1;
+ *
+ */
+ public Builder addShotAnnotations(
+ com.google.cloud.videointelligence.v1p3beta1.VideoSegment value) {
+ if (shotAnnotationsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureShotAnnotationsIsMutable();
+ shotAnnotations_.add(value);
+ onChanged();
+ } else {
+ shotAnnotationsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Shot annotation results. Each shot is represented as a video segment. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1;
+ *
+ */
+ public Builder addShotAnnotations(
+ int index, com.google.cloud.videointelligence.v1p3beta1.VideoSegment value) {
+ if (shotAnnotationsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureShotAnnotationsIsMutable();
+ shotAnnotations_.add(index, value);
+ onChanged();
+ } else {
+ shotAnnotationsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Shot annotation results. Each shot is represented as a video segment. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1;
+ *
+ */
+ public Builder addShotAnnotations(
+ com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder builderForValue) {
+ if (shotAnnotationsBuilder_ == null) {
+ ensureShotAnnotationsIsMutable();
+ shotAnnotations_.add(builderForValue.build());
+ onChanged();
+ } else {
+ shotAnnotationsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Shot annotation results. Each shot is represented as a video segment. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1;
+ *
+ */
+ public Builder addShotAnnotations(
+ int index,
+ com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder builderForValue) {
+ if (shotAnnotationsBuilder_ == null) {
+ ensureShotAnnotationsIsMutable();
+ shotAnnotations_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ shotAnnotationsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Shot annotation results. Each shot is represented as a video segment. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1;
+ *
+ */
+ public Builder addAllShotAnnotations(
+ java.lang.Iterable extends com.google.cloud.videointelligence.v1p3beta1.VideoSegment>
+ values) {
+ if (shotAnnotationsBuilder_ == null) {
+ ensureShotAnnotationsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, shotAnnotations_);
+ onChanged();
+ } else {
+ shotAnnotationsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Shot annotation results. Each shot is represented as a video segment. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1;
+ *
+ */
+ public Builder clearShotAnnotations() {
+ if (shotAnnotationsBuilder_ == null) {
+ shotAnnotations_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ shotAnnotationsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Shot annotation results. Each shot is represented as a video segment. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1;
+ *
+ */
+ public Builder removeShotAnnotations(int index) {
+ if (shotAnnotationsBuilder_ == null) {
+ ensureShotAnnotationsIsMutable();
+ shotAnnotations_.remove(index);
+ onChanged();
+ } else {
+ shotAnnotationsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Shot annotation results. Each shot is represented as a video segment. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder
+ getShotAnnotationsBuilder(int index) {
+ return getShotAnnotationsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * Shot annotation results. Each shot is represented as a video segment. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder
+ getShotAnnotationsOrBuilder(int index) {
+ if (shotAnnotationsBuilder_ == null) {
+ return shotAnnotations_.get(index);
+ } else {
+ return shotAnnotationsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Shot annotation results. Each shot is represented as a video segment. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1;
+ *
+ */
+ public java.util.List<
+ ? extends com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder>
+ getShotAnnotationsOrBuilderList() {
+ if (shotAnnotationsBuilder_ != null) {
+ return shotAnnotationsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(shotAnnotations_);
+ }
+ }
+ /**
+ *
+ *
+ * + * Shot annotation results. Each shot is represented as a video segment. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder
+ addShotAnnotationsBuilder() {
+ return getShotAnnotationsFieldBuilder()
+ .addBuilder(
+ com.google.cloud.videointelligence.v1p3beta1.VideoSegment.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Shot annotation results. Each shot is represented as a video segment. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.VideoSegment.Builder
+ addShotAnnotationsBuilder(int index) {
+ return getShotAnnotationsFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.cloud.videointelligence.v1p3beta1.VideoSegment.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Shot annotation results. Each shot is represented as a video segment. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1;
+ *
+ */
+ public java.util.List+ * Label annotation results. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2;
+ *
+ */
+ public java.util.List+ * Label annotation results. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2;
+ *
+ */
+ public int getLabelAnnotationsCount() {
+ if (labelAnnotationsBuilder_ == null) {
+ return labelAnnotations_.size();
+ } else {
+ return labelAnnotationsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * Label annotation results. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation getLabelAnnotations(
+ int index) {
+ if (labelAnnotationsBuilder_ == null) {
+ return labelAnnotations_.get(index);
+ } else {
+ return labelAnnotationsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Label annotation results. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2;
+ *
+ */
+ public Builder setLabelAnnotations(
+ int index, com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation value) {
+ if (labelAnnotationsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureLabelAnnotationsIsMutable();
+ labelAnnotations_.set(index, value);
+ onChanged();
+ } else {
+ labelAnnotationsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Label annotation results. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2;
+ *
+ */
+ public Builder setLabelAnnotations(
+ int index,
+ com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder builderForValue) {
+ if (labelAnnotationsBuilder_ == null) {
+ ensureLabelAnnotationsIsMutable();
+ labelAnnotations_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ labelAnnotationsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Label annotation results. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2;
+ *
+ */
+ public Builder addLabelAnnotations(
+ com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation value) {
+ if (labelAnnotationsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureLabelAnnotationsIsMutable();
+ labelAnnotations_.add(value);
+ onChanged();
+ } else {
+ labelAnnotationsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Label annotation results. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2;
+ *
+ */
+ public Builder addLabelAnnotations(
+ int index, com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation value) {
+ if (labelAnnotationsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureLabelAnnotationsIsMutable();
+ labelAnnotations_.add(index, value);
+ onChanged();
+ } else {
+ labelAnnotationsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Label annotation results. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2;
+ *
+ */
+ public Builder addLabelAnnotations(
+ com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder builderForValue) {
+ if (labelAnnotationsBuilder_ == null) {
+ ensureLabelAnnotationsIsMutable();
+ labelAnnotations_.add(builderForValue.build());
+ onChanged();
+ } else {
+ labelAnnotationsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Label annotation results. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2;
+ *
+ */
+ public Builder addLabelAnnotations(
+ int index,
+ com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder builderForValue) {
+ if (labelAnnotationsBuilder_ == null) {
+ ensureLabelAnnotationsIsMutable();
+ labelAnnotations_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ labelAnnotationsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Label annotation results. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2;
+ *
+ */
+ public Builder addAllLabelAnnotations(
+ java.lang.Iterable extends com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation>
+ values) {
+ if (labelAnnotationsBuilder_ == null) {
+ ensureLabelAnnotationsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, labelAnnotations_);
+ onChanged();
+ } else {
+ labelAnnotationsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Label annotation results. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2;
+ *
+ */
+ public Builder clearLabelAnnotations() {
+ if (labelAnnotationsBuilder_ == null) {
+ labelAnnotations_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ labelAnnotationsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Label annotation results. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2;
+ *
+ */
+ public Builder removeLabelAnnotations(int index) {
+ if (labelAnnotationsBuilder_ == null) {
+ ensureLabelAnnotationsIsMutable();
+ labelAnnotations_.remove(index);
+ onChanged();
+ } else {
+ labelAnnotationsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Label annotation results. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder
+ getLabelAnnotationsBuilder(int index) {
+ return getLabelAnnotationsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * Label annotation results. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder
+ getLabelAnnotationsOrBuilder(int index) {
+ if (labelAnnotationsBuilder_ == null) {
+ return labelAnnotations_.get(index);
+ } else {
+ return labelAnnotationsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Label annotation results. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2;
+ *
+ */
+ public java.util.List<
+ ? extends com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder>
+ getLabelAnnotationsOrBuilderList() {
+ if (labelAnnotationsBuilder_ != null) {
+ return labelAnnotationsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(labelAnnotations_);
+ }
+ }
+ /**
+ *
+ *
+ * + * Label annotation results. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder
+ addLabelAnnotationsBuilder() {
+ return getLabelAnnotationsFieldBuilder()
+ .addBuilder(
+ com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Label annotation results. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.Builder
+ addLabelAnnotationsBuilder(int index) {
+ return getLabelAnnotationsFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Label annotation results. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2;
+ *
+ */
+ public java.util.List+ * Explicit content detection results. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 3;
+ *
+ */
+ public boolean hasExplicitAnnotation() {
+ return explicitAnnotationBuilder_ != null || explicitAnnotation_ != null;
+ }
+ /**
+ *
+ *
+ * + * Explicit content detection results. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 3;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation
+ getExplicitAnnotation() {
+ if (explicitAnnotationBuilder_ == null) {
+ return explicitAnnotation_ == null
+ ? com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation
+ .getDefaultInstance()
+ : explicitAnnotation_;
+ } else {
+ return explicitAnnotationBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Explicit content detection results. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 3;
+ *
+ */
+ public Builder setExplicitAnnotation(
+ com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation value) {
+ if (explicitAnnotationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ explicitAnnotation_ = value;
+ onChanged();
+ } else {
+ explicitAnnotationBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Explicit content detection results. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 3;
+ *
+ */
+ public Builder setExplicitAnnotation(
+ com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation.Builder
+ builderForValue) {
+ if (explicitAnnotationBuilder_ == null) {
+ explicitAnnotation_ = builderForValue.build();
+ onChanged();
+ } else {
+ explicitAnnotationBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Explicit content detection results. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 3;
+ *
+ */
+ public Builder mergeExplicitAnnotation(
+ com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation value) {
+ if (explicitAnnotationBuilder_ == null) {
+ if (explicitAnnotation_ != null) {
+ explicitAnnotation_ =
+ com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation.newBuilder(
+ explicitAnnotation_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ explicitAnnotation_ = value;
+ }
+ onChanged();
+ } else {
+ explicitAnnotationBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Explicit content detection results. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 3;
+ *
+ */
+ public Builder clearExplicitAnnotation() {
+ if (explicitAnnotationBuilder_ == null) {
+ explicitAnnotation_ = null;
+ onChanged();
+ } else {
+ explicitAnnotation_ = null;
+ explicitAnnotationBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Explicit content detection results. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 3;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation.Builder
+ getExplicitAnnotationBuilder() {
+
+ onChanged();
+ return getExplicitAnnotationFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Explicit content detection results. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 3;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotationOrBuilder
+ getExplicitAnnotationOrBuilder() {
+ if (explicitAnnotationBuilder_ != null) {
+ return explicitAnnotationBuilder_.getMessageOrBuilder();
+ } else {
+ return explicitAnnotation_ == null
+ ? com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation
+ .getDefaultInstance()
+ : explicitAnnotation_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Explicit content detection results. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 3;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation,
+ com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation.Builder,
+ com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotationOrBuilder>
+ getExplicitAnnotationFieldBuilder() {
+ if (explicitAnnotationBuilder_ == null) {
+ explicitAnnotationBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation,
+ com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation.Builder,
+ com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotationOrBuilder>(
+ getExplicitAnnotation(), getParentForChildren(), isClean());
+ explicitAnnotation_ = null;
+ }
+ return explicitAnnotationBuilder_;
+ }
+
+ private java.util.List+ * Object tracking results. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4;
+ *
+ */
+ public java.util.List+ * Object tracking results. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4;
+ *
+ */
+ public int getObjectAnnotationsCount() {
+ if (objectAnnotationsBuilder_ == null) {
+ return objectAnnotations_.size();
+ } else {
+ return objectAnnotationsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * Object tracking results. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation
+ getObjectAnnotations(int index) {
+ if (objectAnnotationsBuilder_ == null) {
+ return objectAnnotations_.get(index);
+ } else {
+ return objectAnnotationsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Object tracking results. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4;
+ *
+ */
+ public Builder setObjectAnnotations(
+ int index, com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation value) {
+ if (objectAnnotationsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureObjectAnnotationsIsMutable();
+ objectAnnotations_.set(index, value);
+ onChanged();
+ } else {
+ objectAnnotationsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Object tracking results. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4;
+ *
+ */
+ public Builder setObjectAnnotations(
+ int index,
+ com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation.Builder
+ builderForValue) {
+ if (objectAnnotationsBuilder_ == null) {
+ ensureObjectAnnotationsIsMutable();
+ objectAnnotations_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ objectAnnotationsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Object tracking results. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4;
+ *
+ */
+ public Builder addObjectAnnotations(
+ com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation value) {
+ if (objectAnnotationsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureObjectAnnotationsIsMutable();
+ objectAnnotations_.add(value);
+ onChanged();
+ } else {
+ objectAnnotationsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Object tracking results. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4;
+ *
+ */
+ public Builder addObjectAnnotations(
+ int index, com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation value) {
+ if (objectAnnotationsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureObjectAnnotationsIsMutable();
+ objectAnnotations_.add(index, value);
+ onChanged();
+ } else {
+ objectAnnotationsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Object tracking results. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4;
+ *
+ */
+ public Builder addObjectAnnotations(
+ com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation.Builder
+ builderForValue) {
+ if (objectAnnotationsBuilder_ == null) {
+ ensureObjectAnnotationsIsMutable();
+ objectAnnotations_.add(builderForValue.build());
+ onChanged();
+ } else {
+ objectAnnotationsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Object tracking results. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4;
+ *
+ */
+ public Builder addObjectAnnotations(
+ int index,
+ com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation.Builder
+ builderForValue) {
+ if (objectAnnotationsBuilder_ == null) {
+ ensureObjectAnnotationsIsMutable();
+ objectAnnotations_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ objectAnnotationsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Object tracking results. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4;
+ *
+ */
+ public Builder addAllObjectAnnotations(
+ java.lang.Iterable<
+ ? extends com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation>
+ values) {
+ if (objectAnnotationsBuilder_ == null) {
+ ensureObjectAnnotationsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, objectAnnotations_);
+ onChanged();
+ } else {
+ objectAnnotationsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Object tracking results. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4;
+ *
+ */
+ public Builder clearObjectAnnotations() {
+ if (objectAnnotationsBuilder_ == null) {
+ objectAnnotations_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ } else {
+ objectAnnotationsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Object tracking results. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4;
+ *
+ */
+ public Builder removeObjectAnnotations(int index) {
+ if (objectAnnotationsBuilder_ == null) {
+ ensureObjectAnnotationsIsMutable();
+ objectAnnotations_.remove(index);
+ onChanged();
+ } else {
+ objectAnnotationsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Object tracking results. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation.Builder
+ getObjectAnnotationsBuilder(int index) {
+ return getObjectAnnotationsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * Object tracking results. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotationOrBuilder
+ getObjectAnnotationsOrBuilder(int index) {
+ if (objectAnnotationsBuilder_ == null) {
+ return objectAnnotations_.get(index);
+ } else {
+ return objectAnnotationsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Object tracking results. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4;
+ *
+ */
+ public java.util.List<
+ ? extends
+ com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotationOrBuilder>
+ getObjectAnnotationsOrBuilderList() {
+ if (objectAnnotationsBuilder_ != null) {
+ return objectAnnotationsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(objectAnnotations_);
+ }
+ }
+ /**
+ *
+ *
+ * + * Object tracking results. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation.Builder
+ addObjectAnnotationsBuilder() {
+ return getObjectAnnotationsFieldBuilder()
+ .addBuilder(
+ com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation
+ .getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Object tracking results. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation.Builder
+ addObjectAnnotationsBuilder(int index) {
+ return getObjectAnnotationsFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation
+ .getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Object tracking results. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4;
+ *
+ */
+ public java.util.List<
+ com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation.Builder>
+ getObjectAnnotationsBuilderList() {
+ return getObjectAnnotationsFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation,
+ com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation.Builder,
+ com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotationOrBuilder>
+ getObjectAnnotationsFieldBuilder() {
+ if (objectAnnotationsBuilder_ == null) {
+ objectAnnotationsBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation,
+ com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation.Builder,
+ com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotationOrBuilder>(
+ objectAnnotations_,
+ ((bitField0_ & 0x00000008) == 0x00000008),
+ getParentForChildren(),
+ isClean());
+ objectAnnotations_ = null;
+ }
+ return objectAnnotationsBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults)
+ private static final com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults();
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Shot annotation results. Each shot is represented as a video segment. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1;
+ *
+ */
+ java.util.List+ * Shot annotation results. Each shot is represented as a video segment. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1;
+ *
+ */
+ com.google.cloud.videointelligence.v1p3beta1.VideoSegment getShotAnnotations(int index);
+ /**
+ *
+ *
+ * + * Shot annotation results. Each shot is represented as a video segment. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1;
+ *
+ */
+ int getShotAnnotationsCount();
+ /**
+ *
+ *
+ * + * Shot annotation results. Each shot is represented as a video segment. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1;
+ *
+ */
+ java.util.List extends com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder>
+ getShotAnnotationsOrBuilderList();
+ /**
+ *
+ *
+ * + * Shot annotation results. Each shot is represented as a video segment. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.VideoSegment shot_annotations = 1;
+ *
+ */
+ com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder getShotAnnotationsOrBuilder(
+ int index);
+
+ /**
+ *
+ *
+ * + * Label annotation results. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2;
+ *
+ */
+ java.util.List+ * Label annotation results. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2;
+ *
+ */
+ com.google.cloud.videointelligence.v1p3beta1.LabelAnnotation getLabelAnnotations(int index);
+ /**
+ *
+ *
+ * + * Label annotation results. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2;
+ *
+ */
+ int getLabelAnnotationsCount();
+ /**
+ *
+ *
+ * + * Label annotation results. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2;
+ *
+ */
+ java.util.List extends com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder>
+ getLabelAnnotationsOrBuilderList();
+ /**
+ *
+ *
+ * + * Label annotation results. + *+ * + *
repeated .google.cloud.videointelligence.v1p3beta1.LabelAnnotation label_annotations = 2;
+ *
+ */
+ com.google.cloud.videointelligence.v1p3beta1.LabelAnnotationOrBuilder
+ getLabelAnnotationsOrBuilder(int index);
+
+ /**
+ *
+ *
+ * + * Explicit content detection results. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 3;
+ *
+ */
+ boolean hasExplicitAnnotation();
+ /**
+ *
+ *
+ * + * Explicit content detection results. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 3;
+ *
+ */
+ com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation getExplicitAnnotation();
+ /**
+ *
+ *
+ * + * Explicit content detection results. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation explicit_annotation = 3;
+ *
+ */
+ com.google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotationOrBuilder
+ getExplicitAnnotationOrBuilder();
+
+ /**
+ *
+ *
+ * + * Object tracking results. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4;
+ *
+ */
+ java.util.List+ * Object tracking results. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4;
+ *
+ */
+ com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation getObjectAnnotations(
+ int index);
+ /**
+ *
+ *
+ * + * Object tracking results. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4;
+ *
+ */
+ int getObjectAnnotationsCount();
+ /**
+ *
+ *
+ * + * Object tracking results. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4;
+ *
+ */
+ java.util.List<
+ ? extends com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotationOrBuilder>
+ getObjectAnnotationsOrBuilderList();
+ /**
+ *
+ *
+ * + * Object tracking results. + *+ * + *
+ * repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation object_annotations = 4;
+ *
+ */
+ com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotationOrBuilder
+ getObjectAnnotationsOrBuilder(int index);
+}
diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoConfig.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoConfig.java
new file mode 100644
index 000000000000..797bee67af74
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoConfig.java
@@ -0,0 +1,2390 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto
+
+package com.google.cloud.videointelligence.v1p3beta1;
+
+/**
+ *
+ *
+ * + * Provides information to the annotator that specifies how to process the + * request. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig} + */ +public final class StreamingVideoConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig) + StreamingVideoConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use StreamingVideoConfig.newBuilder() to construct. + private StreamingVideoConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private StreamingVideoConfig() { + feature_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private StreamingVideoConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + feature_ = rawValue; + break; + } + case 18: + { + com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig + .Builder + subBuilder = null; + if (streamingConfigCase_ == 2) { + subBuilder = + ((com.google.cloud.videointelligence.v1p3beta1 + .StreamingShotChangeDetectionConfig) + streamingConfig_) + .toBuilder(); + } + streamingConfig_ = + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1 + .StreamingShotChangeDetectionConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.videointelligence.v1p3beta1 + .StreamingShotChangeDetectionConfig) + streamingConfig_); + streamingConfig_ = subBuilder.buildPartial(); + } + streamingConfigCase_ = 2; + break; + } + case 26: + { + com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig.Builder + subBuilder = null; + if (streamingConfigCase_ == 3) { + subBuilder = + ((com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig) + streamingConfig_) + .toBuilder(); + } + streamingConfig_ = + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig) + streamingConfig_); + streamingConfig_ = subBuilder.buildPartial(); + } + streamingConfigCase_ = 3; + break; + } + case 34: + { + com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig + .Builder + subBuilder = null; + if (streamingConfigCase_ == 4) { + subBuilder = + ((com.google.cloud.videointelligence.v1p3beta1 + .StreamingExplicitContentDetectionConfig) + streamingConfig_) + .toBuilder(); + } + streamingConfig_ = + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1 + .StreamingExplicitContentDetectionConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.videointelligence.v1p3beta1 + .StreamingExplicitContentDetectionConfig) + streamingConfig_); + streamingConfig_ = subBuilder.buildPartial(); + } + streamingConfigCase_ = 4; + break; + } + case 42: + { + com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig.Builder + subBuilder = null; + if (streamingConfigCase_ == 5) { + subBuilder = + ((com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig) + streamingConfig_) + .toBuilder(); + } + streamingConfig_ = + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig) + streamingConfig_); + streamingConfig_ = subBuilder.buildPartial(); + } + streamingConfigCase_ = 5; + break; + } + case 242: + { + com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig.Builder + subBuilder = null; + if (storageConfig_ != null) { + subBuilder = storageConfig_.toBuilder(); + } + storageConfig_ = + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(storageConfig_); + storageConfig_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingVideoConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_StreamingVideoConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig.class, + com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig.Builder.class); + } + + private int streamingConfigCase_ = 0; + private java.lang.Object streamingConfig_; + + public enum StreamingConfigCase implements com.google.protobuf.Internal.EnumLite { + SHOT_CHANGE_DETECTION_CONFIG(2), + LABEL_DETECTION_CONFIG(3), + EXPLICIT_CONTENT_DETECTION_CONFIG(4), + OBJECT_TRACKING_CONFIG(5), + STREAMINGCONFIG_NOT_SET(0); + private final int value; + + private StreamingConfigCase(int value) { + this.value = value; + } + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static StreamingConfigCase valueOf(int value) { + return forNumber(value); + } + + public static StreamingConfigCase forNumber(int value) { + switch (value) { + case 2: + return SHOT_CHANGE_DETECTION_CONFIG; + case 3: + return LABEL_DETECTION_CONFIG; + case 4: + return EXPLICIT_CONTENT_DETECTION_CONFIG; + case 5: + return OBJECT_TRACKING_CONFIG; + case 0: + return STREAMINGCONFIG_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public StreamingConfigCase getStreamingConfigCase() { + return StreamingConfigCase.forNumber(streamingConfigCase_); + } + + public static final int FEATURE_FIELD_NUMBER = 1; + private int feature_; + /** + * + * + *
+ * Requested annotation feature. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.StreamingFeature feature = 1;
+ */
+ public int getFeatureValue() {
+ return feature_;
+ }
+ /**
+ *
+ *
+ * + * Requested annotation feature. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.StreamingFeature feature = 1;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.StreamingFeature getFeature() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.videointelligence.v1p3beta1.StreamingFeature result =
+ com.google.cloud.videointelligence.v1p3beta1.StreamingFeature.valueOf(feature_);
+ return result == null
+ ? com.google.cloud.videointelligence.v1p3beta1.StreamingFeature.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int SHOT_CHANGE_DETECTION_CONFIG_FIELD_NUMBER = 2;
+ /**
+ *
+ *
+ * + * Config for SHOT_CHANGE_DETECTION. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig shot_change_detection_config = 2;
+ *
+ */
+ public boolean hasShotChangeDetectionConfig() {
+ return streamingConfigCase_ == 2;
+ }
+ /**
+ *
+ *
+ * + * Config for SHOT_CHANGE_DETECTION. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig shot_change_detection_config = 2;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig
+ getShotChangeDetectionConfig() {
+ if (streamingConfigCase_ == 2) {
+ return (com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig)
+ streamingConfig_;
+ }
+ return com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig
+ .getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Config for SHOT_CHANGE_DETECTION. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig shot_change_detection_config = 2;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfigOrBuilder
+ getShotChangeDetectionConfigOrBuilder() {
+ if (streamingConfigCase_ == 2) {
+ return (com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig)
+ streamingConfig_;
+ }
+ return com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig
+ .getDefaultInstance();
+ }
+
+ public static final int LABEL_DETECTION_CONFIG_FIELD_NUMBER = 3;
+ /**
+ *
+ *
+ * + * Config for LABEL_DETECTION. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig label_detection_config = 3;
+ *
+ */
+ public boolean hasLabelDetectionConfig() {
+ return streamingConfigCase_ == 3;
+ }
+ /**
+ *
+ *
+ * + * Config for LABEL_DETECTION. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig label_detection_config = 3;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig
+ getLabelDetectionConfig() {
+ if (streamingConfigCase_ == 3) {
+ return (com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig)
+ streamingConfig_;
+ }
+ return com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig
+ .getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Config for LABEL_DETECTION. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig label_detection_config = 3;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfigOrBuilder
+ getLabelDetectionConfigOrBuilder() {
+ if (streamingConfigCase_ == 3) {
+ return (com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig)
+ streamingConfig_;
+ }
+ return com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig
+ .getDefaultInstance();
+ }
+
+ public static final int EXPLICIT_CONTENT_DETECTION_CONFIG_FIELD_NUMBER = 4;
+ /**
+ *
+ *
+ * + * Config for STREAMING_EXPLICIT_CONTENT_DETECTION. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig explicit_content_detection_config = 4;
+ *
+ */
+ public boolean hasExplicitContentDetectionConfig() {
+ return streamingConfigCase_ == 4;
+ }
+ /**
+ *
+ *
+ * + * Config for STREAMING_EXPLICIT_CONTENT_DETECTION. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig explicit_content_detection_config = 4;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig
+ getExplicitContentDetectionConfig() {
+ if (streamingConfigCase_ == 4) {
+ return (com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig)
+ streamingConfig_;
+ }
+ return com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig
+ .getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Config for STREAMING_EXPLICIT_CONTENT_DETECTION. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig explicit_content_detection_config = 4;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1
+ .StreamingExplicitContentDetectionConfigOrBuilder
+ getExplicitContentDetectionConfigOrBuilder() {
+ if (streamingConfigCase_ == 4) {
+ return (com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig)
+ streamingConfig_;
+ }
+ return com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig
+ .getDefaultInstance();
+ }
+
+ public static final int OBJECT_TRACKING_CONFIG_FIELD_NUMBER = 5;
+ /**
+ *
+ *
+ * + * Config for STREAMING_OBJECT_TRACKING. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig object_tracking_config = 5;
+ *
+ */
+ public boolean hasObjectTrackingConfig() {
+ return streamingConfigCase_ == 5;
+ }
+ /**
+ *
+ *
+ * + * Config for STREAMING_OBJECT_TRACKING. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig object_tracking_config = 5;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig
+ getObjectTrackingConfig() {
+ if (streamingConfigCase_ == 5) {
+ return (com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig)
+ streamingConfig_;
+ }
+ return com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig
+ .getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Config for STREAMING_OBJECT_TRACKING. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig object_tracking_config = 5;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfigOrBuilder
+ getObjectTrackingConfigOrBuilder() {
+ if (streamingConfigCase_ == 5) {
+ return (com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig)
+ streamingConfig_;
+ }
+ return com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig
+ .getDefaultInstance();
+ }
+
+ public static final int STORAGE_CONFIG_FIELD_NUMBER = 30;
+ private com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storageConfig_;
+ /**
+ *
+ *
+ * + * Streaming storage option. By default: storage is disabled. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storage_config = 30;
+ *
+ */
+ public boolean hasStorageConfig() {
+ return storageConfig_ != null;
+ }
+ /**
+ *
+ *
+ * + * Streaming storage option. By default: storage is disabled. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storage_config = 30;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig getStorageConfig() {
+ return storageConfig_ == null
+ ? com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig.getDefaultInstance()
+ : storageConfig_;
+ }
+ /**
+ *
+ *
+ * + * Streaming storage option. By default: storage is disabled. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storage_config = 30;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfigOrBuilder
+ getStorageConfigOrBuilder() {
+ return getStorageConfig();
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (feature_
+ != com.google.cloud.videointelligence.v1p3beta1.StreamingFeature
+ .STREAMING_FEATURE_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(1, feature_);
+ }
+ if (streamingConfigCase_ == 2) {
+ output.writeMessage(
+ 2,
+ (com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig)
+ streamingConfig_);
+ }
+ if (streamingConfigCase_ == 3) {
+ output.writeMessage(
+ 3,
+ (com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig)
+ streamingConfig_);
+ }
+ if (streamingConfigCase_ == 4) {
+ output.writeMessage(
+ 4,
+ (com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig)
+ streamingConfig_);
+ }
+ if (streamingConfigCase_ == 5) {
+ output.writeMessage(
+ 5,
+ (com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig)
+ streamingConfig_);
+ }
+ if (storageConfig_ != null) {
+ output.writeMessage(30, getStorageConfig());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (feature_
+ != com.google.cloud.videointelligence.v1p3beta1.StreamingFeature
+ .STREAMING_FEATURE_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, feature_);
+ }
+ if (streamingConfigCase_ == 2) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 2,
+ (com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig)
+ streamingConfig_);
+ }
+ if (streamingConfigCase_ == 3) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 3,
+ (com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig)
+ streamingConfig_);
+ }
+ if (streamingConfigCase_ == 4) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 4,
+ (com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig)
+ streamingConfig_);
+ }
+ if (streamingConfigCase_ == 5) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 5,
+ (com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig)
+ streamingConfig_);
+ }
+ if (storageConfig_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(30, getStorageConfig());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig other =
+ (com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig) obj;
+
+ boolean result = true;
+ result = result && feature_ == other.feature_;
+ result = result && (hasStorageConfig() == other.hasStorageConfig());
+ if (hasStorageConfig()) {
+ result = result && getStorageConfig().equals(other.getStorageConfig());
+ }
+ result = result && getStreamingConfigCase().equals(other.getStreamingConfigCase());
+ if (!result) return false;
+ switch (streamingConfigCase_) {
+ case 2:
+ result =
+ result && getShotChangeDetectionConfig().equals(other.getShotChangeDetectionConfig());
+ break;
+ case 3:
+ result = result && getLabelDetectionConfig().equals(other.getLabelDetectionConfig());
+ break;
+ case 4:
+ result =
+ result
+ && getExplicitContentDetectionConfig()
+ .equals(other.getExplicitContentDetectionConfig());
+ break;
+ case 5:
+ result = result && getObjectTrackingConfig().equals(other.getObjectTrackingConfig());
+ break;
+ case 0:
+ default:
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + FEATURE_FIELD_NUMBER;
+ hash = (53 * hash) + feature_;
+ if (hasStorageConfig()) {
+ hash = (37 * hash) + STORAGE_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getStorageConfig().hashCode();
+ }
+ switch (streamingConfigCase_) {
+ case 2:
+ hash = (37 * hash) + SHOT_CHANGE_DETECTION_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getShotChangeDetectionConfig().hashCode();
+ break;
+ case 3:
+ hash = (37 * hash) + LABEL_DETECTION_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getLabelDetectionConfig().hashCode();
+ break;
+ case 4:
+ hash = (37 * hash) + EXPLICIT_CONTENT_DETECTION_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getExplicitContentDetectionConfig().hashCode();
+ break;
+ case 5:
+ hash = (37 * hash) + OBJECT_TRACKING_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getObjectTrackingConfig().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Provides information to the annotator that specifies how to process the + * request. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Requested annotation feature. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.StreamingFeature feature = 1;
+ */
+ public int getFeatureValue() {
+ return feature_;
+ }
+ /**
+ *
+ *
+ * + * Requested annotation feature. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.StreamingFeature feature = 1;
+ */
+ public Builder setFeatureValue(int value) {
+ feature_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Requested annotation feature. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.StreamingFeature feature = 1;
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.StreamingFeature getFeature() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.videointelligence.v1p3beta1.StreamingFeature result =
+ com.google.cloud.videointelligence.v1p3beta1.StreamingFeature.valueOf(feature_);
+ return result == null
+ ? com.google.cloud.videointelligence.v1p3beta1.StreamingFeature.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ * + * Requested annotation feature. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.StreamingFeature feature = 1;
+ */
+ public Builder setFeature(com.google.cloud.videointelligence.v1p3beta1.StreamingFeature value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ feature_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Requested annotation feature. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.StreamingFeature feature = 1;
+ */
+ public Builder clearFeature() {
+
+ feature_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig,
+ com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig.Builder,
+ com.google.cloud.videointelligence.v1p3beta1
+ .StreamingShotChangeDetectionConfigOrBuilder>
+ shotChangeDetectionConfigBuilder_;
+ /**
+ *
+ *
+ * + * Config for SHOT_CHANGE_DETECTION. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig shot_change_detection_config = 2;
+ *
+ */
+ public boolean hasShotChangeDetectionConfig() {
+ return streamingConfigCase_ == 2;
+ }
+ /**
+ *
+ *
+ * + * Config for SHOT_CHANGE_DETECTION. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig shot_change_detection_config = 2;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig
+ getShotChangeDetectionConfig() {
+ if (shotChangeDetectionConfigBuilder_ == null) {
+ if (streamingConfigCase_ == 2) {
+ return (com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig)
+ streamingConfig_;
+ }
+ return com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig
+ .getDefaultInstance();
+ } else {
+ if (streamingConfigCase_ == 2) {
+ return shotChangeDetectionConfigBuilder_.getMessage();
+ }
+ return com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig
+ .getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Config for SHOT_CHANGE_DETECTION. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig shot_change_detection_config = 2;
+ *
+ */
+ public Builder setShotChangeDetectionConfig(
+ com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig value) {
+ if (shotChangeDetectionConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ streamingConfig_ = value;
+ onChanged();
+ } else {
+ shotChangeDetectionConfigBuilder_.setMessage(value);
+ }
+ streamingConfigCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Config for SHOT_CHANGE_DETECTION. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig shot_change_detection_config = 2;
+ *
+ */
+ public Builder setShotChangeDetectionConfig(
+ com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig.Builder
+ builderForValue) {
+ if (shotChangeDetectionConfigBuilder_ == null) {
+ streamingConfig_ = builderForValue.build();
+ onChanged();
+ } else {
+ shotChangeDetectionConfigBuilder_.setMessage(builderForValue.build());
+ }
+ streamingConfigCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Config for SHOT_CHANGE_DETECTION. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig shot_change_detection_config = 2;
+ *
+ */
+ public Builder mergeShotChangeDetectionConfig(
+ com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig value) {
+ if (shotChangeDetectionConfigBuilder_ == null) {
+ if (streamingConfigCase_ == 2
+ && streamingConfig_
+ != com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig
+ .getDefaultInstance()) {
+ streamingConfig_ =
+ com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig
+ .newBuilder(
+ (com.google.cloud.videointelligence.v1p3beta1
+ .StreamingShotChangeDetectionConfig)
+ streamingConfig_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ streamingConfig_ = value;
+ }
+ onChanged();
+ } else {
+ if (streamingConfigCase_ == 2) {
+ shotChangeDetectionConfigBuilder_.mergeFrom(value);
+ }
+ shotChangeDetectionConfigBuilder_.setMessage(value);
+ }
+ streamingConfigCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Config for SHOT_CHANGE_DETECTION. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig shot_change_detection_config = 2;
+ *
+ */
+ public Builder clearShotChangeDetectionConfig() {
+ if (shotChangeDetectionConfigBuilder_ == null) {
+ if (streamingConfigCase_ == 2) {
+ streamingConfigCase_ = 0;
+ streamingConfig_ = null;
+ onChanged();
+ }
+ } else {
+ if (streamingConfigCase_ == 2) {
+ streamingConfigCase_ = 0;
+ streamingConfig_ = null;
+ }
+ shotChangeDetectionConfigBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Config for SHOT_CHANGE_DETECTION. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig shot_change_detection_config = 2;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig.Builder
+ getShotChangeDetectionConfigBuilder() {
+ return getShotChangeDetectionConfigFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Config for SHOT_CHANGE_DETECTION. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig shot_change_detection_config = 2;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfigOrBuilder
+ getShotChangeDetectionConfigOrBuilder() {
+ if ((streamingConfigCase_ == 2) && (shotChangeDetectionConfigBuilder_ != null)) {
+ return shotChangeDetectionConfigBuilder_.getMessageOrBuilder();
+ } else {
+ if (streamingConfigCase_ == 2) {
+ return (com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig)
+ streamingConfig_;
+ }
+ return com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig
+ .getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Config for SHOT_CHANGE_DETECTION. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig shot_change_detection_config = 2;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig,
+ com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig.Builder,
+ com.google.cloud.videointelligence.v1p3beta1
+ .StreamingShotChangeDetectionConfigOrBuilder>
+ getShotChangeDetectionConfigFieldBuilder() {
+ if (shotChangeDetectionConfigBuilder_ == null) {
+ if (!(streamingConfigCase_ == 2)) {
+ streamingConfig_ =
+ com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig
+ .getDefaultInstance();
+ }
+ shotChangeDetectionConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig,
+ com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig
+ .Builder,
+ com.google.cloud.videointelligence.v1p3beta1
+ .StreamingShotChangeDetectionConfigOrBuilder>(
+ (com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig)
+ streamingConfig_,
+ getParentForChildren(),
+ isClean());
+ streamingConfig_ = null;
+ }
+ streamingConfigCase_ = 2;
+ onChanged();
+ ;
+ return shotChangeDetectionConfigBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig,
+ com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig.Builder,
+ com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfigOrBuilder>
+ labelDetectionConfigBuilder_;
+ /**
+ *
+ *
+ * + * Config for LABEL_DETECTION. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig label_detection_config = 3;
+ *
+ */
+ public boolean hasLabelDetectionConfig() {
+ return streamingConfigCase_ == 3;
+ }
+ /**
+ *
+ *
+ * + * Config for LABEL_DETECTION. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig label_detection_config = 3;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig
+ getLabelDetectionConfig() {
+ if (labelDetectionConfigBuilder_ == null) {
+ if (streamingConfigCase_ == 3) {
+ return (com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig)
+ streamingConfig_;
+ }
+ return com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig
+ .getDefaultInstance();
+ } else {
+ if (streamingConfigCase_ == 3) {
+ return labelDetectionConfigBuilder_.getMessage();
+ }
+ return com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig
+ .getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Config for LABEL_DETECTION. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig label_detection_config = 3;
+ *
+ */
+ public Builder setLabelDetectionConfig(
+ com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig value) {
+ if (labelDetectionConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ streamingConfig_ = value;
+ onChanged();
+ } else {
+ labelDetectionConfigBuilder_.setMessage(value);
+ }
+ streamingConfigCase_ = 3;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Config for LABEL_DETECTION. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig label_detection_config = 3;
+ *
+ */
+ public Builder setLabelDetectionConfig(
+ com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig.Builder
+ builderForValue) {
+ if (labelDetectionConfigBuilder_ == null) {
+ streamingConfig_ = builderForValue.build();
+ onChanged();
+ } else {
+ labelDetectionConfigBuilder_.setMessage(builderForValue.build());
+ }
+ streamingConfigCase_ = 3;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Config for LABEL_DETECTION. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig label_detection_config = 3;
+ *
+ */
+ public Builder mergeLabelDetectionConfig(
+ com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig value) {
+ if (labelDetectionConfigBuilder_ == null) {
+ if (streamingConfigCase_ == 3
+ && streamingConfig_
+ != com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig
+ .getDefaultInstance()) {
+ streamingConfig_ =
+ com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig.newBuilder(
+ (com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig)
+ streamingConfig_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ streamingConfig_ = value;
+ }
+ onChanged();
+ } else {
+ if (streamingConfigCase_ == 3) {
+ labelDetectionConfigBuilder_.mergeFrom(value);
+ }
+ labelDetectionConfigBuilder_.setMessage(value);
+ }
+ streamingConfigCase_ = 3;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Config for LABEL_DETECTION. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig label_detection_config = 3;
+ *
+ */
+ public Builder clearLabelDetectionConfig() {
+ if (labelDetectionConfigBuilder_ == null) {
+ if (streamingConfigCase_ == 3) {
+ streamingConfigCase_ = 0;
+ streamingConfig_ = null;
+ onChanged();
+ }
+ } else {
+ if (streamingConfigCase_ == 3) {
+ streamingConfigCase_ = 0;
+ streamingConfig_ = null;
+ }
+ labelDetectionConfigBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Config for LABEL_DETECTION. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig label_detection_config = 3;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig.Builder
+ getLabelDetectionConfigBuilder() {
+ return getLabelDetectionConfigFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Config for LABEL_DETECTION. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig label_detection_config = 3;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfigOrBuilder
+ getLabelDetectionConfigOrBuilder() {
+ if ((streamingConfigCase_ == 3) && (labelDetectionConfigBuilder_ != null)) {
+ return labelDetectionConfigBuilder_.getMessageOrBuilder();
+ } else {
+ if (streamingConfigCase_ == 3) {
+ return (com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig)
+ streamingConfig_;
+ }
+ return com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig
+ .getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Config for LABEL_DETECTION. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig label_detection_config = 3;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig,
+ com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig.Builder,
+ com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfigOrBuilder>
+ getLabelDetectionConfigFieldBuilder() {
+ if (labelDetectionConfigBuilder_ == null) {
+ if (!(streamingConfigCase_ == 3)) {
+ streamingConfig_ =
+ com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig
+ .getDefaultInstance();
+ }
+ labelDetectionConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig,
+ com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig.Builder,
+ com.google.cloud.videointelligence.v1p3beta1
+ .StreamingLabelDetectionConfigOrBuilder>(
+ (com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig)
+ streamingConfig_,
+ getParentForChildren(),
+ isClean());
+ streamingConfig_ = null;
+ }
+ streamingConfigCase_ = 3;
+ onChanged();
+ ;
+ return labelDetectionConfigBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig,
+ com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig
+ .Builder,
+ com.google.cloud.videointelligence.v1p3beta1
+ .StreamingExplicitContentDetectionConfigOrBuilder>
+ explicitContentDetectionConfigBuilder_;
+ /**
+ *
+ *
+ * + * Config for STREAMING_EXPLICIT_CONTENT_DETECTION. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig explicit_content_detection_config = 4;
+ *
+ */
+ public boolean hasExplicitContentDetectionConfig() {
+ return streamingConfigCase_ == 4;
+ }
+ /**
+ *
+ *
+ * + * Config for STREAMING_EXPLICIT_CONTENT_DETECTION. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig explicit_content_detection_config = 4;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig
+ getExplicitContentDetectionConfig() {
+ if (explicitContentDetectionConfigBuilder_ == null) {
+ if (streamingConfigCase_ == 4) {
+ return (com.google.cloud.videointelligence.v1p3beta1
+ .StreamingExplicitContentDetectionConfig)
+ streamingConfig_;
+ }
+ return com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig
+ .getDefaultInstance();
+ } else {
+ if (streamingConfigCase_ == 4) {
+ return explicitContentDetectionConfigBuilder_.getMessage();
+ }
+ return com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig
+ .getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Config for STREAMING_EXPLICIT_CONTENT_DETECTION. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig explicit_content_detection_config = 4;
+ *
+ */
+ public Builder setExplicitContentDetectionConfig(
+ com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig
+ value) {
+ if (explicitContentDetectionConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ streamingConfig_ = value;
+ onChanged();
+ } else {
+ explicitContentDetectionConfigBuilder_.setMessage(value);
+ }
+ streamingConfigCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Config for STREAMING_EXPLICIT_CONTENT_DETECTION. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig explicit_content_detection_config = 4;
+ *
+ */
+ public Builder setExplicitContentDetectionConfig(
+ com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig.Builder
+ builderForValue) {
+ if (explicitContentDetectionConfigBuilder_ == null) {
+ streamingConfig_ = builderForValue.build();
+ onChanged();
+ } else {
+ explicitContentDetectionConfigBuilder_.setMessage(builderForValue.build());
+ }
+ streamingConfigCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Config for STREAMING_EXPLICIT_CONTENT_DETECTION. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig explicit_content_detection_config = 4;
+ *
+ */
+ public Builder mergeExplicitContentDetectionConfig(
+ com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig
+ value) {
+ if (explicitContentDetectionConfigBuilder_ == null) {
+ if (streamingConfigCase_ == 4
+ && streamingConfig_
+ != com.google.cloud.videointelligence.v1p3beta1
+ .StreamingExplicitContentDetectionConfig.getDefaultInstance()) {
+ streamingConfig_ =
+ com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig
+ .newBuilder(
+ (com.google.cloud.videointelligence.v1p3beta1
+ .StreamingExplicitContentDetectionConfig)
+ streamingConfig_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ streamingConfig_ = value;
+ }
+ onChanged();
+ } else {
+ if (streamingConfigCase_ == 4) {
+ explicitContentDetectionConfigBuilder_.mergeFrom(value);
+ }
+ explicitContentDetectionConfigBuilder_.setMessage(value);
+ }
+ streamingConfigCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Config for STREAMING_EXPLICIT_CONTENT_DETECTION. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig explicit_content_detection_config = 4;
+ *
+ */
+ public Builder clearExplicitContentDetectionConfig() {
+ if (explicitContentDetectionConfigBuilder_ == null) {
+ if (streamingConfigCase_ == 4) {
+ streamingConfigCase_ = 0;
+ streamingConfig_ = null;
+ onChanged();
+ }
+ } else {
+ if (streamingConfigCase_ == 4) {
+ streamingConfigCase_ = 0;
+ streamingConfig_ = null;
+ }
+ explicitContentDetectionConfigBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Config for STREAMING_EXPLICIT_CONTENT_DETECTION. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig explicit_content_detection_config = 4;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig
+ .Builder
+ getExplicitContentDetectionConfigBuilder() {
+ return getExplicitContentDetectionConfigFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Config for STREAMING_EXPLICIT_CONTENT_DETECTION. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig explicit_content_detection_config = 4;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1
+ .StreamingExplicitContentDetectionConfigOrBuilder
+ getExplicitContentDetectionConfigOrBuilder() {
+ if ((streamingConfigCase_ == 4) && (explicitContentDetectionConfigBuilder_ != null)) {
+ return explicitContentDetectionConfigBuilder_.getMessageOrBuilder();
+ } else {
+ if (streamingConfigCase_ == 4) {
+ return (com.google.cloud.videointelligence.v1p3beta1
+ .StreamingExplicitContentDetectionConfig)
+ streamingConfig_;
+ }
+ return com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig
+ .getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Config for STREAMING_EXPLICIT_CONTENT_DETECTION. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig explicit_content_detection_config = 4;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig,
+ com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig
+ .Builder,
+ com.google.cloud.videointelligence.v1p3beta1
+ .StreamingExplicitContentDetectionConfigOrBuilder>
+ getExplicitContentDetectionConfigFieldBuilder() {
+ if (explicitContentDetectionConfigBuilder_ == null) {
+ if (!(streamingConfigCase_ == 4)) {
+ streamingConfig_ =
+ com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig
+ .getDefaultInstance();
+ }
+ explicitContentDetectionConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.videointelligence.v1p3beta1
+ .StreamingExplicitContentDetectionConfig,
+ com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig
+ .Builder,
+ com.google.cloud.videointelligence.v1p3beta1
+ .StreamingExplicitContentDetectionConfigOrBuilder>(
+ (com.google.cloud.videointelligence.v1p3beta1
+ .StreamingExplicitContentDetectionConfig)
+ streamingConfig_,
+ getParentForChildren(),
+ isClean());
+ streamingConfig_ = null;
+ }
+ streamingConfigCase_ = 4;
+ onChanged();
+ ;
+ return explicitContentDetectionConfigBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig,
+ com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig.Builder,
+ com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfigOrBuilder>
+ objectTrackingConfigBuilder_;
+ /**
+ *
+ *
+ * + * Config for STREAMING_OBJECT_TRACKING. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig object_tracking_config = 5;
+ *
+ */
+ public boolean hasObjectTrackingConfig() {
+ return streamingConfigCase_ == 5;
+ }
+ /**
+ *
+ *
+ * + * Config for STREAMING_OBJECT_TRACKING. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig object_tracking_config = 5;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig
+ getObjectTrackingConfig() {
+ if (objectTrackingConfigBuilder_ == null) {
+ if (streamingConfigCase_ == 5) {
+ return (com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig)
+ streamingConfig_;
+ }
+ return com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig
+ .getDefaultInstance();
+ } else {
+ if (streamingConfigCase_ == 5) {
+ return objectTrackingConfigBuilder_.getMessage();
+ }
+ return com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig
+ .getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Config for STREAMING_OBJECT_TRACKING. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig object_tracking_config = 5;
+ *
+ */
+ public Builder setObjectTrackingConfig(
+ com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig value) {
+ if (objectTrackingConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ streamingConfig_ = value;
+ onChanged();
+ } else {
+ objectTrackingConfigBuilder_.setMessage(value);
+ }
+ streamingConfigCase_ = 5;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Config for STREAMING_OBJECT_TRACKING. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig object_tracking_config = 5;
+ *
+ */
+ public Builder setObjectTrackingConfig(
+ com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig.Builder
+ builderForValue) {
+ if (objectTrackingConfigBuilder_ == null) {
+ streamingConfig_ = builderForValue.build();
+ onChanged();
+ } else {
+ objectTrackingConfigBuilder_.setMessage(builderForValue.build());
+ }
+ streamingConfigCase_ = 5;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Config for STREAMING_OBJECT_TRACKING. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig object_tracking_config = 5;
+ *
+ */
+ public Builder mergeObjectTrackingConfig(
+ com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig value) {
+ if (objectTrackingConfigBuilder_ == null) {
+ if (streamingConfigCase_ == 5
+ && streamingConfig_
+ != com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig
+ .getDefaultInstance()) {
+ streamingConfig_ =
+ com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig.newBuilder(
+ (com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig)
+ streamingConfig_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ streamingConfig_ = value;
+ }
+ onChanged();
+ } else {
+ if (streamingConfigCase_ == 5) {
+ objectTrackingConfigBuilder_.mergeFrom(value);
+ }
+ objectTrackingConfigBuilder_.setMessage(value);
+ }
+ streamingConfigCase_ = 5;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Config for STREAMING_OBJECT_TRACKING. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig object_tracking_config = 5;
+ *
+ */
+ public Builder clearObjectTrackingConfig() {
+ if (objectTrackingConfigBuilder_ == null) {
+ if (streamingConfigCase_ == 5) {
+ streamingConfigCase_ = 0;
+ streamingConfig_ = null;
+ onChanged();
+ }
+ } else {
+ if (streamingConfigCase_ == 5) {
+ streamingConfigCase_ = 0;
+ streamingConfig_ = null;
+ }
+ objectTrackingConfigBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Config for STREAMING_OBJECT_TRACKING. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig object_tracking_config = 5;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig.Builder
+ getObjectTrackingConfigBuilder() {
+ return getObjectTrackingConfigFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Config for STREAMING_OBJECT_TRACKING. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig object_tracking_config = 5;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfigOrBuilder
+ getObjectTrackingConfigOrBuilder() {
+ if ((streamingConfigCase_ == 5) && (objectTrackingConfigBuilder_ != null)) {
+ return objectTrackingConfigBuilder_.getMessageOrBuilder();
+ } else {
+ if (streamingConfigCase_ == 5) {
+ return (com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig)
+ streamingConfig_;
+ }
+ return com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig
+ .getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Config for STREAMING_OBJECT_TRACKING. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig object_tracking_config = 5;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig,
+ com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig.Builder,
+ com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfigOrBuilder>
+ getObjectTrackingConfigFieldBuilder() {
+ if (objectTrackingConfigBuilder_ == null) {
+ if (!(streamingConfigCase_ == 5)) {
+ streamingConfig_ =
+ com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig
+ .getDefaultInstance();
+ }
+ objectTrackingConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig,
+ com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig.Builder,
+ com.google.cloud.videointelligence.v1p3beta1
+ .StreamingObjectTrackingConfigOrBuilder>(
+ (com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig)
+ streamingConfig_,
+ getParentForChildren(),
+ isClean());
+ streamingConfig_ = null;
+ }
+ streamingConfigCase_ = 5;
+ onChanged();
+ ;
+ return objectTrackingConfigBuilder_;
+ }
+
+ private com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storageConfig_ =
+ null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig,
+ com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig.Builder,
+ com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfigOrBuilder>
+ storageConfigBuilder_;
+ /**
+ *
+ *
+ * + * Streaming storage option. By default: storage is disabled. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storage_config = 30;
+ *
+ */
+ public boolean hasStorageConfig() {
+ return storageConfigBuilder_ != null || storageConfig_ != null;
+ }
+ /**
+ *
+ *
+ * + * Streaming storage option. By default: storage is disabled. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storage_config = 30;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig getStorageConfig() {
+ if (storageConfigBuilder_ == null) {
+ return storageConfig_ == null
+ ? com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig
+ .getDefaultInstance()
+ : storageConfig_;
+ } else {
+ return storageConfigBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Streaming storage option. By default: storage is disabled. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storage_config = 30;
+ *
+ */
+ public Builder setStorageConfig(
+ com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig value) {
+ if (storageConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ storageConfig_ = value;
+ onChanged();
+ } else {
+ storageConfigBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Streaming storage option. By default: storage is disabled. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storage_config = 30;
+ *
+ */
+ public Builder setStorageConfig(
+ com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig.Builder
+ builderForValue) {
+ if (storageConfigBuilder_ == null) {
+ storageConfig_ = builderForValue.build();
+ onChanged();
+ } else {
+ storageConfigBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Streaming storage option. By default: storage is disabled. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storage_config = 30;
+ *
+ */
+ public Builder mergeStorageConfig(
+ com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig value) {
+ if (storageConfigBuilder_ == null) {
+ if (storageConfig_ != null) {
+ storageConfig_ =
+ com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig.newBuilder(
+ storageConfig_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ storageConfig_ = value;
+ }
+ onChanged();
+ } else {
+ storageConfigBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Streaming storage option. By default: storage is disabled. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storage_config = 30;
+ *
+ */
+ public Builder clearStorageConfig() {
+ if (storageConfigBuilder_ == null) {
+ storageConfig_ = null;
+ onChanged();
+ } else {
+ storageConfig_ = null;
+ storageConfigBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Streaming storage option. By default: storage is disabled. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storage_config = 30;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig.Builder
+ getStorageConfigBuilder() {
+
+ onChanged();
+ return getStorageConfigFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Streaming storage option. By default: storage is disabled. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storage_config = 30;
+ *
+ */
+ public com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfigOrBuilder
+ getStorageConfigOrBuilder() {
+ if (storageConfigBuilder_ != null) {
+ return storageConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return storageConfig_ == null
+ ? com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig
+ .getDefaultInstance()
+ : storageConfig_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Streaming storage option. By default: storage is disabled. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storage_config = 30;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig,
+ com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig.Builder,
+ com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfigOrBuilder>
+ getStorageConfigFieldBuilder() {
+ if (storageConfigBuilder_ == null) {
+ storageConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig,
+ com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig.Builder,
+ com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfigOrBuilder>(
+ getStorageConfig(), getParentForChildren(), isClean());
+ storageConfig_ = null;
+ }
+ return storageConfigBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig)
+ private static final com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig();
+ }
+
+ public static com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Requested annotation feature. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.StreamingFeature feature = 1;
+ */
+ int getFeatureValue();
+ /**
+ *
+ *
+ * + * Requested annotation feature. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.StreamingFeature feature = 1;
+ */
+ com.google.cloud.videointelligence.v1p3beta1.StreamingFeature getFeature();
+
+ /**
+ *
+ *
+ * + * Config for SHOT_CHANGE_DETECTION. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig shot_change_detection_config = 2;
+ *
+ */
+ boolean hasShotChangeDetectionConfig();
+ /**
+ *
+ *
+ * + * Config for SHOT_CHANGE_DETECTION. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig shot_change_detection_config = 2;
+ *
+ */
+ com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig
+ getShotChangeDetectionConfig();
+ /**
+ *
+ *
+ * + * Config for SHOT_CHANGE_DETECTION. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig shot_change_detection_config = 2;
+ *
+ */
+ com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfigOrBuilder
+ getShotChangeDetectionConfigOrBuilder();
+
+ /**
+ *
+ *
+ * + * Config for LABEL_DETECTION. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig label_detection_config = 3;
+ *
+ */
+ boolean hasLabelDetectionConfig();
+ /**
+ *
+ *
+ * + * Config for LABEL_DETECTION. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig label_detection_config = 3;
+ *
+ */
+ com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig
+ getLabelDetectionConfig();
+ /**
+ *
+ *
+ * + * Config for LABEL_DETECTION. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig label_detection_config = 3;
+ *
+ */
+ com.google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfigOrBuilder
+ getLabelDetectionConfigOrBuilder();
+
+ /**
+ *
+ *
+ * + * Config for STREAMING_EXPLICIT_CONTENT_DETECTION. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig explicit_content_detection_config = 4;
+ *
+ */
+ boolean hasExplicitContentDetectionConfig();
+ /**
+ *
+ *
+ * + * Config for STREAMING_EXPLICIT_CONTENT_DETECTION. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig explicit_content_detection_config = 4;
+ *
+ */
+ com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig
+ getExplicitContentDetectionConfig();
+ /**
+ *
+ *
+ * + * Config for STREAMING_EXPLICIT_CONTENT_DETECTION. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig explicit_content_detection_config = 4;
+ *
+ */
+ com.google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfigOrBuilder
+ getExplicitContentDetectionConfigOrBuilder();
+
+ /**
+ *
+ *
+ * + * Config for STREAMING_OBJECT_TRACKING. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig object_tracking_config = 5;
+ *
+ */
+ boolean hasObjectTrackingConfig();
+ /**
+ *
+ *
+ * + * Config for STREAMING_OBJECT_TRACKING. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig object_tracking_config = 5;
+ *
+ */
+ com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig
+ getObjectTrackingConfig();
+ /**
+ *
+ *
+ * + * Config for STREAMING_OBJECT_TRACKING. + *+ * + *
+ * .google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig object_tracking_config = 5;
+ *
+ */
+ com.google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfigOrBuilder
+ getObjectTrackingConfigOrBuilder();
+
+ /**
+ *
+ *
+ * + * Streaming storage option. By default: storage is disabled. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storage_config = 30;
+ *
+ */
+ boolean hasStorageConfig();
+ /**
+ *
+ *
+ * + * Streaming storage option. By default: storage is disabled. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storage_config = 30;
+ *
+ */
+ com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig getStorageConfig();
+ /**
+ *
+ *
+ * + * Streaming storage option. By default: storage is disabled. + *+ * + *
.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig storage_config = 30;
+ *
+ */
+ com.google.cloud.videointelligence.v1p3beta1.StreamingStorageConfigOrBuilder
+ getStorageConfigOrBuilder();
+
+ public com.google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig.StreamingConfigCase
+ getStreamingConfigCase();
+}
diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextAnnotation.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextAnnotation.java
new file mode 100644
index 000000000000..a9097a4ed6a8
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p3beta1/src/main/java/com/google/cloud/videointelligence/v1p3beta1/TextAnnotation.java
@@ -0,0 +1,1116 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto
+
+package com.google.cloud.videointelligence.v1p3beta1;
+
+/**
+ *
+ *
+ * + * Annotations related to one detected OCR text snippet. This will contain the + * corresponding text, confidence value, and frame level information for each + * detection. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p3beta1.TextAnnotation} + */ +public final class TextAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p3beta1.TextAnnotation) + TextAnnotationOrBuilder { + private static final long serialVersionUID = 0L; + // Use TextAnnotation.newBuilder() to construct. + private TextAnnotation(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private TextAnnotation() { + text_ = ""; + segments_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TextAnnotation( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + text_ = s; + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + segments_ = + new java.util.ArrayList< + com.google.cloud.videointelligence.v1p3beta1.TextSegment>(); + mutable_bitField0_ |= 0x00000002; + } + segments_.add( + input.readMessage( + com.google.cloud.videointelligence.v1p3beta1.TextSegment.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + segments_ = java.util.Collections.unmodifiableList(segments_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_TextAnnotation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceProto + .internal_static_google_cloud_videointelligence_v1p3beta1_TextAnnotation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.videointelligence.v1p3beta1.TextAnnotation.class, + 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_; + /** + * + * + *
+ * The detected text. + *+ * + *
string text = 1;
+ */
+ public java.lang.String getText() {
+ java.lang.Object ref = text_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ text_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The detected text. + *+ * + *
string text = 1;
+ */
+ public com.google.protobuf.ByteString getTextBytes() {
+ java.lang.Object ref = text_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ text_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SEGMENTS_FIELD_NUMBER = 2;
+ private java.util.List