diff --git a/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta1/VideoIntelligenceServiceClient.java b/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta1/VideoIntelligenceServiceClient.java deleted file mode 100644 index 5f3c2d5ad..000000000 --- a/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta1/VideoIntelligenceServiceClient.java +++ /dev/null @@ -1,328 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.videointelligence.v1beta1; - -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.longrunning.OperationFuture; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.videointelligence.v1beta1.stub.VideoIntelligenceServiceStub; -import com.google.cloud.videointelligence.v1beta1.stub.VideoIntelligenceServiceStubSettings; -import com.google.longrunning.Operation; -import com.google.longrunning.OperationsClient; -import java.io.IOException; -import java.util.List; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND SERVICE -/** - * Service Description: Service that implements Google Cloud Video Intelligence API. - * - *
This class provides the ability to make remote calls to the backing service through method - * calls that map to API methods. Sample code to get started: - * - *
- *
- * try (VideoIntelligenceServiceClient videoIntelligenceServiceClient = VideoIntelligenceServiceClient.create()) {
- * String inputUri = "gs://cloud-samples-data/video/cat.mp4";
- * Feature featuresElement = Feature.LABEL_DETECTION;
- * List<Feature> features = Arrays.asList(featuresElement);
- * AnnotateVideoResponse response = videoIntelligenceServiceClient.annotateVideoAsync(inputUri, features).get();
- * }
- *
- *
- *
- * Note: close() needs to be called on the videoIntelligenceServiceClient object to clean up - * resources such as threads. In the example above, try-with-resources is used, which automatically - * calls close(). - * - *
The surface of this class includes several types of Java methods for each of the API's - * methods: - * - *
See the individual methods for example code. - * - *
Many parameters require resource names to be formatted in a particular way. To assist with - * these names, this class includes a format method for each type of name, and additionally a parse - * method to extract the individual identifiers contained within names that are returned. - * - *
This class can be customized by passing in a custom instance of - * VideoIntelligenceServiceSettings to create(). For example: - * - *
To customize credentials: - * - *
- *
- * VideoIntelligenceServiceSettings videoIntelligenceServiceSettings =
- * VideoIntelligenceServiceSettings.newBuilder()
- * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- * .build();
- * VideoIntelligenceServiceClient videoIntelligenceServiceClient =
- * VideoIntelligenceServiceClient.create(videoIntelligenceServiceSettings);
- *
- *
- *
- * To customize the endpoint:
- *
- *
- *
- * VideoIntelligenceServiceSettings videoIntelligenceServiceSettings =
- * VideoIntelligenceServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
- * VideoIntelligenceServiceClient videoIntelligenceServiceClient =
- * VideoIntelligenceServiceClient.create(videoIntelligenceServiceSettings);
- *
- *
- */
-@Generated("by gapic-generator")
-@BetaApi
-public class VideoIntelligenceServiceClient implements BackgroundResource {
- private final VideoIntelligenceServiceSettings settings;
- private final VideoIntelligenceServiceStub stub;
- private final OperationsClient operationsClient;
-
- /** Constructs an instance of VideoIntelligenceServiceClient with default settings. */
- public static final VideoIntelligenceServiceClient create() throws IOException {
- return create(VideoIntelligenceServiceSettings.newBuilder().build());
- }
-
- /**
- * Constructs an instance of VideoIntelligenceServiceClient, using the given settings. The
- * channels are created based on the settings passed in, or defaults for any settings that are not
- * set.
- */
- public static final VideoIntelligenceServiceClient create(
- VideoIntelligenceServiceSettings settings) throws IOException {
- return new VideoIntelligenceServiceClient(settings);
- }
-
- /**
- * Constructs an instance of VideoIntelligenceServiceClient, using the given stub for making
- * calls. This is for advanced usage - prefer to use VideoIntelligenceServiceSettings}.
- */
- @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
- public static final VideoIntelligenceServiceClient create(VideoIntelligenceServiceStub stub) {
- return new VideoIntelligenceServiceClient(stub);
- }
-
- /**
- * Constructs an instance of VideoIntelligenceServiceClient, using the given settings. This is
- * protected so that it is easy to make a subclass, but otherwise, the static factory methods
- * should be preferred.
- */
- protected VideoIntelligenceServiceClient(VideoIntelligenceServiceSettings settings)
- throws IOException {
- this.settings = settings;
- this.stub = ((VideoIntelligenceServiceStubSettings) settings.getStubSettings()).createStub();
- this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
- }
-
- @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
- protected VideoIntelligenceServiceClient(VideoIntelligenceServiceStub stub) {
- this.settings = null;
- this.stub = stub;
- this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
- }
-
- public final VideoIntelligenceServiceSettings getSettings() {
- return settings;
- }
-
- @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
- public VideoIntelligenceServiceStub getStub() {
- return stub;
- }
-
- /**
- * Returns the OperationsClient that can be used to query the status of a long-running operation
- * returned by another API method call.
- */
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
- public final OperationsClient getOperationsClient() {
- return operationsClient;
- }
-
- // AUTO-GENERATED DOCUMENTATION AND METHOD
- /**
- * Performs asynchronous video annotation. Progress and results can be retrieved through the
- * `google.longrunning.Operations` interface. `Operation.metadata` contains
- * `AnnotateVideoProgress` (progress). `Operation.response` contains `AnnotateVideoResponse`
- * (results).
- *
- * Sample code: - * - *
- * try (VideoIntelligenceServiceClient videoIntelligenceServiceClient = VideoIntelligenceServiceClient.create()) {
- * String inputUri = "gs://cloud-samples-data/video/cat.mp4";
- * Feature featuresElement = Feature.LABEL_DETECTION;
- * List<Feature> features = Arrays.asList(featuresElement);
- * AnnotateVideoResponse response = videoIntelligenceServiceClient.annotateVideoAsync(inputUri, features).get();
- * }
- *
- *
- * @param inputUri Input video location. Currently, only [Google Cloud
- * Storage](https://cloud.google.com/storage/) URIs are supported, which must be specified in
- * the following format: `gs://bucket-id/object-id` (other URI formats return
- * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more
- * information, see [Request URIs](/storage/docs/reference-uris). A video URI may include
- * wildcards in `object-id`, and thus identify multiple videos. Supported wildcards: '*'
- * to match 0 or more characters; '?' to match 1 character. If unset, the input video should
- * be embedded in the request as `input_content`. If set, `input_content` should be unset.
- * @param features Requested video annotation features.
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
- */
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
- public final OperationFutureSample code: - * - *
- * try (VideoIntelligenceServiceClient videoIntelligenceServiceClient = VideoIntelligenceServiceClient.create()) {
- * String inputUri = "gs://cloud-samples-data/video/cat.mp4";
- * Feature featuresElement = Feature.LABEL_DETECTION;
- * List<Feature> features = Arrays.asList(featuresElement);
- * AnnotateVideoRequest request = AnnotateVideoRequest.newBuilder()
- * .setInputUri(inputUri)
- * .addAllFeatures(features)
- * .build();
- * AnnotateVideoResponse response = videoIntelligenceServiceClient.annotateVideoAsync(request).get();
- * }
- *
- *
- * @param request The request object containing all of the parameters for the API call.
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
- */
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
- public final OperationFutureSample code: - * - *
- * try (VideoIntelligenceServiceClient videoIntelligenceServiceClient = VideoIntelligenceServiceClient.create()) {
- * String inputUri = "gs://cloud-samples-data/video/cat.mp4";
- * Feature featuresElement = Feature.LABEL_DETECTION;
- * List<Feature> features = Arrays.asList(featuresElement);
- * AnnotateVideoRequest request = AnnotateVideoRequest.newBuilder()
- * .setInputUri(inputUri)
- * .addAllFeatures(features)
- * .build();
- * OperationFuture<AnnotateVideoResponse, AnnotateVideoProgress> future = videoIntelligenceServiceClient.annotateVideoOperationCallable().futureCall(request);
- * // Do something
- * AnnotateVideoResponse response = future.get();
- * }
- *
- */
- @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
- public final OperationCallableSample code: - * - *
- * try (VideoIntelligenceServiceClient videoIntelligenceServiceClient = VideoIntelligenceServiceClient.create()) {
- * String inputUri = "gs://cloud-samples-data/video/cat.mp4";
- * Feature featuresElement = Feature.LABEL_DETECTION;
- * List<Feature> features = Arrays.asList(featuresElement);
- * AnnotateVideoRequest request = AnnotateVideoRequest.newBuilder()
- * .setInputUri(inputUri)
- * .addAllFeatures(features)
- * .build();
- * ApiFuture<Operation> future = videoIntelligenceServiceClient.annotateVideoCallable().futureCall(request);
- * // Do something
- * Operation response = future.get();
- * }
- *
- */
- public final UnaryCallableThe default instance has everything set to sensible defaults: - * - *
The builder of this class is recursive, so contained classes are themselves builders. When - * build() is called, the tree of builders is called to create the complete settings object. - * - *
For example, to set the total timeout of annotateVideoAsync to 30 seconds: - * - *
- *
- * VideoIntelligenceServiceSettings.Builder videoIntelligenceServiceSettingsBuilder =
- * VideoIntelligenceServiceSettings.newBuilder();
- * videoIntelligenceServiceSettingsBuilder.annotateVideoSettings().getRetrySettings().toBuilder()
- * .setTotalTimeout(Duration.ofSeconds(30));
- * VideoIntelligenceServiceSettings videoIntelligenceServiceSettings = videoIntelligenceServiceSettingsBuilder.build();
- *
- *
- */
-@Generated("by gapic-generator")
-@BetaApi
-public class VideoIntelligenceServiceSettings
- extends ClientSettingsNote: This method does not support applying settings to streaming methods.
- */
- public Builder applyToAllUnaryMethods(
- ApiFunction The interfaces provided are listed below, along with usage samples.
- *
- * ============================== VideoIntelligenceServiceClient ==============================
- *
- * Service Description: Service that implements Google Cloud Video Intelligence API.
- *
- * Sample for VideoIntelligenceServiceClient:
- *
- * This class is for advanced usage.
- */
-@Generated("by gapic-generator")
-@BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class GrpcVideoIntelligenceServiceCallableFactory implements GrpcStubCallableFactory {
- @Override
- public This class is for advanced usage and reflects the underlying API directly.
- */
-@Generated("by gapic-generator")
-@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
-public class GrpcVideoIntelligenceServiceStub extends VideoIntelligenceServiceStub {
-
- private static final MethodDescriptor This class is for advanced usage and reflects the underlying API directly.
- */
-@Generated("by gapic-generator")
-@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
-public abstract class VideoIntelligenceServiceStub implements BackgroundResource {
-
- @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
- public OperationsStub getOperationsStub() {
- throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
- }
-
- @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
- public OperationCallable The default instance has everything set to sensible defaults:
- *
- * The builder of this class is recursive, so contained classes are themselves builders. When
- * build() is called, the tree of builders is called to create the complete settings object.
- *
- * For example, to set the total timeout of annotateVideoAsync to 30 seconds:
- *
- * Note: This method does not support applying settings to streaming methods.
- */
- public Builder applyToAllUnaryMethods(
- ApiFunction
- *
- */
-@Generated("by gapic-generator")
-package com.google.cloud.videointelligence.v1beta1;
-
-import javax.annotation.Generated;
diff --git a/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta1/stub/GrpcVideoIntelligenceServiceCallableFactory.java b/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta1/stub/GrpcVideoIntelligenceServiceCallableFactory.java
deleted file mode 100644
index 097f2cea6..000000000
--- a/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta1/stub/GrpcVideoIntelligenceServiceCallableFactory.java
+++ /dev/null
@@ -1,115 +0,0 @@
-/*
- * Copyright 2019 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.google.cloud.videointelligence.v1beta1.stub;
-
-import com.google.api.core.BetaApi;
-import com.google.api.gax.grpc.GrpcCallSettings;
-import com.google.api.gax.grpc.GrpcCallableFactory;
-import com.google.api.gax.grpc.GrpcStubCallableFactory;
-import com.google.api.gax.rpc.BatchingCallSettings;
-import com.google.api.gax.rpc.BidiStreamingCallable;
-import com.google.api.gax.rpc.ClientContext;
-import com.google.api.gax.rpc.ClientStreamingCallable;
-import com.google.api.gax.rpc.OperationCallSettings;
-import com.google.api.gax.rpc.OperationCallable;
-import com.google.api.gax.rpc.PagedCallSettings;
-import com.google.api.gax.rpc.ServerStreamingCallSettings;
-import com.google.api.gax.rpc.ServerStreamingCallable;
-import com.google.api.gax.rpc.StreamingCallSettings;
-import com.google.api.gax.rpc.UnaryCallSettings;
-import com.google.api.gax.rpc.UnaryCallable;
-import com.google.longrunning.stub.OperationsStub;
-import javax.annotation.Generated;
-
-// AUTO-GENERATED DOCUMENTATION AND CLASS
-/**
- * gRPC callable factory implementation for Google Cloud Video Intelligence API.
- *
- *
- * try (VideoIntelligenceServiceClient videoIntelligenceServiceClient = VideoIntelligenceServiceClient.create()) {
- * String inputUri = "gs://cloud-samples-data/video/cat.mp4";
- * Feature featuresElement = Feature.LABEL_DETECTION;
- * List<Feature> features = Arrays.asList(featuresElement);
- * AnnotateVideoResponse response = videoIntelligenceServiceClient.annotateVideoAsync(inputUri, features);
- * }
- *
- *
- *
- *
- *
- *
- */
-@Generated("by gapic-generator")
-@BetaApi
-public class VideoIntelligenceServiceStubSettings
- extends StubSettings
- * VideoIntelligenceServiceStubSettings.Builder videoIntelligenceServiceSettingsBuilder =
- * VideoIntelligenceServiceStubSettings.newBuilder();
- * videoIntelligenceServiceSettingsBuilder.annotateVideoSettings().getRetrySettings().toBuilder()
- * .setTotalTimeout(Duration.ofSeconds(30));
- * VideoIntelligenceServiceStubSettings videoIntelligenceServiceSettings = videoIntelligenceServiceSettingsBuilder.build();
- *
- *
- * 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/v1beta1/video_intelligence.proto")
-public final class VideoIntelligenceServiceGrpc {
-
- private VideoIntelligenceServiceGrpc() {}
-
- public static final String SERVICE_NAME =
- "google.cloud.videointelligence.v1beta1.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.v1beta1.AnnotateVideoRequest,
- com.google.longrunning.Operation>
- METHOD_ANNOTATE_VIDEO = getAnnotateVideoMethodHelper();
-
- private static volatile io.grpc.MethodDescriptor<
- com.google.cloud.videointelligence.v1beta1.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.v1beta1.AnnotateVideoRequest,
- com.google.longrunning.Operation>
- getAnnotateVideoMethod() {
- return getAnnotateVideoMethodHelper();
- }
-
- private static io.grpc.MethodDescriptor<
- com.google.cloud.videointelligence.v1beta1.AnnotateVideoRequest,
- com.google.longrunning.Operation>
- getAnnotateVideoMethodHelper() {
- io.grpc.MethodDescriptor<
- com.google.cloud.videointelligence.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.AnnotateVideoProgress}
- */
-public final class AnnotateVideoProgress extends com.google.protobuf.GeneratedMessageV3
- implements
- // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1beta1.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) != 0)) {
- annotationProgress_ =
- new java.util.ArrayList<
- com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress>();
- mutable_bitField0_ |= 0x00000001;
- }
- annotationProgress_.add(
- input.readMessage(
- com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress.parser(),
- extensionRegistry));
- break;
- }
- default:
- {
- if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
- } finally {
- if (((mutable_bitField0_ & 0x00000001) != 0)) {
- 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.v1beta1.VideoIntelligenceServiceProto
- .internal_static_google_cloud_videointelligence_v1beta1_AnnotateVideoProgress_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.google.cloud.videointelligence.v1beta1.VideoIntelligenceServiceProto
- .internal_static_google_cloud_videointelligence_v1beta1_AnnotateVideoProgress_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.google.cloud.videointelligence.v1beta1.AnnotateVideoProgress.class,
- com.google.cloud.videointelligence.v1beta1.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.v1beta1.VideoAnnotationProgress annotation_progress = 1;
- *
- */
- public java.util.List
- * Progress metadata for all videos specified in `AnnotateVideoRequest`.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoAnnotationProgress annotation_progress = 1;
- *
- */
- public java.util.List<
- ? extends com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgressOrBuilder>
- getAnnotationProgressOrBuilderList() {
- return annotationProgress_;
- }
- /**
- *
- *
- *
- * Progress metadata for all videos specified in `AnnotateVideoRequest`.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoAnnotationProgress annotation_progress = 1;
- *
- */
- public int getAnnotationProgressCount() {
- return annotationProgress_.size();
- }
- /**
- *
- *
- *
- * Progress metadata for all videos specified in `AnnotateVideoRequest`.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoAnnotationProgress annotation_progress = 1;
- *
- */
- public com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress getAnnotationProgress(
- int index) {
- return annotationProgress_.get(index);
- }
- /**
- *
- *
- *
- * Progress metadata for all videos specified in `AnnotateVideoRequest`.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoAnnotationProgress annotation_progress = 1;
- *
- */
- public com.google.cloud.videointelligence.v1beta1.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.v1beta1.AnnotateVideoProgress)) {
- return super.equals(obj);
- }
- com.google.cloud.videointelligence.v1beta1.AnnotateVideoProgress other =
- (com.google.cloud.videointelligence.v1beta1.AnnotateVideoProgress) obj;
-
- if (!getAnnotationProgressList().equals(other.getAnnotationProgressList())) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (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.v1beta1.AnnotateVideoProgress parseFrom(
- java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.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.v1beta1.AnnotateVideoProgress parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.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.v1beta1.AnnotateVideoProgress parseFrom(
- byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.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.v1beta1.AnnotateVideoProgress parseFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.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.v1beta1.AnnotateVideoProgress parseDelimitedFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.AnnotateVideoProgress}
- */
- public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
- * Progress metadata for all videos specified in `AnnotateVideoRequest`.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoAnnotationProgress annotation_progress = 1;
- *
- */
- public java.util.List
- * Progress metadata for all videos specified in `AnnotateVideoRequest`.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.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.v1beta1.VideoAnnotationProgress annotation_progress = 1;
- *
- */
- public com.google.cloud.videointelligence.v1beta1.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.v1beta1.VideoAnnotationProgress annotation_progress = 1;
- *
- */
- public Builder setAnnotationProgress(
- int index, com.google.cloud.videointelligence.v1beta1.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.v1beta1.VideoAnnotationProgress annotation_progress = 1;
- *
- */
- public Builder setAnnotationProgress(
- int index,
- com.google.cloud.videointelligence.v1beta1.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.v1beta1.VideoAnnotationProgress annotation_progress = 1;
- *
- */
- public Builder addAnnotationProgress(
- com.google.cloud.videointelligence.v1beta1.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.v1beta1.VideoAnnotationProgress annotation_progress = 1;
- *
- */
- public Builder addAnnotationProgress(
- int index, com.google.cloud.videointelligence.v1beta1.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.v1beta1.VideoAnnotationProgress annotation_progress = 1;
- *
- */
- public Builder addAnnotationProgress(
- com.google.cloud.videointelligence.v1beta1.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.v1beta1.VideoAnnotationProgress annotation_progress = 1;
- *
- */
- public Builder addAnnotationProgress(
- int index,
- com.google.cloud.videointelligence.v1beta1.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.v1beta1.VideoAnnotationProgress annotation_progress = 1;
- *
- */
- public Builder addAllAnnotationProgress(
- java.lang.Iterable<
- ? extends com.google.cloud.videointelligence.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.VideoAnnotationProgress annotation_progress = 1;
- *
- */
- public com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress.Builder
- getAnnotationProgressBuilder(int index) {
- return getAnnotationProgressFieldBuilder().getBuilder(index);
- }
- /**
- *
- *
- *
- * Progress metadata for all videos specified in `AnnotateVideoRequest`.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoAnnotationProgress annotation_progress = 1;
- *
- */
- public com.google.cloud.videointelligence.v1beta1.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.v1beta1.VideoAnnotationProgress annotation_progress = 1;
- *
- */
- public java.util.List<
- ? extends com.google.cloud.videointelligence.v1beta1.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.v1beta1.VideoAnnotationProgress annotation_progress = 1;
- *
- */
- public com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress.Builder
- addAnnotationProgressBuilder() {
- return getAnnotationProgressFieldBuilder()
- .addBuilder(
- com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress
- .getDefaultInstance());
- }
- /**
- *
- *
- *
- * Progress metadata for all videos specified in `AnnotateVideoRequest`.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoAnnotationProgress annotation_progress = 1;
- *
- */
- public com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress.Builder
- addAnnotationProgressBuilder(int index) {
- return getAnnotationProgressFieldBuilder()
- .addBuilder(
- index,
- com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress
- .getDefaultInstance());
- }
- /**
- *
- *
- *
- * Progress metadata for all videos specified in `AnnotateVideoRequest`.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoAnnotationProgress annotation_progress = 1;
- *
- */
- public java.util.List<
- com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress.Builder>
- getAnnotationProgressBuilderList() {
- return getAnnotationProgressFieldBuilder().getBuilderList();
- }
-
- private com.google.protobuf.RepeatedFieldBuilderV3<
- com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress,
- com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress.Builder,
- com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgressOrBuilder>
- getAnnotationProgressFieldBuilder() {
- if (annotationProgressBuilder_ == null) {
- annotationProgressBuilder_ =
- new com.google.protobuf.RepeatedFieldBuilderV3<
- com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress,
- com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress.Builder,
- com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgressOrBuilder>(
- annotationProgress_,
- ((bitField0_ & 0x00000001) != 0),
- getParentForChildren(),
- isClean());
- annotationProgress_ = null;
- }
- return annotationProgressBuilder_;
- }
-
- @java.lang.Override
- public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
- // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1beta1.AnnotateVideoProgress)
- }
-
- // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta1.AnnotateVideoProgress)
- private static final com.google.cloud.videointelligence.v1beta1.AnnotateVideoProgress
- DEFAULT_INSTANCE;
-
- static {
- DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1beta1.AnnotateVideoProgress();
- }
-
- public static com.google.cloud.videointelligence.v1beta1.AnnotateVideoProgress
- getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser
- * Progress metadata for all videos specified in `AnnotateVideoRequest`.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoAnnotationProgress annotation_progress = 1;
- *
- */
- java.util.List
- * Progress metadata for all videos specified in `AnnotateVideoRequest`.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoAnnotationProgress annotation_progress = 1;
- *
- */
- com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress getAnnotationProgress(
- int index);
- /**
- *
- *
- *
- * Progress metadata for all videos specified in `AnnotateVideoRequest`.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoAnnotationProgress annotation_progress = 1;
- *
- */
- int getAnnotationProgressCount();
- /**
- *
- *
- *
- * Progress metadata for all videos specified in `AnnotateVideoRequest`.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoAnnotationProgress annotation_progress = 1;
- *
- */
- java.util.List<
- ? extends com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgressOrBuilder>
- getAnnotationProgressOrBuilderList();
- /**
- *
- *
- *
- * Progress metadata for all videos specified in `AnnotateVideoRequest`.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoAnnotationProgress annotation_progress = 1;
- *
- */
- com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgressOrBuilder
- getAnnotationProgressOrBuilder(int index);
-}
diff --git a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/AnnotateVideoRequest.java b/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/AnnotateVideoRequest.java
deleted file mode 100644
index b90cde3eb..000000000
--- a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/AnnotateVideoRequest.java
+++ /dev/null
@@ -1,1827 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/cloud/videointelligence/v1beta1/video_intelligence.proto
-
-package com.google.cloud.videointelligence.v1beta1;
-
-/**
- *
- *
- *
- * Video annotation request.
- *
- *
- * Protobuf type {@code google.cloud.videointelligence.v1beta1.AnnotateVideoRequest}
- */
-public final class AnnotateVideoRequest extends com.google.protobuf.GeneratedMessageV3
- implements
- // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1beta1.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_ = "";
- 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) != 0)) {
- 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 volatile java.lang.Object inputContent_;
- /**
- *
- *
- *
- * The video data bytes. Encoding: base64. If unset, the input video(s)
- * should be specified via `input_uri`. If set, `input_uri` should be unset.
- *
- *
- * string input_content = 6;
- */
- public java.lang.String getInputContent() {
- java.lang.Object ref = inputContent_;
- 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();
- inputContent_ = s;
- return s;
- }
- }
- /**
- *
- *
- *
- * The video data bytes. Encoding: base64. If unset, the input video(s)
- * should be specified via `input_uri`. If set, `input_uri` should be unset.
- *
- *
- * string input_content = 6;
- */
- public com.google.protobuf.ByteString getInputContentBytes() {
- java.lang.Object ref = inputContent_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- inputContent_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int FEATURES_FIELD_NUMBER = 2;
- private java.util.List
- * Requested video annotation features.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.Feature features = 2;
- */
- public java.util.List
- * Requested video annotation features.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.Feature features = 2;
- */
- public int getFeaturesCount() {
- return features_.size();
- }
- /**
- *
- *
- *
- * Requested video annotation features.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.Feature features = 2;
- */
- public com.google.cloud.videointelligence.v1beta1.Feature getFeatures(int index) {
- return features_converter_.convert(features_.get(index));
- }
- /**
- *
- *
- *
- * Requested video annotation features.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.Feature features = 2;
- */
- public java.util.List
- * Requested video annotation features.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.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.v1beta1.VideoContext videoContext_;
- /**
- *
- *
- *
- * Additional video context and/or feature-specific parameters.
- *
- *
- * .google.cloud.videointelligence.v1beta1.VideoContext video_context = 3;
- */
- public boolean hasVideoContext() {
- return videoContext_ != null;
- }
- /**
- *
- *
- *
- * Additional video context and/or feature-specific parameters.
- *
- *
- * .google.cloud.videointelligence.v1beta1.VideoContext video_context = 3;
- */
- public com.google.cloud.videointelligence.v1beta1.VideoContext getVideoContext() {
- return videoContext_ == null
- ? com.google.cloud.videointelligence.v1beta1.VideoContext.getDefaultInstance()
- : videoContext_;
- }
- /**
- *
- *
- *
- * Additional video context and/or feature-specific parameters.
- *
- *
- * .google.cloud.videointelligence.v1beta1.VideoContext video_context = 3;
- */
- public com.google.cloud.videointelligence.v1beta1.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 (!getInputContentBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 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 (!getInputContentBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(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.v1beta1.AnnotateVideoRequest)) {
- return super.equals(obj);
- }
- com.google.cloud.videointelligence.v1beta1.AnnotateVideoRequest other =
- (com.google.cloud.videointelligence.v1beta1.AnnotateVideoRequest) obj;
-
- if (!getInputUri().equals(other.getInputUri())) return false;
- if (!getInputContent().equals(other.getInputContent())) return false;
- if (!features_.equals(other.features_)) return false;
- if (hasVideoContext() != other.hasVideoContext()) return false;
- if (hasVideoContext()) {
- if (!getVideoContext().equals(other.getVideoContext())) return false;
- }
- if (!getOutputUri().equals(other.getOutputUri())) return false;
- if (!getLocationId().equals(other.getLocationId())) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (37 * hash) + 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.v1beta1.AnnotateVideoRequest parseFrom(
- java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.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.v1beta1.AnnotateVideoRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.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.v1beta1.AnnotateVideoRequest parseFrom(
- byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.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.v1beta1.AnnotateVideoRequest parseFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.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.v1beta1.AnnotateVideoRequest parseDelimitedFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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 java.lang.Object inputContent_ = "";
- /**
- *
- *
- *
- * The video data bytes. Encoding: base64. If unset, the input video(s)
- * should be specified via `input_uri`. If set, `input_uri` should be unset.
- *
- *
- * string input_content = 6;
- */
- public java.lang.String getInputContent() {
- java.lang.Object ref = inputContent_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- inputContent_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- *
- *
- *
- * The video data bytes. Encoding: base64. If unset, the input video(s)
- * should be specified via `input_uri`. If set, `input_uri` should be unset.
- *
- *
- * string input_content = 6;
- */
- public com.google.protobuf.ByteString getInputContentBytes() {
- java.lang.Object ref = inputContent_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- inputContent_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- *
- *
- *
- * The video data bytes. Encoding: base64. If unset, the input video(s)
- * should be specified via `input_uri`. If set, `input_uri` should be unset.
- *
- *
- * string input_content = 6;
- */
- public Builder setInputContent(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- inputContent_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * The video data bytes. Encoding: base64. If unset, the input video(s)
- * should be specified via `input_uri`. If set, `input_uri` should be unset.
- *
- *
- * string input_content = 6;
- */
- public Builder clearInputContent() {
-
- inputContent_ = getDefaultInstance().getInputContent();
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * The video data bytes. Encoding: base64. If unset, the input video(s)
- * should be specified via `input_uri`. If set, `input_uri` should be unset.
- *
- *
- * string input_content = 6;
- */
- public Builder setInputContentBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- inputContent_ = value;
- onChanged();
- return this;
- }
-
- private java.util.List
- * Requested video annotation features.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.Feature features = 2;
- */
- public java.util.List
- * Requested video annotation features.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.Feature features = 2;
- */
- public int getFeaturesCount() {
- return features_.size();
- }
- /**
- *
- *
- *
- * Requested video annotation features.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.Feature features = 2;
- */
- public com.google.cloud.videointelligence.v1beta1.Feature getFeatures(int index) {
- return features_converter_.convert(features_.get(index));
- }
- /**
- *
- *
- *
- * Requested video annotation features.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.Feature features = 2;
- */
- public Builder setFeatures(
- int index, com.google.cloud.videointelligence.v1beta1.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.v1beta1.Feature features = 2;
- */
- public Builder addFeatures(com.google.cloud.videointelligence.v1beta1.Feature value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureFeaturesIsMutable();
- features_.add(value.getNumber());
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Requested video annotation features.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.Feature features = 2;
- */
- public Builder addAllFeatures(
- java.lang.Iterable extends com.google.cloud.videointelligence.v1beta1.Feature> values) {
- ensureFeaturesIsMutable();
- for (com.google.cloud.videointelligence.v1beta1.Feature value : values) {
- features_.add(value.getNumber());
- }
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Requested video annotation features.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.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.v1beta1.Feature features = 2;
- */
- public java.util.List
- * Requested video annotation features.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.Feature features = 2;
- */
- public int getFeaturesValue(int index) {
- return features_.get(index);
- }
- /**
- *
- *
- *
- * Requested video annotation features.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.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.v1beta1.Feature features = 2;
- */
- public Builder addFeaturesValue(int value) {
- ensureFeaturesIsMutable();
- features_.add(value);
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Requested video annotation features.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.Feature features = 2;
- */
- public Builder addAllFeaturesValue(java.lang.Iterable
- * Additional video context and/or feature-specific parameters.
- *
- *
- * .google.cloud.videointelligence.v1beta1.VideoContext video_context = 3;
- */
- public boolean hasVideoContext() {
- return videoContextBuilder_ != null || videoContext_ != null;
- }
- /**
- *
- *
- *
- * Additional video context and/or feature-specific parameters.
- *
- *
- * .google.cloud.videointelligence.v1beta1.VideoContext video_context = 3;
- */
- public com.google.cloud.videointelligence.v1beta1.VideoContext getVideoContext() {
- if (videoContextBuilder_ == null) {
- return videoContext_ == null
- ? com.google.cloud.videointelligence.v1beta1.VideoContext.getDefaultInstance()
- : videoContext_;
- } else {
- return videoContextBuilder_.getMessage();
- }
- }
- /**
- *
- *
- *
- * Additional video context and/or feature-specific parameters.
- *
- *
- * .google.cloud.videointelligence.v1beta1.VideoContext video_context = 3;
- */
- public Builder setVideoContext(com.google.cloud.videointelligence.v1beta1.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.v1beta1.VideoContext video_context = 3;
- */
- public Builder setVideoContext(
- com.google.cloud.videointelligence.v1beta1.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.v1beta1.VideoContext video_context = 3;
- */
- public Builder mergeVideoContext(
- com.google.cloud.videointelligence.v1beta1.VideoContext value) {
- if (videoContextBuilder_ == null) {
- if (videoContext_ != null) {
- videoContext_ =
- com.google.cloud.videointelligence.v1beta1.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.v1beta1.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.v1beta1.VideoContext video_context = 3;
- */
- public com.google.cloud.videointelligence.v1beta1.VideoContext.Builder
- getVideoContextBuilder() {
-
- onChanged();
- return getVideoContextFieldBuilder().getBuilder();
- }
- /**
- *
- *
- *
- * Additional video context and/or feature-specific parameters.
- *
- *
- * .google.cloud.videointelligence.v1beta1.VideoContext video_context = 3;
- */
- public com.google.cloud.videointelligence.v1beta1.VideoContextOrBuilder
- getVideoContextOrBuilder() {
- if (videoContextBuilder_ != null) {
- return videoContextBuilder_.getMessageOrBuilder();
- } else {
- return videoContext_ == null
- ? com.google.cloud.videointelligence.v1beta1.VideoContext.getDefaultInstance()
- : videoContext_;
- }
- }
- /**
- *
- *
- *
- * Additional video context and/or feature-specific parameters.
- *
- *
- * .google.cloud.videointelligence.v1beta1.VideoContext video_context = 3;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.videointelligence.v1beta1.VideoContext,
- com.google.cloud.videointelligence.v1beta1.VideoContext.Builder,
- com.google.cloud.videointelligence.v1beta1.VideoContextOrBuilder>
- getVideoContextFieldBuilder() {
- if (videoContextBuilder_ == null) {
- videoContextBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.videointelligence.v1beta1.VideoContext,
- com.google.cloud.videointelligence.v1beta1.VideoContext.Builder,
- com.google.cloud.videointelligence.v1beta1.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.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
- // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1beta1.AnnotateVideoRequest)
- }
-
- // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta1.AnnotateVideoRequest)
- private static final com.google.cloud.videointelligence.v1beta1.AnnotateVideoRequest
- DEFAULT_INSTANCE;
-
- static {
- DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1beta1.AnnotateVideoRequest();
- }
-
- public static com.google.cloud.videointelligence.v1beta1.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. Encoding: base64. If unset, the input video(s)
- * should be specified via `input_uri`. If set, `input_uri` should be unset.
- *
- *
- * string input_content = 6;
- */
- java.lang.String getInputContent();
- /**
- *
- *
- *
- * The video data bytes. Encoding: base64. If unset, the input video(s)
- * should be specified via `input_uri`. If set, `input_uri` should be unset.
- *
- *
- * string input_content = 6;
- */
- com.google.protobuf.ByteString getInputContentBytes();
-
- /**
- *
- *
- *
- * Requested video annotation features.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.Feature features = 2;
- */
- java.util.List
- * Requested video annotation features.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.Feature features = 2;
- */
- int getFeaturesCount();
- /**
- *
- *
- *
- * Requested video annotation features.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.Feature features = 2;
- */
- com.google.cloud.videointelligence.v1beta1.Feature getFeatures(int index);
- /**
- *
- *
- *
- * Requested video annotation features.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.Feature features = 2;
- */
- java.util.List
- * Requested video annotation features.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.Feature features = 2;
- */
- int getFeaturesValue(int index);
-
- /**
- *
- *
- *
- * Additional video context and/or feature-specific parameters.
- *
- *
- * .google.cloud.videointelligence.v1beta1.VideoContext video_context = 3;
- */
- boolean hasVideoContext();
- /**
- *
- *
- *
- * Additional video context and/or feature-specific parameters.
- *
- *
- * .google.cloud.videointelligence.v1beta1.VideoContext video_context = 3;
- */
- com.google.cloud.videointelligence.v1beta1.VideoContext getVideoContext();
- /**
- *
- *
- *
- * Additional video context and/or feature-specific parameters.
- *
- *
- * .google.cloud.videointelligence.v1beta1.VideoContext video_context = 3;
- */
- com.google.cloud.videointelligence.v1beta1.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/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/AnnotateVideoResponse.java b/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/AnnotateVideoResponse.java
deleted file mode 100644
index d27de5ef5..000000000
--- a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/AnnotateVideoResponse.java
+++ /dev/null
@@ -1,1016 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/cloud/videointelligence/v1beta1/video_intelligence.proto
-
-package com.google.cloud.videointelligence.v1beta1;
-
-/**
- *
- *
- *
- * 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.v1beta1.AnnotateVideoResponse}
- */
-public final class AnnotateVideoResponse extends com.google.protobuf.GeneratedMessageV3
- implements
- // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1beta1.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) != 0)) {
- annotationResults_ =
- new java.util.ArrayList<
- com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults>();
- mutable_bitField0_ |= 0x00000001;
- }
- annotationResults_.add(
- input.readMessage(
- com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults.parser(),
- extensionRegistry));
- break;
- }
- default:
- {
- if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
- } finally {
- if (((mutable_bitField0_ & 0x00000001) != 0)) {
- 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.v1beta1.VideoIntelligenceServiceProto
- .internal_static_google_cloud_videointelligence_v1beta1_AnnotateVideoResponse_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.google.cloud.videointelligence.v1beta1.VideoIntelligenceServiceProto
- .internal_static_google_cloud_videointelligence_v1beta1_AnnotateVideoResponse_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.google.cloud.videointelligence.v1beta1.AnnotateVideoResponse.class,
- com.google.cloud.videointelligence.v1beta1.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.v1beta1.VideoAnnotationResults annotation_results = 1;
- *
- */
- public java.util.List
- * Annotation results for all videos specified in `AnnotateVideoRequest`.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoAnnotationResults annotation_results = 1;
- *
- */
- public java.util.List<
- ? extends com.google.cloud.videointelligence.v1beta1.VideoAnnotationResultsOrBuilder>
- getAnnotationResultsOrBuilderList() {
- return annotationResults_;
- }
- /**
- *
- *
- *
- * Annotation results for all videos specified in `AnnotateVideoRequest`.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoAnnotationResults annotation_results = 1;
- *
- */
- public int getAnnotationResultsCount() {
- return annotationResults_.size();
- }
- /**
- *
- *
- *
- * Annotation results for all videos specified in `AnnotateVideoRequest`.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoAnnotationResults annotation_results = 1;
- *
- */
- public com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults getAnnotationResults(
- int index) {
- return annotationResults_.get(index);
- }
- /**
- *
- *
- *
- * Annotation results for all videos specified in `AnnotateVideoRequest`.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoAnnotationResults annotation_results = 1;
- *
- */
- public com.google.cloud.videointelligence.v1beta1.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.v1beta1.AnnotateVideoResponse)) {
- return super.equals(obj);
- }
- com.google.cloud.videointelligence.v1beta1.AnnotateVideoResponse other =
- (com.google.cloud.videointelligence.v1beta1.AnnotateVideoResponse) obj;
-
- if (!getAnnotationResultsList().equals(other.getAnnotationResultsList())) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (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.v1beta1.AnnotateVideoResponse parseFrom(
- java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.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.v1beta1.AnnotateVideoResponse parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.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.v1beta1.AnnotateVideoResponse parseFrom(
- byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.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.v1beta1.AnnotateVideoResponse parseFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.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.v1beta1.AnnotateVideoResponse parseDelimitedFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.AnnotateVideoResponse}
- */
- public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
- * Annotation results for all videos specified in `AnnotateVideoRequest`.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoAnnotationResults annotation_results = 1;
- *
- */
- public java.util.List
- * Annotation results for all videos specified in `AnnotateVideoRequest`.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.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.v1beta1.VideoAnnotationResults annotation_results = 1;
- *
- */
- public com.google.cloud.videointelligence.v1beta1.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.v1beta1.VideoAnnotationResults annotation_results = 1;
- *
- */
- public Builder setAnnotationResults(
- int index, com.google.cloud.videointelligence.v1beta1.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.v1beta1.VideoAnnotationResults annotation_results = 1;
- *
- */
- public Builder setAnnotationResults(
- int index,
- com.google.cloud.videointelligence.v1beta1.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.v1beta1.VideoAnnotationResults annotation_results = 1;
- *
- */
- public Builder addAnnotationResults(
- com.google.cloud.videointelligence.v1beta1.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.v1beta1.VideoAnnotationResults annotation_results = 1;
- *
- */
- public Builder addAnnotationResults(
- int index, com.google.cloud.videointelligence.v1beta1.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.v1beta1.VideoAnnotationResults annotation_results = 1;
- *
- */
- public Builder addAnnotationResults(
- com.google.cloud.videointelligence.v1beta1.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.v1beta1.VideoAnnotationResults annotation_results = 1;
- *
- */
- public Builder addAnnotationResults(
- int index,
- com.google.cloud.videointelligence.v1beta1.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.v1beta1.VideoAnnotationResults annotation_results = 1;
- *
- */
- public Builder addAllAnnotationResults(
- java.lang.Iterable<
- ? extends com.google.cloud.videointelligence.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.VideoAnnotationResults annotation_results = 1;
- *
- */
- public com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults.Builder
- getAnnotationResultsBuilder(int index) {
- return getAnnotationResultsFieldBuilder().getBuilder(index);
- }
- /**
- *
- *
- *
- * Annotation results for all videos specified in `AnnotateVideoRequest`.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoAnnotationResults annotation_results = 1;
- *
- */
- public com.google.cloud.videointelligence.v1beta1.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.v1beta1.VideoAnnotationResults annotation_results = 1;
- *
- */
- public java.util.List<
- ? extends com.google.cloud.videointelligence.v1beta1.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.v1beta1.VideoAnnotationResults annotation_results = 1;
- *
- */
- public com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults.Builder
- addAnnotationResultsBuilder() {
- return getAnnotationResultsFieldBuilder()
- .addBuilder(
- com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults
- .getDefaultInstance());
- }
- /**
- *
- *
- *
- * Annotation results for all videos specified in `AnnotateVideoRequest`.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoAnnotationResults annotation_results = 1;
- *
- */
- public com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults.Builder
- addAnnotationResultsBuilder(int index) {
- return getAnnotationResultsFieldBuilder()
- .addBuilder(
- index,
- com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults
- .getDefaultInstance());
- }
- /**
- *
- *
- *
- * Annotation results for all videos specified in `AnnotateVideoRequest`.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoAnnotationResults annotation_results = 1;
- *
- */
- public java.util.List
- * Annotation results for all videos specified in `AnnotateVideoRequest`.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoAnnotationResults annotation_results = 1;
- *
- */
- java.util.List
- * Annotation results for all videos specified in `AnnotateVideoRequest`.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoAnnotationResults annotation_results = 1;
- *
- */
- com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults getAnnotationResults(int index);
- /**
- *
- *
- *
- * Annotation results for all videos specified in `AnnotateVideoRequest`.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoAnnotationResults annotation_results = 1;
- *
- */
- int getAnnotationResultsCount();
- /**
- *
- *
- *
- * Annotation results for all videos specified in `AnnotateVideoRequest`.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoAnnotationResults annotation_results = 1;
- *
- */
- java.util.List<
- ? extends com.google.cloud.videointelligence.v1beta1.VideoAnnotationResultsOrBuilder>
- getAnnotationResultsOrBuilderList();
- /**
- *
- *
- *
- * Annotation results for all videos specified in `AnnotateVideoRequest`.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoAnnotationResults annotation_results = 1;
- *
- */
- com.google.cloud.videointelligence.v1beta1.VideoAnnotationResultsOrBuilder
- getAnnotationResultsOrBuilder(int index);
-}
diff --git a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/BoundingBox.java b/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/BoundingBox.java
deleted file mode 100644
index 8c9250c5d..000000000
--- a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/BoundingBox.java
+++ /dev/null
@@ -1,753 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/cloud/videointelligence/v1beta1/video_intelligence.proto
-
-package com.google.cloud.videointelligence.v1beta1;
-
-/**
- *
- *
- *
- * Bounding box.
- *
- *
- * Protobuf type {@code google.cloud.videointelligence.v1beta1.BoundingBox}
- */
-public final class BoundingBox extends com.google.protobuf.GeneratedMessageV3
- implements
- // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1beta1.BoundingBox)
- BoundingBoxOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use BoundingBox.newBuilder() to construct.
- private BoundingBox(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
-
- private BoundingBox() {}
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
- private BoundingBox(
- 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:
- {
- left_ = input.readInt32();
- break;
- }
- case 16:
- {
- right_ = input.readInt32();
- break;
- }
- case 24:
- {
- bottom_ = input.readInt32();
- break;
- }
- case 32:
- {
- top_ = input.readInt32();
- break;
- }
- default:
- {
- if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.videointelligence.v1beta1.VideoIntelligenceServiceProto
- .internal_static_google_cloud_videointelligence_v1beta1_BoundingBox_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.google.cloud.videointelligence.v1beta1.VideoIntelligenceServiceProto
- .internal_static_google_cloud_videointelligence_v1beta1_BoundingBox_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.google.cloud.videointelligence.v1beta1.BoundingBox.class,
- com.google.cloud.videointelligence.v1beta1.BoundingBox.Builder.class);
- }
-
- public static final int LEFT_FIELD_NUMBER = 1;
- private int left_;
- /**
- *
- *
- *
- * Left X coordinate.
- *
- *
- * int32 left = 1;
- */
- public int getLeft() {
- return left_;
- }
-
- public static final int RIGHT_FIELD_NUMBER = 2;
- private int right_;
- /**
- *
- *
- *
- * Right X coordinate.
- *
- *
- * int32 right = 2;
- */
- public int getRight() {
- return right_;
- }
-
- public static final int BOTTOM_FIELD_NUMBER = 3;
- private int bottom_;
- /**
- *
- *
- *
- * Bottom Y coordinate.
- *
- *
- * int32 bottom = 3;
- */
- public int getBottom() {
- return bottom_;
- }
-
- public static final int TOP_FIELD_NUMBER = 4;
- private int top_;
- /**
- *
- *
- *
- * Top Y coordinate.
- *
- *
- * int32 top = 4;
- */
- public int getTop() {
- return top_;
- }
-
- 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_ != 0) {
- output.writeInt32(1, left_);
- }
- if (right_ != 0) {
- output.writeInt32(2, right_);
- }
- if (bottom_ != 0) {
- output.writeInt32(3, bottom_);
- }
- if (top_ != 0) {
- output.writeInt32(4, top_);
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (left_ != 0) {
- size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, left_);
- }
- if (right_ != 0) {
- size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, right_);
- }
- if (bottom_ != 0) {
- size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, bottom_);
- }
- if (top_ != 0) {
- size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, top_);
- }
- 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.v1beta1.BoundingBox)) {
- return super.equals(obj);
- }
- com.google.cloud.videointelligence.v1beta1.BoundingBox other =
- (com.google.cloud.videointelligence.v1beta1.BoundingBox) obj;
-
- if (getLeft() != other.getLeft()) return false;
- if (getRight() != other.getRight()) return false;
- if (getBottom() != other.getBottom()) return false;
- if (getTop() != other.getTop()) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (37 * hash) + LEFT_FIELD_NUMBER;
- hash = (53 * hash) + getLeft();
- hash = (37 * hash) + RIGHT_FIELD_NUMBER;
- hash = (53 * hash) + getRight();
- hash = (37 * hash) + BOTTOM_FIELD_NUMBER;
- hash = (53 * hash) + getBottom();
- hash = (37 * hash) + TOP_FIELD_NUMBER;
- hash = (53 * hash) + getTop();
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.cloud.videointelligence.v1beta1.BoundingBox parseFrom(
- java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.BoundingBox 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.v1beta1.BoundingBox parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.BoundingBox 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.v1beta1.BoundingBox parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.BoundingBox parseFrom(
- byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.BoundingBox parseFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.BoundingBox 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.v1beta1.BoundingBox parseDelimitedFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.BoundingBox 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.v1beta1.BoundingBox parseFrom(
- com.google.protobuf.CodedInputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.BoundingBox 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.v1beta1.BoundingBox 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;
- }
- /**
- *
- *
- *
- * Bounding box.
- *
- *
- * Protobuf type {@code google.cloud.videointelligence.v1beta1.BoundingBox}
- */
- public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
- * Left X coordinate.
- *
- *
- * int32 left = 1;
- */
- public int getLeft() {
- return left_;
- }
- /**
- *
- *
- *
- * Left X coordinate.
- *
- *
- * int32 left = 1;
- */
- public Builder setLeft(int value) {
-
- left_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Left X coordinate.
- *
- *
- * int32 left = 1;
- */
- public Builder clearLeft() {
-
- left_ = 0;
- onChanged();
- return this;
- }
-
- private int right_;
- /**
- *
- *
- *
- * Right X coordinate.
- *
- *
- * int32 right = 2;
- */
- public int getRight() {
- return right_;
- }
- /**
- *
- *
- *
- * Right X coordinate.
- *
- *
- * int32 right = 2;
- */
- public Builder setRight(int value) {
-
- right_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Right X coordinate.
- *
- *
- * int32 right = 2;
- */
- public Builder clearRight() {
-
- right_ = 0;
- onChanged();
- return this;
- }
-
- private int bottom_;
- /**
- *
- *
- *
- * Bottom Y coordinate.
- *
- *
- * int32 bottom = 3;
- */
- public int getBottom() {
- return bottom_;
- }
- /**
- *
- *
- *
- * Bottom Y coordinate.
- *
- *
- * int32 bottom = 3;
- */
- public Builder setBottom(int value) {
-
- bottom_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Bottom Y coordinate.
- *
- *
- * int32 bottom = 3;
- */
- public Builder clearBottom() {
-
- bottom_ = 0;
- onChanged();
- return this;
- }
-
- private int top_;
- /**
- *
- *
- *
- * Top Y coordinate.
- *
- *
- * int32 top = 4;
- */
- public int getTop() {
- return top_;
- }
- /**
- *
- *
- *
- * Top Y coordinate.
- *
- *
- * int32 top = 4;
- */
- public Builder setTop(int value) {
-
- top_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Top Y coordinate.
- *
- *
- * int32 top = 4;
- */
- public Builder clearTop() {
-
- top_ = 0;
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
- // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1beta1.BoundingBox)
- }
-
- // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta1.BoundingBox)
- private static final com.google.cloud.videointelligence.v1beta1.BoundingBox DEFAULT_INSTANCE;
-
- static {
- DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1beta1.BoundingBox();
- }
-
- public static com.google.cloud.videointelligence.v1beta1.BoundingBox getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser
- * Left X coordinate.
- *
- *
- * int32 left = 1;
- */
- int getLeft();
-
- /**
- *
- *
- *
- * Right X coordinate.
- *
- *
- * int32 right = 2;
- */
- int getRight();
-
- /**
- *
- *
- *
- * Bottom Y coordinate.
- *
- *
- * int32 bottom = 3;
- */
- int getBottom();
-
- /**
- *
- *
- *
- * Top Y coordinate.
- *
- *
- * int32 top = 4;
- */
- int getTop();
-}
diff --git a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/FaceAnnotation.java b/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/FaceAnnotation.java
deleted file mode 100644
index 8f11b2256..000000000
--- a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/FaceAnnotation.java
+++ /dev/null
@@ -1,1653 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/cloud/videointelligence/v1beta1/video_intelligence.proto
-
-package com.google.cloud.videointelligence.v1beta1;
-
-/**
- *
- *
- *
- * Face annotation.
- *
- *
- * Protobuf type {@code google.cloud.videointelligence.v1beta1.FaceAnnotation}
- */
-public final class FaceAnnotation extends com.google.protobuf.GeneratedMessageV3
- implements
- // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1beta1.FaceAnnotation)
- FaceAnnotationOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use FaceAnnotation.newBuilder() to construct.
- private FaceAnnotation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
-
- private FaceAnnotation() {
- thumbnail_ = "";
- segments_ = java.util.Collections.emptyList();
- locations_ = java.util.Collections.emptyList();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
- private FaceAnnotation(
- 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();
-
- thumbnail_ = s;
- break;
- }
- case 18:
- {
- if (!((mutable_bitField0_ & 0x00000002) != 0)) {
- segments_ =
- new java.util.ArrayList<
- com.google.cloud.videointelligence.v1beta1.VideoSegment>();
- mutable_bitField0_ |= 0x00000002;
- }
- segments_.add(
- input.readMessage(
- com.google.cloud.videointelligence.v1beta1.VideoSegment.parser(),
- extensionRegistry));
- break;
- }
- case 26:
- {
- if (!((mutable_bitField0_ & 0x00000004) != 0)) {
- locations_ =
- new java.util.ArrayList<
- com.google.cloud.videointelligence.v1beta1.FaceLocation>();
- mutable_bitField0_ |= 0x00000004;
- }
- locations_.add(
- input.readMessage(
- com.google.cloud.videointelligence.v1beta1.FaceLocation.parser(),
- extensionRegistry));
- break;
- }
- default:
- {
- if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
- } finally {
- if (((mutable_bitField0_ & 0x00000002) != 0)) {
- segments_ = java.util.Collections.unmodifiableList(segments_);
- }
- if (((mutable_bitField0_ & 0x00000004) != 0)) {
- locations_ = java.util.Collections.unmodifiableList(locations_);
- }
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.videointelligence.v1beta1.VideoIntelligenceServiceProto
- .internal_static_google_cloud_videointelligence_v1beta1_FaceAnnotation_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.google.cloud.videointelligence.v1beta1.VideoIntelligenceServiceProto
- .internal_static_google_cloud_videointelligence_v1beta1_FaceAnnotation_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.google.cloud.videointelligence.v1beta1.FaceAnnotation.class,
- com.google.cloud.videointelligence.v1beta1.FaceAnnotation.Builder.class);
- }
-
- private int bitField0_;
- public static final int THUMBNAIL_FIELD_NUMBER = 1;
- private volatile java.lang.Object thumbnail_;
- /**
- *
- *
- *
- * Thumbnail of a representative face view (in JPEG format). Encoding: base64.
- *
- *
- * string thumbnail = 1;
- */
- public java.lang.String getThumbnail() {
- java.lang.Object ref = thumbnail_;
- 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();
- thumbnail_ = s;
- return s;
- }
- }
- /**
- *
- *
- *
- * Thumbnail of a representative face view (in JPEG format). Encoding: base64.
- *
- *
- * string thumbnail = 1;
- */
- public com.google.protobuf.ByteString getThumbnailBytes() {
- java.lang.Object ref = thumbnail_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- thumbnail_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int SEGMENTS_FIELD_NUMBER = 2;
- private java.util.List
- * All locations where a face was detected.
- * Faces are detected and tracked on a per-video basis
- * (as opposed to across multiple videos).
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 2;
- */
- public java.util.List
- * All locations where a face was detected.
- * Faces are detected and tracked on a per-video basis
- * (as opposed to across multiple videos).
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 2;
- */
- public java.util.List extends com.google.cloud.videointelligence.v1beta1.VideoSegmentOrBuilder>
- getSegmentsOrBuilderList() {
- return segments_;
- }
- /**
- *
- *
- *
- * All locations where a face was detected.
- * Faces are detected and tracked on a per-video basis
- * (as opposed to across multiple videos).
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 2;
- */
- public int getSegmentsCount() {
- return segments_.size();
- }
- /**
- *
- *
- *
- * All locations where a face was detected.
- * Faces are detected and tracked on a per-video basis
- * (as opposed to across multiple videos).
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 2;
- */
- public com.google.cloud.videointelligence.v1beta1.VideoSegment getSegments(int index) {
- return segments_.get(index);
- }
- /**
- *
- *
- *
- * All locations where a face was detected.
- * Faces are detected and tracked on a per-video basis
- * (as opposed to across multiple videos).
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 2;
- */
- public com.google.cloud.videointelligence.v1beta1.VideoSegmentOrBuilder getSegmentsOrBuilder(
- int index) {
- return segments_.get(index);
- }
-
- public static final int LOCATIONS_FIELD_NUMBER = 3;
- private java.util.List
- * Face locations at one frame per second.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceLocation locations = 3;
- */
- public java.util.List
- * Face locations at one frame per second.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceLocation locations = 3;
- */
- public java.util.List extends com.google.cloud.videointelligence.v1beta1.FaceLocationOrBuilder>
- getLocationsOrBuilderList() {
- return locations_;
- }
- /**
- *
- *
- *
- * Face locations at one frame per second.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceLocation locations = 3;
- */
- public int getLocationsCount() {
- return locations_.size();
- }
- /**
- *
- *
- *
- * Face locations at one frame per second.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceLocation locations = 3;
- */
- public com.google.cloud.videointelligence.v1beta1.FaceLocation getLocations(int index) {
- return locations_.get(index);
- }
- /**
- *
- *
- *
- * Face locations at one frame per second.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceLocation locations = 3;
- */
- public com.google.cloud.videointelligence.v1beta1.FaceLocationOrBuilder getLocationsOrBuilder(
- int index) {
- return locations_.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 (!getThumbnailBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, thumbnail_);
- }
- for (int i = 0; i < segments_.size(); i++) {
- output.writeMessage(2, segments_.get(i));
- }
- for (int i = 0; i < locations_.size(); i++) {
- output.writeMessage(3, locations_.get(i));
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (!getThumbnailBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, thumbnail_);
- }
- for (int i = 0; i < segments_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, segments_.get(i));
- }
- for (int i = 0; i < locations_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, locations_.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.v1beta1.FaceAnnotation)) {
- return super.equals(obj);
- }
- com.google.cloud.videointelligence.v1beta1.FaceAnnotation other =
- (com.google.cloud.videointelligence.v1beta1.FaceAnnotation) obj;
-
- if (!getThumbnail().equals(other.getThumbnail())) return false;
- if (!getSegmentsList().equals(other.getSegmentsList())) return false;
- if (!getLocationsList().equals(other.getLocationsList())) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (37 * hash) + THUMBNAIL_FIELD_NUMBER;
- hash = (53 * hash) + getThumbnail().hashCode();
- if (getSegmentsCount() > 0) {
- hash = (37 * hash) + SEGMENTS_FIELD_NUMBER;
- hash = (53 * hash) + getSegmentsList().hashCode();
- }
- if (getLocationsCount() > 0) {
- hash = (37 * hash) + LOCATIONS_FIELD_NUMBER;
- hash = (53 * hash) + getLocationsList().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.cloud.videointelligence.v1beta1.FaceAnnotation parseFrom(
- java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.FaceAnnotation 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.v1beta1.FaceAnnotation parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.FaceAnnotation 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.v1beta1.FaceAnnotation parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.FaceAnnotation parseFrom(
- byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.FaceAnnotation parseFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.FaceAnnotation 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.v1beta1.FaceAnnotation parseDelimitedFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.FaceAnnotation 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.v1beta1.FaceAnnotation parseFrom(
- com.google.protobuf.CodedInputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.FaceAnnotation 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.v1beta1.FaceAnnotation 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;
- }
- /**
- *
- *
- *
- * Face annotation.
- *
- *
- * Protobuf type {@code google.cloud.videointelligence.v1beta1.FaceAnnotation}
- */
- public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
- * Thumbnail of a representative face view (in JPEG format). Encoding: base64.
- *
- *
- * string thumbnail = 1;
- */
- public java.lang.String getThumbnail() {
- java.lang.Object ref = thumbnail_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- thumbnail_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- *
- *
- *
- * Thumbnail of a representative face view (in JPEG format). Encoding: base64.
- *
- *
- * string thumbnail = 1;
- */
- public com.google.protobuf.ByteString getThumbnailBytes() {
- java.lang.Object ref = thumbnail_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- thumbnail_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- *
- *
- *
- * Thumbnail of a representative face view (in JPEG format). Encoding: base64.
- *
- *
- * string thumbnail = 1;
- */
- public Builder setThumbnail(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- thumbnail_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Thumbnail of a representative face view (in JPEG format). Encoding: base64.
- *
- *
- * string thumbnail = 1;
- */
- public Builder clearThumbnail() {
-
- thumbnail_ = getDefaultInstance().getThumbnail();
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Thumbnail of a representative face view (in JPEG format). Encoding: base64.
- *
- *
- * string thumbnail = 1;
- */
- public Builder setThumbnailBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- thumbnail_ = value;
- onChanged();
- return this;
- }
-
- private java.util.List
- * All locations where a face was detected.
- * Faces are detected and tracked on a per-video basis
- * (as opposed to across multiple videos).
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 2;
- */
- public java.util.List
- * All locations where a face was detected.
- * Faces are detected and tracked on a per-video basis
- * (as opposed to across multiple videos).
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 2;
- */
- public int getSegmentsCount() {
- if (segmentsBuilder_ == null) {
- return segments_.size();
- } else {
- return segmentsBuilder_.getCount();
- }
- }
- /**
- *
- *
- *
- * All locations where a face was detected.
- * Faces are detected and tracked on a per-video basis
- * (as opposed to across multiple videos).
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 2;
- */
- public com.google.cloud.videointelligence.v1beta1.VideoSegment getSegments(int index) {
- if (segmentsBuilder_ == null) {
- return segments_.get(index);
- } else {
- return segmentsBuilder_.getMessage(index);
- }
- }
- /**
- *
- *
- *
- * All locations where a face was detected.
- * Faces are detected and tracked on a per-video basis
- * (as opposed to across multiple videos).
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 2;
- */
- public Builder setSegments(
- int index, com.google.cloud.videointelligence.v1beta1.VideoSegment value) {
- if (segmentsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureSegmentsIsMutable();
- segments_.set(index, value);
- onChanged();
- } else {
- segmentsBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- *
- *
- *
- * All locations where a face was detected.
- * Faces are detected and tracked on a per-video basis
- * (as opposed to across multiple videos).
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 2;
- */
- public Builder setSegments(
- int index,
- com.google.cloud.videointelligence.v1beta1.VideoSegment.Builder builderForValue) {
- if (segmentsBuilder_ == null) {
- ensureSegmentsIsMutable();
- segments_.set(index, builderForValue.build());
- onChanged();
- } else {
- segmentsBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- *
- *
- *
- * All locations where a face was detected.
- * Faces are detected and tracked on a per-video basis
- * (as opposed to across multiple videos).
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 2;
- */
- public Builder addSegments(com.google.cloud.videointelligence.v1beta1.VideoSegment value) {
- if (segmentsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureSegmentsIsMutable();
- segments_.add(value);
- onChanged();
- } else {
- segmentsBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- *
- *
- *
- * All locations where a face was detected.
- * Faces are detected and tracked on a per-video basis
- * (as opposed to across multiple videos).
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 2;
- */
- public Builder addSegments(
- int index, com.google.cloud.videointelligence.v1beta1.VideoSegment value) {
- if (segmentsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureSegmentsIsMutable();
- segments_.add(index, value);
- onChanged();
- } else {
- segmentsBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- *
- *
- *
- * All locations where a face was detected.
- * Faces are detected and tracked on a per-video basis
- * (as opposed to across multiple videos).
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 2;
- */
- public Builder addSegments(
- com.google.cloud.videointelligence.v1beta1.VideoSegment.Builder builderForValue) {
- if (segmentsBuilder_ == null) {
- ensureSegmentsIsMutable();
- segments_.add(builderForValue.build());
- onChanged();
- } else {
- segmentsBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- *
- *
- *
- * All locations where a face was detected.
- * Faces are detected and tracked on a per-video basis
- * (as opposed to across multiple videos).
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 2;
- */
- public Builder addSegments(
- int index,
- com.google.cloud.videointelligence.v1beta1.VideoSegment.Builder builderForValue) {
- if (segmentsBuilder_ == null) {
- ensureSegmentsIsMutable();
- segments_.add(index, builderForValue.build());
- onChanged();
- } else {
- segmentsBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- *
- *
- *
- * All locations where a face was detected.
- * Faces are detected and tracked on a per-video basis
- * (as opposed to across multiple videos).
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 2;
- */
- public Builder addAllSegments(
- java.lang.Iterable extends com.google.cloud.videointelligence.v1beta1.VideoSegment>
- values) {
- if (segmentsBuilder_ == null) {
- ensureSegmentsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(values, segments_);
- onChanged();
- } else {
- segmentsBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- *
- *
- *
- * All locations where a face was detected.
- * Faces are detected and tracked on a per-video basis
- * (as opposed to across multiple videos).
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 2;
- */
- public Builder clearSegments() {
- if (segmentsBuilder_ == null) {
- segments_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
- onChanged();
- } else {
- segmentsBuilder_.clear();
- }
- return this;
- }
- /**
- *
- *
- *
- * All locations where a face was detected.
- * Faces are detected and tracked on a per-video basis
- * (as opposed to across multiple videos).
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 2;
- */
- public Builder removeSegments(int index) {
- if (segmentsBuilder_ == null) {
- ensureSegmentsIsMutable();
- segments_.remove(index);
- onChanged();
- } else {
- segmentsBuilder_.remove(index);
- }
- return this;
- }
- /**
- *
- *
- *
- * All locations where a face was detected.
- * Faces are detected and tracked on a per-video basis
- * (as opposed to across multiple videos).
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 2;
- */
- public com.google.cloud.videointelligence.v1beta1.VideoSegment.Builder getSegmentsBuilder(
- int index) {
- return getSegmentsFieldBuilder().getBuilder(index);
- }
- /**
- *
- *
- *
- * All locations where a face was detected.
- * Faces are detected and tracked on a per-video basis
- * (as opposed to across multiple videos).
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 2;
- */
- public com.google.cloud.videointelligence.v1beta1.VideoSegmentOrBuilder getSegmentsOrBuilder(
- int index) {
- if (segmentsBuilder_ == null) {
- return segments_.get(index);
- } else {
- return segmentsBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- *
- *
- *
- * All locations where a face was detected.
- * Faces are detected and tracked on a per-video basis
- * (as opposed to across multiple videos).
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 2;
- */
- public java.util.List<
- ? extends com.google.cloud.videointelligence.v1beta1.VideoSegmentOrBuilder>
- getSegmentsOrBuilderList() {
- if (segmentsBuilder_ != null) {
- return segmentsBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(segments_);
- }
- }
- /**
- *
- *
- *
- * All locations where a face was detected.
- * Faces are detected and tracked on a per-video basis
- * (as opposed to across multiple videos).
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 2;
- */
- public com.google.cloud.videointelligence.v1beta1.VideoSegment.Builder addSegmentsBuilder() {
- return getSegmentsFieldBuilder()
- .addBuilder(com.google.cloud.videointelligence.v1beta1.VideoSegment.getDefaultInstance());
- }
- /**
- *
- *
- *
- * All locations where a face was detected.
- * Faces are detected and tracked on a per-video basis
- * (as opposed to across multiple videos).
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 2;
- */
- public com.google.cloud.videointelligence.v1beta1.VideoSegment.Builder addSegmentsBuilder(
- int index) {
- return getSegmentsFieldBuilder()
- .addBuilder(
- index, com.google.cloud.videointelligence.v1beta1.VideoSegment.getDefaultInstance());
- }
- /**
- *
- *
- *
- * All locations where a face was detected.
- * Faces are detected and tracked on a per-video basis
- * (as opposed to across multiple videos).
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 2;
- */
- public java.util.List
- * Face locations at one frame per second.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceLocation locations = 3;
- */
- public java.util.List
- * Face locations at one frame per second.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceLocation locations = 3;
- */
- public int getLocationsCount() {
- if (locationsBuilder_ == null) {
- return locations_.size();
- } else {
- return locationsBuilder_.getCount();
- }
- }
- /**
- *
- *
- *
- * Face locations at one frame per second.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceLocation locations = 3;
- */
- public com.google.cloud.videointelligence.v1beta1.FaceLocation getLocations(int index) {
- if (locationsBuilder_ == null) {
- return locations_.get(index);
- } else {
- return locationsBuilder_.getMessage(index);
- }
- }
- /**
- *
- *
- *
- * Face locations at one frame per second.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceLocation locations = 3;
- */
- public Builder setLocations(
- int index, com.google.cloud.videointelligence.v1beta1.FaceLocation value) {
- if (locationsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureLocationsIsMutable();
- locations_.set(index, value);
- onChanged();
- } else {
- locationsBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- *
- *
- *
- * Face locations at one frame per second.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceLocation locations = 3;
- */
- public Builder setLocations(
- int index,
- com.google.cloud.videointelligence.v1beta1.FaceLocation.Builder builderForValue) {
- if (locationsBuilder_ == null) {
- ensureLocationsIsMutable();
- locations_.set(index, builderForValue.build());
- onChanged();
- } else {
- locationsBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- *
- *
- *
- * Face locations at one frame per second.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceLocation locations = 3;
- */
- public Builder addLocations(com.google.cloud.videointelligence.v1beta1.FaceLocation value) {
- if (locationsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureLocationsIsMutable();
- locations_.add(value);
- onChanged();
- } else {
- locationsBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- *
- *
- *
- * Face locations at one frame per second.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceLocation locations = 3;
- */
- public Builder addLocations(
- int index, com.google.cloud.videointelligence.v1beta1.FaceLocation value) {
- if (locationsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureLocationsIsMutable();
- locations_.add(index, value);
- onChanged();
- } else {
- locationsBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- *
- *
- *
- * Face locations at one frame per second.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceLocation locations = 3;
- */
- public Builder addLocations(
- com.google.cloud.videointelligence.v1beta1.FaceLocation.Builder builderForValue) {
- if (locationsBuilder_ == null) {
- ensureLocationsIsMutable();
- locations_.add(builderForValue.build());
- onChanged();
- } else {
- locationsBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- *
- *
- *
- * Face locations at one frame per second.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceLocation locations = 3;
- */
- public Builder addLocations(
- int index,
- com.google.cloud.videointelligence.v1beta1.FaceLocation.Builder builderForValue) {
- if (locationsBuilder_ == null) {
- ensureLocationsIsMutable();
- locations_.add(index, builderForValue.build());
- onChanged();
- } else {
- locationsBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- *
- *
- *
- * Face locations at one frame per second.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceLocation locations = 3;
- */
- public Builder addAllLocations(
- java.lang.Iterable extends com.google.cloud.videointelligence.v1beta1.FaceLocation>
- values) {
- if (locationsBuilder_ == null) {
- ensureLocationsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locations_);
- onChanged();
- } else {
- locationsBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- *
- *
- *
- * Face locations at one frame per second.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceLocation locations = 3;
- */
- public Builder clearLocations() {
- if (locationsBuilder_ == null) {
- locations_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000004);
- onChanged();
- } else {
- locationsBuilder_.clear();
- }
- return this;
- }
- /**
- *
- *
- *
- * Face locations at one frame per second.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceLocation locations = 3;
- */
- public Builder removeLocations(int index) {
- if (locationsBuilder_ == null) {
- ensureLocationsIsMutable();
- locations_.remove(index);
- onChanged();
- } else {
- locationsBuilder_.remove(index);
- }
- return this;
- }
- /**
- *
- *
- *
- * Face locations at one frame per second.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceLocation locations = 3;
- */
- public com.google.cloud.videointelligence.v1beta1.FaceLocation.Builder getLocationsBuilder(
- int index) {
- return getLocationsFieldBuilder().getBuilder(index);
- }
- /**
- *
- *
- *
- * Face locations at one frame per second.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceLocation locations = 3;
- */
- public com.google.cloud.videointelligence.v1beta1.FaceLocationOrBuilder getLocationsOrBuilder(
- int index) {
- if (locationsBuilder_ == null) {
- return locations_.get(index);
- } else {
- return locationsBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- *
- *
- *
- * Face locations at one frame per second.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceLocation locations = 3;
- */
- public java.util.List<
- ? extends com.google.cloud.videointelligence.v1beta1.FaceLocationOrBuilder>
- getLocationsOrBuilderList() {
- if (locationsBuilder_ != null) {
- return locationsBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(locations_);
- }
- }
- /**
- *
- *
- *
- * Face locations at one frame per second.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceLocation locations = 3;
- */
- public com.google.cloud.videointelligence.v1beta1.FaceLocation.Builder addLocationsBuilder() {
- return getLocationsFieldBuilder()
- .addBuilder(com.google.cloud.videointelligence.v1beta1.FaceLocation.getDefaultInstance());
- }
- /**
- *
- *
- *
- * Face locations at one frame per second.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceLocation locations = 3;
- */
- public com.google.cloud.videointelligence.v1beta1.FaceLocation.Builder addLocationsBuilder(
- int index) {
- return getLocationsFieldBuilder()
- .addBuilder(
- index, com.google.cloud.videointelligence.v1beta1.FaceLocation.getDefaultInstance());
- }
- /**
- *
- *
- *
- * Face locations at one frame per second.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceLocation locations = 3;
- */
- public java.util.List
- * Thumbnail of a representative face view (in JPEG format). Encoding: base64.
- *
- *
- * string thumbnail = 1;
- */
- java.lang.String getThumbnail();
- /**
- *
- *
- *
- * Thumbnail of a representative face view (in JPEG format). Encoding: base64.
- *
- *
- * string thumbnail = 1;
- */
- com.google.protobuf.ByteString getThumbnailBytes();
-
- /**
- *
- *
- *
- * All locations where a face was detected.
- * Faces are detected and tracked on a per-video basis
- * (as opposed to across multiple videos).
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 2;
- */
- java.util.List
- * All locations where a face was detected.
- * Faces are detected and tracked on a per-video basis
- * (as opposed to across multiple videos).
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 2;
- */
- com.google.cloud.videointelligence.v1beta1.VideoSegment getSegments(int index);
- /**
- *
- *
- *
- * All locations where a face was detected.
- * Faces are detected and tracked on a per-video basis
- * (as opposed to across multiple videos).
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 2;
- */
- int getSegmentsCount();
- /**
- *
- *
- *
- * All locations where a face was detected.
- * Faces are detected and tracked on a per-video basis
- * (as opposed to across multiple videos).
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 2;
- */
- java.util.List extends com.google.cloud.videointelligence.v1beta1.VideoSegmentOrBuilder>
- getSegmentsOrBuilderList();
- /**
- *
- *
- *
- * All locations where a face was detected.
- * Faces are detected and tracked on a per-video basis
- * (as opposed to across multiple videos).
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 2;
- */
- com.google.cloud.videointelligence.v1beta1.VideoSegmentOrBuilder getSegmentsOrBuilder(int index);
-
- /**
- *
- *
- *
- * Face locations at one frame per second.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceLocation locations = 3;
- */
- java.util.List
- * Face locations at one frame per second.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceLocation locations = 3;
- */
- com.google.cloud.videointelligence.v1beta1.FaceLocation getLocations(int index);
- /**
- *
- *
- *
- * Face locations at one frame per second.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceLocation locations = 3;
- */
- int getLocationsCount();
- /**
- *
- *
- *
- * Face locations at one frame per second.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceLocation locations = 3;
- */
- java.util.List extends com.google.cloud.videointelligence.v1beta1.FaceLocationOrBuilder>
- getLocationsOrBuilderList();
- /**
- *
- *
- *
- * Face locations at one frame per second.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceLocation locations = 3;
- */
- com.google.cloud.videointelligence.v1beta1.FaceLocationOrBuilder getLocationsOrBuilder(int index);
-}
diff --git a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/FaceLocation.java b/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/FaceLocation.java
deleted file mode 100644
index 5725dbda9..000000000
--- a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/FaceLocation.java
+++ /dev/null
@@ -1,785 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/cloud/videointelligence/v1beta1/video_intelligence.proto
-
-package com.google.cloud.videointelligence.v1beta1;
-
-/**
- *
- *
- *
- * Face location.
- *
- *
- * Protobuf type {@code google.cloud.videointelligence.v1beta1.FaceLocation}
- */
-public final class FaceLocation extends com.google.protobuf.GeneratedMessageV3
- implements
- // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1beta1.FaceLocation)
- FaceLocationOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use FaceLocation.newBuilder() to construct.
- private FaceLocation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
-
- private FaceLocation() {}
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
- private FaceLocation(
- 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.v1beta1.BoundingBox.Builder subBuilder = null;
- if (boundingBox_ != null) {
- subBuilder = boundingBox_.toBuilder();
- }
- boundingBox_ =
- input.readMessage(
- com.google.cloud.videointelligence.v1beta1.BoundingBox.parser(),
- extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(boundingBox_);
- boundingBox_ = subBuilder.buildPartial();
- }
-
- break;
- }
- case 16:
- {
- timeOffset_ = input.readInt64();
- break;
- }
- default:
- {
- if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.videointelligence.v1beta1.VideoIntelligenceServiceProto
- .internal_static_google_cloud_videointelligence_v1beta1_FaceLocation_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.google.cloud.videointelligence.v1beta1.VideoIntelligenceServiceProto
- .internal_static_google_cloud_videointelligence_v1beta1_FaceLocation_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.google.cloud.videointelligence.v1beta1.FaceLocation.class,
- com.google.cloud.videointelligence.v1beta1.FaceLocation.Builder.class);
- }
-
- public static final int BOUNDING_BOX_FIELD_NUMBER = 1;
- private com.google.cloud.videointelligence.v1beta1.BoundingBox boundingBox_;
- /**
- *
- *
- *
- * Bounding box in a frame.
- *
- *
- * .google.cloud.videointelligence.v1beta1.BoundingBox bounding_box = 1;
- */
- public boolean hasBoundingBox() {
- return boundingBox_ != null;
- }
- /**
- *
- *
- *
- * Bounding box in a frame.
- *
- *
- * .google.cloud.videointelligence.v1beta1.BoundingBox bounding_box = 1;
- */
- public com.google.cloud.videointelligence.v1beta1.BoundingBox getBoundingBox() {
- return boundingBox_ == null
- ? com.google.cloud.videointelligence.v1beta1.BoundingBox.getDefaultInstance()
- : boundingBox_;
- }
- /**
- *
- *
- *
- * Bounding box in a frame.
- *
- *
- * .google.cloud.videointelligence.v1beta1.BoundingBox bounding_box = 1;
- */
- public com.google.cloud.videointelligence.v1beta1.BoundingBoxOrBuilder getBoundingBoxOrBuilder() {
- return getBoundingBox();
- }
-
- public static final int TIME_OFFSET_FIELD_NUMBER = 2;
- private long timeOffset_;
- /**
- *
- *
- *
- * Video time offset in microseconds.
- *
- *
- * int64 time_offset = 2;
- */
- public long getTimeOffset() {
- return timeOffset_;
- }
-
- 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 (boundingBox_ != null) {
- output.writeMessage(1, getBoundingBox());
- }
- if (timeOffset_ != 0L) {
- output.writeInt64(2, timeOffset_);
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (boundingBox_ != null) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBoundingBox());
- }
- if (timeOffset_ != 0L) {
- size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, timeOffset_);
- }
- 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.v1beta1.FaceLocation)) {
- return super.equals(obj);
- }
- com.google.cloud.videointelligence.v1beta1.FaceLocation other =
- (com.google.cloud.videointelligence.v1beta1.FaceLocation) obj;
-
- if (hasBoundingBox() != other.hasBoundingBox()) return false;
- if (hasBoundingBox()) {
- if (!getBoundingBox().equals(other.getBoundingBox())) return false;
- }
- if (getTimeOffset() != other.getTimeOffset()) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasBoundingBox()) {
- hash = (37 * hash) + BOUNDING_BOX_FIELD_NUMBER;
- hash = (53 * hash) + getBoundingBox().hashCode();
- }
- hash = (37 * hash) + TIME_OFFSET_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTimeOffset());
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.cloud.videointelligence.v1beta1.FaceLocation parseFrom(
- java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.FaceLocation 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.v1beta1.FaceLocation parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.FaceLocation 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.v1beta1.FaceLocation parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.FaceLocation parseFrom(
- byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.FaceLocation parseFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.FaceLocation 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.v1beta1.FaceLocation parseDelimitedFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.FaceLocation 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.v1beta1.FaceLocation parseFrom(
- com.google.protobuf.CodedInputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.FaceLocation 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.v1beta1.FaceLocation 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;
- }
- /**
- *
- *
- *
- * Face location.
- *
- *
- * Protobuf type {@code google.cloud.videointelligence.v1beta1.FaceLocation}
- */
- public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
- * Bounding box in a frame.
- *
- *
- * .google.cloud.videointelligence.v1beta1.BoundingBox bounding_box = 1;
- */
- public boolean hasBoundingBox() {
- return boundingBoxBuilder_ != null || boundingBox_ != null;
- }
- /**
- *
- *
- *
- * Bounding box in a frame.
- *
- *
- * .google.cloud.videointelligence.v1beta1.BoundingBox bounding_box = 1;
- */
- public com.google.cloud.videointelligence.v1beta1.BoundingBox getBoundingBox() {
- if (boundingBoxBuilder_ == null) {
- return boundingBox_ == null
- ? com.google.cloud.videointelligence.v1beta1.BoundingBox.getDefaultInstance()
- : boundingBox_;
- } else {
- return boundingBoxBuilder_.getMessage();
- }
- }
- /**
- *
- *
- *
- * Bounding box in a frame.
- *
- *
- * .google.cloud.videointelligence.v1beta1.BoundingBox bounding_box = 1;
- */
- public Builder setBoundingBox(com.google.cloud.videointelligence.v1beta1.BoundingBox value) {
- if (boundingBoxBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- boundingBox_ = value;
- onChanged();
- } else {
- boundingBoxBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- *
- *
- *
- * Bounding box in a frame.
- *
- *
- * .google.cloud.videointelligence.v1beta1.BoundingBox bounding_box = 1;
- */
- public Builder setBoundingBox(
- com.google.cloud.videointelligence.v1beta1.BoundingBox.Builder builderForValue) {
- if (boundingBoxBuilder_ == null) {
- boundingBox_ = builderForValue.build();
- onChanged();
- } else {
- boundingBoxBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- *
- *
- *
- * Bounding box in a frame.
- *
- *
- * .google.cloud.videointelligence.v1beta1.BoundingBox bounding_box = 1;
- */
- public Builder mergeBoundingBox(com.google.cloud.videointelligence.v1beta1.BoundingBox value) {
- if (boundingBoxBuilder_ == null) {
- if (boundingBox_ != null) {
- boundingBox_ =
- com.google.cloud.videointelligence.v1beta1.BoundingBox.newBuilder(boundingBox_)
- .mergeFrom(value)
- .buildPartial();
- } else {
- boundingBox_ = value;
- }
- onChanged();
- } else {
- boundingBoxBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- *
- *
- *
- * Bounding box in a frame.
- *
- *
- * .google.cloud.videointelligence.v1beta1.BoundingBox bounding_box = 1;
- */
- public Builder clearBoundingBox() {
- if (boundingBoxBuilder_ == null) {
- boundingBox_ = null;
- onChanged();
- } else {
- boundingBox_ = null;
- boundingBoxBuilder_ = null;
- }
-
- return this;
- }
- /**
- *
- *
- *
- * Bounding box in a frame.
- *
- *
- * .google.cloud.videointelligence.v1beta1.BoundingBox bounding_box = 1;
- */
- public com.google.cloud.videointelligence.v1beta1.BoundingBox.Builder getBoundingBoxBuilder() {
-
- onChanged();
- return getBoundingBoxFieldBuilder().getBuilder();
- }
- /**
- *
- *
- *
- * Bounding box in a frame.
- *
- *
- * .google.cloud.videointelligence.v1beta1.BoundingBox bounding_box = 1;
- */
- public com.google.cloud.videointelligence.v1beta1.BoundingBoxOrBuilder
- getBoundingBoxOrBuilder() {
- if (boundingBoxBuilder_ != null) {
- return boundingBoxBuilder_.getMessageOrBuilder();
- } else {
- return boundingBox_ == null
- ? com.google.cloud.videointelligence.v1beta1.BoundingBox.getDefaultInstance()
- : boundingBox_;
- }
- }
- /**
- *
- *
- *
- * Bounding box in a frame.
- *
- *
- * .google.cloud.videointelligence.v1beta1.BoundingBox bounding_box = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.videointelligence.v1beta1.BoundingBox,
- com.google.cloud.videointelligence.v1beta1.BoundingBox.Builder,
- com.google.cloud.videointelligence.v1beta1.BoundingBoxOrBuilder>
- getBoundingBoxFieldBuilder() {
- if (boundingBoxBuilder_ == null) {
- boundingBoxBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.videointelligence.v1beta1.BoundingBox,
- com.google.cloud.videointelligence.v1beta1.BoundingBox.Builder,
- com.google.cloud.videointelligence.v1beta1.BoundingBoxOrBuilder>(
- getBoundingBox(), getParentForChildren(), isClean());
- boundingBox_ = null;
- }
- return boundingBoxBuilder_;
- }
-
- private long timeOffset_;
- /**
- *
- *
- *
- * Video time offset in microseconds.
- *
- *
- * int64 time_offset = 2;
- */
- public long getTimeOffset() {
- return timeOffset_;
- }
- /**
- *
- *
- *
- * Video time offset in microseconds.
- *
- *
- * int64 time_offset = 2;
- */
- public Builder setTimeOffset(long value) {
-
- timeOffset_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Video time offset in microseconds.
- *
- *
- * int64 time_offset = 2;
- */
- public Builder clearTimeOffset() {
-
- timeOffset_ = 0L;
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
- // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1beta1.FaceLocation)
- }
-
- // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta1.FaceLocation)
- private static final com.google.cloud.videointelligence.v1beta1.FaceLocation DEFAULT_INSTANCE;
-
- static {
- DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1beta1.FaceLocation();
- }
-
- public static com.google.cloud.videointelligence.v1beta1.FaceLocation getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser
- * Bounding box in a frame.
- *
- *
- * .google.cloud.videointelligence.v1beta1.BoundingBox bounding_box = 1;
- */
- boolean hasBoundingBox();
- /**
- *
- *
- *
- * Bounding box in a frame.
- *
- *
- * .google.cloud.videointelligence.v1beta1.BoundingBox bounding_box = 1;
- */
- com.google.cloud.videointelligence.v1beta1.BoundingBox getBoundingBox();
- /**
- *
- *
- *
- * Bounding box in a frame.
- *
- *
- * .google.cloud.videointelligence.v1beta1.BoundingBox bounding_box = 1;
- */
- com.google.cloud.videointelligence.v1beta1.BoundingBoxOrBuilder getBoundingBoxOrBuilder();
-
- /**
- *
- *
- *
- * Video time offset in microseconds.
- *
- *
- * int64 time_offset = 2;
- */
- long getTimeOffset();
-}
diff --git a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/Feature.java b/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/Feature.java
deleted file mode 100644
index 357f222e4..000000000
--- a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/Feature.java
+++ /dev/null
@@ -1,195 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/cloud/videointelligence/v1beta1/video_intelligence.proto
-
-package com.google.cloud.videointelligence.v1beta1;
-
-/**
- *
- *
- *
- * Video annotation feature.
- *
- *
- * Protobuf enum {@code google.cloud.videointelligence.v1beta1.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),
- /**
- *
- *
- *
- * Human face detection and tracking.
- *
- *
- * FACE_DETECTION = 2;
- */
- FACE_DETECTION(2),
- /**
- *
- *
- *
- * Shot change detection.
- *
- *
- * SHOT_CHANGE_DETECTION = 3;
- */
- SHOT_CHANGE_DETECTION(3),
- /**
- *
- *
- *
- * Safe search detection.
- *
- *
- * SAFE_SEARCH_DETECTION = 4;
- */
- SAFE_SEARCH_DETECTION(4),
- 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;
- /**
- *
- *
- *
- * Human face detection and tracking.
- *
- *
- * FACE_DETECTION = 2;
- */
- public static final int FACE_DETECTION_VALUE = 2;
- /**
- *
- *
- *
- * Shot change detection.
- *
- *
- * SHOT_CHANGE_DETECTION = 3;
- */
- public static final int SHOT_CHANGE_DETECTION_VALUE = 3;
- /**
- *
- *
- *
- * Safe search detection.
- *
- *
- * SAFE_SEARCH_DETECTION = 4;
- */
- public static final int SAFE_SEARCH_DETECTION_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 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 FACE_DETECTION;
- case 3:
- return SHOT_CHANGE_DETECTION;
- case 4:
- return SAFE_SEARCH_DETECTION;
- default:
- return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMap
- * Label annotation.
- *
- *
- * Protobuf type {@code google.cloud.videointelligence.v1beta1.LabelAnnotation}
- */
-public final class LabelAnnotation extends com.google.protobuf.GeneratedMessageV3
- implements
- // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1beta1.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() {
- description_ = "";
- languageCode_ = "";
- locations_ = 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:
- {
- java.lang.String s = input.readStringRequireUtf8();
-
- description_ = s;
- break;
- }
- case 18:
- {
- java.lang.String s = input.readStringRequireUtf8();
-
- languageCode_ = s;
- break;
- }
- case 26:
- {
- if (!((mutable_bitField0_ & 0x00000004) != 0)) {
- locations_ =
- new java.util.ArrayList<
- com.google.cloud.videointelligence.v1beta1.LabelLocation>();
- mutable_bitField0_ |= 0x00000004;
- }
- locations_.add(
- input.readMessage(
- com.google.cloud.videointelligence.v1beta1.LabelLocation.parser(),
- extensionRegistry));
- break;
- }
- default:
- {
- if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
- } finally {
- if (((mutable_bitField0_ & 0x00000004) != 0)) {
- locations_ = java.util.Collections.unmodifiableList(locations_);
- }
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.videointelligence.v1beta1.VideoIntelligenceServiceProto
- .internal_static_google_cloud_videointelligence_v1beta1_LabelAnnotation_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.google.cloud.videointelligence.v1beta1.VideoIntelligenceServiceProto
- .internal_static_google_cloud_videointelligence_v1beta1_LabelAnnotation_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.google.cloud.videointelligence.v1beta1.LabelAnnotation.class,
- com.google.cloud.videointelligence.v1beta1.LabelAnnotation.Builder.class);
- }
-
- private int bitField0_;
- public static final int DESCRIPTION_FIELD_NUMBER = 1;
- private volatile java.lang.Object description_;
- /**
- *
- *
- *
- * Textual description, e.g. `Fixed-gear bicycle`.
- *
- *
- * string description = 1;
- */
- 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 = 1;
- */
- 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 = 2;
- private volatile java.lang.Object languageCode_;
- /**
- *
- *
- *
- * Language code for `description` in BCP-47 format.
- *
- *
- * string language_code = 2;
- */
- 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 = 2;
- */
- 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;
- }
- }
-
- public static final int LOCATIONS_FIELD_NUMBER = 3;
- private java.util.List
- * Where the label was detected and with what confidence.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelLocation locations = 3;
- */
- public java.util.List
- * Where the label was detected and with what confidence.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelLocation locations = 3;
- */
- public java.util.List extends com.google.cloud.videointelligence.v1beta1.LabelLocationOrBuilder>
- getLocationsOrBuilderList() {
- return locations_;
- }
- /**
- *
- *
- *
- * Where the label was detected and with what confidence.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelLocation locations = 3;
- */
- public int getLocationsCount() {
- return locations_.size();
- }
- /**
- *
- *
- *
- * Where the label was detected and with what confidence.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelLocation locations = 3;
- */
- public com.google.cloud.videointelligence.v1beta1.LabelLocation getLocations(int index) {
- return locations_.get(index);
- }
- /**
- *
- *
- *
- * Where the label was detected and with what confidence.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelLocation locations = 3;
- */
- public com.google.cloud.videointelligence.v1beta1.LabelLocationOrBuilder getLocationsOrBuilder(
- int index) {
- return locations_.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 (!getDescriptionBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, description_);
- }
- if (!getLanguageCodeBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, languageCode_);
- }
- for (int i = 0; i < locations_.size(); i++) {
- output.writeMessage(3, locations_.get(i));
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (!getDescriptionBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, description_);
- }
- if (!getLanguageCodeBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, languageCode_);
- }
- for (int i = 0; i < locations_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, locations_.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.v1beta1.LabelAnnotation)) {
- return super.equals(obj);
- }
- com.google.cloud.videointelligence.v1beta1.LabelAnnotation other =
- (com.google.cloud.videointelligence.v1beta1.LabelAnnotation) obj;
-
- if (!getDescription().equals(other.getDescription())) return false;
- if (!getLanguageCode().equals(other.getLanguageCode())) return false;
- if (!getLocationsList().equals(other.getLocationsList())) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
- hash = (53 * hash) + getDescription().hashCode();
- hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER;
- hash = (53 * hash) + getLanguageCode().hashCode();
- if (getLocationsCount() > 0) {
- hash = (37 * hash) + LOCATIONS_FIELD_NUMBER;
- hash = (53 * hash) + getLocationsList().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.cloud.videointelligence.v1beta1.LabelAnnotation parseFrom(
- java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.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.v1beta1.LabelAnnotation parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.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.v1beta1.LabelAnnotation parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.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.v1beta1.LabelAnnotation parseFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.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.v1beta1.LabelAnnotation parseDelimitedFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.LabelAnnotation}
- */
- public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
- * Textual description, e.g. `Fixed-gear bicycle`.
- *
- *
- * string description = 1;
- */
- 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 = 1;
- */
- 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 = 1;
- */
- 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 = 1;
- */
- public Builder clearDescription() {
-
- description_ = getDefaultInstance().getDescription();
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Textual description, e.g. `Fixed-gear bicycle`.
- *
- *
- * string description = 1;
- */
- 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 = 2;
- */
- 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 = 2;
- */
- 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 = 2;
- */
- 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 = 2;
- */
- public Builder clearLanguageCode() {
-
- languageCode_ = getDefaultInstance().getLanguageCode();
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Language code for `description` in BCP-47 format.
- *
- *
- * string language_code = 2;
- */
- public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- languageCode_ = value;
- onChanged();
- return this;
- }
-
- private java.util.List
- * Where the label was detected and with what confidence.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelLocation locations = 3;
- */
- public java.util.List
- * Where the label was detected and with what confidence.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelLocation locations = 3;
- */
- public int getLocationsCount() {
- if (locationsBuilder_ == null) {
- return locations_.size();
- } else {
- return locationsBuilder_.getCount();
- }
- }
- /**
- *
- *
- *
- * Where the label was detected and with what confidence.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelLocation locations = 3;
- */
- public com.google.cloud.videointelligence.v1beta1.LabelLocation getLocations(int index) {
- if (locationsBuilder_ == null) {
- return locations_.get(index);
- } else {
- return locationsBuilder_.getMessage(index);
- }
- }
- /**
- *
- *
- *
- * Where the label was detected and with what confidence.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelLocation locations = 3;
- */
- public Builder setLocations(
- int index, com.google.cloud.videointelligence.v1beta1.LabelLocation value) {
- if (locationsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureLocationsIsMutable();
- locations_.set(index, value);
- onChanged();
- } else {
- locationsBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- *
- *
- *
- * Where the label was detected and with what confidence.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelLocation locations = 3;
- */
- public Builder setLocations(
- int index,
- com.google.cloud.videointelligence.v1beta1.LabelLocation.Builder builderForValue) {
- if (locationsBuilder_ == null) {
- ensureLocationsIsMutable();
- locations_.set(index, builderForValue.build());
- onChanged();
- } else {
- locationsBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- *
- *
- *
- * Where the label was detected and with what confidence.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelLocation locations = 3;
- */
- public Builder addLocations(com.google.cloud.videointelligence.v1beta1.LabelLocation value) {
- if (locationsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureLocationsIsMutable();
- locations_.add(value);
- onChanged();
- } else {
- locationsBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- *
- *
- *
- * Where the label was detected and with what confidence.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelLocation locations = 3;
- */
- public Builder addLocations(
- int index, com.google.cloud.videointelligence.v1beta1.LabelLocation value) {
- if (locationsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureLocationsIsMutable();
- locations_.add(index, value);
- onChanged();
- } else {
- locationsBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- *
- *
- *
- * Where the label was detected and with what confidence.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelLocation locations = 3;
- */
- public Builder addLocations(
- com.google.cloud.videointelligence.v1beta1.LabelLocation.Builder builderForValue) {
- if (locationsBuilder_ == null) {
- ensureLocationsIsMutable();
- locations_.add(builderForValue.build());
- onChanged();
- } else {
- locationsBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- *
- *
- *
- * Where the label was detected and with what confidence.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelLocation locations = 3;
- */
- public Builder addLocations(
- int index,
- com.google.cloud.videointelligence.v1beta1.LabelLocation.Builder builderForValue) {
- if (locationsBuilder_ == null) {
- ensureLocationsIsMutable();
- locations_.add(index, builderForValue.build());
- onChanged();
- } else {
- locationsBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- *
- *
- *
- * Where the label was detected and with what confidence.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelLocation locations = 3;
- */
- public Builder addAllLocations(
- java.lang.Iterable extends com.google.cloud.videointelligence.v1beta1.LabelLocation>
- values) {
- if (locationsBuilder_ == null) {
- ensureLocationsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locations_);
- onChanged();
- } else {
- locationsBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- *
- *
- *
- * Where the label was detected and with what confidence.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelLocation locations = 3;
- */
- public Builder clearLocations() {
- if (locationsBuilder_ == null) {
- locations_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000004);
- onChanged();
- } else {
- locationsBuilder_.clear();
- }
- return this;
- }
- /**
- *
- *
- *
- * Where the label was detected and with what confidence.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelLocation locations = 3;
- */
- public Builder removeLocations(int index) {
- if (locationsBuilder_ == null) {
- ensureLocationsIsMutable();
- locations_.remove(index);
- onChanged();
- } else {
- locationsBuilder_.remove(index);
- }
- return this;
- }
- /**
- *
- *
- *
- * Where the label was detected and with what confidence.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelLocation locations = 3;
- */
- public com.google.cloud.videointelligence.v1beta1.LabelLocation.Builder getLocationsBuilder(
- int index) {
- return getLocationsFieldBuilder().getBuilder(index);
- }
- /**
- *
- *
- *
- * Where the label was detected and with what confidence.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelLocation locations = 3;
- */
- public com.google.cloud.videointelligence.v1beta1.LabelLocationOrBuilder getLocationsOrBuilder(
- int index) {
- if (locationsBuilder_ == null) {
- return locations_.get(index);
- } else {
- return locationsBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- *
- *
- *
- * Where the label was detected and with what confidence.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelLocation locations = 3;
- */
- public java.util.List<
- ? extends com.google.cloud.videointelligence.v1beta1.LabelLocationOrBuilder>
- getLocationsOrBuilderList() {
- if (locationsBuilder_ != null) {
- return locationsBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(locations_);
- }
- }
- /**
- *
- *
- *
- * Where the label was detected and with what confidence.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelLocation locations = 3;
- */
- public com.google.cloud.videointelligence.v1beta1.LabelLocation.Builder addLocationsBuilder() {
- return getLocationsFieldBuilder()
- .addBuilder(
- com.google.cloud.videointelligence.v1beta1.LabelLocation.getDefaultInstance());
- }
- /**
- *
- *
- *
- * Where the label was detected and with what confidence.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelLocation locations = 3;
- */
- public com.google.cloud.videointelligence.v1beta1.LabelLocation.Builder addLocationsBuilder(
- int index) {
- return getLocationsFieldBuilder()
- .addBuilder(
- index, com.google.cloud.videointelligence.v1beta1.LabelLocation.getDefaultInstance());
- }
- /**
- *
- *
- *
- * Where the label was detected and with what confidence.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelLocation locations = 3;
- */
- public java.util.List
- * Textual description, e.g. `Fixed-gear bicycle`.
- *
- *
- * string description = 1;
- */
- java.lang.String getDescription();
- /**
- *
- *
- *
- * Textual description, e.g. `Fixed-gear bicycle`.
- *
- *
- * string description = 1;
- */
- com.google.protobuf.ByteString getDescriptionBytes();
-
- /**
- *
- *
- *
- * Language code for `description` in BCP-47 format.
- *
- *
- * string language_code = 2;
- */
- java.lang.String getLanguageCode();
- /**
- *
- *
- *
- * Language code for `description` in BCP-47 format.
- *
- *
- * string language_code = 2;
- */
- com.google.protobuf.ByteString getLanguageCodeBytes();
-
- /**
- *
- *
- *
- * Where the label was detected and with what confidence.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelLocation locations = 3;
- */
- java.util.List
- * Where the label was detected and with what confidence.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelLocation locations = 3;
- */
- com.google.cloud.videointelligence.v1beta1.LabelLocation getLocations(int index);
- /**
- *
- *
- *
- * Where the label was detected and with what confidence.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelLocation locations = 3;
- */
- int getLocationsCount();
- /**
- *
- *
- *
- * Where the label was detected and with what confidence.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelLocation locations = 3;
- */
- java.util.List extends com.google.cloud.videointelligence.v1beta1.LabelLocationOrBuilder>
- getLocationsOrBuilderList();
- /**
- *
- *
- *
- * Where the label was detected and with what confidence.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelLocation locations = 3;
- */
- com.google.cloud.videointelligence.v1beta1.LabelLocationOrBuilder getLocationsOrBuilder(
- int index);
-}
diff --git a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/LabelDetectionMode.java b/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/LabelDetectionMode.java
deleted file mode 100644
index a5c17df52..000000000
--- a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/LabelDetectionMode.java
+++ /dev/null
@@ -1,175 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/cloud/videointelligence/v1beta1/video_intelligence.proto
-
-package com.google.cloud.videointelligence.v1beta1;
-
-/**
- *
- *
- *
- * Label detection mode.
- *
- *
- * Protobuf enum {@code google.cloud.videointelligence.v1beta1.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
- * Label level (scope).
- *
- *
- * Protobuf enum {@code google.cloud.videointelligence.v1beta1.LabelLevel}
- */
-public enum LabelLevel implements com.google.protobuf.ProtocolMessageEnum {
- /**
- *
- *
- *
- * Unspecified.
- *
- *
- * LABEL_LEVEL_UNSPECIFIED = 0;
- */
- LABEL_LEVEL_UNSPECIFIED(0),
- /**
- *
- *
- *
- * Video-level. Corresponds to the whole video.
- *
- *
- * VIDEO_LEVEL = 1;
- */
- VIDEO_LEVEL(1),
- /**
- *
- *
- *
- * Segment-level. Corresponds to one of `AnnotateSpec.segments`.
- *
- *
- * SEGMENT_LEVEL = 2;
- */
- SEGMENT_LEVEL(2),
- /**
- *
- *
- *
- * Shot-level. Corresponds to a single shot (i.e. a series of frames
- * without a major camera position or background change).
- *
- *
- * SHOT_LEVEL = 3;
- */
- SHOT_LEVEL(3),
- /**
- *
- *
- *
- * Frame-level. Corresponds to a single video frame.
- *
- *
- * FRAME_LEVEL = 4;
- */
- FRAME_LEVEL(4),
- UNRECOGNIZED(-1),
- ;
-
- /**
- *
- *
- *
- * Unspecified.
- *
- *
- * LABEL_LEVEL_UNSPECIFIED = 0;
- */
- public static final int LABEL_LEVEL_UNSPECIFIED_VALUE = 0;
- /**
- *
- *
- *
- * Video-level. Corresponds to the whole video.
- *
- *
- * VIDEO_LEVEL = 1;
- */
- public static final int VIDEO_LEVEL_VALUE = 1;
- /**
- *
- *
- *
- * Segment-level. Corresponds to one of `AnnotateSpec.segments`.
- *
- *
- * SEGMENT_LEVEL = 2;
- */
- public static final int SEGMENT_LEVEL_VALUE = 2;
- /**
- *
- *
- *
- * Shot-level. Corresponds to a single shot (i.e. a series of frames
- * without a major camera position or background change).
- *
- *
- * SHOT_LEVEL = 3;
- */
- public static final int SHOT_LEVEL_VALUE = 3;
- /**
- *
- *
- *
- * Frame-level. Corresponds to a single video frame.
- *
- *
- * FRAME_LEVEL = 4;
- */
- public static final int FRAME_LEVEL_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 LabelLevel valueOf(int value) {
- return forNumber(value);
- }
-
- public static LabelLevel forNumber(int value) {
- switch (value) {
- case 0:
- return LABEL_LEVEL_UNSPECIFIED;
- case 1:
- return VIDEO_LEVEL;
- case 2:
- return SEGMENT_LEVEL;
- case 3:
- return SHOT_LEVEL;
- case 4:
- return FRAME_LEVEL;
- default:
- return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMap
- * Label location.
- *
- *
- * Protobuf type {@code google.cloud.videointelligence.v1beta1.LabelLocation}
- */
-public final class LabelLocation extends com.google.protobuf.GeneratedMessageV3
- implements
- // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1beta1.LabelLocation)
- LabelLocationOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use LabelLocation.newBuilder() to construct.
- private LabelLocation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
-
- private LabelLocation() {
- level_ = 0;
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
- private LabelLocation(
- 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.v1beta1.VideoSegment.Builder subBuilder = null;
- if (segment_ != null) {
- subBuilder = segment_.toBuilder();
- }
- segment_ =
- input.readMessage(
- com.google.cloud.videointelligence.v1beta1.VideoSegment.parser(),
- extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(segment_);
- segment_ = subBuilder.buildPartial();
- }
-
- break;
- }
- case 21:
- {
- confidence_ = input.readFloat();
- break;
- }
- case 24:
- {
- int rawValue = input.readEnum();
-
- level_ = rawValue;
- break;
- }
- default:
- {
- if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.videointelligence.v1beta1.VideoIntelligenceServiceProto
- .internal_static_google_cloud_videointelligence_v1beta1_LabelLocation_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.google.cloud.videointelligence.v1beta1.VideoIntelligenceServiceProto
- .internal_static_google_cloud_videointelligence_v1beta1_LabelLocation_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.google.cloud.videointelligence.v1beta1.LabelLocation.class,
- com.google.cloud.videointelligence.v1beta1.LabelLocation.Builder.class);
- }
-
- public static final int SEGMENT_FIELD_NUMBER = 1;
- private com.google.cloud.videointelligence.v1beta1.VideoSegment segment_;
- /**
- *
- *
- *
- * Video segment. Set to [-1, -1] for video-level labels.
- * Set to [timestamp, timestamp] for frame-level labels.
- * Otherwise, corresponds to one of `AnnotateSpec.segments`
- * (if specified) or to shot boundaries (if requested).
- *
- *
- * .google.cloud.videointelligence.v1beta1.VideoSegment segment = 1;
- */
- public boolean hasSegment() {
- return segment_ != null;
- }
- /**
- *
- *
- *
- * Video segment. Set to [-1, -1] for video-level labels.
- * Set to [timestamp, timestamp] for frame-level labels.
- * Otherwise, corresponds to one of `AnnotateSpec.segments`
- * (if specified) or to shot boundaries (if requested).
- *
- *
- * .google.cloud.videointelligence.v1beta1.VideoSegment segment = 1;
- */
- public com.google.cloud.videointelligence.v1beta1.VideoSegment getSegment() {
- return segment_ == null
- ? com.google.cloud.videointelligence.v1beta1.VideoSegment.getDefaultInstance()
- : segment_;
- }
- /**
- *
- *
- *
- * Video segment. Set to [-1, -1] for video-level labels.
- * Set to [timestamp, timestamp] for frame-level labels.
- * Otherwise, corresponds to one of `AnnotateSpec.segments`
- * (if specified) or to shot boundaries (if requested).
- *
- *
- * .google.cloud.videointelligence.v1beta1.VideoSegment segment = 1;
- */
- public com.google.cloud.videointelligence.v1beta1.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_;
- }
-
- public static final int LEVEL_FIELD_NUMBER = 3;
- private int level_;
- /**
- *
- *
- *
- * Label level.
- *
- *
- * .google.cloud.videointelligence.v1beta1.LabelLevel level = 3;
- */
- public int getLevelValue() {
- return level_;
- }
- /**
- *
- *
- *
- * Label level.
- *
- *
- * .google.cloud.videointelligence.v1beta1.LabelLevel level = 3;
- */
- public com.google.cloud.videointelligence.v1beta1.LabelLevel getLevel() {
- @SuppressWarnings("deprecation")
- com.google.cloud.videointelligence.v1beta1.LabelLevel result =
- com.google.cloud.videointelligence.v1beta1.LabelLevel.valueOf(level_);
- return result == null
- ? com.google.cloud.videointelligence.v1beta1.LabelLevel.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 (segment_ != null) {
- output.writeMessage(1, getSegment());
- }
- if (confidence_ != 0F) {
- output.writeFloat(2, confidence_);
- }
- if (level_
- != com.google.cloud.videointelligence.v1beta1.LabelLevel.LABEL_LEVEL_UNSPECIFIED
- .getNumber()) {
- output.writeEnum(3, level_);
- }
- 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_);
- }
- if (level_
- != com.google.cloud.videointelligence.v1beta1.LabelLevel.LABEL_LEVEL_UNSPECIFIED
- .getNumber()) {
- size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, level_);
- }
- 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.v1beta1.LabelLocation)) {
- return super.equals(obj);
- }
- com.google.cloud.videointelligence.v1beta1.LabelLocation other =
- (com.google.cloud.videointelligence.v1beta1.LabelLocation) obj;
-
- if (hasSegment() != other.hasSegment()) return false;
- if (hasSegment()) {
- if (!getSegment().equals(other.getSegment())) return false;
- }
- if (java.lang.Float.floatToIntBits(getConfidence())
- != java.lang.Float.floatToIntBits(other.getConfidence())) return false;
- if (level_ != other.level_) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (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 = (37 * hash) + LEVEL_FIELD_NUMBER;
- hash = (53 * hash) + level_;
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.cloud.videointelligence.v1beta1.LabelLocation parseFrom(
- java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.LabelLocation 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.v1beta1.LabelLocation parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.LabelLocation 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.v1beta1.LabelLocation parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.LabelLocation parseFrom(
- byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.LabelLocation parseFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.LabelLocation 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.v1beta1.LabelLocation parseDelimitedFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.LabelLocation 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.v1beta1.LabelLocation parseFrom(
- com.google.protobuf.CodedInputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.LabelLocation 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.v1beta1.LabelLocation 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 location.
- *
- *
- * Protobuf type {@code google.cloud.videointelligence.v1beta1.LabelLocation}
- */
- public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
- * Video segment. Set to [-1, -1] for video-level labels.
- * Set to [timestamp, timestamp] for frame-level labels.
- * Otherwise, corresponds to one of `AnnotateSpec.segments`
- * (if specified) or to shot boundaries (if requested).
- *
- *
- * .google.cloud.videointelligence.v1beta1.VideoSegment segment = 1;
- */
- public boolean hasSegment() {
- return segmentBuilder_ != null || segment_ != null;
- }
- /**
- *
- *
- *
- * Video segment. Set to [-1, -1] for video-level labels.
- * Set to [timestamp, timestamp] for frame-level labels.
- * Otherwise, corresponds to one of `AnnotateSpec.segments`
- * (if specified) or to shot boundaries (if requested).
- *
- *
- * .google.cloud.videointelligence.v1beta1.VideoSegment segment = 1;
- */
- public com.google.cloud.videointelligence.v1beta1.VideoSegment getSegment() {
- if (segmentBuilder_ == null) {
- return segment_ == null
- ? com.google.cloud.videointelligence.v1beta1.VideoSegment.getDefaultInstance()
- : segment_;
- } else {
- return segmentBuilder_.getMessage();
- }
- }
- /**
- *
- *
- *
- * Video segment. Set to [-1, -1] for video-level labels.
- * Set to [timestamp, timestamp] for frame-level labels.
- * Otherwise, corresponds to one of `AnnotateSpec.segments`
- * (if specified) or to shot boundaries (if requested).
- *
- *
- * .google.cloud.videointelligence.v1beta1.VideoSegment segment = 1;
- */
- public Builder setSegment(com.google.cloud.videointelligence.v1beta1.VideoSegment value) {
- if (segmentBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- segment_ = value;
- onChanged();
- } else {
- segmentBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- *
- *
- *
- * Video segment. Set to [-1, -1] for video-level labels.
- * Set to [timestamp, timestamp] for frame-level labels.
- * Otherwise, corresponds to one of `AnnotateSpec.segments`
- * (if specified) or to shot boundaries (if requested).
- *
- *
- * .google.cloud.videointelligence.v1beta1.VideoSegment segment = 1;
- */
- public Builder setSegment(
- com.google.cloud.videointelligence.v1beta1.VideoSegment.Builder builderForValue) {
- if (segmentBuilder_ == null) {
- segment_ = builderForValue.build();
- onChanged();
- } else {
- segmentBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- *
- *
- *
- * Video segment. Set to [-1, -1] for video-level labels.
- * Set to [timestamp, timestamp] for frame-level labels.
- * Otherwise, corresponds to one of `AnnotateSpec.segments`
- * (if specified) or to shot boundaries (if requested).
- *
- *
- * .google.cloud.videointelligence.v1beta1.VideoSegment segment = 1;
- */
- public Builder mergeSegment(com.google.cloud.videointelligence.v1beta1.VideoSegment value) {
- if (segmentBuilder_ == null) {
- if (segment_ != null) {
- segment_ =
- com.google.cloud.videointelligence.v1beta1.VideoSegment.newBuilder(segment_)
- .mergeFrom(value)
- .buildPartial();
- } else {
- segment_ = value;
- }
- onChanged();
- } else {
- segmentBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- *
- *
- *
- * Video segment. Set to [-1, -1] for video-level labels.
- * Set to [timestamp, timestamp] for frame-level labels.
- * Otherwise, corresponds to one of `AnnotateSpec.segments`
- * (if specified) or to shot boundaries (if requested).
- *
- *
- * .google.cloud.videointelligence.v1beta1.VideoSegment segment = 1;
- */
- public Builder clearSegment() {
- if (segmentBuilder_ == null) {
- segment_ = null;
- onChanged();
- } else {
- segment_ = null;
- segmentBuilder_ = null;
- }
-
- return this;
- }
- /**
- *
- *
- *
- * Video segment. Set to [-1, -1] for video-level labels.
- * Set to [timestamp, timestamp] for frame-level labels.
- * Otherwise, corresponds to one of `AnnotateSpec.segments`
- * (if specified) or to shot boundaries (if requested).
- *
- *
- * .google.cloud.videointelligence.v1beta1.VideoSegment segment = 1;
- */
- public com.google.cloud.videointelligence.v1beta1.VideoSegment.Builder getSegmentBuilder() {
-
- onChanged();
- return getSegmentFieldBuilder().getBuilder();
- }
- /**
- *
- *
- *
- * Video segment. Set to [-1, -1] for video-level labels.
- * Set to [timestamp, timestamp] for frame-level labels.
- * Otherwise, corresponds to one of `AnnotateSpec.segments`
- * (if specified) or to shot boundaries (if requested).
- *
- *
- * .google.cloud.videointelligence.v1beta1.VideoSegment segment = 1;
- */
- public com.google.cloud.videointelligence.v1beta1.VideoSegmentOrBuilder getSegmentOrBuilder() {
- if (segmentBuilder_ != null) {
- return segmentBuilder_.getMessageOrBuilder();
- } else {
- return segment_ == null
- ? com.google.cloud.videointelligence.v1beta1.VideoSegment.getDefaultInstance()
- : segment_;
- }
- }
- /**
- *
- *
- *
- * Video segment. Set to [-1, -1] for video-level labels.
- * Set to [timestamp, timestamp] for frame-level labels.
- * Otherwise, corresponds to one of `AnnotateSpec.segments`
- * (if specified) or to shot boundaries (if requested).
- *
- *
- * .google.cloud.videointelligence.v1beta1.VideoSegment segment = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.videointelligence.v1beta1.VideoSegment,
- com.google.cloud.videointelligence.v1beta1.VideoSegment.Builder,
- com.google.cloud.videointelligence.v1beta1.VideoSegmentOrBuilder>
- getSegmentFieldBuilder() {
- if (segmentBuilder_ == null) {
- segmentBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.videointelligence.v1beta1.VideoSegment,
- com.google.cloud.videointelligence.v1beta1.VideoSegment.Builder,
- com.google.cloud.videointelligence.v1beta1.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;
- }
-
- private int level_ = 0;
- /**
- *
- *
- *
- * Label level.
- *
- *
- * .google.cloud.videointelligence.v1beta1.LabelLevel level = 3;
- */
- public int getLevelValue() {
- return level_;
- }
- /**
- *
- *
- *
- * Label level.
- *
- *
- * .google.cloud.videointelligence.v1beta1.LabelLevel level = 3;
- */
- public Builder setLevelValue(int value) {
- level_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Label level.
- *
- *
- * .google.cloud.videointelligence.v1beta1.LabelLevel level = 3;
- */
- public com.google.cloud.videointelligence.v1beta1.LabelLevel getLevel() {
- @SuppressWarnings("deprecation")
- com.google.cloud.videointelligence.v1beta1.LabelLevel result =
- com.google.cloud.videointelligence.v1beta1.LabelLevel.valueOf(level_);
- return result == null
- ? com.google.cloud.videointelligence.v1beta1.LabelLevel.UNRECOGNIZED
- : result;
- }
- /**
- *
- *
- *
- * Label level.
- *
- *
- * .google.cloud.videointelligence.v1beta1.LabelLevel level = 3;
- */
- public Builder setLevel(com.google.cloud.videointelligence.v1beta1.LabelLevel value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- level_ = value.getNumber();
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Label level.
- *
- *
- * .google.cloud.videointelligence.v1beta1.LabelLevel level = 3;
- */
- public Builder clearLevel() {
-
- level_ = 0;
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
- // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1beta1.LabelLocation)
- }
-
- // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta1.LabelLocation)
- private static final com.google.cloud.videointelligence.v1beta1.LabelLocation DEFAULT_INSTANCE;
-
- static {
- DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1beta1.LabelLocation();
- }
-
- public static com.google.cloud.videointelligence.v1beta1.LabelLocation getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser
- * Video segment. Set to [-1, -1] for video-level labels.
- * Set to [timestamp, timestamp] for frame-level labels.
- * Otherwise, corresponds to one of `AnnotateSpec.segments`
- * (if specified) or to shot boundaries (if requested).
- *
- *
- * .google.cloud.videointelligence.v1beta1.VideoSegment segment = 1;
- */
- boolean hasSegment();
- /**
- *
- *
- *
- * Video segment. Set to [-1, -1] for video-level labels.
- * Set to [timestamp, timestamp] for frame-level labels.
- * Otherwise, corresponds to one of `AnnotateSpec.segments`
- * (if specified) or to shot boundaries (if requested).
- *
- *
- * .google.cloud.videointelligence.v1beta1.VideoSegment segment = 1;
- */
- com.google.cloud.videointelligence.v1beta1.VideoSegment getSegment();
- /**
- *
- *
- *
- * Video segment. Set to [-1, -1] for video-level labels.
- * Set to [timestamp, timestamp] for frame-level labels.
- * Otherwise, corresponds to one of `AnnotateSpec.segments`
- * (if specified) or to shot boundaries (if requested).
- *
- *
- * .google.cloud.videointelligence.v1beta1.VideoSegment segment = 1;
- */
- com.google.cloud.videointelligence.v1beta1.VideoSegmentOrBuilder getSegmentOrBuilder();
-
- /**
- *
- *
- *
- * Confidence that the label is accurate. Range: [0, 1].
- *
- *
- * float confidence = 2;
- */
- float getConfidence();
-
- /**
- *
- *
- *
- * Label level.
- *
- *
- * .google.cloud.videointelligence.v1beta1.LabelLevel level = 3;
- */
- int getLevelValue();
- /**
- *
- *
- *
- * Label level.
- *
- *
- * .google.cloud.videointelligence.v1beta1.LabelLevel level = 3;
- */
- com.google.cloud.videointelligence.v1beta1.LabelLevel getLevel();
-}
diff --git a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/Likelihood.java b/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/Likelihood.java
deleted file mode 100644
index e5273e758..000000000
--- a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/Likelihood.java
+++ /dev/null
@@ -1,217 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/cloud/videointelligence/v1beta1/video_intelligence.proto
-
-package com.google.cloud.videointelligence.v1beta1;
-
-/**
- *
- *
- *
- * Bucketized representation of likelihood.
- *
- *
- * Protobuf enum {@code google.cloud.videointelligence.v1beta1.Likelihood}
- */
-public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum {
- /**
- *
- *
- *
- * Unknown likelihood.
- *
- *
- * UNKNOWN = 0;
- */
- UNKNOWN(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),
- ;
-
- /**
- *
- *
- *
- * Unknown likelihood.
- *
- *
- * UNKNOWN = 0;
- */
- public static final int UNKNOWN_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 UNKNOWN;
- 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
- * Safe search annotation (based on per-frame visual signals only).
- * If no unsafe content has been detected in a frame, no annotations
- * are present for that frame. If only some types of unsafe content
- * have been detected in a frame, the likelihood is set to `UNKNOWN`
- * for all other types of unsafe content.
- *
- *
- * Protobuf type {@code google.cloud.videointelligence.v1beta1.SafeSearchAnnotation}
- */
-public final class SafeSearchAnnotation extends com.google.protobuf.GeneratedMessageV3
- implements
- // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1beta1.SafeSearchAnnotation)
- SafeSearchAnnotationOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use SafeSearchAnnotation.newBuilder() to construct.
- private SafeSearchAnnotation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
-
- private SafeSearchAnnotation() {
- adult_ = 0;
- spoof_ = 0;
- medical_ = 0;
- violent_ = 0;
- racy_ = 0;
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
- private SafeSearchAnnotation(
- 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();
-
- adult_ = rawValue;
- break;
- }
- case 16:
- {
- int rawValue = input.readEnum();
-
- spoof_ = rawValue;
- break;
- }
- case 24:
- {
- int rawValue = input.readEnum();
-
- medical_ = rawValue;
- break;
- }
- case 32:
- {
- int rawValue = input.readEnum();
-
- violent_ = rawValue;
- break;
- }
- case 40:
- {
- int rawValue = input.readEnum();
-
- racy_ = rawValue;
- break;
- }
- case 48:
- {
- timeOffset_ = input.readInt64();
- break;
- }
- default:
- {
- if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.videointelligence.v1beta1.VideoIntelligenceServiceProto
- .internal_static_google_cloud_videointelligence_v1beta1_SafeSearchAnnotation_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.google.cloud.videointelligence.v1beta1.VideoIntelligenceServiceProto
- .internal_static_google_cloud_videointelligence_v1beta1_SafeSearchAnnotation_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation.class,
- com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation.Builder.class);
- }
-
- public static final int ADULT_FIELD_NUMBER = 1;
- private int adult_;
- /**
- *
- *
- *
- * Likelihood of adult content.
- *
- *
- * .google.cloud.videointelligence.v1beta1.Likelihood adult = 1;
- */
- public int getAdultValue() {
- return adult_;
- }
- /**
- *
- *
- *
- * Likelihood of adult content.
- *
- *
- * .google.cloud.videointelligence.v1beta1.Likelihood adult = 1;
- */
- public com.google.cloud.videointelligence.v1beta1.Likelihood getAdult() {
- @SuppressWarnings("deprecation")
- com.google.cloud.videointelligence.v1beta1.Likelihood result =
- com.google.cloud.videointelligence.v1beta1.Likelihood.valueOf(adult_);
- return result == null
- ? com.google.cloud.videointelligence.v1beta1.Likelihood.UNRECOGNIZED
- : result;
- }
-
- public static final int SPOOF_FIELD_NUMBER = 2;
- private int spoof_;
- /**
- *
- *
- *
- * Likelihood that an obvious modification was made to the original
- * version to make it appear funny or offensive.
- *
- *
- * .google.cloud.videointelligence.v1beta1.Likelihood spoof = 2;
- */
- public int getSpoofValue() {
- return spoof_;
- }
- /**
- *
- *
- *
- * Likelihood that an obvious modification was made to the original
- * version to make it appear funny or offensive.
- *
- *
- * .google.cloud.videointelligence.v1beta1.Likelihood spoof = 2;
- */
- public com.google.cloud.videointelligence.v1beta1.Likelihood getSpoof() {
- @SuppressWarnings("deprecation")
- com.google.cloud.videointelligence.v1beta1.Likelihood result =
- com.google.cloud.videointelligence.v1beta1.Likelihood.valueOf(spoof_);
- return result == null
- ? com.google.cloud.videointelligence.v1beta1.Likelihood.UNRECOGNIZED
- : result;
- }
-
- public static final int MEDICAL_FIELD_NUMBER = 3;
- private int medical_;
- /**
- *
- *
- *
- * Likelihood of medical content.
- *
- *
- * .google.cloud.videointelligence.v1beta1.Likelihood medical = 3;
- */
- public int getMedicalValue() {
- return medical_;
- }
- /**
- *
- *
- *
- * Likelihood of medical content.
- *
- *
- * .google.cloud.videointelligence.v1beta1.Likelihood medical = 3;
- */
- public com.google.cloud.videointelligence.v1beta1.Likelihood getMedical() {
- @SuppressWarnings("deprecation")
- com.google.cloud.videointelligence.v1beta1.Likelihood result =
- com.google.cloud.videointelligence.v1beta1.Likelihood.valueOf(medical_);
- return result == null
- ? com.google.cloud.videointelligence.v1beta1.Likelihood.UNRECOGNIZED
- : result;
- }
-
- public static final int VIOLENT_FIELD_NUMBER = 4;
- private int violent_;
- /**
- *
- *
- *
- * Likelihood of violent content.
- *
- *
- * .google.cloud.videointelligence.v1beta1.Likelihood violent = 4;
- */
- public int getViolentValue() {
- return violent_;
- }
- /**
- *
- *
- *
- * Likelihood of violent content.
- *
- *
- * .google.cloud.videointelligence.v1beta1.Likelihood violent = 4;
- */
- public com.google.cloud.videointelligence.v1beta1.Likelihood getViolent() {
- @SuppressWarnings("deprecation")
- com.google.cloud.videointelligence.v1beta1.Likelihood result =
- com.google.cloud.videointelligence.v1beta1.Likelihood.valueOf(violent_);
- return result == null
- ? com.google.cloud.videointelligence.v1beta1.Likelihood.UNRECOGNIZED
- : result;
- }
-
- public static final int RACY_FIELD_NUMBER = 5;
- private int racy_;
- /**
- *
- *
- *
- * Likelihood of racy content.
- *
- *
- * .google.cloud.videointelligence.v1beta1.Likelihood racy = 5;
- */
- public int getRacyValue() {
- return racy_;
- }
- /**
- *
- *
- *
- * Likelihood of racy content.
- *
- *
- * .google.cloud.videointelligence.v1beta1.Likelihood racy = 5;
- */
- public com.google.cloud.videointelligence.v1beta1.Likelihood getRacy() {
- @SuppressWarnings("deprecation")
- com.google.cloud.videointelligence.v1beta1.Likelihood result =
- com.google.cloud.videointelligence.v1beta1.Likelihood.valueOf(racy_);
- return result == null
- ? com.google.cloud.videointelligence.v1beta1.Likelihood.UNRECOGNIZED
- : result;
- }
-
- public static final int TIME_OFFSET_FIELD_NUMBER = 6;
- private long timeOffset_;
- /**
- *
- *
- *
- * Video time offset in microseconds.
- *
- *
- * int64 time_offset = 6;
- */
- public long getTimeOffset() {
- return timeOffset_;
- }
-
- 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 (adult_ != com.google.cloud.videointelligence.v1beta1.Likelihood.UNKNOWN.getNumber()) {
- output.writeEnum(1, adult_);
- }
- if (spoof_ != com.google.cloud.videointelligence.v1beta1.Likelihood.UNKNOWN.getNumber()) {
- output.writeEnum(2, spoof_);
- }
- if (medical_ != com.google.cloud.videointelligence.v1beta1.Likelihood.UNKNOWN.getNumber()) {
- output.writeEnum(3, medical_);
- }
- if (violent_ != com.google.cloud.videointelligence.v1beta1.Likelihood.UNKNOWN.getNumber()) {
- output.writeEnum(4, violent_);
- }
- if (racy_ != com.google.cloud.videointelligence.v1beta1.Likelihood.UNKNOWN.getNumber()) {
- output.writeEnum(5, racy_);
- }
- if (timeOffset_ != 0L) {
- output.writeInt64(6, timeOffset_);
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (adult_ != com.google.cloud.videointelligence.v1beta1.Likelihood.UNKNOWN.getNumber()) {
- size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, adult_);
- }
- if (spoof_ != com.google.cloud.videointelligence.v1beta1.Likelihood.UNKNOWN.getNumber()) {
- size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, spoof_);
- }
- if (medical_ != com.google.cloud.videointelligence.v1beta1.Likelihood.UNKNOWN.getNumber()) {
- size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, medical_);
- }
- if (violent_ != com.google.cloud.videointelligence.v1beta1.Likelihood.UNKNOWN.getNumber()) {
- size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, violent_);
- }
- if (racy_ != com.google.cloud.videointelligence.v1beta1.Likelihood.UNKNOWN.getNumber()) {
- size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, racy_);
- }
- if (timeOffset_ != 0L) {
- size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, timeOffset_);
- }
- 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.v1beta1.SafeSearchAnnotation)) {
- return super.equals(obj);
- }
- com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation other =
- (com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation) obj;
-
- if (adult_ != other.adult_) return false;
- if (spoof_ != other.spoof_) return false;
- if (medical_ != other.medical_) return false;
- if (violent_ != other.violent_) return false;
- if (racy_ != other.racy_) return false;
- if (getTimeOffset() != other.getTimeOffset()) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (37 * hash) + ADULT_FIELD_NUMBER;
- hash = (53 * hash) + adult_;
- hash = (37 * hash) + SPOOF_FIELD_NUMBER;
- hash = (53 * hash) + spoof_;
- hash = (37 * hash) + MEDICAL_FIELD_NUMBER;
- hash = (53 * hash) + medical_;
- hash = (37 * hash) + VIOLENT_FIELD_NUMBER;
- hash = (53 * hash) + violent_;
- hash = (37 * hash) + RACY_FIELD_NUMBER;
- hash = (53 * hash) + racy_;
- hash = (37 * hash) + TIME_OFFSET_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTimeOffset());
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation parseFrom(
- java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation 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.v1beta1.SafeSearchAnnotation parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation 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.v1beta1.SafeSearchAnnotation parseFrom(
- byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation parseFrom(
- byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation parseFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation 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.v1beta1.SafeSearchAnnotation parseDelimitedFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation 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.v1beta1.SafeSearchAnnotation parseFrom(
- com.google.protobuf.CodedInputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation 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.v1beta1.SafeSearchAnnotation 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;
- }
- /**
- *
- *
- *
- * Safe search annotation (based on per-frame visual signals only).
- * If no unsafe content has been detected in a frame, no annotations
- * are present for that frame. If only some types of unsafe content
- * have been detected in a frame, the likelihood is set to `UNKNOWN`
- * for all other types of unsafe content.
- *
- *
- * Protobuf type {@code google.cloud.videointelligence.v1beta1.SafeSearchAnnotation}
- */
- public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
- * Likelihood of adult content.
- *
- *
- * .google.cloud.videointelligence.v1beta1.Likelihood adult = 1;
- */
- public int getAdultValue() {
- return adult_;
- }
- /**
- *
- *
- *
- * Likelihood of adult content.
- *
- *
- * .google.cloud.videointelligence.v1beta1.Likelihood adult = 1;
- */
- public Builder setAdultValue(int value) {
- adult_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Likelihood of adult content.
- *
- *
- * .google.cloud.videointelligence.v1beta1.Likelihood adult = 1;
- */
- public com.google.cloud.videointelligence.v1beta1.Likelihood getAdult() {
- @SuppressWarnings("deprecation")
- com.google.cloud.videointelligence.v1beta1.Likelihood result =
- com.google.cloud.videointelligence.v1beta1.Likelihood.valueOf(adult_);
- return result == null
- ? com.google.cloud.videointelligence.v1beta1.Likelihood.UNRECOGNIZED
- : result;
- }
- /**
- *
- *
- *
- * Likelihood of adult content.
- *
- *
- * .google.cloud.videointelligence.v1beta1.Likelihood adult = 1;
- */
- public Builder setAdult(com.google.cloud.videointelligence.v1beta1.Likelihood value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- adult_ = value.getNumber();
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Likelihood of adult content.
- *
- *
- * .google.cloud.videointelligence.v1beta1.Likelihood adult = 1;
- */
- public Builder clearAdult() {
-
- adult_ = 0;
- onChanged();
- return this;
- }
-
- private int spoof_ = 0;
- /**
- *
- *
- *
- * Likelihood that an obvious modification was made to the original
- * version to make it appear funny or offensive.
- *
- *
- * .google.cloud.videointelligence.v1beta1.Likelihood spoof = 2;
- */
- public int getSpoofValue() {
- return spoof_;
- }
- /**
- *
- *
- *
- * Likelihood that an obvious modification was made to the original
- * version to make it appear funny or offensive.
- *
- *
- * .google.cloud.videointelligence.v1beta1.Likelihood spoof = 2;
- */
- public Builder setSpoofValue(int value) {
- spoof_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Likelihood that an obvious modification was made to the original
- * version to make it appear funny or offensive.
- *
- *
- * .google.cloud.videointelligence.v1beta1.Likelihood spoof = 2;
- */
- public com.google.cloud.videointelligence.v1beta1.Likelihood getSpoof() {
- @SuppressWarnings("deprecation")
- com.google.cloud.videointelligence.v1beta1.Likelihood result =
- com.google.cloud.videointelligence.v1beta1.Likelihood.valueOf(spoof_);
- return result == null
- ? com.google.cloud.videointelligence.v1beta1.Likelihood.UNRECOGNIZED
- : result;
- }
- /**
- *
- *
- *
- * Likelihood that an obvious modification was made to the original
- * version to make it appear funny or offensive.
- *
- *
- * .google.cloud.videointelligence.v1beta1.Likelihood spoof = 2;
- */
- public Builder setSpoof(com.google.cloud.videointelligence.v1beta1.Likelihood value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- spoof_ = value.getNumber();
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Likelihood that an obvious modification was made to the original
- * version to make it appear funny or offensive.
- *
- *
- * .google.cloud.videointelligence.v1beta1.Likelihood spoof = 2;
- */
- public Builder clearSpoof() {
-
- spoof_ = 0;
- onChanged();
- return this;
- }
-
- private int medical_ = 0;
- /**
- *
- *
- *
- * Likelihood of medical content.
- *
- *
- * .google.cloud.videointelligence.v1beta1.Likelihood medical = 3;
- */
- public int getMedicalValue() {
- return medical_;
- }
- /**
- *
- *
- *
- * Likelihood of medical content.
- *
- *
- * .google.cloud.videointelligence.v1beta1.Likelihood medical = 3;
- */
- public Builder setMedicalValue(int value) {
- medical_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Likelihood of medical content.
- *
- *
- * .google.cloud.videointelligence.v1beta1.Likelihood medical = 3;
- */
- public com.google.cloud.videointelligence.v1beta1.Likelihood getMedical() {
- @SuppressWarnings("deprecation")
- com.google.cloud.videointelligence.v1beta1.Likelihood result =
- com.google.cloud.videointelligence.v1beta1.Likelihood.valueOf(medical_);
- return result == null
- ? com.google.cloud.videointelligence.v1beta1.Likelihood.UNRECOGNIZED
- : result;
- }
- /**
- *
- *
- *
- * Likelihood of medical content.
- *
- *
- * .google.cloud.videointelligence.v1beta1.Likelihood medical = 3;
- */
- public Builder setMedical(com.google.cloud.videointelligence.v1beta1.Likelihood value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- medical_ = value.getNumber();
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Likelihood of medical content.
- *
- *
- * .google.cloud.videointelligence.v1beta1.Likelihood medical = 3;
- */
- public Builder clearMedical() {
-
- medical_ = 0;
- onChanged();
- return this;
- }
-
- private int violent_ = 0;
- /**
- *
- *
- *
- * Likelihood of violent content.
- *
- *
- * .google.cloud.videointelligence.v1beta1.Likelihood violent = 4;
- */
- public int getViolentValue() {
- return violent_;
- }
- /**
- *
- *
- *
- * Likelihood of violent content.
- *
- *
- * .google.cloud.videointelligence.v1beta1.Likelihood violent = 4;
- */
- public Builder setViolentValue(int value) {
- violent_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Likelihood of violent content.
- *
- *
- * .google.cloud.videointelligence.v1beta1.Likelihood violent = 4;
- */
- public com.google.cloud.videointelligence.v1beta1.Likelihood getViolent() {
- @SuppressWarnings("deprecation")
- com.google.cloud.videointelligence.v1beta1.Likelihood result =
- com.google.cloud.videointelligence.v1beta1.Likelihood.valueOf(violent_);
- return result == null
- ? com.google.cloud.videointelligence.v1beta1.Likelihood.UNRECOGNIZED
- : result;
- }
- /**
- *
- *
- *
- * Likelihood of violent content.
- *
- *
- * .google.cloud.videointelligence.v1beta1.Likelihood violent = 4;
- */
- public Builder setViolent(com.google.cloud.videointelligence.v1beta1.Likelihood value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- violent_ = value.getNumber();
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Likelihood of violent content.
- *
- *
- * .google.cloud.videointelligence.v1beta1.Likelihood violent = 4;
- */
- public Builder clearViolent() {
-
- violent_ = 0;
- onChanged();
- return this;
- }
-
- private int racy_ = 0;
- /**
- *
- *
- *
- * Likelihood of racy content.
- *
- *
- * .google.cloud.videointelligence.v1beta1.Likelihood racy = 5;
- */
- public int getRacyValue() {
- return racy_;
- }
- /**
- *
- *
- *
- * Likelihood of racy content.
- *
- *
- * .google.cloud.videointelligence.v1beta1.Likelihood racy = 5;
- */
- public Builder setRacyValue(int value) {
- racy_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Likelihood of racy content.
- *
- *
- * .google.cloud.videointelligence.v1beta1.Likelihood racy = 5;
- */
- public com.google.cloud.videointelligence.v1beta1.Likelihood getRacy() {
- @SuppressWarnings("deprecation")
- com.google.cloud.videointelligence.v1beta1.Likelihood result =
- com.google.cloud.videointelligence.v1beta1.Likelihood.valueOf(racy_);
- return result == null
- ? com.google.cloud.videointelligence.v1beta1.Likelihood.UNRECOGNIZED
- : result;
- }
- /**
- *
- *
- *
- * Likelihood of racy content.
- *
- *
- * .google.cloud.videointelligence.v1beta1.Likelihood racy = 5;
- */
- public Builder setRacy(com.google.cloud.videointelligence.v1beta1.Likelihood value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- racy_ = value.getNumber();
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Likelihood of racy content.
- *
- *
- * .google.cloud.videointelligence.v1beta1.Likelihood racy = 5;
- */
- public Builder clearRacy() {
-
- racy_ = 0;
- onChanged();
- return this;
- }
-
- private long timeOffset_;
- /**
- *
- *
- *
- * Video time offset in microseconds.
- *
- *
- * int64 time_offset = 6;
- */
- public long getTimeOffset() {
- return timeOffset_;
- }
- /**
- *
- *
- *
- * Video time offset in microseconds.
- *
- *
- * int64 time_offset = 6;
- */
- public Builder setTimeOffset(long value) {
-
- timeOffset_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Video time offset in microseconds.
- *
- *
- * int64 time_offset = 6;
- */
- public Builder clearTimeOffset() {
-
- timeOffset_ = 0L;
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
- // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1beta1.SafeSearchAnnotation)
- }
-
- // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta1.SafeSearchAnnotation)
- private static final com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation
- DEFAULT_INSTANCE;
-
- static {
- DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation();
- }
-
- public static com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation
- getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser
- * Likelihood of adult content.
- *
- *
- * .google.cloud.videointelligence.v1beta1.Likelihood adult = 1;
- */
- int getAdultValue();
- /**
- *
- *
- *
- * Likelihood of adult content.
- *
- *
- * .google.cloud.videointelligence.v1beta1.Likelihood adult = 1;
- */
- com.google.cloud.videointelligence.v1beta1.Likelihood getAdult();
-
- /**
- *
- *
- *
- * Likelihood that an obvious modification was made to the original
- * version to make it appear funny or offensive.
- *
- *
- * .google.cloud.videointelligence.v1beta1.Likelihood spoof = 2;
- */
- int getSpoofValue();
- /**
- *
- *
- *
- * Likelihood that an obvious modification was made to the original
- * version to make it appear funny or offensive.
- *
- *
- * .google.cloud.videointelligence.v1beta1.Likelihood spoof = 2;
- */
- com.google.cloud.videointelligence.v1beta1.Likelihood getSpoof();
-
- /**
- *
- *
- *
- * Likelihood of medical content.
- *
- *
- * .google.cloud.videointelligence.v1beta1.Likelihood medical = 3;
- */
- int getMedicalValue();
- /**
- *
- *
- *
- * Likelihood of medical content.
- *
- *
- * .google.cloud.videointelligence.v1beta1.Likelihood medical = 3;
- */
- com.google.cloud.videointelligence.v1beta1.Likelihood getMedical();
-
- /**
- *
- *
- *
- * Likelihood of violent content.
- *
- *
- * .google.cloud.videointelligence.v1beta1.Likelihood violent = 4;
- */
- int getViolentValue();
- /**
- *
- *
- *
- * Likelihood of violent content.
- *
- *
- * .google.cloud.videointelligence.v1beta1.Likelihood violent = 4;
- */
- com.google.cloud.videointelligence.v1beta1.Likelihood getViolent();
-
- /**
- *
- *
- *
- * Likelihood of racy content.
- *
- *
- * .google.cloud.videointelligence.v1beta1.Likelihood racy = 5;
- */
- int getRacyValue();
- /**
- *
- *
- *
- * Likelihood of racy content.
- *
- *
- * .google.cloud.videointelligence.v1beta1.Likelihood racy = 5;
- */
- com.google.cloud.videointelligence.v1beta1.Likelihood getRacy();
-
- /**
- *
- *
- *
- * Video time offset in microseconds.
- *
- *
- * int64 time_offset = 6;
- */
- long getTimeOffset();
-}
diff --git a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/VideoAnnotationProgress.java b/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/VideoAnnotationProgress.java
deleted file mode 100644
index e539cab8c..000000000
--- a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/VideoAnnotationProgress.java
+++ /dev/null
@@ -1,1218 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/cloud/videointelligence/v1beta1/video_intelligence.proto
-
-package com.google.cloud.videointelligence.v1beta1;
-
-/**
- *
- *
- *
- * Annotation progress for a single video.
- *
- *
- * Protobuf type {@code google.cloud.videointelligence.v1beta1.VideoAnnotationProgress}
- */
-public final class VideoAnnotationProgress extends com.google.protobuf.GeneratedMessageV3
- implements
- // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1beta1.VideoAnnotationProgress)
- VideoAnnotationProgressOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use VideoAnnotationProgress.newBuilder() to construct.
- private VideoAnnotationProgress(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
-
- private VideoAnnotationProgress() {
- inputUri_ = "";
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
- private VideoAnnotationProgress(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10:
- {
- java.lang.String s = input.readStringRequireUtf8();
-
- inputUri_ = s;
- break;
- }
- case 16:
- {
- progressPercent_ = input.readInt32();
- break;
- }
- case 26:
- {
- com.google.protobuf.Timestamp.Builder subBuilder = null;
- if (startTime_ != null) {
- subBuilder = startTime_.toBuilder();
- }
- startTime_ =
- input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(startTime_);
- startTime_ = subBuilder.buildPartial();
- }
-
- break;
- }
- case 34:
- {
- com.google.protobuf.Timestamp.Builder subBuilder = null;
- if (updateTime_ != null) {
- subBuilder = updateTime_.toBuilder();
- }
- updateTime_ =
- input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(updateTime_);
- updateTime_ = subBuilder.buildPartial();
- }
-
- break;
- }
- default:
- {
- if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.videointelligence.v1beta1.VideoIntelligenceServiceProto
- .internal_static_google_cloud_videointelligence_v1beta1_VideoAnnotationProgress_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.google.cloud.videointelligence.v1beta1.VideoIntelligenceServiceProto
- .internal_static_google_cloud_videointelligence_v1beta1_VideoAnnotationProgress_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress.class,
- com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress.Builder.class);
- }
-
- public static final int INPUT_URI_FIELD_NUMBER = 1;
- private volatile java.lang.Object inputUri_;
- /**
- *
- *
- *
- * Video file location in
- * [Google Cloud Storage](https://cloud.google.com/storage/).
- *
- *
- * string input_uri = 1;
- */
- public java.lang.String getInputUri() {
- java.lang.Object ref = inputUri_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- inputUri_ = s;
- return s;
- }
- }
- /**
- *
- *
- *
- * Video file location in
- * [Google Cloud Storage](https://cloud.google.com/storage/).
- *
- *
- * string input_uri = 1;
- */
- public com.google.protobuf.ByteString getInputUriBytes() {
- java.lang.Object ref = inputUri_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- inputUri_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int PROGRESS_PERCENT_FIELD_NUMBER = 2;
- private int progressPercent_;
- /**
- *
- *
- *
- * Approximate percentage processed thus far.
- * Guaranteed to be 100 when fully processed.
- *
- *
- * int32 progress_percent = 2;
- */
- public int getProgressPercent() {
- return progressPercent_;
- }
-
- public static final int START_TIME_FIELD_NUMBER = 3;
- private com.google.protobuf.Timestamp startTime_;
- /**
- *
- *
- *
- * Time when the request was received.
- *
- *
- * .google.protobuf.Timestamp start_time = 3;
- */
- public boolean hasStartTime() {
- return startTime_ != null;
- }
- /**
- *
- *
- *
- * Time when the request was received.
- *
- *
- * .google.protobuf.Timestamp start_time = 3;
- */
- public com.google.protobuf.Timestamp getStartTime() {
- return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
- }
- /**
- *
- *
- *
- * Time when the request was received.
- *
- *
- * .google.protobuf.Timestamp start_time = 3;
- */
- public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
- return getStartTime();
- }
-
- public static final int UPDATE_TIME_FIELD_NUMBER = 4;
- private com.google.protobuf.Timestamp updateTime_;
- /**
- *
- *
- *
- * Time of the most recent update.
- *
- *
- * .google.protobuf.Timestamp update_time = 4;
- */
- public boolean hasUpdateTime() {
- return updateTime_ != null;
- }
- /**
- *
- *
- *
- * Time of the most recent update.
- *
- *
- * .google.protobuf.Timestamp update_time = 4;
- */
- public com.google.protobuf.Timestamp getUpdateTime() {
- return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
- }
- /**
- *
- *
- *
- * Time of the most recent update.
- *
- *
- * .google.protobuf.Timestamp update_time = 4;
- */
- public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
- return getUpdateTime();
- }
-
- private byte memoizedIsInitialized = -1;
-
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getInputUriBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputUri_);
- }
- if (progressPercent_ != 0) {
- output.writeInt32(2, progressPercent_);
- }
- if (startTime_ != null) {
- output.writeMessage(3, getStartTime());
- }
- if (updateTime_ != null) {
- output.writeMessage(4, getUpdateTime());
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (!getInputUriBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, inputUri_);
- }
- if (progressPercent_ != 0) {
- size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, progressPercent_);
- }
- if (startTime_ != null) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStartTime());
- }
- if (updateTime_ != null) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime());
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress)) {
- return super.equals(obj);
- }
- com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress other =
- (com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress) obj;
-
- if (!getInputUri().equals(other.getInputUri())) return false;
- if (getProgressPercent() != other.getProgressPercent()) return false;
- if (hasStartTime() != other.hasStartTime()) return false;
- if (hasStartTime()) {
- if (!getStartTime().equals(other.getStartTime())) return false;
- }
- if (hasUpdateTime() != other.hasUpdateTime()) return false;
- if (hasUpdateTime()) {
- if (!getUpdateTime().equals(other.getUpdateTime())) return false;
- }
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (37 * hash) + INPUT_URI_FIELD_NUMBER;
- hash = (53 * hash) + getInputUri().hashCode();
- hash = (37 * hash) + PROGRESS_PERCENT_FIELD_NUMBER;
- hash = (53 * hash) + getProgressPercent();
- if (hasStartTime()) {
- hash = (37 * hash) + START_TIME_FIELD_NUMBER;
- hash = (53 * hash) + getStartTime().hashCode();
- }
- if (hasUpdateTime()) {
- hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER;
- hash = (53 * hash) + getUpdateTime().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress parseFrom(
- java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress parseFrom(
- java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress parseFrom(
- byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress parseFrom(
- byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress parseFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress parseFrom(
- java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
- PARSER, input, extensionRegistry);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress
- parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress
- parseDelimitedFrom(
- java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
- PARSER, input, extensionRegistry);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress parseFrom(
- com.google.protobuf.CodedInputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
- PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() {
- return newBuilder();
- }
-
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
-
- public static Builder newBuilder(
- com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
-
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- *
- *
- *
- * Annotation progress for a single video.
- *
- *
- * Protobuf type {@code google.cloud.videointelligence.v1beta1.VideoAnnotationProgress}
- */
- public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
- * Video file location in
- * [Google Cloud Storage](https://cloud.google.com/storage/).
- *
- *
- * string input_uri = 1;
- */
- public java.lang.String getInputUri() {
- java.lang.Object ref = inputUri_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- inputUri_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- *
- *
- *
- * Video file location in
- * [Google Cloud Storage](https://cloud.google.com/storage/).
- *
- *
- * string input_uri = 1;
- */
- public com.google.protobuf.ByteString getInputUriBytes() {
- java.lang.Object ref = inputUri_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- inputUri_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- *
- *
- *
- * Video file location in
- * [Google Cloud Storage](https://cloud.google.com/storage/).
- *
- *
- * string input_uri = 1;
- */
- public Builder setInputUri(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- inputUri_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Video file location in
- * [Google Cloud Storage](https://cloud.google.com/storage/).
- *
- *
- * string input_uri = 1;
- */
- public Builder clearInputUri() {
-
- inputUri_ = getDefaultInstance().getInputUri();
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Video file location in
- * [Google Cloud Storage](https://cloud.google.com/storage/).
- *
- *
- * string input_uri = 1;
- */
- public Builder setInputUriBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- inputUri_ = value;
- onChanged();
- return this;
- }
-
- private int progressPercent_;
- /**
- *
- *
- *
- * Approximate percentage processed thus far.
- * Guaranteed to be 100 when fully processed.
- *
- *
- * int32 progress_percent = 2;
- */
- public int getProgressPercent() {
- return progressPercent_;
- }
- /**
- *
- *
- *
- * Approximate percentage processed thus far.
- * Guaranteed to be 100 when fully processed.
- *
- *
- * int32 progress_percent = 2;
- */
- public Builder setProgressPercent(int value) {
-
- progressPercent_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Approximate percentage processed thus far.
- * Guaranteed to be 100 when fully processed.
- *
- *
- * int32 progress_percent = 2;
- */
- public Builder clearProgressPercent() {
-
- progressPercent_ = 0;
- onChanged();
- return this;
- }
-
- private com.google.protobuf.Timestamp startTime_;
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.protobuf.Timestamp,
- com.google.protobuf.Timestamp.Builder,
- com.google.protobuf.TimestampOrBuilder>
- startTimeBuilder_;
- /**
- *
- *
- *
- * Time when the request was received.
- *
- *
- * .google.protobuf.Timestamp start_time = 3;
- */
- public boolean hasStartTime() {
- return startTimeBuilder_ != null || startTime_ != null;
- }
- /**
- *
- *
- *
- * Time when the request was received.
- *
- *
- * .google.protobuf.Timestamp start_time = 3;
- */
- public com.google.protobuf.Timestamp getStartTime() {
- if (startTimeBuilder_ == null) {
- return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
- } else {
- return startTimeBuilder_.getMessage();
- }
- }
- /**
- *
- *
- *
- * Time when the request was received.
- *
- *
- * .google.protobuf.Timestamp start_time = 3;
- */
- public Builder setStartTime(com.google.protobuf.Timestamp value) {
- if (startTimeBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- startTime_ = value;
- onChanged();
- } else {
- startTimeBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- *
- *
- *
- * Time when the request was received.
- *
- *
- * .google.protobuf.Timestamp start_time = 3;
- */
- public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) {
- if (startTimeBuilder_ == null) {
- startTime_ = builderForValue.build();
- onChanged();
- } else {
- startTimeBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- *
- *
- *
- * Time when the request was received.
- *
- *
- * .google.protobuf.Timestamp start_time = 3;
- */
- public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
- if (startTimeBuilder_ == null) {
- if (startTime_ != null) {
- startTime_ =
- com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial();
- } else {
- startTime_ = value;
- }
- onChanged();
- } else {
- startTimeBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- *
- *
- *
- * Time when the request was received.
- *
- *
- * .google.protobuf.Timestamp start_time = 3;
- */
- public Builder clearStartTime() {
- if (startTimeBuilder_ == null) {
- startTime_ = null;
- onChanged();
- } else {
- startTime_ = null;
- startTimeBuilder_ = null;
- }
-
- return this;
- }
- /**
- *
- *
- *
- * Time when the request was received.
- *
- *
- * .google.protobuf.Timestamp start_time = 3;
- */
- public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() {
-
- onChanged();
- return getStartTimeFieldBuilder().getBuilder();
- }
- /**
- *
- *
- *
- * Time when the request was received.
- *
- *
- * .google.protobuf.Timestamp start_time = 3;
- */
- public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
- if (startTimeBuilder_ != null) {
- return startTimeBuilder_.getMessageOrBuilder();
- } else {
- return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
- }
- }
- /**
- *
- *
- *
- * Time when the request was received.
- *
- *
- * .google.protobuf.Timestamp start_time = 3;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.protobuf.Timestamp,
- com.google.protobuf.Timestamp.Builder,
- com.google.protobuf.TimestampOrBuilder>
- getStartTimeFieldBuilder() {
- if (startTimeBuilder_ == null) {
- startTimeBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3<
- com.google.protobuf.Timestamp,
- com.google.protobuf.Timestamp.Builder,
- com.google.protobuf.TimestampOrBuilder>(
- getStartTime(), getParentForChildren(), isClean());
- startTime_ = null;
- }
- return startTimeBuilder_;
- }
-
- private com.google.protobuf.Timestamp updateTime_;
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.protobuf.Timestamp,
- com.google.protobuf.Timestamp.Builder,
- com.google.protobuf.TimestampOrBuilder>
- updateTimeBuilder_;
- /**
- *
- *
- *
- * Time of the most recent update.
- *
- *
- * .google.protobuf.Timestamp update_time = 4;
- */
- public boolean hasUpdateTime() {
- return updateTimeBuilder_ != null || updateTime_ != null;
- }
- /**
- *
- *
- *
- * Time of the most recent update.
- *
- *
- * .google.protobuf.Timestamp update_time = 4;
- */
- public com.google.protobuf.Timestamp getUpdateTime() {
- if (updateTimeBuilder_ == null) {
- return updateTime_ == null
- ? com.google.protobuf.Timestamp.getDefaultInstance()
- : updateTime_;
- } else {
- return updateTimeBuilder_.getMessage();
- }
- }
- /**
- *
- *
- *
- * Time of the most recent update.
- *
- *
- * .google.protobuf.Timestamp update_time = 4;
- */
- public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
- if (updateTimeBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- updateTime_ = value;
- onChanged();
- } else {
- updateTimeBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- *
- *
- *
- * Time of the most recent update.
- *
- *
- * .google.protobuf.Timestamp update_time = 4;
- */
- public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
- if (updateTimeBuilder_ == null) {
- updateTime_ = builderForValue.build();
- onChanged();
- } else {
- updateTimeBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- *
- *
- *
- * Time of the most recent update.
- *
- *
- * .google.protobuf.Timestamp update_time = 4;
- */
- public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
- if (updateTimeBuilder_ == null) {
- if (updateTime_ != null) {
- updateTime_ =
- com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial();
- } else {
- updateTime_ = value;
- }
- onChanged();
- } else {
- updateTimeBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- *
- *
- *
- * Time of the most recent update.
- *
- *
- * .google.protobuf.Timestamp update_time = 4;
- */
- public Builder clearUpdateTime() {
- if (updateTimeBuilder_ == null) {
- updateTime_ = null;
- onChanged();
- } else {
- updateTime_ = null;
- updateTimeBuilder_ = null;
- }
-
- return this;
- }
- /**
- *
- *
- *
- * Time of the most recent update.
- *
- *
- * .google.protobuf.Timestamp update_time = 4;
- */
- public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
-
- onChanged();
- return getUpdateTimeFieldBuilder().getBuilder();
- }
- /**
- *
- *
- *
- * Time of the most recent update.
- *
- *
- * .google.protobuf.Timestamp update_time = 4;
- */
- public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
- if (updateTimeBuilder_ != null) {
- return updateTimeBuilder_.getMessageOrBuilder();
- } else {
- return updateTime_ == null
- ? com.google.protobuf.Timestamp.getDefaultInstance()
- : updateTime_;
- }
- }
- /**
- *
- *
- *
- * Time of the most recent update.
- *
- *
- * .google.protobuf.Timestamp update_time = 4;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.protobuf.Timestamp,
- com.google.protobuf.Timestamp.Builder,
- com.google.protobuf.TimestampOrBuilder>
- getUpdateTimeFieldBuilder() {
- if (updateTimeBuilder_ == null) {
- updateTimeBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3<
- com.google.protobuf.Timestamp,
- com.google.protobuf.Timestamp.Builder,
- com.google.protobuf.TimestampOrBuilder>(
- getUpdateTime(), getParentForChildren(), isClean());
- updateTime_ = null;
- }
- return updateTimeBuilder_;
- }
-
- @java.lang.Override
- public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
- // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1beta1.VideoAnnotationProgress)
- }
-
- // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta1.VideoAnnotationProgress)
- private static final com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress
- DEFAULT_INSTANCE;
-
- static {
- DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress();
- }
-
- public static com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress
- getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser
- * Video file location in
- * [Google Cloud Storage](https://cloud.google.com/storage/).
- *
- *
- * string input_uri = 1;
- */
- java.lang.String getInputUri();
- /**
- *
- *
- *
- * Video file location in
- * [Google Cloud Storage](https://cloud.google.com/storage/).
- *
- *
- * string input_uri = 1;
- */
- com.google.protobuf.ByteString getInputUriBytes();
-
- /**
- *
- *
- *
- * Approximate percentage processed thus far.
- * Guaranteed to be 100 when fully processed.
- *
- *
- * int32 progress_percent = 2;
- */
- int getProgressPercent();
-
- /**
- *
- *
- *
- * Time when the request was received.
- *
- *
- * .google.protobuf.Timestamp start_time = 3;
- */
- boolean hasStartTime();
- /**
- *
- *
- *
- * Time when the request was received.
- *
- *
- * .google.protobuf.Timestamp start_time = 3;
- */
- com.google.protobuf.Timestamp getStartTime();
- /**
- *
- *
- *
- * Time when the request was received.
- *
- *
- * .google.protobuf.Timestamp start_time = 3;
- */
- com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder();
-
- /**
- *
- *
- *
- * Time of the most recent update.
- *
- *
- * .google.protobuf.Timestamp update_time = 4;
- */
- boolean hasUpdateTime();
- /**
- *
- *
- *
- * Time of the most recent update.
- *
- *
- * .google.protobuf.Timestamp update_time = 4;
- */
- com.google.protobuf.Timestamp getUpdateTime();
- /**
- *
- *
- *
- * Time of the most recent update.
- *
- *
- * .google.protobuf.Timestamp update_time = 4;
- */
- com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder();
-}
diff --git a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/VideoAnnotationResults.java b/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/VideoAnnotationResults.java
deleted file mode 100644
index f52efc5fd..000000000
--- a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/VideoAnnotationResults.java
+++ /dev/null
@@ -1,3042 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/cloud/videointelligence/v1beta1/video_intelligence.proto
-
-package com.google.cloud.videointelligence.v1beta1;
-
-/**
- *
- *
- *
- * Annotation results for a single video.
- *
- *
- * Protobuf type {@code google.cloud.videointelligence.v1beta1.VideoAnnotationResults}
- */
-public final class VideoAnnotationResults extends com.google.protobuf.GeneratedMessageV3
- implements
- // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1beta1.VideoAnnotationResults)
- VideoAnnotationResultsOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use VideoAnnotationResults.newBuilder() to construct.
- private VideoAnnotationResults(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
-
- private VideoAnnotationResults() {
- inputUri_ = "";
- labelAnnotations_ = java.util.Collections.emptyList();
- faceAnnotations_ = java.util.Collections.emptyList();
- shotAnnotations_ = java.util.Collections.emptyList();
- safeSearchAnnotations_ = java.util.Collections.emptyList();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
- private VideoAnnotationResults(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10:
- {
- java.lang.String s = input.readStringRequireUtf8();
-
- inputUri_ = s;
- break;
- }
- case 18:
- {
- if (!((mutable_bitField0_ & 0x00000002) != 0)) {
- labelAnnotations_ =
- new java.util.ArrayList<
- com.google.cloud.videointelligence.v1beta1.LabelAnnotation>();
- mutable_bitField0_ |= 0x00000002;
- }
- labelAnnotations_.add(
- input.readMessage(
- com.google.cloud.videointelligence.v1beta1.LabelAnnotation.parser(),
- extensionRegistry));
- break;
- }
- case 26:
- {
- if (!((mutable_bitField0_ & 0x00000004) != 0)) {
- faceAnnotations_ =
- new java.util.ArrayList<
- com.google.cloud.videointelligence.v1beta1.FaceAnnotation>();
- mutable_bitField0_ |= 0x00000004;
- }
- faceAnnotations_.add(
- input.readMessage(
- com.google.cloud.videointelligence.v1beta1.FaceAnnotation.parser(),
- extensionRegistry));
- break;
- }
- case 34:
- {
- if (!((mutable_bitField0_ & 0x00000008) != 0)) {
- shotAnnotations_ =
- new java.util.ArrayList<
- com.google.cloud.videointelligence.v1beta1.VideoSegment>();
- mutable_bitField0_ |= 0x00000008;
- }
- shotAnnotations_.add(
- input.readMessage(
- com.google.cloud.videointelligence.v1beta1.VideoSegment.parser(),
- extensionRegistry));
- break;
- }
- case 42:
- {
- 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 50:
- {
- if (!((mutable_bitField0_ & 0x00000010) != 0)) {
- safeSearchAnnotations_ =
- new java.util.ArrayList<
- com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation>();
- mutable_bitField0_ |= 0x00000010;
- }
- safeSearchAnnotations_.add(
- input.readMessage(
- com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation.parser(),
- extensionRegistry));
- break;
- }
- default:
- {
- if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
- } finally {
- if (((mutable_bitField0_ & 0x00000002) != 0)) {
- labelAnnotations_ = java.util.Collections.unmodifiableList(labelAnnotations_);
- }
- if (((mutable_bitField0_ & 0x00000004) != 0)) {
- faceAnnotations_ = java.util.Collections.unmodifiableList(faceAnnotations_);
- }
- if (((mutable_bitField0_ & 0x00000008) != 0)) {
- shotAnnotations_ = java.util.Collections.unmodifiableList(shotAnnotations_);
- }
- if (((mutable_bitField0_ & 0x00000010) != 0)) {
- safeSearchAnnotations_ = java.util.Collections.unmodifiableList(safeSearchAnnotations_);
- }
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.videointelligence.v1beta1.VideoIntelligenceServiceProto
- .internal_static_google_cloud_videointelligence_v1beta1_VideoAnnotationResults_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.google.cloud.videointelligence.v1beta1.VideoIntelligenceServiceProto
- .internal_static_google_cloud_videointelligence_v1beta1_VideoAnnotationResults_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults.class,
- com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults.Builder.class);
- }
-
- private int bitField0_;
- public static final int INPUT_URI_FIELD_NUMBER = 1;
- private volatile java.lang.Object inputUri_;
- /**
- *
- *
- *
- * Video file location in
- * [Google Cloud Storage](https://cloud.google.com/storage/).
- *
- *
- * string input_uri = 1;
- */
- public java.lang.String getInputUri() {
- java.lang.Object ref = inputUri_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- inputUri_ = s;
- return s;
- }
- }
- /**
- *
- *
- *
- * Video file location in
- * [Google Cloud Storage](https://cloud.google.com/storage/).
- *
- *
- * string input_uri = 1;
- */
- public com.google.protobuf.ByteString getInputUriBytes() {
- java.lang.Object ref = inputUri_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- inputUri_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int LABEL_ANNOTATIONS_FIELD_NUMBER = 2;
- private java.util.List
- * Label annotations. There is exactly one element for each unique label.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelAnnotation label_annotations = 2;
- *
- */
- public java.util.List
- * Label annotations. There is exactly one element for each unique label.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelAnnotation label_annotations = 2;
- *
- */
- public java.util.List<
- ? extends com.google.cloud.videointelligence.v1beta1.LabelAnnotationOrBuilder>
- getLabelAnnotationsOrBuilderList() {
- return labelAnnotations_;
- }
- /**
- *
- *
- *
- * Label annotations. There is exactly one element for each unique label.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelAnnotation label_annotations = 2;
- *
- */
- public int getLabelAnnotationsCount() {
- return labelAnnotations_.size();
- }
- /**
- *
- *
- *
- * Label annotations. There is exactly one element for each unique label.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelAnnotation label_annotations = 2;
- *
- */
- public com.google.cloud.videointelligence.v1beta1.LabelAnnotation getLabelAnnotations(int index) {
- return labelAnnotations_.get(index);
- }
- /**
- *
- *
- *
- * Label annotations. There is exactly one element for each unique label.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelAnnotation label_annotations = 2;
- *
- */
- public com.google.cloud.videointelligence.v1beta1.LabelAnnotationOrBuilder
- getLabelAnnotationsOrBuilder(int index) {
- return labelAnnotations_.get(index);
- }
-
- public static final int FACE_ANNOTATIONS_FIELD_NUMBER = 3;
- private java.util.List
- * Face annotations. There is exactly one element for each unique face.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceAnnotation face_annotations = 3;
- *
- */
- public java.util.List
- * Face annotations. There is exactly one element for each unique face.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceAnnotation face_annotations = 3;
- *
- */
- public java.util.List<
- ? extends com.google.cloud.videointelligence.v1beta1.FaceAnnotationOrBuilder>
- getFaceAnnotationsOrBuilderList() {
- return faceAnnotations_;
- }
- /**
- *
- *
- *
- * Face annotations. There is exactly one element for each unique face.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceAnnotation face_annotations = 3;
- *
- */
- public int getFaceAnnotationsCount() {
- return faceAnnotations_.size();
- }
- /**
- *
- *
- *
- * Face annotations. There is exactly one element for each unique face.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceAnnotation face_annotations = 3;
- *
- */
- public com.google.cloud.videointelligence.v1beta1.FaceAnnotation getFaceAnnotations(int index) {
- return faceAnnotations_.get(index);
- }
- /**
- *
- *
- *
- * Face annotations. There is exactly one element for each unique face.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceAnnotation face_annotations = 3;
- *
- */
- public com.google.cloud.videointelligence.v1beta1.FaceAnnotationOrBuilder
- getFaceAnnotationsOrBuilder(int index) {
- return faceAnnotations_.get(index);
- }
-
- public static final int SHOT_ANNOTATIONS_FIELD_NUMBER = 4;
- private java.util.List
- * Shot annotations. Each shot is represented as a video segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment shot_annotations = 4;
- *
- */
- public java.util.List
- * Shot annotations. Each shot is represented as a video segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment shot_annotations = 4;
- *
- */
- public java.util.List extends com.google.cloud.videointelligence.v1beta1.VideoSegmentOrBuilder>
- getShotAnnotationsOrBuilderList() {
- return shotAnnotations_;
- }
- /**
- *
- *
- *
- * Shot annotations. Each shot is represented as a video segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment shot_annotations = 4;
- *
- */
- public int getShotAnnotationsCount() {
- return shotAnnotations_.size();
- }
- /**
- *
- *
- *
- * Shot annotations. Each shot is represented as a video segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment shot_annotations = 4;
- *
- */
- public com.google.cloud.videointelligence.v1beta1.VideoSegment getShotAnnotations(int index) {
- return shotAnnotations_.get(index);
- }
- /**
- *
- *
- *
- * Shot annotations. Each shot is represented as a video segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment shot_annotations = 4;
- *
- */
- public com.google.cloud.videointelligence.v1beta1.VideoSegmentOrBuilder
- getShotAnnotationsOrBuilder(int index) {
- return shotAnnotations_.get(index);
- }
-
- public static final int SAFE_SEARCH_ANNOTATIONS_FIELD_NUMBER = 6;
- private java.util.List
- * Safe search annotations.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.SafeSearchAnnotation safe_search_annotations = 6;
- *
- */
- public java.util.List
- * Safe search annotations.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.SafeSearchAnnotation safe_search_annotations = 6;
- *
- */
- public java.util.List<
- ? extends com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotationOrBuilder>
- getSafeSearchAnnotationsOrBuilderList() {
- return safeSearchAnnotations_;
- }
- /**
- *
- *
- *
- * Safe search annotations.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.SafeSearchAnnotation safe_search_annotations = 6;
- *
- */
- public int getSafeSearchAnnotationsCount() {
- return safeSearchAnnotations_.size();
- }
- /**
- *
- *
- *
- * Safe search annotations.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.SafeSearchAnnotation safe_search_annotations = 6;
- *
- */
- public com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation getSafeSearchAnnotations(
- int index) {
- return safeSearchAnnotations_.get(index);
- }
- /**
- *
- *
- *
- * Safe search annotations.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.SafeSearchAnnotation safe_search_annotations = 6;
- *
- */
- public com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotationOrBuilder
- getSafeSearchAnnotationsOrBuilder(int index) {
- return safeSearchAnnotations_.get(index);
- }
-
- public static final int ERROR_FIELD_NUMBER = 5;
- private com.google.rpc.Status error_;
- /**
- *
- *
- *
- * If set, indicates an error. Note that for a single `AnnotateVideoRequest`
- * some videos may succeed and some may fail.
- *
- *
- * .google.rpc.Status error = 5;
- */
- public boolean hasError() {
- return error_ != null;
- }
- /**
- *
- *
- *
- * If set, indicates an error. Note that for a single `AnnotateVideoRequest`
- * some videos may succeed and some may fail.
- *
- *
- * .google.rpc.Status error = 5;
- */
- public com.google.rpc.Status getError() {
- return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
- }
- /**
- *
- *
- *
- * If set, indicates an error. Note that for a single `AnnotateVideoRequest`
- * some videos may succeed and some may fail.
- *
- *
- * .google.rpc.Status error = 5;
- */
- public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
- return getError();
- }
-
- private byte memoizedIsInitialized = -1;
-
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!getInputUriBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputUri_);
- }
- for (int i = 0; i < labelAnnotations_.size(); i++) {
- output.writeMessage(2, labelAnnotations_.get(i));
- }
- for (int i = 0; i < faceAnnotations_.size(); i++) {
- output.writeMessage(3, faceAnnotations_.get(i));
- }
- for (int i = 0; i < shotAnnotations_.size(); i++) {
- output.writeMessage(4, shotAnnotations_.get(i));
- }
- if (error_ != null) {
- output.writeMessage(5, getError());
- }
- for (int i = 0; i < safeSearchAnnotations_.size(); i++) {
- output.writeMessage(6, safeSearchAnnotations_.get(i));
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (!getInputUriBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, inputUri_);
- }
- for (int i = 0; i < labelAnnotations_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, labelAnnotations_.get(i));
- }
- for (int i = 0; i < faceAnnotations_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, faceAnnotations_.get(i));
- }
- for (int i = 0; i < shotAnnotations_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, shotAnnotations_.get(i));
- }
- if (error_ != null) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getError());
- }
- for (int i = 0; i < safeSearchAnnotations_.size(); i++) {
- size +=
- com.google.protobuf.CodedOutputStream.computeMessageSize(
- 6, safeSearchAnnotations_.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.v1beta1.VideoAnnotationResults)) {
- return super.equals(obj);
- }
- com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults other =
- (com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults) obj;
-
- if (!getInputUri().equals(other.getInputUri())) return false;
- if (!getLabelAnnotationsList().equals(other.getLabelAnnotationsList())) return false;
- if (!getFaceAnnotationsList().equals(other.getFaceAnnotationsList())) return false;
- if (!getShotAnnotationsList().equals(other.getShotAnnotationsList())) return false;
- if (!getSafeSearchAnnotationsList().equals(other.getSafeSearchAnnotationsList())) return false;
- if (hasError() != other.hasError()) return false;
- if (hasError()) {
- if (!getError().equals(other.getError())) return false;
- }
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (37 * hash) + INPUT_URI_FIELD_NUMBER;
- hash = (53 * hash) + getInputUri().hashCode();
- if (getLabelAnnotationsCount() > 0) {
- hash = (37 * hash) + LABEL_ANNOTATIONS_FIELD_NUMBER;
- hash = (53 * hash) + getLabelAnnotationsList().hashCode();
- }
- if (getFaceAnnotationsCount() > 0) {
- hash = (37 * hash) + FACE_ANNOTATIONS_FIELD_NUMBER;
- hash = (53 * hash) + getFaceAnnotationsList().hashCode();
- }
- if (getShotAnnotationsCount() > 0) {
- hash = (37 * hash) + SHOT_ANNOTATIONS_FIELD_NUMBER;
- hash = (53 * hash) + getShotAnnotationsList().hashCode();
- }
- if (getSafeSearchAnnotationsCount() > 0) {
- hash = (37 * hash) + SAFE_SEARCH_ANNOTATIONS_FIELD_NUMBER;
- hash = (53 * hash) + getSafeSearchAnnotationsList().hashCode();
- }
- if (hasError()) {
- hash = (37 * hash) + ERROR_FIELD_NUMBER;
- hash = (53 * hash) + getError().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults parseFrom(
- java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults parseFrom(
- java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults parseFrom(
- byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults parseFrom(
- byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults parseFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults parseFrom(
- java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
- PARSER, input, extensionRegistry);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults
- parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults
- parseDelimitedFrom(
- java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
- PARSER, input, extensionRegistry);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults parseFrom(
- com.google.protobuf.CodedInputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
- PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() {
- return newBuilder();
- }
-
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
-
- public static Builder newBuilder(
- com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
-
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- *
- *
- *
- * Annotation results for a single video.
- *
- *
- * Protobuf type {@code google.cloud.videointelligence.v1beta1.VideoAnnotationResults}
- */
- public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
- * Video file location in
- * [Google Cloud Storage](https://cloud.google.com/storage/).
- *
- *
- * string input_uri = 1;
- */
- public java.lang.String getInputUri() {
- java.lang.Object ref = inputUri_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- inputUri_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- *
- *
- *
- * Video file location in
- * [Google Cloud Storage](https://cloud.google.com/storage/).
- *
- *
- * string input_uri = 1;
- */
- public com.google.protobuf.ByteString getInputUriBytes() {
- java.lang.Object ref = inputUri_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- inputUri_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- *
- *
- *
- * Video file location in
- * [Google Cloud Storage](https://cloud.google.com/storage/).
- *
- *
- * string input_uri = 1;
- */
- public Builder setInputUri(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- inputUri_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Video file location in
- * [Google Cloud Storage](https://cloud.google.com/storage/).
- *
- *
- * string input_uri = 1;
- */
- public Builder clearInputUri() {
-
- inputUri_ = getDefaultInstance().getInputUri();
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Video file location in
- * [Google Cloud Storage](https://cloud.google.com/storage/).
- *
- *
- * string input_uri = 1;
- */
- public Builder setInputUriBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- inputUri_ = value;
- onChanged();
- return this;
- }
-
- private java.util.List
- * Label annotations. There is exactly one element for each unique label.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelAnnotation label_annotations = 2;
- *
- */
- public java.util.List
- * Label annotations. There is exactly one element for each unique label.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelAnnotation label_annotations = 2;
- *
- */
- public int getLabelAnnotationsCount() {
- if (labelAnnotationsBuilder_ == null) {
- return labelAnnotations_.size();
- } else {
- return labelAnnotationsBuilder_.getCount();
- }
- }
- /**
- *
- *
- *
- * Label annotations. There is exactly one element for each unique label.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelAnnotation label_annotations = 2;
- *
- */
- public com.google.cloud.videointelligence.v1beta1.LabelAnnotation getLabelAnnotations(
- int index) {
- if (labelAnnotationsBuilder_ == null) {
- return labelAnnotations_.get(index);
- } else {
- return labelAnnotationsBuilder_.getMessage(index);
- }
- }
- /**
- *
- *
- *
- * Label annotations. There is exactly one element for each unique label.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelAnnotation label_annotations = 2;
- *
- */
- public Builder setLabelAnnotations(
- int index, com.google.cloud.videointelligence.v1beta1.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 annotations. There is exactly one element for each unique label.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelAnnotation label_annotations = 2;
- *
- */
- public Builder setLabelAnnotations(
- int index,
- com.google.cloud.videointelligence.v1beta1.LabelAnnotation.Builder builderForValue) {
- if (labelAnnotationsBuilder_ == null) {
- ensureLabelAnnotationsIsMutable();
- labelAnnotations_.set(index, builderForValue.build());
- onChanged();
- } else {
- labelAnnotationsBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- *
- *
- *
- * Label annotations. There is exactly one element for each unique label.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelAnnotation label_annotations = 2;
- *
- */
- public Builder addLabelAnnotations(
- com.google.cloud.videointelligence.v1beta1.LabelAnnotation value) {
- if (labelAnnotationsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureLabelAnnotationsIsMutable();
- labelAnnotations_.add(value);
- onChanged();
- } else {
- labelAnnotationsBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- *
- *
- *
- * Label annotations. There is exactly one element for each unique label.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelAnnotation label_annotations = 2;
- *
- */
- public Builder addLabelAnnotations(
- int index, com.google.cloud.videointelligence.v1beta1.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 annotations. There is exactly one element for each unique label.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelAnnotation label_annotations = 2;
- *
- */
- public Builder addLabelAnnotations(
- com.google.cloud.videointelligence.v1beta1.LabelAnnotation.Builder builderForValue) {
- if (labelAnnotationsBuilder_ == null) {
- ensureLabelAnnotationsIsMutable();
- labelAnnotations_.add(builderForValue.build());
- onChanged();
- } else {
- labelAnnotationsBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- *
- *
- *
- * Label annotations. There is exactly one element for each unique label.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelAnnotation label_annotations = 2;
- *
- */
- public Builder addLabelAnnotations(
- int index,
- com.google.cloud.videointelligence.v1beta1.LabelAnnotation.Builder builderForValue) {
- if (labelAnnotationsBuilder_ == null) {
- ensureLabelAnnotationsIsMutable();
- labelAnnotations_.add(index, builderForValue.build());
- onChanged();
- } else {
- labelAnnotationsBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- *
- *
- *
- * Label annotations. There is exactly one element for each unique label.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelAnnotation label_annotations = 2;
- *
- */
- public Builder addAllLabelAnnotations(
- java.lang.Iterable extends com.google.cloud.videointelligence.v1beta1.LabelAnnotation>
- values) {
- if (labelAnnotationsBuilder_ == null) {
- ensureLabelAnnotationsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(values, labelAnnotations_);
- onChanged();
- } else {
- labelAnnotationsBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- *
- *
- *
- * Label annotations. There is exactly one element for each unique label.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.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 annotations. There is exactly one element for each unique label.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelAnnotation label_annotations = 2;
- *
- */
- public Builder removeLabelAnnotations(int index) {
- if (labelAnnotationsBuilder_ == null) {
- ensureLabelAnnotationsIsMutable();
- labelAnnotations_.remove(index);
- onChanged();
- } else {
- labelAnnotationsBuilder_.remove(index);
- }
- return this;
- }
- /**
- *
- *
- *
- * Label annotations. There is exactly one element for each unique label.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelAnnotation label_annotations = 2;
- *
- */
- public com.google.cloud.videointelligence.v1beta1.LabelAnnotation.Builder
- getLabelAnnotationsBuilder(int index) {
- return getLabelAnnotationsFieldBuilder().getBuilder(index);
- }
- /**
- *
- *
- *
- * Label annotations. There is exactly one element for each unique label.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelAnnotation label_annotations = 2;
- *
- */
- public com.google.cloud.videointelligence.v1beta1.LabelAnnotationOrBuilder
- getLabelAnnotationsOrBuilder(int index) {
- if (labelAnnotationsBuilder_ == null) {
- return labelAnnotations_.get(index);
- } else {
- return labelAnnotationsBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- *
- *
- *
- * Label annotations. There is exactly one element for each unique label.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelAnnotation label_annotations = 2;
- *
- */
- public java.util.List<
- ? extends com.google.cloud.videointelligence.v1beta1.LabelAnnotationOrBuilder>
- getLabelAnnotationsOrBuilderList() {
- if (labelAnnotationsBuilder_ != null) {
- return labelAnnotationsBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(labelAnnotations_);
- }
- }
- /**
- *
- *
- *
- * Label annotations. There is exactly one element for each unique label.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelAnnotation label_annotations = 2;
- *
- */
- public com.google.cloud.videointelligence.v1beta1.LabelAnnotation.Builder
- addLabelAnnotationsBuilder() {
- return getLabelAnnotationsFieldBuilder()
- .addBuilder(
- com.google.cloud.videointelligence.v1beta1.LabelAnnotation.getDefaultInstance());
- }
- /**
- *
- *
- *
- * Label annotations. There is exactly one element for each unique label.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelAnnotation label_annotations = 2;
- *
- */
- public com.google.cloud.videointelligence.v1beta1.LabelAnnotation.Builder
- addLabelAnnotationsBuilder(int index) {
- return getLabelAnnotationsFieldBuilder()
- .addBuilder(
- index,
- com.google.cloud.videointelligence.v1beta1.LabelAnnotation.getDefaultInstance());
- }
- /**
- *
- *
- *
- * Label annotations. There is exactly one element for each unique label.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelAnnotation label_annotations = 2;
- *
- */
- public java.util.List
- * Face annotations. There is exactly one element for each unique face.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceAnnotation face_annotations = 3;
- *
- */
- public java.util.List
- * Face annotations. There is exactly one element for each unique face.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceAnnotation face_annotations = 3;
- *
- */
- public int getFaceAnnotationsCount() {
- if (faceAnnotationsBuilder_ == null) {
- return faceAnnotations_.size();
- } else {
- return faceAnnotationsBuilder_.getCount();
- }
- }
- /**
- *
- *
- *
- * Face annotations. There is exactly one element for each unique face.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceAnnotation face_annotations = 3;
- *
- */
- public com.google.cloud.videointelligence.v1beta1.FaceAnnotation getFaceAnnotations(int index) {
- if (faceAnnotationsBuilder_ == null) {
- return faceAnnotations_.get(index);
- } else {
- return faceAnnotationsBuilder_.getMessage(index);
- }
- }
- /**
- *
- *
- *
- * Face annotations. There is exactly one element for each unique face.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceAnnotation face_annotations = 3;
- *
- */
- public Builder setFaceAnnotations(
- int index, com.google.cloud.videointelligence.v1beta1.FaceAnnotation value) {
- if (faceAnnotationsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureFaceAnnotationsIsMutable();
- faceAnnotations_.set(index, value);
- onChanged();
- } else {
- faceAnnotationsBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- *
- *
- *
- * Face annotations. There is exactly one element for each unique face.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceAnnotation face_annotations = 3;
- *
- */
- public Builder setFaceAnnotations(
- int index,
- com.google.cloud.videointelligence.v1beta1.FaceAnnotation.Builder builderForValue) {
- if (faceAnnotationsBuilder_ == null) {
- ensureFaceAnnotationsIsMutable();
- faceAnnotations_.set(index, builderForValue.build());
- onChanged();
- } else {
- faceAnnotationsBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- *
- *
- *
- * Face annotations. There is exactly one element for each unique face.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceAnnotation face_annotations = 3;
- *
- */
- public Builder addFaceAnnotations(
- com.google.cloud.videointelligence.v1beta1.FaceAnnotation value) {
- if (faceAnnotationsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureFaceAnnotationsIsMutable();
- faceAnnotations_.add(value);
- onChanged();
- } else {
- faceAnnotationsBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- *
- *
- *
- * Face annotations. There is exactly one element for each unique face.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceAnnotation face_annotations = 3;
- *
- */
- public Builder addFaceAnnotations(
- int index, com.google.cloud.videointelligence.v1beta1.FaceAnnotation value) {
- if (faceAnnotationsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureFaceAnnotationsIsMutable();
- faceAnnotations_.add(index, value);
- onChanged();
- } else {
- faceAnnotationsBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- *
- *
- *
- * Face annotations. There is exactly one element for each unique face.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceAnnotation face_annotations = 3;
- *
- */
- public Builder addFaceAnnotations(
- com.google.cloud.videointelligence.v1beta1.FaceAnnotation.Builder builderForValue) {
- if (faceAnnotationsBuilder_ == null) {
- ensureFaceAnnotationsIsMutable();
- faceAnnotations_.add(builderForValue.build());
- onChanged();
- } else {
- faceAnnotationsBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- *
- *
- *
- * Face annotations. There is exactly one element for each unique face.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceAnnotation face_annotations = 3;
- *
- */
- public Builder addFaceAnnotations(
- int index,
- com.google.cloud.videointelligence.v1beta1.FaceAnnotation.Builder builderForValue) {
- if (faceAnnotationsBuilder_ == null) {
- ensureFaceAnnotationsIsMutable();
- faceAnnotations_.add(index, builderForValue.build());
- onChanged();
- } else {
- faceAnnotationsBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- *
- *
- *
- * Face annotations. There is exactly one element for each unique face.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceAnnotation face_annotations = 3;
- *
- */
- public Builder addAllFaceAnnotations(
- java.lang.Iterable extends com.google.cloud.videointelligence.v1beta1.FaceAnnotation>
- values) {
- if (faceAnnotationsBuilder_ == null) {
- ensureFaceAnnotationsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(values, faceAnnotations_);
- onChanged();
- } else {
- faceAnnotationsBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- *
- *
- *
- * Face annotations. There is exactly one element for each unique face.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceAnnotation face_annotations = 3;
- *
- */
- public Builder clearFaceAnnotations() {
- if (faceAnnotationsBuilder_ == null) {
- faceAnnotations_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000004);
- onChanged();
- } else {
- faceAnnotationsBuilder_.clear();
- }
- return this;
- }
- /**
- *
- *
- *
- * Face annotations. There is exactly one element for each unique face.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceAnnotation face_annotations = 3;
- *
- */
- public Builder removeFaceAnnotations(int index) {
- if (faceAnnotationsBuilder_ == null) {
- ensureFaceAnnotationsIsMutable();
- faceAnnotations_.remove(index);
- onChanged();
- } else {
- faceAnnotationsBuilder_.remove(index);
- }
- return this;
- }
- /**
- *
- *
- *
- * Face annotations. There is exactly one element for each unique face.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceAnnotation face_annotations = 3;
- *
- */
- public com.google.cloud.videointelligence.v1beta1.FaceAnnotation.Builder
- getFaceAnnotationsBuilder(int index) {
- return getFaceAnnotationsFieldBuilder().getBuilder(index);
- }
- /**
- *
- *
- *
- * Face annotations. There is exactly one element for each unique face.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceAnnotation face_annotations = 3;
- *
- */
- public com.google.cloud.videointelligence.v1beta1.FaceAnnotationOrBuilder
- getFaceAnnotationsOrBuilder(int index) {
- if (faceAnnotationsBuilder_ == null) {
- return faceAnnotations_.get(index);
- } else {
- return faceAnnotationsBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- *
- *
- *
- * Face annotations. There is exactly one element for each unique face.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceAnnotation face_annotations = 3;
- *
- */
- public java.util.List<
- ? extends com.google.cloud.videointelligence.v1beta1.FaceAnnotationOrBuilder>
- getFaceAnnotationsOrBuilderList() {
- if (faceAnnotationsBuilder_ != null) {
- return faceAnnotationsBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(faceAnnotations_);
- }
- }
- /**
- *
- *
- *
- * Face annotations. There is exactly one element for each unique face.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceAnnotation face_annotations = 3;
- *
- */
- public com.google.cloud.videointelligence.v1beta1.FaceAnnotation.Builder
- addFaceAnnotationsBuilder() {
- return getFaceAnnotationsFieldBuilder()
- .addBuilder(
- com.google.cloud.videointelligence.v1beta1.FaceAnnotation.getDefaultInstance());
- }
- /**
- *
- *
- *
- * Face annotations. There is exactly one element for each unique face.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceAnnotation face_annotations = 3;
- *
- */
- public com.google.cloud.videointelligence.v1beta1.FaceAnnotation.Builder
- addFaceAnnotationsBuilder(int index) {
- return getFaceAnnotationsFieldBuilder()
- .addBuilder(
- index,
- com.google.cloud.videointelligence.v1beta1.FaceAnnotation.getDefaultInstance());
- }
- /**
- *
- *
- *
- * Face annotations. There is exactly one element for each unique face.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceAnnotation face_annotations = 3;
- *
- */
- public java.util.List
- * Shot annotations. Each shot is represented as a video segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment shot_annotations = 4;
- *
- */
- public java.util.List
- * Shot annotations. Each shot is represented as a video segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment shot_annotations = 4;
- *
- */
- public int getShotAnnotationsCount() {
- if (shotAnnotationsBuilder_ == null) {
- return shotAnnotations_.size();
- } else {
- return shotAnnotationsBuilder_.getCount();
- }
- }
- /**
- *
- *
- *
- * Shot annotations. Each shot is represented as a video segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment shot_annotations = 4;
- *
- */
- public com.google.cloud.videointelligence.v1beta1.VideoSegment getShotAnnotations(int index) {
- if (shotAnnotationsBuilder_ == null) {
- return shotAnnotations_.get(index);
- } else {
- return shotAnnotationsBuilder_.getMessage(index);
- }
- }
- /**
- *
- *
- *
- * Shot annotations. Each shot is represented as a video segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment shot_annotations = 4;
- *
- */
- public Builder setShotAnnotations(
- int index, com.google.cloud.videointelligence.v1beta1.VideoSegment value) {
- if (shotAnnotationsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureShotAnnotationsIsMutable();
- shotAnnotations_.set(index, value);
- onChanged();
- } else {
- shotAnnotationsBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- *
- *
- *
- * Shot annotations. Each shot is represented as a video segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment shot_annotations = 4;
- *
- */
- public Builder setShotAnnotations(
- int index,
- com.google.cloud.videointelligence.v1beta1.VideoSegment.Builder builderForValue) {
- if (shotAnnotationsBuilder_ == null) {
- ensureShotAnnotationsIsMutable();
- shotAnnotations_.set(index, builderForValue.build());
- onChanged();
- } else {
- shotAnnotationsBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- *
- *
- *
- * Shot annotations. Each shot is represented as a video segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment shot_annotations = 4;
- *
- */
- public Builder addShotAnnotations(
- com.google.cloud.videointelligence.v1beta1.VideoSegment value) {
- if (shotAnnotationsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureShotAnnotationsIsMutable();
- shotAnnotations_.add(value);
- onChanged();
- } else {
- shotAnnotationsBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- *
- *
- *
- * Shot annotations. Each shot is represented as a video segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment shot_annotations = 4;
- *
- */
- public Builder addShotAnnotations(
- int index, com.google.cloud.videointelligence.v1beta1.VideoSegment value) {
- if (shotAnnotationsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureShotAnnotationsIsMutable();
- shotAnnotations_.add(index, value);
- onChanged();
- } else {
- shotAnnotationsBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- *
- *
- *
- * Shot annotations. Each shot is represented as a video segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment shot_annotations = 4;
- *
- */
- public Builder addShotAnnotations(
- com.google.cloud.videointelligence.v1beta1.VideoSegment.Builder builderForValue) {
- if (shotAnnotationsBuilder_ == null) {
- ensureShotAnnotationsIsMutable();
- shotAnnotations_.add(builderForValue.build());
- onChanged();
- } else {
- shotAnnotationsBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- *
- *
- *
- * Shot annotations. Each shot is represented as a video segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment shot_annotations = 4;
- *
- */
- public Builder addShotAnnotations(
- int index,
- com.google.cloud.videointelligence.v1beta1.VideoSegment.Builder builderForValue) {
- if (shotAnnotationsBuilder_ == null) {
- ensureShotAnnotationsIsMutable();
- shotAnnotations_.add(index, builderForValue.build());
- onChanged();
- } else {
- shotAnnotationsBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- *
- *
- *
- * Shot annotations. Each shot is represented as a video segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment shot_annotations = 4;
- *
- */
- public Builder addAllShotAnnotations(
- java.lang.Iterable extends com.google.cloud.videointelligence.v1beta1.VideoSegment>
- values) {
- if (shotAnnotationsBuilder_ == null) {
- ensureShotAnnotationsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(values, shotAnnotations_);
- onChanged();
- } else {
- shotAnnotationsBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- *
- *
- *
- * Shot annotations. Each shot is represented as a video segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment shot_annotations = 4;
- *
- */
- public Builder clearShotAnnotations() {
- if (shotAnnotationsBuilder_ == null) {
- shotAnnotations_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000008);
- onChanged();
- } else {
- shotAnnotationsBuilder_.clear();
- }
- return this;
- }
- /**
- *
- *
- *
- * Shot annotations. Each shot is represented as a video segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment shot_annotations = 4;
- *
- */
- public Builder removeShotAnnotations(int index) {
- if (shotAnnotationsBuilder_ == null) {
- ensureShotAnnotationsIsMutable();
- shotAnnotations_.remove(index);
- onChanged();
- } else {
- shotAnnotationsBuilder_.remove(index);
- }
- return this;
- }
- /**
- *
- *
- *
- * Shot annotations. Each shot is represented as a video segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment shot_annotations = 4;
- *
- */
- public com.google.cloud.videointelligence.v1beta1.VideoSegment.Builder
- getShotAnnotationsBuilder(int index) {
- return getShotAnnotationsFieldBuilder().getBuilder(index);
- }
- /**
- *
- *
- *
- * Shot annotations. Each shot is represented as a video segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment shot_annotations = 4;
- *
- */
- public com.google.cloud.videointelligence.v1beta1.VideoSegmentOrBuilder
- getShotAnnotationsOrBuilder(int index) {
- if (shotAnnotationsBuilder_ == null) {
- return shotAnnotations_.get(index);
- } else {
- return shotAnnotationsBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- *
- *
- *
- * Shot annotations. Each shot is represented as a video segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment shot_annotations = 4;
- *
- */
- public java.util.List<
- ? extends com.google.cloud.videointelligence.v1beta1.VideoSegmentOrBuilder>
- getShotAnnotationsOrBuilderList() {
- if (shotAnnotationsBuilder_ != null) {
- return shotAnnotationsBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(shotAnnotations_);
- }
- }
- /**
- *
- *
- *
- * Shot annotations. Each shot is represented as a video segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment shot_annotations = 4;
- *
- */
- public com.google.cloud.videointelligence.v1beta1.VideoSegment.Builder
- addShotAnnotationsBuilder() {
- return getShotAnnotationsFieldBuilder()
- .addBuilder(com.google.cloud.videointelligence.v1beta1.VideoSegment.getDefaultInstance());
- }
- /**
- *
- *
- *
- * Shot annotations. Each shot is represented as a video segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment shot_annotations = 4;
- *
- */
- public com.google.cloud.videointelligence.v1beta1.VideoSegment.Builder
- addShotAnnotationsBuilder(int index) {
- return getShotAnnotationsFieldBuilder()
- .addBuilder(
- index, com.google.cloud.videointelligence.v1beta1.VideoSegment.getDefaultInstance());
- }
- /**
- *
- *
- *
- * Shot annotations. Each shot is represented as a video segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment shot_annotations = 4;
- *
- */
- public java.util.List
- * Safe search annotations.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.SafeSearchAnnotation safe_search_annotations = 6;
- *
- */
- public java.util.List
- * Safe search annotations.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.SafeSearchAnnotation safe_search_annotations = 6;
- *
- */
- public int getSafeSearchAnnotationsCount() {
- if (safeSearchAnnotationsBuilder_ == null) {
- return safeSearchAnnotations_.size();
- } else {
- return safeSearchAnnotationsBuilder_.getCount();
- }
- }
- /**
- *
- *
- *
- * Safe search annotations.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.SafeSearchAnnotation safe_search_annotations = 6;
- *
- */
- public com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation getSafeSearchAnnotations(
- int index) {
- if (safeSearchAnnotationsBuilder_ == null) {
- return safeSearchAnnotations_.get(index);
- } else {
- return safeSearchAnnotationsBuilder_.getMessage(index);
- }
- }
- /**
- *
- *
- *
- * Safe search annotations.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.SafeSearchAnnotation safe_search_annotations = 6;
- *
- */
- public Builder setSafeSearchAnnotations(
- int index, com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation value) {
- if (safeSearchAnnotationsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureSafeSearchAnnotationsIsMutable();
- safeSearchAnnotations_.set(index, value);
- onChanged();
- } else {
- safeSearchAnnotationsBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- *
- *
- *
- * Safe search annotations.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.SafeSearchAnnotation safe_search_annotations = 6;
- *
- */
- public Builder setSafeSearchAnnotations(
- int index,
- com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation.Builder builderForValue) {
- if (safeSearchAnnotationsBuilder_ == null) {
- ensureSafeSearchAnnotationsIsMutable();
- safeSearchAnnotations_.set(index, builderForValue.build());
- onChanged();
- } else {
- safeSearchAnnotationsBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- *
- *
- *
- * Safe search annotations.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.SafeSearchAnnotation safe_search_annotations = 6;
- *
- */
- public Builder addSafeSearchAnnotations(
- com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation value) {
- if (safeSearchAnnotationsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureSafeSearchAnnotationsIsMutable();
- safeSearchAnnotations_.add(value);
- onChanged();
- } else {
- safeSearchAnnotationsBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- *
- *
- *
- * Safe search annotations.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.SafeSearchAnnotation safe_search_annotations = 6;
- *
- */
- public Builder addSafeSearchAnnotations(
- int index, com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation value) {
- if (safeSearchAnnotationsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureSafeSearchAnnotationsIsMutable();
- safeSearchAnnotations_.add(index, value);
- onChanged();
- } else {
- safeSearchAnnotationsBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- *
- *
- *
- * Safe search annotations.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.SafeSearchAnnotation safe_search_annotations = 6;
- *
- */
- public Builder addSafeSearchAnnotations(
- com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation.Builder builderForValue) {
- if (safeSearchAnnotationsBuilder_ == null) {
- ensureSafeSearchAnnotationsIsMutable();
- safeSearchAnnotations_.add(builderForValue.build());
- onChanged();
- } else {
- safeSearchAnnotationsBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- *
- *
- *
- * Safe search annotations.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.SafeSearchAnnotation safe_search_annotations = 6;
- *
- */
- public Builder addSafeSearchAnnotations(
- int index,
- com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation.Builder builderForValue) {
- if (safeSearchAnnotationsBuilder_ == null) {
- ensureSafeSearchAnnotationsIsMutable();
- safeSearchAnnotations_.add(index, builderForValue.build());
- onChanged();
- } else {
- safeSearchAnnotationsBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- *
- *
- *
- * Safe search annotations.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.SafeSearchAnnotation safe_search_annotations = 6;
- *
- */
- public Builder addAllSafeSearchAnnotations(
- java.lang.Iterable<
- ? extends com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation>
- values) {
- if (safeSearchAnnotationsBuilder_ == null) {
- ensureSafeSearchAnnotationsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(values, safeSearchAnnotations_);
- onChanged();
- } else {
- safeSearchAnnotationsBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- *
- *
- *
- * Safe search annotations.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.SafeSearchAnnotation safe_search_annotations = 6;
- *
- */
- public Builder clearSafeSearchAnnotations() {
- if (safeSearchAnnotationsBuilder_ == null) {
- safeSearchAnnotations_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000010);
- onChanged();
- } else {
- safeSearchAnnotationsBuilder_.clear();
- }
- return this;
- }
- /**
- *
- *
- *
- * Safe search annotations.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.SafeSearchAnnotation safe_search_annotations = 6;
- *
- */
- public Builder removeSafeSearchAnnotations(int index) {
- if (safeSearchAnnotationsBuilder_ == null) {
- ensureSafeSearchAnnotationsIsMutable();
- safeSearchAnnotations_.remove(index);
- onChanged();
- } else {
- safeSearchAnnotationsBuilder_.remove(index);
- }
- return this;
- }
- /**
- *
- *
- *
- * Safe search annotations.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.SafeSearchAnnotation safe_search_annotations = 6;
- *
- */
- public com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation.Builder
- getSafeSearchAnnotationsBuilder(int index) {
- return getSafeSearchAnnotationsFieldBuilder().getBuilder(index);
- }
- /**
- *
- *
- *
- * Safe search annotations.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.SafeSearchAnnotation safe_search_annotations = 6;
- *
- */
- public com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotationOrBuilder
- getSafeSearchAnnotationsOrBuilder(int index) {
- if (safeSearchAnnotationsBuilder_ == null) {
- return safeSearchAnnotations_.get(index);
- } else {
- return safeSearchAnnotationsBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- *
- *
- *
- * Safe search annotations.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.SafeSearchAnnotation safe_search_annotations = 6;
- *
- */
- public java.util.List<
- ? extends com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotationOrBuilder>
- getSafeSearchAnnotationsOrBuilderList() {
- if (safeSearchAnnotationsBuilder_ != null) {
- return safeSearchAnnotationsBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(safeSearchAnnotations_);
- }
- }
- /**
- *
- *
- *
- * Safe search annotations.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.SafeSearchAnnotation safe_search_annotations = 6;
- *
- */
- public com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation.Builder
- addSafeSearchAnnotationsBuilder() {
- return getSafeSearchAnnotationsFieldBuilder()
- .addBuilder(
- com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation.getDefaultInstance());
- }
- /**
- *
- *
- *
- * Safe search annotations.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.SafeSearchAnnotation safe_search_annotations = 6;
- *
- */
- public com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation.Builder
- addSafeSearchAnnotationsBuilder(int index) {
- return getSafeSearchAnnotationsFieldBuilder()
- .addBuilder(
- index,
- com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation.getDefaultInstance());
- }
- /**
- *
- *
- *
- * Safe search annotations.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.SafeSearchAnnotation safe_search_annotations = 6;
- *
- */
- public java.util.List
- * If set, indicates an error. Note that for a single `AnnotateVideoRequest`
- * some videos may succeed and some may fail.
- *
- *
- * .google.rpc.Status error = 5;
- */
- public boolean hasError() {
- return errorBuilder_ != null || error_ != null;
- }
- /**
- *
- *
- *
- * If set, indicates an error. Note that for a single `AnnotateVideoRequest`
- * some videos may succeed and some may fail.
- *
- *
- * .google.rpc.Status error = 5;
- */
- public com.google.rpc.Status getError() {
- if (errorBuilder_ == null) {
- return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
- } else {
- return errorBuilder_.getMessage();
- }
- }
- /**
- *
- *
- *
- * If set, indicates an error. Note that for a single `AnnotateVideoRequest`
- * some videos may succeed and some may fail.
- *
- *
- * .google.rpc.Status error = 5;
- */
- public Builder setError(com.google.rpc.Status value) {
- if (errorBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- error_ = value;
- onChanged();
- } else {
- errorBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- *
- *
- *
- * If set, indicates an error. Note that for a single `AnnotateVideoRequest`
- * some videos may succeed and some may fail.
- *
- *
- * .google.rpc.Status error = 5;
- */
- public Builder setError(com.google.rpc.Status.Builder builderForValue) {
- if (errorBuilder_ == null) {
- error_ = builderForValue.build();
- onChanged();
- } else {
- errorBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- *
- *
- *
- * If set, indicates an error. Note that for a single `AnnotateVideoRequest`
- * some videos may succeed and some may fail.
- *
- *
- * .google.rpc.Status error = 5;
- */
- public Builder mergeError(com.google.rpc.Status value) {
- if (errorBuilder_ == null) {
- if (error_ != null) {
- error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
- } else {
- error_ = value;
- }
- onChanged();
- } else {
- errorBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- *
- *
- *
- * If set, indicates an error. Note that for a single `AnnotateVideoRequest`
- * some videos may succeed and some may fail.
- *
- *
- * .google.rpc.Status error = 5;
- */
- public Builder clearError() {
- if (errorBuilder_ == null) {
- error_ = null;
- onChanged();
- } else {
- error_ = null;
- errorBuilder_ = null;
- }
-
- return this;
- }
- /**
- *
- *
- *
- * If set, indicates an error. Note that for a single `AnnotateVideoRequest`
- * some videos may succeed and some may fail.
- *
- *
- * .google.rpc.Status error = 5;
- */
- public com.google.rpc.Status.Builder getErrorBuilder() {
-
- onChanged();
- return getErrorFieldBuilder().getBuilder();
- }
- /**
- *
- *
- *
- * If set, indicates an error. Note that for a single `AnnotateVideoRequest`
- * some videos may succeed and some may fail.
- *
- *
- * .google.rpc.Status error = 5;
- */
- public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
- if (errorBuilder_ != null) {
- return errorBuilder_.getMessageOrBuilder();
- } else {
- return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
- }
- }
- /**
- *
- *
- *
- * If set, indicates an error. Note that for a single `AnnotateVideoRequest`
- * some videos may succeed and some may fail.
- *
- *
- * .google.rpc.Status error = 5;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
- getErrorFieldBuilder() {
- if (errorBuilder_ == null) {
- errorBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3<
- com.google.rpc.Status,
- com.google.rpc.Status.Builder,
- com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean());
- error_ = null;
- }
- return errorBuilder_;
- }
-
- @java.lang.Override
- public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
- // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1beta1.VideoAnnotationResults)
- }
-
- // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta1.VideoAnnotationResults)
- private static final com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults
- DEFAULT_INSTANCE;
-
- static {
- DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults();
- }
-
- public static com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults
- getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser
- * Video file location in
- * [Google Cloud Storage](https://cloud.google.com/storage/).
- *
- *
- * string input_uri = 1;
- */
- java.lang.String getInputUri();
- /**
- *
- *
- *
- * Video file location in
- * [Google Cloud Storage](https://cloud.google.com/storage/).
- *
- *
- * string input_uri = 1;
- */
- com.google.protobuf.ByteString getInputUriBytes();
-
- /**
- *
- *
- *
- * Label annotations. There is exactly one element for each unique label.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelAnnotation label_annotations = 2;
- *
- */
- java.util.List
- * Label annotations. There is exactly one element for each unique label.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelAnnotation label_annotations = 2;
- *
- */
- com.google.cloud.videointelligence.v1beta1.LabelAnnotation getLabelAnnotations(int index);
- /**
- *
- *
- *
- * Label annotations. There is exactly one element for each unique label.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelAnnotation label_annotations = 2;
- *
- */
- int getLabelAnnotationsCount();
- /**
- *
- *
- *
- * Label annotations. There is exactly one element for each unique label.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelAnnotation label_annotations = 2;
- *
- */
- java.util.List extends com.google.cloud.videointelligence.v1beta1.LabelAnnotationOrBuilder>
- getLabelAnnotationsOrBuilderList();
- /**
- *
- *
- *
- * Label annotations. There is exactly one element for each unique label.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.LabelAnnotation label_annotations = 2;
- *
- */
- com.google.cloud.videointelligence.v1beta1.LabelAnnotationOrBuilder getLabelAnnotationsOrBuilder(
- int index);
-
- /**
- *
- *
- *
- * Face annotations. There is exactly one element for each unique face.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceAnnotation face_annotations = 3;
- *
- */
- java.util.List
- * Face annotations. There is exactly one element for each unique face.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceAnnotation face_annotations = 3;
- *
- */
- com.google.cloud.videointelligence.v1beta1.FaceAnnotation getFaceAnnotations(int index);
- /**
- *
- *
- *
- * Face annotations. There is exactly one element for each unique face.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceAnnotation face_annotations = 3;
- *
- */
- int getFaceAnnotationsCount();
- /**
- *
- *
- *
- * Face annotations. There is exactly one element for each unique face.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceAnnotation face_annotations = 3;
- *
- */
- java.util.List extends com.google.cloud.videointelligence.v1beta1.FaceAnnotationOrBuilder>
- getFaceAnnotationsOrBuilderList();
- /**
- *
- *
- *
- * Face annotations. There is exactly one element for each unique face.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.FaceAnnotation face_annotations = 3;
- *
- */
- com.google.cloud.videointelligence.v1beta1.FaceAnnotationOrBuilder getFaceAnnotationsOrBuilder(
- int index);
-
- /**
- *
- *
- *
- * Shot annotations. Each shot is represented as a video segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment shot_annotations = 4;
- *
- */
- java.util.List
- * Shot annotations. Each shot is represented as a video segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment shot_annotations = 4;
- *
- */
- com.google.cloud.videointelligence.v1beta1.VideoSegment getShotAnnotations(int index);
- /**
- *
- *
- *
- * Shot annotations. Each shot is represented as a video segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment shot_annotations = 4;
- *
- */
- int getShotAnnotationsCount();
- /**
- *
- *
- *
- * Shot annotations. Each shot is represented as a video segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment shot_annotations = 4;
- *
- */
- java.util.List extends com.google.cloud.videointelligence.v1beta1.VideoSegmentOrBuilder>
- getShotAnnotationsOrBuilderList();
- /**
- *
- *
- *
- * Shot annotations. Each shot is represented as a video segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment shot_annotations = 4;
- *
- */
- com.google.cloud.videointelligence.v1beta1.VideoSegmentOrBuilder getShotAnnotationsOrBuilder(
- int index);
-
- /**
- *
- *
- *
- * Safe search annotations.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.SafeSearchAnnotation safe_search_annotations = 6;
- *
- */
- java.util.List
- * Safe search annotations.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.SafeSearchAnnotation safe_search_annotations = 6;
- *
- */
- com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation getSafeSearchAnnotations(
- int index);
- /**
- *
- *
- *
- * Safe search annotations.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.SafeSearchAnnotation safe_search_annotations = 6;
- *
- */
- int getSafeSearchAnnotationsCount();
- /**
- *
- *
- *
- * Safe search annotations.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.SafeSearchAnnotation safe_search_annotations = 6;
- *
- */
- java.util.List extends com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotationOrBuilder>
- getSafeSearchAnnotationsOrBuilderList();
- /**
- *
- *
- *
- * Safe search annotations.
- *
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.SafeSearchAnnotation safe_search_annotations = 6;
- *
- */
- com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotationOrBuilder
- getSafeSearchAnnotationsOrBuilder(int index);
-
- /**
- *
- *
- *
- * If set, indicates an error. Note that for a single `AnnotateVideoRequest`
- * some videos may succeed and some may fail.
- *
- *
- * .google.rpc.Status error = 5;
- */
- boolean hasError();
- /**
- *
- *
- *
- * If set, indicates an error. Note that for a single `AnnotateVideoRequest`
- * some videos may succeed and some may fail.
- *
- *
- * .google.rpc.Status error = 5;
- */
- com.google.rpc.Status getError();
- /**
- *
- *
- *
- * If set, indicates an error. Note that for a single `AnnotateVideoRequest`
- * some videos may succeed and some may fail.
- *
- *
- * .google.rpc.Status error = 5;
- */
- com.google.rpc.StatusOrBuilder getErrorOrBuilder();
-}
diff --git a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/VideoContext.java b/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/VideoContext.java
deleted file mode 100644
index ed9c518ce..000000000
--- a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/VideoContext.java
+++ /dev/null
@@ -1,1910 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/cloud/videointelligence/v1beta1/video_intelligence.proto
-
-package com.google.cloud.videointelligence.v1beta1;
-
-/**
- *
- *
- *
- * Video context and/or feature-specific parameters.
- *
- *
- * Protobuf type {@code google.cloud.videointelligence.v1beta1.VideoContext}
- */
-public final class VideoContext extends com.google.protobuf.GeneratedMessageV3
- implements
- // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1beta1.VideoContext)
- VideoContextOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use VideoContext.newBuilder() to construct.
- private VideoContext(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
-
- private VideoContext() {
- segments_ = java.util.Collections.emptyList();
- labelDetectionMode_ = 0;
- labelDetectionModel_ = "";
- faceDetectionModel_ = "";
- shotChangeDetectionModel_ = "";
- safeSearchDetectionModel_ = "";
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
- private VideoContext(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10:
- {
- if (!((mutable_bitField0_ & 0x00000001) != 0)) {
- segments_ =
- new java.util.ArrayList<
- com.google.cloud.videointelligence.v1beta1.VideoSegment>();
- mutable_bitField0_ |= 0x00000001;
- }
- segments_.add(
- input.readMessage(
- com.google.cloud.videointelligence.v1beta1.VideoSegment.parser(),
- extensionRegistry));
- break;
- }
- case 16:
- {
- int rawValue = input.readEnum();
-
- labelDetectionMode_ = rawValue;
- break;
- }
- case 24:
- {
- stationaryCamera_ = input.readBool();
- break;
- }
- case 34:
- {
- java.lang.String s = input.readStringRequireUtf8();
-
- labelDetectionModel_ = s;
- break;
- }
- case 42:
- {
- java.lang.String s = input.readStringRequireUtf8();
-
- faceDetectionModel_ = s;
- break;
- }
- case 50:
- {
- java.lang.String s = input.readStringRequireUtf8();
-
- shotChangeDetectionModel_ = s;
- break;
- }
- case 58:
- {
- java.lang.String s = input.readStringRequireUtf8();
-
- safeSearchDetectionModel_ = s;
- break;
- }
- default:
- {
- if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
- } finally {
- if (((mutable_bitField0_ & 0x00000001) != 0)) {
- 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.v1beta1.VideoIntelligenceServiceProto
- .internal_static_google_cloud_videointelligence_v1beta1_VideoContext_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.google.cloud.videointelligence.v1beta1.VideoIntelligenceServiceProto
- .internal_static_google_cloud_videointelligence_v1beta1_VideoContext_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.google.cloud.videointelligence.v1beta1.VideoContext.class,
- com.google.cloud.videointelligence.v1beta1.VideoContext.Builder.class);
- }
-
- private int bitField0_;
- public static final int SEGMENTS_FIELD_NUMBER = 1;
- private java.util.List
- * Video segments to annotate. The segments may overlap and are not required
- * to be contiguous or span the whole video. If unspecified, each video
- * is treated as a single segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 1;
- */
- public java.util.List
- * Video segments to annotate. The segments may overlap and are not required
- * to be contiguous or span the whole video. If unspecified, each video
- * is treated as a single segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 1;
- */
- public java.util.List extends com.google.cloud.videointelligence.v1beta1.VideoSegmentOrBuilder>
- getSegmentsOrBuilderList() {
- return segments_;
- }
- /**
- *
- *
- *
- * Video segments to annotate. The segments may overlap and are not required
- * to be contiguous or span the whole video. If unspecified, each video
- * is treated as a single segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 1;
- */
- public int getSegmentsCount() {
- return segments_.size();
- }
- /**
- *
- *
- *
- * Video segments to annotate. The segments may overlap and are not required
- * to be contiguous or span the whole video. If unspecified, each video
- * is treated as a single segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 1;
- */
- public com.google.cloud.videointelligence.v1beta1.VideoSegment getSegments(int index) {
- return segments_.get(index);
- }
- /**
- *
- *
- *
- * Video segments to annotate. The segments may overlap and are not required
- * to be contiguous or span the whole video. If unspecified, each video
- * is treated as a single segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 1;
- */
- public com.google.cloud.videointelligence.v1beta1.VideoSegmentOrBuilder getSegmentsOrBuilder(
- int index) {
- return segments_.get(index);
- }
-
- public static final int LABEL_DETECTION_MODE_FIELD_NUMBER = 2;
- private int labelDetectionMode_;
- /**
- *
- *
- *
- * If label detection has been requested, what labels should be detected
- * in addition to video-level labels or segment-level labels. If unspecified,
- * defaults to `SHOT_MODE`.
- *
- *
- * .google.cloud.videointelligence.v1beta1.LabelDetectionMode label_detection_mode = 2;
- *
- */
- public int getLabelDetectionModeValue() {
- return labelDetectionMode_;
- }
- /**
- *
- *
- *
- * If label detection has been requested, what labels should be detected
- * in addition to video-level labels or segment-level labels. If unspecified,
- * defaults to `SHOT_MODE`.
- *
- *
- * .google.cloud.videointelligence.v1beta1.LabelDetectionMode label_detection_mode = 2;
- *
- */
- public com.google.cloud.videointelligence.v1beta1.LabelDetectionMode getLabelDetectionMode() {
- @SuppressWarnings("deprecation")
- com.google.cloud.videointelligence.v1beta1.LabelDetectionMode result =
- com.google.cloud.videointelligence.v1beta1.LabelDetectionMode.valueOf(labelDetectionMode_);
- return result == null
- ? com.google.cloud.videointelligence.v1beta1.LabelDetectionMode.UNRECOGNIZED
- : result;
- }
-
- public static final int STATIONARY_CAMERA_FIELD_NUMBER = 3;
- 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.
- *
- *
- * bool stationary_camera = 3;
- */
- public boolean getStationaryCamera() {
- return stationaryCamera_;
- }
-
- public static final int LABEL_DETECTION_MODEL_FIELD_NUMBER = 4;
- private volatile java.lang.Object labelDetectionModel_;
- /**
- *
- *
- *
- * Model to use for label detection.
- * Supported values: "latest" and "stable" (the default).
- *
- *
- * string label_detection_model = 4;
- */
- public java.lang.String getLabelDetectionModel() {
- java.lang.Object ref = labelDetectionModel_;
- 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();
- labelDetectionModel_ = s;
- return s;
- }
- }
- /**
- *
- *
- *
- * Model to use for label detection.
- * Supported values: "latest" and "stable" (the default).
- *
- *
- * string label_detection_model = 4;
- */
- public com.google.protobuf.ByteString getLabelDetectionModelBytes() {
- java.lang.Object ref = labelDetectionModel_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- labelDetectionModel_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int FACE_DETECTION_MODEL_FIELD_NUMBER = 5;
- private volatile java.lang.Object faceDetectionModel_;
- /**
- *
- *
- *
- * Model to use for face detection.
- * Supported values: "latest" and "stable" (the default).
- *
- *
- * string face_detection_model = 5;
- */
- public java.lang.String getFaceDetectionModel() {
- java.lang.Object ref = faceDetectionModel_;
- 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();
- faceDetectionModel_ = s;
- return s;
- }
- }
- /**
- *
- *
- *
- * Model to use for face detection.
- * Supported values: "latest" and "stable" (the default).
- *
- *
- * string face_detection_model = 5;
- */
- public com.google.protobuf.ByteString getFaceDetectionModelBytes() {
- java.lang.Object ref = faceDetectionModel_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- faceDetectionModel_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int SHOT_CHANGE_DETECTION_MODEL_FIELD_NUMBER = 6;
- private volatile java.lang.Object shotChangeDetectionModel_;
- /**
- *
- *
- *
- * Model to use for shot change detection.
- * Supported values: "latest" and "stable" (the default).
- *
- *
- * string shot_change_detection_model = 6;
- */
- public java.lang.String getShotChangeDetectionModel() {
- java.lang.Object ref = shotChangeDetectionModel_;
- 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();
- shotChangeDetectionModel_ = s;
- return s;
- }
- }
- /**
- *
- *
- *
- * Model to use for shot change detection.
- * Supported values: "latest" and "stable" (the default).
- *
- *
- * string shot_change_detection_model = 6;
- */
- public com.google.protobuf.ByteString getShotChangeDetectionModelBytes() {
- java.lang.Object ref = shotChangeDetectionModel_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- shotChangeDetectionModel_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int SAFE_SEARCH_DETECTION_MODEL_FIELD_NUMBER = 7;
- private volatile java.lang.Object safeSearchDetectionModel_;
- /**
- *
- *
- *
- * Model to use for safe search detection.
- * Supported values: "latest" and "stable" (the default).
- *
- *
- * string safe_search_detection_model = 7;
- */
- public java.lang.String getSafeSearchDetectionModel() {
- java.lang.Object ref = safeSearchDetectionModel_;
- 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();
- safeSearchDetectionModel_ = s;
- return s;
- }
- }
- /**
- *
- *
- *
- * Model to use for safe search detection.
- * Supported values: "latest" and "stable" (the default).
- *
- *
- * string safe_search_detection_model = 7;
- */
- public com.google.protobuf.ByteString getSafeSearchDetectionModelBytes() {
- java.lang.Object ref = safeSearchDetectionModel_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- safeSearchDetectionModel_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- private byte memoizedIsInitialized = -1;
-
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- for (int i = 0; i < segments_.size(); i++) {
- output.writeMessage(1, segments_.get(i));
- }
- if (labelDetectionMode_
- != com.google.cloud.videointelligence.v1beta1.LabelDetectionMode
- .LABEL_DETECTION_MODE_UNSPECIFIED
- .getNumber()) {
- output.writeEnum(2, labelDetectionMode_);
- }
- if (stationaryCamera_ != false) {
- output.writeBool(3, stationaryCamera_);
- }
- if (!getLabelDetectionModelBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 4, labelDetectionModel_);
- }
- if (!getFaceDetectionModelBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 5, faceDetectionModel_);
- }
- if (!getShotChangeDetectionModelBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 6, shotChangeDetectionModel_);
- }
- if (!getSafeSearchDetectionModelBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 7, safeSearchDetectionModel_);
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- for (int i = 0; i < segments_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, segments_.get(i));
- }
- if (labelDetectionMode_
- != com.google.cloud.videointelligence.v1beta1.LabelDetectionMode
- .LABEL_DETECTION_MODE_UNSPECIFIED
- .getNumber()) {
- size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, labelDetectionMode_);
- }
- if (stationaryCamera_ != false) {
- size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, stationaryCamera_);
- }
- if (!getLabelDetectionModelBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, labelDetectionModel_);
- }
- if (!getFaceDetectionModelBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, faceDetectionModel_);
- }
- if (!getShotChangeDetectionModelBytes().isEmpty()) {
- size +=
- com.google.protobuf.GeneratedMessageV3.computeStringSize(6, shotChangeDetectionModel_);
- }
- if (!getSafeSearchDetectionModelBytes().isEmpty()) {
- size +=
- com.google.protobuf.GeneratedMessageV3.computeStringSize(7, safeSearchDetectionModel_);
- }
- 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.v1beta1.VideoContext)) {
- return super.equals(obj);
- }
- com.google.cloud.videointelligence.v1beta1.VideoContext other =
- (com.google.cloud.videointelligence.v1beta1.VideoContext) obj;
-
- if (!getSegmentsList().equals(other.getSegmentsList())) return false;
- if (labelDetectionMode_ != other.labelDetectionMode_) return false;
- if (getStationaryCamera() != other.getStationaryCamera()) return false;
- if (!getLabelDetectionModel().equals(other.getLabelDetectionModel())) return false;
- if (!getFaceDetectionModel().equals(other.getFaceDetectionModel())) return false;
- if (!getShotChangeDetectionModel().equals(other.getShotChangeDetectionModel())) return false;
- if (!getSafeSearchDetectionModel().equals(other.getSafeSearchDetectionModel())) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (getSegmentsCount() > 0) {
- hash = (37 * hash) + SEGMENTS_FIELD_NUMBER;
- hash = (53 * hash) + getSegmentsList().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) + LABEL_DETECTION_MODEL_FIELD_NUMBER;
- hash = (53 * hash) + getLabelDetectionModel().hashCode();
- hash = (37 * hash) + FACE_DETECTION_MODEL_FIELD_NUMBER;
- hash = (53 * hash) + getFaceDetectionModel().hashCode();
- hash = (37 * hash) + SHOT_CHANGE_DETECTION_MODEL_FIELD_NUMBER;
- hash = (53 * hash) + getShotChangeDetectionModel().hashCode();
- hash = (37 * hash) + SAFE_SEARCH_DETECTION_MODEL_FIELD_NUMBER;
- hash = (53 * hash) + getSafeSearchDetectionModel().hashCode();
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.cloud.videointelligence.v1beta1.VideoContext parseFrom(
- java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.VideoContext parseFrom(
- java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.VideoContext parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.VideoContext parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.VideoContext parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.VideoContext parseFrom(
- byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.VideoContext parseFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.VideoContext parseFrom(
- java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
- PARSER, input, extensionRegistry);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.VideoContext parseDelimitedFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.VideoContext parseDelimitedFrom(
- java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
- PARSER, input, extensionRegistry);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.VideoContext parseFrom(
- com.google.protobuf.CodedInputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.VideoContext parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
- PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() {
- return newBuilder();
- }
-
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
-
- public static Builder newBuilder(
- com.google.cloud.videointelligence.v1beta1.VideoContext prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
-
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- *
- *
- *
- * Video context and/or feature-specific parameters.
- *
- *
- * Protobuf type {@code google.cloud.videointelligence.v1beta1.VideoContext}
- */
- public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
- * Video segments to annotate. The segments may overlap and are not required
- * to be contiguous or span the whole video. If unspecified, each video
- * is treated as a single segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 1;
- */
- public java.util.List
- * Video segments to annotate. The segments may overlap and are not required
- * to be contiguous or span the whole video. If unspecified, each video
- * is treated as a single segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 1;
- */
- public int getSegmentsCount() {
- if (segmentsBuilder_ == null) {
- return segments_.size();
- } else {
- return segmentsBuilder_.getCount();
- }
- }
- /**
- *
- *
- *
- * Video segments to annotate. The segments may overlap and are not required
- * to be contiguous or span the whole video. If unspecified, each video
- * is treated as a single segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 1;
- */
- public com.google.cloud.videointelligence.v1beta1.VideoSegment getSegments(int index) {
- if (segmentsBuilder_ == null) {
- return segments_.get(index);
- } else {
- return segmentsBuilder_.getMessage(index);
- }
- }
- /**
- *
- *
- *
- * Video segments to annotate. The segments may overlap and are not required
- * to be contiguous or span the whole video. If unspecified, each video
- * is treated as a single segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 1;
- */
- public Builder setSegments(
- int index, com.google.cloud.videointelligence.v1beta1.VideoSegment value) {
- if (segmentsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureSegmentsIsMutable();
- segments_.set(index, value);
- onChanged();
- } else {
- segmentsBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- *
- *
- *
- * Video segments to annotate. The segments may overlap and are not required
- * to be contiguous or span the whole video. If unspecified, each video
- * is treated as a single segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 1;
- */
- public Builder setSegments(
- int index,
- com.google.cloud.videointelligence.v1beta1.VideoSegment.Builder builderForValue) {
- if (segmentsBuilder_ == null) {
- ensureSegmentsIsMutable();
- segments_.set(index, builderForValue.build());
- onChanged();
- } else {
- segmentsBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- *
- *
- *
- * Video segments to annotate. The segments may overlap and are not required
- * to be contiguous or span the whole video. If unspecified, each video
- * is treated as a single segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 1;
- */
- public Builder addSegments(com.google.cloud.videointelligence.v1beta1.VideoSegment value) {
- if (segmentsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureSegmentsIsMutable();
- segments_.add(value);
- onChanged();
- } else {
- segmentsBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- *
- *
- *
- * Video segments to annotate. The segments may overlap and are not required
- * to be contiguous or span the whole video. If unspecified, each video
- * is treated as a single segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 1;
- */
- public Builder addSegments(
- int index, com.google.cloud.videointelligence.v1beta1.VideoSegment value) {
- if (segmentsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureSegmentsIsMutable();
- segments_.add(index, value);
- onChanged();
- } else {
- segmentsBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- *
- *
- *
- * Video segments to annotate. The segments may overlap and are not required
- * to be contiguous or span the whole video. If unspecified, each video
- * is treated as a single segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 1;
- */
- public Builder addSegments(
- com.google.cloud.videointelligence.v1beta1.VideoSegment.Builder builderForValue) {
- if (segmentsBuilder_ == null) {
- ensureSegmentsIsMutable();
- segments_.add(builderForValue.build());
- onChanged();
- } else {
- segmentsBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- *
- *
- *
- * Video segments to annotate. The segments may overlap and are not required
- * to be contiguous or span the whole video. If unspecified, each video
- * is treated as a single segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 1;
- */
- public Builder addSegments(
- int index,
- com.google.cloud.videointelligence.v1beta1.VideoSegment.Builder builderForValue) {
- if (segmentsBuilder_ == null) {
- ensureSegmentsIsMutable();
- segments_.add(index, builderForValue.build());
- onChanged();
- } else {
- segmentsBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- *
- *
- *
- * Video segments to annotate. The segments may overlap and are not required
- * to be contiguous or span the whole video. If unspecified, each video
- * is treated as a single segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 1;
- */
- public Builder addAllSegments(
- java.lang.Iterable extends com.google.cloud.videointelligence.v1beta1.VideoSegment>
- values) {
- if (segmentsBuilder_ == null) {
- ensureSegmentsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(values, segments_);
- onChanged();
- } else {
- segmentsBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- *
- *
- *
- * Video segments to annotate. The segments may overlap and are not required
- * to be contiguous or span the whole video. If unspecified, each video
- * is treated as a single segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 1;
- */
- public Builder clearSegments() {
- if (segmentsBuilder_ == null) {
- segments_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
- onChanged();
- } else {
- segmentsBuilder_.clear();
- }
- return this;
- }
- /**
- *
- *
- *
- * Video segments to annotate. The segments may overlap and are not required
- * to be contiguous or span the whole video. If unspecified, each video
- * is treated as a single segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 1;
- */
- public Builder removeSegments(int index) {
- if (segmentsBuilder_ == null) {
- ensureSegmentsIsMutable();
- segments_.remove(index);
- onChanged();
- } else {
- segmentsBuilder_.remove(index);
- }
- return this;
- }
- /**
- *
- *
- *
- * Video segments to annotate. The segments may overlap and are not required
- * to be contiguous or span the whole video. If unspecified, each video
- * is treated as a single segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 1;
- */
- public com.google.cloud.videointelligence.v1beta1.VideoSegment.Builder getSegmentsBuilder(
- int index) {
- return getSegmentsFieldBuilder().getBuilder(index);
- }
- /**
- *
- *
- *
- * Video segments to annotate. The segments may overlap and are not required
- * to be contiguous or span the whole video. If unspecified, each video
- * is treated as a single segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 1;
- */
- public com.google.cloud.videointelligence.v1beta1.VideoSegmentOrBuilder getSegmentsOrBuilder(
- int index) {
- if (segmentsBuilder_ == null) {
- return segments_.get(index);
- } else {
- return segmentsBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- *
- *
- *
- * Video segments to annotate. The segments may overlap and are not required
- * to be contiguous or span the whole video. If unspecified, each video
- * is treated as a single segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 1;
- */
- public java.util.List<
- ? extends com.google.cloud.videointelligence.v1beta1.VideoSegmentOrBuilder>
- getSegmentsOrBuilderList() {
- if (segmentsBuilder_ != null) {
- return segmentsBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(segments_);
- }
- }
- /**
- *
- *
- *
- * Video segments to annotate. The segments may overlap and are not required
- * to be contiguous or span the whole video. If unspecified, each video
- * is treated as a single segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 1;
- */
- public com.google.cloud.videointelligence.v1beta1.VideoSegment.Builder addSegmentsBuilder() {
- return getSegmentsFieldBuilder()
- .addBuilder(com.google.cloud.videointelligence.v1beta1.VideoSegment.getDefaultInstance());
- }
- /**
- *
- *
- *
- * Video segments to annotate. The segments may overlap and are not required
- * to be contiguous or span the whole video. If unspecified, each video
- * is treated as a single segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 1;
- */
- public com.google.cloud.videointelligence.v1beta1.VideoSegment.Builder addSegmentsBuilder(
- int index) {
- return getSegmentsFieldBuilder()
- .addBuilder(
- index, com.google.cloud.videointelligence.v1beta1.VideoSegment.getDefaultInstance());
- }
- /**
- *
- *
- *
- * Video segments to annotate. The segments may overlap and are not required
- * to be contiguous or span the whole video. If unspecified, each video
- * is treated as a single segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 1;
- */
- public java.util.List
- * If label detection has been requested, what labels should be detected
- * in addition to video-level labels or segment-level labels. If unspecified,
- * defaults to `SHOT_MODE`.
- *
- *
- * .google.cloud.videointelligence.v1beta1.LabelDetectionMode label_detection_mode = 2;
- *
- */
- public int getLabelDetectionModeValue() {
- return labelDetectionMode_;
- }
- /**
- *
- *
- *
- * If label detection has been requested, what labels should be detected
- * in addition to video-level labels or segment-level labels. If unspecified,
- * defaults to `SHOT_MODE`.
- *
- *
- * .google.cloud.videointelligence.v1beta1.LabelDetectionMode label_detection_mode = 2;
- *
- */
- public Builder setLabelDetectionModeValue(int value) {
- labelDetectionMode_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * If label detection has been requested, what labels should be detected
- * in addition to video-level labels or segment-level labels. If unspecified,
- * defaults to `SHOT_MODE`.
- *
- *
- * .google.cloud.videointelligence.v1beta1.LabelDetectionMode label_detection_mode = 2;
- *
- */
- public com.google.cloud.videointelligence.v1beta1.LabelDetectionMode getLabelDetectionMode() {
- @SuppressWarnings("deprecation")
- com.google.cloud.videointelligence.v1beta1.LabelDetectionMode result =
- com.google.cloud.videointelligence.v1beta1.LabelDetectionMode.valueOf(
- labelDetectionMode_);
- return result == null
- ? com.google.cloud.videointelligence.v1beta1.LabelDetectionMode.UNRECOGNIZED
- : result;
- }
- /**
- *
- *
- *
- * If label detection has been requested, what labels should be detected
- * in addition to video-level labels or segment-level labels. If unspecified,
- * defaults to `SHOT_MODE`.
- *
- *
- * .google.cloud.videointelligence.v1beta1.LabelDetectionMode label_detection_mode = 2;
- *
- */
- public Builder setLabelDetectionMode(
- com.google.cloud.videointelligence.v1beta1.LabelDetectionMode value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- labelDetectionMode_ = value.getNumber();
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * If label detection has been requested, what labels should be detected
- * in addition to video-level labels or segment-level labels. If unspecified,
- * defaults to `SHOT_MODE`.
- *
- *
- * .google.cloud.videointelligence.v1beta1.LabelDetectionMode label_detection_mode = 2;
- *
- */
- 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.
- *
- *
- * bool stationary_camera = 3;
- */
- 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.
- *
- *
- * bool stationary_camera = 3;
- */
- 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.
- *
- *
- * bool stationary_camera = 3;
- */
- public Builder clearStationaryCamera() {
-
- stationaryCamera_ = false;
- onChanged();
- return this;
- }
-
- private java.lang.Object labelDetectionModel_ = "";
- /**
- *
- *
- *
- * Model to use for label detection.
- * Supported values: "latest" and "stable" (the default).
- *
- *
- * string label_detection_model = 4;
- */
- public java.lang.String getLabelDetectionModel() {
- java.lang.Object ref = labelDetectionModel_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- labelDetectionModel_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- *
- *
- *
- * Model to use for label detection.
- * Supported values: "latest" and "stable" (the default).
- *
- *
- * string label_detection_model = 4;
- */
- public com.google.protobuf.ByteString getLabelDetectionModelBytes() {
- java.lang.Object ref = labelDetectionModel_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- labelDetectionModel_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- *
- *
- *
- * Model to use for label detection.
- * Supported values: "latest" and "stable" (the default).
- *
- *
- * string label_detection_model = 4;
- */
- public Builder setLabelDetectionModel(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- labelDetectionModel_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Model to use for label detection.
- * Supported values: "latest" and "stable" (the default).
- *
- *
- * string label_detection_model = 4;
- */
- public Builder clearLabelDetectionModel() {
-
- labelDetectionModel_ = getDefaultInstance().getLabelDetectionModel();
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Model to use for label detection.
- * Supported values: "latest" and "stable" (the default).
- *
- *
- * string label_detection_model = 4;
- */
- public Builder setLabelDetectionModelBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- labelDetectionModel_ = value;
- onChanged();
- return this;
- }
-
- private java.lang.Object faceDetectionModel_ = "";
- /**
- *
- *
- *
- * Model to use for face detection.
- * Supported values: "latest" and "stable" (the default).
- *
- *
- * string face_detection_model = 5;
- */
- public java.lang.String getFaceDetectionModel() {
- java.lang.Object ref = faceDetectionModel_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- faceDetectionModel_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- *
- *
- *
- * Model to use for face detection.
- * Supported values: "latest" and "stable" (the default).
- *
- *
- * string face_detection_model = 5;
- */
- public com.google.protobuf.ByteString getFaceDetectionModelBytes() {
- java.lang.Object ref = faceDetectionModel_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- faceDetectionModel_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- *
- *
- *
- * Model to use for face detection.
- * Supported values: "latest" and "stable" (the default).
- *
- *
- * string face_detection_model = 5;
- */
- public Builder setFaceDetectionModel(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- faceDetectionModel_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Model to use for face detection.
- * Supported values: "latest" and "stable" (the default).
- *
- *
- * string face_detection_model = 5;
- */
- public Builder clearFaceDetectionModel() {
-
- faceDetectionModel_ = getDefaultInstance().getFaceDetectionModel();
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Model to use for face detection.
- * Supported values: "latest" and "stable" (the default).
- *
- *
- * string face_detection_model = 5;
- */
- public Builder setFaceDetectionModelBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- faceDetectionModel_ = value;
- onChanged();
- return this;
- }
-
- private java.lang.Object shotChangeDetectionModel_ = "";
- /**
- *
- *
- *
- * Model to use for shot change detection.
- * Supported values: "latest" and "stable" (the default).
- *
- *
- * string shot_change_detection_model = 6;
- */
- public java.lang.String getShotChangeDetectionModel() {
- java.lang.Object ref = shotChangeDetectionModel_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- shotChangeDetectionModel_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- *
- *
- *
- * Model to use for shot change detection.
- * Supported values: "latest" and "stable" (the default).
- *
- *
- * string shot_change_detection_model = 6;
- */
- public com.google.protobuf.ByteString getShotChangeDetectionModelBytes() {
- java.lang.Object ref = shotChangeDetectionModel_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- shotChangeDetectionModel_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- *
- *
- *
- * Model to use for shot change detection.
- * Supported values: "latest" and "stable" (the default).
- *
- *
- * string shot_change_detection_model = 6;
- */
- public Builder setShotChangeDetectionModel(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- shotChangeDetectionModel_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Model to use for shot change detection.
- * Supported values: "latest" and "stable" (the default).
- *
- *
- * string shot_change_detection_model = 6;
- */
- public Builder clearShotChangeDetectionModel() {
-
- shotChangeDetectionModel_ = getDefaultInstance().getShotChangeDetectionModel();
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Model to use for shot change detection.
- * Supported values: "latest" and "stable" (the default).
- *
- *
- * string shot_change_detection_model = 6;
- */
- public Builder setShotChangeDetectionModelBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- shotChangeDetectionModel_ = value;
- onChanged();
- return this;
- }
-
- private java.lang.Object safeSearchDetectionModel_ = "";
- /**
- *
- *
- *
- * Model to use for safe search detection.
- * Supported values: "latest" and "stable" (the default).
- *
- *
- * string safe_search_detection_model = 7;
- */
- public java.lang.String getSafeSearchDetectionModel() {
- java.lang.Object ref = safeSearchDetectionModel_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- safeSearchDetectionModel_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- *
- *
- *
- * Model to use for safe search detection.
- * Supported values: "latest" and "stable" (the default).
- *
- *
- * string safe_search_detection_model = 7;
- */
- public com.google.protobuf.ByteString getSafeSearchDetectionModelBytes() {
- java.lang.Object ref = safeSearchDetectionModel_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- safeSearchDetectionModel_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- *
- *
- *
- * Model to use for safe search detection.
- * Supported values: "latest" and "stable" (the default).
- *
- *
- * string safe_search_detection_model = 7;
- */
- public Builder setSafeSearchDetectionModel(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- safeSearchDetectionModel_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Model to use for safe search detection.
- * Supported values: "latest" and "stable" (the default).
- *
- *
- * string safe_search_detection_model = 7;
- */
- public Builder clearSafeSearchDetectionModel() {
-
- safeSearchDetectionModel_ = getDefaultInstance().getSafeSearchDetectionModel();
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Model to use for safe search detection.
- * Supported values: "latest" and "stable" (the default).
- *
- *
- * string safe_search_detection_model = 7;
- */
- public Builder setSafeSearchDetectionModelBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- safeSearchDetectionModel_ = value;
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
- // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1beta1.VideoContext)
- }
-
- // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta1.VideoContext)
- private static final com.google.cloud.videointelligence.v1beta1.VideoContext DEFAULT_INSTANCE;
-
- static {
- DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1beta1.VideoContext();
- }
-
- public static com.google.cloud.videointelligence.v1beta1.VideoContext getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser
- * Video segments to annotate. The segments may overlap and are not required
- * to be contiguous or span the whole video. If unspecified, each video
- * is treated as a single segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 1;
- */
- java.util.List
- * Video segments to annotate. The segments may overlap and are not required
- * to be contiguous or span the whole video. If unspecified, each video
- * is treated as a single segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 1;
- */
- com.google.cloud.videointelligence.v1beta1.VideoSegment getSegments(int index);
- /**
- *
- *
- *
- * Video segments to annotate. The segments may overlap and are not required
- * to be contiguous or span the whole video. If unspecified, each video
- * is treated as a single segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 1;
- */
- int getSegmentsCount();
- /**
- *
- *
- *
- * Video segments to annotate. The segments may overlap and are not required
- * to be contiguous or span the whole video. If unspecified, each video
- * is treated as a single segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 1;
- */
- java.util.List extends com.google.cloud.videointelligence.v1beta1.VideoSegmentOrBuilder>
- getSegmentsOrBuilderList();
- /**
- *
- *
- *
- * Video segments to annotate. The segments may overlap and are not required
- * to be contiguous or span the whole video. If unspecified, each video
- * is treated as a single segment.
- *
- *
- * repeated .google.cloud.videointelligence.v1beta1.VideoSegment segments = 1;
- */
- com.google.cloud.videointelligence.v1beta1.VideoSegmentOrBuilder getSegmentsOrBuilder(int index);
-
- /**
- *
- *
- *
- * If label detection has been requested, what labels should be detected
- * in addition to video-level labels or segment-level labels. If unspecified,
- * defaults to `SHOT_MODE`.
- *
- *
- * .google.cloud.videointelligence.v1beta1.LabelDetectionMode label_detection_mode = 2;
- *
- */
- int getLabelDetectionModeValue();
- /**
- *
- *
- *
- * If label detection has been requested, what labels should be detected
- * in addition to video-level labels or segment-level labels. If unspecified,
- * defaults to `SHOT_MODE`.
- *
- *
- * .google.cloud.videointelligence.v1beta1.LabelDetectionMode label_detection_mode = 2;
- *
- */
- com.google.cloud.videointelligence.v1beta1.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.
- *
- *
- * bool stationary_camera = 3;
- */
- boolean getStationaryCamera();
-
- /**
- *
- *
- *
- * Model to use for label detection.
- * Supported values: "latest" and "stable" (the default).
- *
- *
- * string label_detection_model = 4;
- */
- java.lang.String getLabelDetectionModel();
- /**
- *
- *
- *
- * Model to use for label detection.
- * Supported values: "latest" and "stable" (the default).
- *
- *
- * string label_detection_model = 4;
- */
- com.google.protobuf.ByteString getLabelDetectionModelBytes();
-
- /**
- *
- *
- *
- * Model to use for face detection.
- * Supported values: "latest" and "stable" (the default).
- *
- *
- * string face_detection_model = 5;
- */
- java.lang.String getFaceDetectionModel();
- /**
- *
- *
- *
- * Model to use for face detection.
- * Supported values: "latest" and "stable" (the default).
- *
- *
- * string face_detection_model = 5;
- */
- com.google.protobuf.ByteString getFaceDetectionModelBytes();
-
- /**
- *
- *
- *
- * Model to use for shot change detection.
- * Supported values: "latest" and "stable" (the default).
- *
- *
- * string shot_change_detection_model = 6;
- */
- java.lang.String getShotChangeDetectionModel();
- /**
- *
- *
- *
- * Model to use for shot change detection.
- * Supported values: "latest" and "stable" (the default).
- *
- *
- * string shot_change_detection_model = 6;
- */
- com.google.protobuf.ByteString getShotChangeDetectionModelBytes();
-
- /**
- *
- *
- *
- * Model to use for safe search detection.
- * Supported values: "latest" and "stable" (the default).
- *
- *
- * string safe_search_detection_model = 7;
- */
- java.lang.String getSafeSearchDetectionModel();
- /**
- *
- *
- *
- * Model to use for safe search detection.
- * Supported values: "latest" and "stable" (the default).
- *
- *
- * string safe_search_detection_model = 7;
- */
- com.google.protobuf.ByteString getSafeSearchDetectionModelBytes();
-}
diff --git a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/VideoIntelligenceServiceProto.java b/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/VideoIntelligenceServiceProto.java
deleted file mode 100644
index 88b9f0324..000000000
--- a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/VideoIntelligenceServiceProto.java
+++ /dev/null
@@ -1,315 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/cloud/videointelligence/v1beta1/video_intelligence.proto
-
-package com.google.cloud.videointelligence.v1beta1;
-
-public final class VideoIntelligenceServiceProto {
- private VideoIntelligenceServiceProto() {}
-
- public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
-
- public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
- registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
- }
-
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_google_cloud_videointelligence_v1beta1_AnnotateVideoRequest_descriptor;
- static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_google_cloud_videointelligence_v1beta1_AnnotateVideoRequest_fieldAccessorTable;
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_google_cloud_videointelligence_v1beta1_VideoContext_descriptor;
- static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_google_cloud_videointelligence_v1beta1_VideoContext_fieldAccessorTable;
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_google_cloud_videointelligence_v1beta1_VideoSegment_descriptor;
- static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_google_cloud_videointelligence_v1beta1_VideoSegment_fieldAccessorTable;
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_google_cloud_videointelligence_v1beta1_LabelLocation_descriptor;
- static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_google_cloud_videointelligence_v1beta1_LabelLocation_fieldAccessorTable;
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_google_cloud_videointelligence_v1beta1_LabelAnnotation_descriptor;
- static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_google_cloud_videointelligence_v1beta1_LabelAnnotation_fieldAccessorTable;
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_google_cloud_videointelligence_v1beta1_SafeSearchAnnotation_descriptor;
- static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_google_cloud_videointelligence_v1beta1_SafeSearchAnnotation_fieldAccessorTable;
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_google_cloud_videointelligence_v1beta1_BoundingBox_descriptor;
- static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_google_cloud_videointelligence_v1beta1_BoundingBox_fieldAccessorTable;
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_google_cloud_videointelligence_v1beta1_FaceLocation_descriptor;
- static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_google_cloud_videointelligence_v1beta1_FaceLocation_fieldAccessorTable;
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_google_cloud_videointelligence_v1beta1_FaceAnnotation_descriptor;
- static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_google_cloud_videointelligence_v1beta1_FaceAnnotation_fieldAccessorTable;
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_google_cloud_videointelligence_v1beta1_VideoAnnotationResults_descriptor;
- static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_google_cloud_videointelligence_v1beta1_VideoAnnotationResults_fieldAccessorTable;
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_google_cloud_videointelligence_v1beta1_AnnotateVideoResponse_descriptor;
- static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_google_cloud_videointelligence_v1beta1_AnnotateVideoResponse_fieldAccessorTable;
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_google_cloud_videointelligence_v1beta1_VideoAnnotationProgress_descriptor;
- static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_google_cloud_videointelligence_v1beta1_VideoAnnotationProgress_fieldAccessorTable;
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_google_cloud_videointelligence_v1beta1_AnnotateVideoProgress_descriptor;
- static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_google_cloud_videointelligence_v1beta1_AnnotateVideoProgress_fieldAccessorTable;
-
- public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
- return descriptor;
- }
-
- private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
-
- static {
- java.lang.String[] descriptorData = {
- "\n?google/cloud/videointelligence/v1beta1"
- + "/video_intelligence.proto\022&google.cloud."
- + "videointelligence.v1beta1\032\034google/api/an"
- + "notations.proto\032#google/longrunning/oper"
- + "ations.proto\032\037google/protobuf/timestamp."
- + "proto\032\027google/rpc/status.proto\"\371\001\n\024Annot"
- + "ateVideoRequest\022\021\n\tinput_uri\030\001 \001(\t\022\025\n\rin"
- + "put_content\030\006 \001(\t\022A\n\010features\030\002 \003(\0162/.go"
- + "ogle.cloud.videointelligence.v1beta1.Fea"
- + "ture\022K\n\rvideo_context\030\003 \001(\01324.google.clo"
- + "ud.videointelligence.v1beta1.VideoContex"
- + "t\022\022\n\noutput_uri\030\004 \001(\t\022\023\n\013location_id\030\005 \001"
- + "(\t\"\322\002\n\014VideoContext\022F\n\010segments\030\001 \003(\01324."
- + "google.cloud.videointelligence.v1beta1.V"
- + "ideoSegment\022X\n\024label_detection_mode\030\002 \001("
- + "\0162:.google.cloud.videointelligence.v1bet"
- + "a1.LabelDetectionMode\022\031\n\021stationary_came"
- + "ra\030\003 \001(\010\022\035\n\025label_detection_model\030\004 \001(\t\022"
- + "\034\n\024face_detection_model\030\005 \001(\t\022#\n\033shot_ch"
- + "ange_detection_model\030\006 \001(\t\022#\n\033safe_searc"
- + "h_detection_model\030\007 \001(\t\"B\n\014VideoSegment\022"
- + "\031\n\021start_time_offset\030\001 \001(\003\022\027\n\017end_time_o"
- + "ffset\030\002 \001(\003\"\255\001\n\rLabelLocation\022E\n\007segment"
- + "\030\001 \001(\01324.google.cloud.videointelligence."
- + "v1beta1.VideoSegment\022\022\n\nconfidence\030\002 \001(\002"
- + "\022A\n\005level\030\003 \001(\01622.google.cloud.videointe"
- + "lligence.v1beta1.LabelLevel\"\207\001\n\017LabelAnn"
- + "otation\022\023\n\013description\030\001 \001(\t\022\025\n\rlanguage"
- + "_code\030\002 \001(\t\022H\n\tlocations\030\003 \003(\01325.google."
- + "cloud.videointelligence.v1beta1.LabelLoc"
- + "ation\"\375\002\n\024SafeSearchAnnotation\022A\n\005adult\030"
- + "\001 \001(\01622.google.cloud.videointelligence.v"
- + "1beta1.Likelihood\022A\n\005spoof\030\002 \001(\01622.googl"
- + "e.cloud.videointelligence.v1beta1.Likeli"
- + "hood\022C\n\007medical\030\003 \001(\01622.google.cloud.vid"
- + "eointelligence.v1beta1.Likelihood\022C\n\007vio"
- + "lent\030\004 \001(\01622.google.cloud.videointellige"
- + "nce.v1beta1.Likelihood\022@\n\004racy\030\005 \001(\01622.g"
- + "oogle.cloud.videointelligence.v1beta1.Li"
- + "kelihood\022\023\n\013time_offset\030\006 \001(\003\"G\n\013Boundin"
- + "gBox\022\014\n\004left\030\001 \001(\005\022\r\n\005right\030\002 \001(\005\022\016\n\006bot"
- + "tom\030\003 \001(\005\022\013\n\003top\030\004 \001(\005\"n\n\014FaceLocation\022I"
- + "\n\014bounding_box\030\001 \001(\01323.google.cloud.vide"
- + "ointelligence.v1beta1.BoundingBox\022\023\n\013tim"
- + "e_offset\030\002 \001(\003\"\264\001\n\016FaceAnnotation\022\021\n\tthu"
- + "mbnail\030\001 \001(\t\022F\n\010segments\030\002 \003(\01324.google."
- + "cloud.videointelligence.v1beta1.VideoSeg"
- + "ment\022G\n\tlocations\030\003 \003(\01324.google.cloud.v"
- + "ideointelligence.v1beta1.FaceLocation\"\243\003"
- + "\n\026VideoAnnotationResults\022\021\n\tinput_uri\030\001 "
- + "\001(\t\022R\n\021label_annotations\030\002 \003(\01327.google."
- + "cloud.videointelligence.v1beta1.LabelAnn"
- + "otation\022P\n\020face_annotations\030\003 \003(\01326.goog"
- + "le.cloud.videointelligence.v1beta1.FaceA"
- + "nnotation\022N\n\020shot_annotations\030\004 \003(\01324.go"
- + "ogle.cloud.videointelligence.v1beta1.Vid"
- + "eoSegment\022]\n\027safe_search_annotations\030\006 \003"
- + "(\0132<.google.cloud.videointelligence.v1be"
- + "ta1.SafeSearchAnnotation\022!\n\005error\030\005 \001(\0132"
- + "\022.google.rpc.Status\"s\n\025AnnotateVideoResp"
- + "onse\022Z\n\022annotation_results\030\001 \003(\0132>.googl"
- + "e.cloud.videointelligence.v1beta1.VideoA"
- + "nnotationResults\"\247\001\n\027VideoAnnotationProg"
- + "ress\022\021\n\tinput_uri\030\001 \001(\t\022\030\n\020progress_perc"
- + "ent\030\002 \001(\005\022.\n\nstart_time\030\003 \001(\0132\032.google.p"
- + "rotobuf.Timestamp\022/\n\013update_time\030\004 \001(\0132\032"
- + ".google.protobuf.Timestamp\"u\n\025AnnotateVi"
- + "deoProgress\022\\\n\023annotation_progress\030\001 \003(\013"
- + "2?.google.cloud.videointelligence.v1beta"
- + "1.VideoAnnotationProgress*\201\001\n\007Feature\022\027\n"
- + "\023FEATURE_UNSPECIFIED\020\000\022\023\n\017LABEL_DETECTIO"
- + "N\020\001\022\022\n\016FACE_DETECTION\020\002\022\031\n\025SHOT_CHANGE_D"
- + "ETECTION\020\003\022\031\n\025SAFE_SEARCH_DETECTION\020\004*n\n"
- + "\nLabelLevel\022\033\n\027LABEL_LEVEL_UNSPECIFIED\020\000"
- + "\022\017\n\013VIDEO_LEVEL\020\001\022\021\n\rSEGMENT_LEVEL\020\002\022\016\n\n"
- + "SHOT_LEVEL\020\003\022\017\n\013FRAME_LEVEL\020\004*r\n\022LabelDe"
- + "tectionMode\022$\n LABEL_DETECTION_MODE_UNSP"
- + "ECIFIED\020\000\022\r\n\tSHOT_MODE\020\001\022\016\n\nFRAME_MODE\020\002"
- + "\022\027\n\023SHOT_AND_FRAME_MODE\020\003*e\n\nLikelihood\022"
- + "\013\n\007UNKNOWN\020\000\022\021\n\rVERY_UNLIKELY\020\001\022\014\n\010UNLIK"
- + "ELY\020\002\022\014\n\010POSSIBLE\020\003\022\n\n\006LIKELY\020\004\022\017\n\013VERY_"
- + "LIKELY\020\0052\256\001\n\030VideoIntelligenceService\022\221\001"
- + "\n\rAnnotateVideo\022<.google.cloud.videointe"
- + "lligence.v1beta1.AnnotateVideoRequest\032\035."
- + "google.longrunning.Operation\"#\202\323\344\223\002\035\"\030/v"
- + "1beta1/videos:annotate:\001*B\244\002\n*com.google"
- + ".cloud.videointelligence.v1beta1B\035VideoI"
- + "ntelligenceServiceProtoP\001ZWgoogle.golang"
- + ".org/genproto/googleapis/cloud/videointe"
- + "lligence/v1beta1;videointelligence\252\002&Goo"
- + "gle.Cloud.VideoIntelligence.V1Beta1\312\002&Go"
- + "ogle\\Cloud\\VideoIntelligence\\V1beta1\352\002)G"
- + "oogle::Cloud::VideoIntelligence::V1beta1"
- + "b\006proto3"
- };
- com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- return null;
- }
- };
- com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
- descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- com.google.api.AnnotationsProto.getDescriptor(),
- com.google.longrunning.OperationsProto.getDescriptor(),
- com.google.protobuf.TimestampProto.getDescriptor(),
- com.google.rpc.StatusProto.getDescriptor(),
- },
- assigner);
- internal_static_google_cloud_videointelligence_v1beta1_AnnotateVideoRequest_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_google_cloud_videointelligence_v1beta1_AnnotateVideoRequest_fieldAccessorTable =
- new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_google_cloud_videointelligence_v1beta1_AnnotateVideoRequest_descriptor,
- new java.lang.String[] {
- "InputUri", "InputContent", "Features", "VideoContext", "OutputUri", "LocationId",
- });
- internal_static_google_cloud_videointelligence_v1beta1_VideoContext_descriptor =
- getDescriptor().getMessageTypes().get(1);
- internal_static_google_cloud_videointelligence_v1beta1_VideoContext_fieldAccessorTable =
- new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_google_cloud_videointelligence_v1beta1_VideoContext_descriptor,
- new java.lang.String[] {
- "Segments",
- "LabelDetectionMode",
- "StationaryCamera",
- "LabelDetectionModel",
- "FaceDetectionModel",
- "ShotChangeDetectionModel",
- "SafeSearchDetectionModel",
- });
- internal_static_google_cloud_videointelligence_v1beta1_VideoSegment_descriptor =
- getDescriptor().getMessageTypes().get(2);
- internal_static_google_cloud_videointelligence_v1beta1_VideoSegment_fieldAccessorTable =
- new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_google_cloud_videointelligence_v1beta1_VideoSegment_descriptor,
- new java.lang.String[] {
- "StartTimeOffset", "EndTimeOffset",
- });
- internal_static_google_cloud_videointelligence_v1beta1_LabelLocation_descriptor =
- getDescriptor().getMessageTypes().get(3);
- internal_static_google_cloud_videointelligence_v1beta1_LabelLocation_fieldAccessorTable =
- new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_google_cloud_videointelligence_v1beta1_LabelLocation_descriptor,
- new java.lang.String[] {
- "Segment", "Confidence", "Level",
- });
- internal_static_google_cloud_videointelligence_v1beta1_LabelAnnotation_descriptor =
- getDescriptor().getMessageTypes().get(4);
- internal_static_google_cloud_videointelligence_v1beta1_LabelAnnotation_fieldAccessorTable =
- new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_google_cloud_videointelligence_v1beta1_LabelAnnotation_descriptor,
- new java.lang.String[] {
- "Description", "LanguageCode", "Locations",
- });
- internal_static_google_cloud_videointelligence_v1beta1_SafeSearchAnnotation_descriptor =
- getDescriptor().getMessageTypes().get(5);
- internal_static_google_cloud_videointelligence_v1beta1_SafeSearchAnnotation_fieldAccessorTable =
- new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_google_cloud_videointelligence_v1beta1_SafeSearchAnnotation_descriptor,
- new java.lang.String[] {
- "Adult", "Spoof", "Medical", "Violent", "Racy", "TimeOffset",
- });
- internal_static_google_cloud_videointelligence_v1beta1_BoundingBox_descriptor =
- getDescriptor().getMessageTypes().get(6);
- internal_static_google_cloud_videointelligence_v1beta1_BoundingBox_fieldAccessorTable =
- new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_google_cloud_videointelligence_v1beta1_BoundingBox_descriptor,
- new java.lang.String[] {
- "Left", "Right", "Bottom", "Top",
- });
- internal_static_google_cloud_videointelligence_v1beta1_FaceLocation_descriptor =
- getDescriptor().getMessageTypes().get(7);
- internal_static_google_cloud_videointelligence_v1beta1_FaceLocation_fieldAccessorTable =
- new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_google_cloud_videointelligence_v1beta1_FaceLocation_descriptor,
- new java.lang.String[] {
- "BoundingBox", "TimeOffset",
- });
- internal_static_google_cloud_videointelligence_v1beta1_FaceAnnotation_descriptor =
- getDescriptor().getMessageTypes().get(8);
- internal_static_google_cloud_videointelligence_v1beta1_FaceAnnotation_fieldAccessorTable =
- new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_google_cloud_videointelligence_v1beta1_FaceAnnotation_descriptor,
- new java.lang.String[] {
- "Thumbnail", "Segments", "Locations",
- });
- internal_static_google_cloud_videointelligence_v1beta1_VideoAnnotationResults_descriptor =
- getDescriptor().getMessageTypes().get(9);
- internal_static_google_cloud_videointelligence_v1beta1_VideoAnnotationResults_fieldAccessorTable =
- new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_google_cloud_videointelligence_v1beta1_VideoAnnotationResults_descriptor,
- new java.lang.String[] {
- "InputUri",
- "LabelAnnotations",
- "FaceAnnotations",
- "ShotAnnotations",
- "SafeSearchAnnotations",
- "Error",
- });
- internal_static_google_cloud_videointelligence_v1beta1_AnnotateVideoResponse_descriptor =
- getDescriptor().getMessageTypes().get(10);
- internal_static_google_cloud_videointelligence_v1beta1_AnnotateVideoResponse_fieldAccessorTable =
- new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_google_cloud_videointelligence_v1beta1_AnnotateVideoResponse_descriptor,
- new java.lang.String[] {
- "AnnotationResults",
- });
- internal_static_google_cloud_videointelligence_v1beta1_VideoAnnotationProgress_descriptor =
- getDescriptor().getMessageTypes().get(11);
- internal_static_google_cloud_videointelligence_v1beta1_VideoAnnotationProgress_fieldAccessorTable =
- new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_google_cloud_videointelligence_v1beta1_VideoAnnotationProgress_descriptor,
- new java.lang.String[] {
- "InputUri", "ProgressPercent", "StartTime", "UpdateTime",
- });
- internal_static_google_cloud_videointelligence_v1beta1_AnnotateVideoProgress_descriptor =
- getDescriptor().getMessageTypes().get(12);
- internal_static_google_cloud_videointelligence_v1beta1_AnnotateVideoProgress_fieldAccessorTable =
- new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_google_cloud_videointelligence_v1beta1_AnnotateVideoProgress_descriptor,
- new java.lang.String[] {
- "AnnotationProgress",
- });
- com.google.protobuf.ExtensionRegistry registry =
- com.google.protobuf.ExtensionRegistry.newInstance();
- registry.add(com.google.api.AnnotationsProto.http);
- com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
- descriptor, registry);
- com.google.api.AnnotationsProto.getDescriptor();
- com.google.longrunning.OperationsProto.getDescriptor();
- com.google.protobuf.TimestampProto.getDescriptor();
- com.google.rpc.StatusProto.getDescriptor();
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/VideoSegment.java b/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/VideoSegment.java
deleted file mode 100644
index cec8cb6f1..000000000
--- a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/VideoSegment.java
+++ /dev/null
@@ -1,595 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/cloud/videointelligence/v1beta1/video_intelligence.proto
-
-package com.google.cloud.videointelligence.v1beta1;
-
-/**
- *
- *
- *
- * Video segment.
- *
- *
- * Protobuf type {@code google.cloud.videointelligence.v1beta1.VideoSegment}
- */
-public final class VideoSegment extends com.google.protobuf.GeneratedMessageV3
- implements
- // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1beta1.VideoSegment)
- VideoSegmentOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use VideoSegment.newBuilder() to construct.
- private VideoSegment(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
-
- private VideoSegment() {}
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
- private VideoSegment(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 8:
- {
- startTimeOffset_ = input.readInt64();
- break;
- }
- case 16:
- {
- endTimeOffset_ = input.readInt64();
- break;
- }
- default:
- {
- if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.videointelligence.v1beta1.VideoIntelligenceServiceProto
- .internal_static_google_cloud_videointelligence_v1beta1_VideoSegment_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.google.cloud.videointelligence.v1beta1.VideoIntelligenceServiceProto
- .internal_static_google_cloud_videointelligence_v1beta1_VideoSegment_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.google.cloud.videointelligence.v1beta1.VideoSegment.class,
- com.google.cloud.videointelligence.v1beta1.VideoSegment.Builder.class);
- }
-
- public static final int START_TIME_OFFSET_FIELD_NUMBER = 1;
- private long startTimeOffset_;
- /**
- *
- *
- *
- * Start offset in microseconds (inclusive). Unset means 0.
- *
- *
- * int64 start_time_offset = 1;
- */
- public long getStartTimeOffset() {
- return startTimeOffset_;
- }
-
- public static final int END_TIME_OFFSET_FIELD_NUMBER = 2;
- private long endTimeOffset_;
- /**
- *
- *
- *
- * End offset in microseconds (inclusive). Unset means 0.
- *
- *
- * int64 end_time_offset = 2;
- */
- public long getEndTimeOffset() {
- return endTimeOffset_;
- }
-
- private byte memoizedIsInitialized = -1;
-
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (startTimeOffset_ != 0L) {
- output.writeInt64(1, startTimeOffset_);
- }
- if (endTimeOffset_ != 0L) {
- output.writeInt64(2, endTimeOffset_);
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (startTimeOffset_ != 0L) {
- size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, startTimeOffset_);
- }
- if (endTimeOffset_ != 0L) {
- size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, endTimeOffset_);
- }
- 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.v1beta1.VideoSegment)) {
- return super.equals(obj);
- }
- com.google.cloud.videointelligence.v1beta1.VideoSegment other =
- (com.google.cloud.videointelligence.v1beta1.VideoSegment) obj;
-
- if (getStartTimeOffset() != other.getStartTimeOffset()) return false;
- if (getEndTimeOffset() != other.getEndTimeOffset()) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (37 * hash) + START_TIME_OFFSET_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getStartTimeOffset());
- hash = (37 * hash) + END_TIME_OFFSET_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getEndTimeOffset());
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.cloud.videointelligence.v1beta1.VideoSegment parseFrom(
- java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.VideoSegment parseFrom(
- java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.VideoSegment parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.VideoSegment parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.VideoSegment parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.VideoSegment parseFrom(
- byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.VideoSegment parseFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.VideoSegment parseFrom(
- java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
- PARSER, input, extensionRegistry);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.VideoSegment parseDelimitedFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.VideoSegment parseDelimitedFrom(
- java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
- PARSER, input, extensionRegistry);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.VideoSegment parseFrom(
- com.google.protobuf.CodedInputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.videointelligence.v1beta1.VideoSegment parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
- PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() {
- return newBuilder();
- }
-
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
-
- public static Builder newBuilder(
- com.google.cloud.videointelligence.v1beta1.VideoSegment prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
-
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- *
- *
- *
- * Video segment.
- *
- *
- * Protobuf type {@code google.cloud.videointelligence.v1beta1.VideoSegment}
- */
- public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
- * Start offset in microseconds (inclusive). Unset means 0.
- *
- *
- * int64 start_time_offset = 1;
- */
- public long getStartTimeOffset() {
- return startTimeOffset_;
- }
- /**
- *
- *
- *
- * Start offset in microseconds (inclusive). Unset means 0.
- *
- *
- * int64 start_time_offset = 1;
- */
- public Builder setStartTimeOffset(long value) {
-
- startTimeOffset_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Start offset in microseconds (inclusive). Unset means 0.
- *
- *
- * int64 start_time_offset = 1;
- */
- public Builder clearStartTimeOffset() {
-
- startTimeOffset_ = 0L;
- onChanged();
- return this;
- }
-
- private long endTimeOffset_;
- /**
- *
- *
- *
- * End offset in microseconds (inclusive). Unset means 0.
- *
- *
- * int64 end_time_offset = 2;
- */
- public long getEndTimeOffset() {
- return endTimeOffset_;
- }
- /**
- *
- *
- *
- * End offset in microseconds (inclusive). Unset means 0.
- *
- *
- * int64 end_time_offset = 2;
- */
- public Builder setEndTimeOffset(long value) {
-
- endTimeOffset_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * End offset in microseconds (inclusive). Unset means 0.
- *
- *
- * int64 end_time_offset = 2;
- */
- public Builder clearEndTimeOffset() {
-
- endTimeOffset_ = 0L;
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
- // @@protoc_insertion_point(builder_scope:google.cloud.videointelligence.v1beta1.VideoSegment)
- }
-
- // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta1.VideoSegment)
- private static final com.google.cloud.videointelligence.v1beta1.VideoSegment DEFAULT_INSTANCE;
-
- static {
- DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1beta1.VideoSegment();
- }
-
- public static com.google.cloud.videointelligence.v1beta1.VideoSegment getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser
- * Start offset in microseconds (inclusive). Unset means 0.
- *
- *
- * int64 start_time_offset = 1;
- */
- long getStartTimeOffset();
-
- /**
- *
- *
- *
- * End offset in microseconds (inclusive). Unset means 0.
- *
- *
- * int64 end_time_offset = 2;
- */
- long getEndTimeOffset();
-}
diff --git a/proto-google-cloud-video-intelligence-v1beta1/src/main/proto/google/cloud/videointelligence/v1beta1/video_intelligence.proto b/proto-google-cloud-video-intelligence-v1beta1/src/main/proto/google/cloud/videointelligence/v1beta1/video_intelligence.proto
deleted file mode 100644
index 430776bf0..000000000
--- a/proto-google-cloud-video-intelligence-v1beta1/src/main/proto/google/cloud/videointelligence/v1beta1/video_intelligence.proto
+++ /dev/null
@@ -1,345 +0,0 @@
-// Copyright 2017 Google Inc.
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-syntax = "proto3";
-
-package google.cloud.videointelligence.v1beta1;
-
-import "google/api/annotations.proto";
-import "google/longrunning/operations.proto";
-import "google/protobuf/timestamp.proto";
-import "google/rpc/status.proto";
-
-option csharp_namespace = "Google.Cloud.VideoIntelligence.V1Beta1";
-option go_package = "google.golang.org/genproto/googleapis/cloud/videointelligence/v1beta1;videointelligence";
-option java_multiple_files = true;
-option java_outer_classname = "VideoIntelligenceServiceProto";
-option java_package = "com.google.cloud.videointelligence.v1beta1";
-option php_namespace = "Google\\Cloud\\VideoIntelligence\\V1beta1";
-option ruby_package = "Google::Cloud::VideoIntelligence::V1beta1";
-
-// Service that implements Google Cloud Video Intelligence API.
-service VideoIntelligenceService {
- // Performs asynchronous video annotation. Progress and results can be
- // retrieved through the `google.longrunning.Operations` interface.
- // `Operation.metadata` contains `AnnotateVideoProgress` (progress).
- // `Operation.response` contains `AnnotateVideoResponse` (results).
- rpc AnnotateVideo(AnnotateVideoRequest)
- returns (google.longrunning.Operation) {
- option (google.api.http) = {
- post: "/v1beta1/videos:annotate"
- body: "*"
- };
- }
-}
-
-// Video annotation request.
-message AnnotateVideoRequest {
- // Input video location. Currently, only
- // [Google Cloud Storage](https://cloud.google.com/storage/) URIs are
- // supported, which must be specified in the following format:
- // `gs://bucket-id/object-id` (other URI formats return
- // [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
- // more information, see [Request URIs](/storage/docs/reference-uris). A video
- // URI may include wildcards in `object-id`, and thus identify multiple
- // videos. Supported wildcards: '*' to match 0 or more characters;
- // '?' to match 1 character. If unset, the input video should be embedded
- // in the request as `input_content`. If set, `input_content` should be unset.
- string input_uri = 1;
-
- // The video data bytes. Encoding: base64. If unset, the input video(s)
- // should be specified via `input_uri`. If set, `input_uri` should be unset.
- string input_content = 6;
-
- // Requested video annotation features.
- repeated Feature features = 2;
-
- // Additional video context and/or feature-specific parameters.
- VideoContext video_context = 3;
-
- // Optional location where the output (in JSON format) should be stored.
- // Currently, only [Google Cloud Storage](https://cloud.google.com/storage/)
- // URIs are supported, which must be specified in the following format:
- // `gs://bucket-id/object-id` (other URI formats return
- // [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
- // more information, see [Request URIs](/storage/docs/reference-uris).
- string output_uri = 4;
-
- // Optional cloud region where annotation should take place. Supported cloud
- // regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region
- // is specified, a region will be determined based on video file location.
- string location_id = 5;
-}
-
-// Video context and/or feature-specific parameters.
-message VideoContext {
- // Video segments to annotate. The segments may overlap and are not required
- // to be contiguous or span the whole video. If unspecified, each video
- // is treated as a single segment.
- repeated VideoSegment segments = 1;
-
- // If label detection has been requested, what labels should be detected
- // in addition to video-level labels or segment-level labels. If unspecified,
- // defaults to `SHOT_MODE`.
- LabelDetectionMode label_detection_mode = 2;
-
- // 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.
- bool stationary_camera = 3;
-
- // Model to use for label detection.
- // Supported values: "latest" and "stable" (the default).
- string label_detection_model = 4;
-
- // Model to use for face detection.
- // Supported values: "latest" and "stable" (the default).
- string face_detection_model = 5;
-
- // Model to use for shot change detection.
- // Supported values: "latest" and "stable" (the default).
- string shot_change_detection_model = 6;
-
- // Model to use for safe search detection.
- // Supported values: "latest" and "stable" (the default).
- string safe_search_detection_model = 7;
-}
-
-// Video segment.
-message VideoSegment {
- // Start offset in microseconds (inclusive). Unset means 0.
- int64 start_time_offset = 1;
-
- // End offset in microseconds (inclusive). Unset means 0.
- int64 end_time_offset = 2;
-}
-
-// Label location.
-message LabelLocation {
- // Video segment. Set to [-1, -1] for video-level labels.
- // Set to [timestamp, timestamp] for frame-level labels.
- // Otherwise, corresponds to one of `AnnotateSpec.segments`
- // (if specified) or to shot boundaries (if requested).
- VideoSegment segment = 1;
-
- // Confidence that the label is accurate. Range: [0, 1].
- float confidence = 2;
-
- // Label level.
- LabelLevel level = 3;
-}
-
-// Label annotation.
-message LabelAnnotation {
- // Textual description, e.g. `Fixed-gear bicycle`.
- string description = 1;
-
- // Language code for `description` in BCP-47 format.
- string language_code = 2;
-
- // Where the label was detected and with what confidence.
- repeated LabelLocation locations = 3;
-}
-
-// Safe search annotation (based on per-frame visual signals only).
-// If no unsafe content has been detected in a frame, no annotations
-// are present for that frame. If only some types of unsafe content
-// have been detected in a frame, the likelihood is set to `UNKNOWN`
-// for all other types of unsafe content.
-message SafeSearchAnnotation {
- // Likelihood of adult content.
- Likelihood adult = 1;
-
- // Likelihood that an obvious modification was made to the original
- // version to make it appear funny or offensive.
- Likelihood spoof = 2;
-
- // Likelihood of medical content.
- Likelihood medical = 3;
-
- // Likelihood of violent content.
- Likelihood violent = 4;
-
- // Likelihood of racy content.
- Likelihood racy = 5;
-
- // Video time offset in microseconds.
- int64 time_offset = 6;
-}
-
-// Bounding box.
-message BoundingBox {
- // Left X coordinate.
- int32 left = 1;
-
- // Right X coordinate.
- int32 right = 2;
-
- // Bottom Y coordinate.
- int32 bottom = 3;
-
- // Top Y coordinate.
- int32 top = 4;
-}
-
-// Face location.
-message FaceLocation {
- // Bounding box in a frame.
- BoundingBox bounding_box = 1;
-
- // Video time offset in microseconds.
- int64 time_offset = 2;
-}
-
-// Face annotation.
-message FaceAnnotation {
- // Thumbnail of a representative face view (in JPEG format). Encoding: base64.
- string thumbnail = 1;
-
- // All locations where a face was detected.
- // Faces are detected and tracked on a per-video basis
- // (as opposed to across multiple videos).
- repeated VideoSegment segments = 2;
-
- // Face locations at one frame per second.
- repeated FaceLocation locations = 3;
-}
-
-// Annotation results for a single video.
-message VideoAnnotationResults {
- // Video file location in
- // [Google Cloud Storage](https://cloud.google.com/storage/).
- string input_uri = 1;
-
- // Label annotations. There is exactly one element for each unique label.
- repeated LabelAnnotation label_annotations = 2;
-
- // Face annotations. There is exactly one element for each unique face.
- repeated FaceAnnotation face_annotations = 3;
-
- // Shot annotations. Each shot is represented as a video segment.
- repeated VideoSegment shot_annotations = 4;
-
- // Safe search annotations.
- repeated SafeSearchAnnotation safe_search_annotations = 6;
-
- // If set, indicates an error. Note that for a single `AnnotateVideoRequest`
- // some videos may succeed and some may fail.
- google.rpc.Status error = 5;
-}
-
-// Video annotation response. Included in the `response`
-// field of the `Operation` returned by the `GetOperation`
-// call of the `google::longrunning::Operations` service.
-message AnnotateVideoResponse {
- // Annotation results for all videos specified in `AnnotateVideoRequest`.
- repeated VideoAnnotationResults annotation_results = 1;
-}
-
-// Annotation progress for a single video.
-message VideoAnnotationProgress {
- // Video file location in
- // [Google Cloud Storage](https://cloud.google.com/storage/).
- string input_uri = 1;
-
- // Approximate percentage processed thus far.
- // Guaranteed to be 100 when fully processed.
- int32 progress_percent = 2;
-
- // Time when the request was received.
- google.protobuf.Timestamp start_time = 3;
-
- // Time of the most recent update.
- google.protobuf.Timestamp update_time = 4;
-}
-
-// Video annotation progress. Included in the `metadata`
-// field of the `Operation` returned by the `GetOperation`
-// call of the `google::longrunning::Operations` service.
-message AnnotateVideoProgress {
- // Progress metadata for all videos specified in `AnnotateVideoRequest`.
- repeated VideoAnnotationProgress annotation_progress = 1;
-}
-
-// Video annotation feature.
-enum Feature {
- // Unspecified.
- FEATURE_UNSPECIFIED = 0;
-
- // Label detection. Detect objects, such as dog or flower.
- LABEL_DETECTION = 1;
-
- // Human face detection and tracking.
- FACE_DETECTION = 2;
-
- // Shot change detection.
- SHOT_CHANGE_DETECTION = 3;
-
- // Safe search detection.
- SAFE_SEARCH_DETECTION = 4;
-}
-
-// Label level (scope).
-enum LabelLevel {
- // Unspecified.
- LABEL_LEVEL_UNSPECIFIED = 0;
-
- // Video-level. Corresponds to the whole video.
- VIDEO_LEVEL = 1;
-
- // Segment-level. Corresponds to one of `AnnotateSpec.segments`.
- SEGMENT_LEVEL = 2;
-
- // Shot-level. Corresponds to a single shot (i.e. a series of frames
- // without a major camera position or background change).
- SHOT_LEVEL = 3;
-
- // Frame-level. Corresponds to a single video frame.
- FRAME_LEVEL = 4;
-}
-
-// Label detection mode.
-enum LabelDetectionMode {
- // Unspecified.
- LABEL_DETECTION_MODE_UNSPECIFIED = 0;
-
- // Detect shot-level labels.
- SHOT_MODE = 1;
-
- // Detect frame-level labels.
- FRAME_MODE = 2;
-
- // Detect both shot-level and frame-level labels.
- SHOT_AND_FRAME_MODE = 3;
-}
-
-// Bucketized representation of likelihood.
-enum Likelihood {
- // Unknown likelihood.
- UNKNOWN = 0;
-
- // Very unlikely.
- VERY_UNLIKELY = 1;
-
- // Unlikely.
- UNLIKELY = 2;
-
- // Possible.
- POSSIBLE = 3;
-
- // Likely.
- LIKELY = 4;
-
- // Very likely.
- VERY_LIKELY = 5;
-}