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: - * - *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been - * converted into function parameters. It may be the case that not all fields are available as - * parameters, and not every API method will have a flattened method entry point. - *
  2. A "request object" method. This type of method only takes one parameter, a request object, - * which must be constructed before the call. Not every API method will have a request object - * method. - *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API - * callable object, which can be used to initiate calls to the service. - *
- * - *

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 OperationFuture annotateVideoAsync( - String inputUri, List features) { - - AnnotateVideoRequest request = - AnnotateVideoRequest.newBuilder().setInputUri(inputUri).addAllFeatures(features).build(); - return annotateVideoAsync(request); - } - - // 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);
-   *   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 OperationFuture annotateVideoAsync( - AnnotateVideoRequest request) { - return annotateVideoOperationCallable().futureCall(request); - } - - // 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);
-   *   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 OperationCallable - annotateVideoOperationCallable() { - return stub.annotateVideoOperationCallable(); - } - - // 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);
-   *   AnnotateVideoRequest request = AnnotateVideoRequest.newBuilder()
-   *     .setInputUri(inputUri)
-   *     .addAllFeatures(features)
-   *     .build();
-   *   ApiFuture<Operation> future = videoIntelligenceServiceClient.annotateVideoCallable().futureCall(request);
-   *   // Do something
-   *   Operation response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable annotateVideoCallable() { - return stub.annotateVideoCallable(); - } - - @Override - public final void close() { - stub.close(); - } - - @Override - public void shutdown() { - stub.shutdown(); - } - - @Override - public boolean isShutdown() { - return stub.isShutdown(); - } - - @Override - public boolean isTerminated() { - return stub.isTerminated(); - } - - @Override - public void shutdownNow() { - stub.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return stub.awaitTermination(duration, unit); - } -} diff --git a/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta1/VideoIntelligenceServiceSettings.java b/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta1/VideoIntelligenceServiceSettings.java deleted file mode 100644 index 16461855f..000000000 --- a/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta1/VideoIntelligenceServiceSettings.java +++ /dev/null @@ -1,198 +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.ApiFunction; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientSettings; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.cloud.videointelligence.v1beta1.stub.VideoIntelligenceServiceStubSettings; -import com.google.longrunning.Operation; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS -/** - * Settings class to configure an instance of {@link VideoIntelligenceServiceClient}. - * - *

The default instance has everything set to sensible defaults: - * - *

    - *
  • The default service address (videointelligence.googleapis.com) and default port (443) are - * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. - *
- * - *

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 ClientSettings { - /** Returns the object with the settings used for calls to annotateVideo. */ - public UnaryCallSettings annotateVideoSettings() { - return ((VideoIntelligenceServiceStubSettings) getStubSettings()).annotateVideoSettings(); - } - - /** Returns the object with the settings used for calls to annotateVideo. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings - annotateVideoOperationSettings() { - return ((VideoIntelligenceServiceStubSettings) getStubSettings()) - .annotateVideoOperationSettings(); - } - - public static final VideoIntelligenceServiceSettings create( - VideoIntelligenceServiceStubSettings stub) throws IOException { - return new VideoIntelligenceServiceSettings.Builder(stub.toBuilder()).build(); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return VideoIntelligenceServiceStubSettings.defaultExecutorProviderBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return VideoIntelligenceServiceStubSettings.getDefaultEndpoint(); - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return VideoIntelligenceServiceStubSettings.getDefaultServiceScopes(); - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return VideoIntelligenceServiceStubSettings.defaultCredentialsProviderBuilder(); - } - - /** Returns a builder for the default ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return VideoIntelligenceServiceStubSettings.defaultGrpcTransportProviderBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return VideoIntelligenceServiceStubSettings.defaultTransportChannelProvider(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return VideoIntelligenceServiceStubSettings.defaultApiClientHeaderProviderBuilder(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected VideoIntelligenceServiceSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - } - - /** Builder for VideoIntelligenceServiceSettings. */ - public static class Builder - extends ClientSettings.Builder { - protected Builder() throws IOException { - this((ClientContext) null); - } - - protected Builder(ClientContext clientContext) { - super(VideoIntelligenceServiceStubSettings.newBuilder(clientContext)); - } - - private static Builder createDefault() { - return new Builder(VideoIntelligenceServiceStubSettings.newBuilder()); - } - - protected Builder(VideoIntelligenceServiceSettings settings) { - super(settings.getStubSettings().toBuilder()); - } - - protected Builder(VideoIntelligenceServiceStubSettings.Builder stubSettings) { - super(stubSettings); - } - - public VideoIntelligenceServiceStubSettings.Builder getStubSettingsBuilder() { - return ((VideoIntelligenceServiceStubSettings.Builder) getStubSettings()); - } - - // NEXT_MAJOR_VER: remove 'throws Exception' - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { - super.applyToAllUnaryMethods( - getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); - return this; - } - - /** Returns the builder for the settings used for calls to annotateVideo. */ - public UnaryCallSettings.Builder annotateVideoSettings() { - return getStubSettingsBuilder().annotateVideoSettings(); - } - - /** Returns the builder for the settings used for calls to annotateVideo. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - AnnotateVideoRequest, AnnotateVideoResponse, AnnotateVideoProgress> - annotateVideoOperationSettings() { - return getStubSettingsBuilder().annotateVideoOperationSettings(); - } - - @Override - public VideoIntelligenceServiceSettings build() throws IOException { - return new VideoIntelligenceServiceSettings(this); - } - } -} diff --git a/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta1/package-info.java b/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta1/package-info.java deleted file mode 100644 index eee6c125a..000000000 --- a/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta1/package-info.java +++ /dev/null @@ -1,42 +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. - */ - -/** - * A client to Google Cloud Video Intelligence API. - * - *

The interfaces provided are listed below, along with usage samples. - * - *

============================== VideoIntelligenceServiceClient ============================== - * - *

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

Sample for VideoIntelligenceServiceClient: - * - *

- * 
- * 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") -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. - * - *

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 UnaryCallable createUnaryCallable( - GrpcCallSettings grpcCallSettings, - UnaryCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); - } - - @Override - public - UnaryCallable createPagedCallable( - GrpcCallSettings grpcCallSettings, - PagedCallSettings pagedCallSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createPagedCallable( - grpcCallSettings, pagedCallSettings, clientContext); - } - - @Override - public UnaryCallable createBatchingCallable( - GrpcCallSettings grpcCallSettings, - BatchingCallSettings batchingCallSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createBatchingCallable( - grpcCallSettings, batchingCallSettings, clientContext); - } - - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - @Override - public - OperationCallable createOperationCallable( - GrpcCallSettings grpcCallSettings, - OperationCallSettings operationCallSettings, - ClientContext clientContext, - OperationsStub operationsStub) { - return GrpcCallableFactory.createOperationCallable( - grpcCallSettings, operationCallSettings, clientContext, operationsStub); - } - - @Override - public - BidiStreamingCallable createBidiStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings streamingCallSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createBidiStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); - } - - @Override - public - ServerStreamingCallable createServerStreamingCallable( - GrpcCallSettings grpcCallSettings, - ServerStreamingCallSettings streamingCallSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createServerStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); - } - - @Override - public - ClientStreamingCallable createClientStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings streamingCallSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createClientStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); - } -} diff --git a/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta1/stub/GrpcVideoIntelligenceServiceStub.java b/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta1/stub/GrpcVideoIntelligenceServiceStub.java deleted file mode 100644 index 30120c4a7..000000000 --- a/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta1/stub/GrpcVideoIntelligenceServiceStub.java +++ /dev/null @@ -1,171 +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.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.videointelligence.v1beta1.AnnotateVideoProgress; -import com.google.cloud.videointelligence.v1beta1.AnnotateVideoRequest; -import com.google.cloud.videointelligence.v1beta1.AnnotateVideoResponse; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.GrpcOperationsStub; -import io.grpc.MethodDescriptor; -import io.grpc.protobuf.ProtoUtils; -import java.io.IOException; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS -/** - * gRPC stub implementation for Google Cloud Video Intelligence API. - * - *

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 - annotateVideoMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.videointelligence.v1beta1.VideoIntelligenceService/AnnotateVideo") - .setRequestMarshaller( - ProtoUtils.marshaller(AnnotateVideoRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private final BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; - - private final UnaryCallable annotateVideoCallable; - private final OperationCallable< - AnnotateVideoRequest, AnnotateVideoResponse, AnnotateVideoProgress> - annotateVideoOperationCallable; - - private final GrpcStubCallableFactory callableFactory; - - public static final GrpcVideoIntelligenceServiceStub create( - VideoIntelligenceServiceStubSettings settings) throws IOException { - return new GrpcVideoIntelligenceServiceStub(settings, ClientContext.create(settings)); - } - - public static final GrpcVideoIntelligenceServiceStub create(ClientContext clientContext) - throws IOException { - return new GrpcVideoIntelligenceServiceStub( - VideoIntelligenceServiceStubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcVideoIntelligenceServiceStub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcVideoIntelligenceServiceStub( - VideoIntelligenceServiceStubSettings.newBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of GrpcVideoIntelligenceServiceStub, 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 GrpcVideoIntelligenceServiceStub( - VideoIntelligenceServiceStubSettings settings, ClientContext clientContext) - throws IOException { - this(settings, clientContext, new GrpcVideoIntelligenceServiceCallableFactory()); - } - - /** - * Constructs an instance of GrpcVideoIntelligenceServiceStub, 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 GrpcVideoIntelligenceServiceStub( - VideoIntelligenceServiceStubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); - - GrpcCallSettings annotateVideoTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(annotateVideoMethodDescriptor) - .build(); - - this.annotateVideoCallable = - callableFactory.createUnaryCallable( - annotateVideoTransportSettings, settings.annotateVideoSettings(), clientContext); - this.annotateVideoOperationCallable = - callableFactory.createOperationCallable( - annotateVideoTransportSettings, - settings.annotateVideoOperationSettings(), - clientContext, - this.operationsStub); - - backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public GrpcOperationsStub getOperationsStub() { - return operationsStub; - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - annotateVideoOperationCallable() { - return annotateVideoOperationCallable; - } - - public UnaryCallable annotateVideoCallable() { - return annotateVideoCallable; - } - - @Override - public final void close() { - shutdown(); - } - - @Override - public void shutdown() { - backgroundResources.shutdown(); - } - - @Override - public boolean isShutdown() { - return backgroundResources.isShutdown(); - } - - @Override - public boolean isTerminated() { - return backgroundResources.isTerminated(); - } - - @Override - public void shutdownNow() { - backgroundResources.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return backgroundResources.awaitTermination(duration, unit); - } -} diff --git a/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta1/stub/VideoIntelligenceServiceStub.java b/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta1/stub/VideoIntelligenceServiceStub.java deleted file mode 100644 index 9288749b0..000000000 --- a/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta1/stub/VideoIntelligenceServiceStub.java +++ /dev/null @@ -1,56 +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.core.BackgroundResource; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.videointelligence.v1beta1.AnnotateVideoProgress; -import com.google.cloud.videointelligence.v1beta1.AnnotateVideoRequest; -import com.google.cloud.videointelligence.v1beta1.AnnotateVideoResponse; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS -/** - * Base stub class for Google Cloud Video Intelligence API. - * - *

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 - annotateVideoOperationCallable() { - throw new UnsupportedOperationException("Not implemented: annotateVideoOperationCallable()"); - } - - public UnaryCallable annotateVideoCallable() { - throw new UnsupportedOperationException("Not implemented: annotateVideoCallable()"); - } - - @Override - public abstract void close(); -} diff --git a/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta1/stub/VideoIntelligenceServiceStubSettings.java b/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta1/stub/VideoIntelligenceServiceStubSettings.java deleted file mode 100644 index fdeec672e..000000000 --- a/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta1/stub/VideoIntelligenceServiceStubSettings.java +++ /dev/null @@ -1,324 +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.ApiFunction; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GaxProperties; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.GrpcTransportChannel; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.grpc.ProtoOperationTransformers; -import com.google.api.gax.longrunning.OperationSnapshot; -import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; -import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.StubSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.cloud.videointelligence.v1beta1.AnnotateVideoProgress; -import com.google.cloud.videointelligence.v1beta1.AnnotateVideoRequest; -import com.google.cloud.videointelligence.v1beta1.AnnotateVideoResponse; -import com.google.common.collect.ImmutableList; -import com.google.common.collect.ImmutableMap; -import com.google.common.collect.ImmutableSet; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; -import org.threeten.bp.Duration; - -// AUTO-GENERATED DOCUMENTATION AND CLASS -/** - * Settings class to configure an instance of {@link VideoIntelligenceServiceStub}. - * - *

The default instance has everything set to sensible defaults: - * - *

    - *
  • The default service address (videointelligence.googleapis.com) and default port (443) are - * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. - *
- * - *

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: - * - *

- * 
- * VideoIntelligenceServiceStubSettings.Builder videoIntelligenceServiceSettingsBuilder =
- *     VideoIntelligenceServiceStubSettings.newBuilder();
- * videoIntelligenceServiceSettingsBuilder.annotateVideoSettings().getRetrySettings().toBuilder()
- *     .setTotalTimeout(Duration.ofSeconds(30));
- * VideoIntelligenceServiceStubSettings videoIntelligenceServiceSettings = videoIntelligenceServiceSettingsBuilder.build();
- * 
- * 
- */ -@Generated("by gapic-generator") -@BetaApi -public class VideoIntelligenceServiceStubSettings - extends StubSettings { - /** The default scopes of the service. */ - private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); - - private final UnaryCallSettings annotateVideoSettings; - private final OperationCallSettings< - AnnotateVideoRequest, AnnotateVideoResponse, AnnotateVideoProgress> - annotateVideoOperationSettings; - - /** Returns the object with the settings used for calls to annotateVideo. */ - public UnaryCallSettings annotateVideoSettings() { - return annotateVideoSettings; - } - - /** Returns the object with the settings used for calls to annotateVideo. */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings - annotateVideoOperationSettings() { - return annotateVideoOperationSettings; - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - public VideoIntelligenceServiceStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcVideoIntelligenceServiceStub.create(this); - } else { - throw new UnsupportedOperationException( - "Transport not supported: " + getTransportChannelProvider().getTransportName()); - } - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return InstantiatingExecutorProvider.newBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return "videointelligence.googleapis.com:443"; - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return DEFAULT_SERVICE_SCOPES; - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); - } - - /** Returns a builder for the default ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return InstantiatingGrpcChannelProvider.newBuilder() - .setMaxInboundMessageSize(Integer.MAX_VALUE); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return defaultGrpcTransportProviderBuilder().build(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(VideoIntelligenceServiceStubSettings.class)) - .setTransportToken( - GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected VideoIntelligenceServiceStubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - annotateVideoSettings = settingsBuilder.annotateVideoSettings().build(); - annotateVideoOperationSettings = settingsBuilder.annotateVideoOperationSettings().build(); - } - - /** Builder for VideoIntelligenceServiceStubSettings. */ - public static class Builder - extends StubSettings.Builder { - private final ImmutableList> unaryMethodSettingsBuilders; - - private final UnaryCallSettings.Builder annotateVideoSettings; - private final OperationCallSettings.Builder< - AnnotateVideoRequest, AnnotateVideoResponse, AnnotateVideoProgress> - annotateVideoOperationSettings; - - private static final ImmutableMap> - RETRYABLE_CODE_DEFINITIONS; - - static { - ImmutableMap.Builder> definitions = - ImmutableMap.builder(); - definitions.put( - "idempotent", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); - definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.newArrayList())); - RETRYABLE_CODE_DEFINITIONS = definitions.build(); - } - - private static final ImmutableMap RETRY_PARAM_DEFINITIONS; - - static { - ImmutableMap.Builder definitions = ImmutableMap.builder(); - RetrySettings settings = null; - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(1000L)) - .setRetryDelayMultiplier(2.5) - .setMaxRetryDelay(Duration.ofMillis(120000L)) - .setInitialRpcTimeout(Duration.ofMillis(120000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(120000L)) - .setTotalTimeout(Duration.ofMillis(600000L)) - .build(); - definitions.put("default", settings); - RETRY_PARAM_DEFINITIONS = definitions.build(); - } - - protected Builder() { - this((ClientContext) null); - } - - protected Builder(ClientContext clientContext) { - super(clientContext); - - annotateVideoSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - annotateVideoOperationSettings = OperationCallSettings.newBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of(annotateVideoSettings); - - initDefaults(this); - } - - private static Builder createDefault() { - Builder builder = new Builder((ClientContext) null); - builder.setTransportChannelProvider(defaultTransportChannelProvider()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - return initDefaults(builder); - } - - private static Builder initDefaults(Builder builder) { - - builder - .annotateVideoSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); - builder - .annotateVideoOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(AnnotateVideoResponse.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(AnnotateVideoProgress.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(20000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) // ignored - .setRpcTimeoutMultiplier(1.0) // ignored - .setMaxRpcTimeout(Duration.ZERO) // ignored - .setTotalTimeout(Duration.ofMillis(86400000L)) - .build())); - - return builder; - } - - protected Builder(VideoIntelligenceServiceStubSettings settings) { - super(settings); - - annotateVideoSettings = settings.annotateVideoSettings.toBuilder(); - annotateVideoOperationSettings = settings.annotateVideoOperationSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of(annotateVideoSettings); - } - - // NEXT_MAJOR_VER: remove 'throws Exception' - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { - super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); - return this; - } - - public ImmutableList> unaryMethodSettingsBuilders() { - return unaryMethodSettingsBuilders; - } - - /** Returns the builder for the settings used for calls to annotateVideo. */ - public UnaryCallSettings.Builder annotateVideoSettings() { - return annotateVideoSettings; - } - - /** Returns the builder for the settings used for calls to annotateVideo. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - AnnotateVideoRequest, AnnotateVideoResponse, AnnotateVideoProgress> - annotateVideoOperationSettings() { - return annotateVideoOperationSettings; - } - - @Override - public VideoIntelligenceServiceStubSettings build() throws IOException { - return new VideoIntelligenceServiceStubSettings(this); - } - } -} diff --git a/grpc-google-cloud-video-intelligence-v1beta1/pom.xml b/grpc-google-cloud-video-intelligence-v1beta1/pom.xml deleted file mode 100644 index 6f0d28532..000000000 --- a/grpc-google-cloud-video-intelligence-v1beta1/pom.xml +++ /dev/null @@ -1,52 +0,0 @@ - - 4.0.0 - grpc-google-cloud-video-intelligence-v1beta1 - 0.80.1-SNAPSHOT - grpc-google-cloud-video-intelligence-v1beta1 - GRPC library for grpc-google-cloud-video-intelligence-v1beta1 - - com.google.api.grpc - google-api-grpc - 0.80.1-SNAPSHOT - - - - io.grpc - grpc-stub - compile - - - io.grpc - grpc-protobuf - compile - - - com.google.api.grpc - proto-google-cloud-video-intelligence-v1beta1 - compile - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 3.1.1 - - protected - true - none - true - - - ${project.javadoc.protobufBaseURL} - ../../../../proto-google-cloud-video-intelligence-v1beta1/target/site/apidocs/ - - - - - - - diff --git a/grpc-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/VideoIntelligenceServiceGrpc.java b/grpc-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/VideoIntelligenceServiceGrpc.java deleted file mode 100644 index 5d8995140..000000000 --- a/grpc-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/VideoIntelligenceServiceGrpc.java +++ /dev/null @@ -1,364 +0,0 @@ -package com.google.cloud.videointelligence.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; - -/** - * - * - *

- * 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 - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.videointelligence.v1beta1.VideoIntelligenceService", - "AnnotateVideo")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.videointelligence.v1beta1.AnnotateVideoRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new VideoIntelligenceServiceMethodDescriptorSupplier("AnnotateVideo")) - .build(); - } - } - } - return getAnnotateVideoMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static VideoIntelligenceServiceStub newStub(io.grpc.Channel channel) { - return new VideoIntelligenceServiceStub(channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static VideoIntelligenceServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - return new VideoIntelligenceServiceBlockingStub(channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static VideoIntelligenceServiceFutureStub newFutureStub(io.grpc.Channel channel) { - return new VideoIntelligenceServiceFutureStub(channel); - } - - /** - * - * - *
-   * 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 responseObserver) { - asyncUnimplementedUnaryCall(getAnnotateVideoMethodHelper(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getAnnotateVideoMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.videointelligence.v1beta1.AnnotateVideoRequest, - com.google.longrunning.Operation>(this, METHODID_ANNOTATE_VIDEO))) - .build(); - } - } - - /** - * - * - *
-   * Service that implements Google Cloud Video Intelligence API.
-   * 
- */ - public static final class VideoIntelligenceServiceStub - extends io.grpc.stub.AbstractStub { - private VideoIntelligenceServiceStub(io.grpc.Channel channel) { - super(channel); - } - - private VideoIntelligenceServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected VideoIntelligenceServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new VideoIntelligenceServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * 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 responseObserver) { - asyncUnaryCall( - getChannel().newCall(getAnnotateVideoMethodHelper(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Service that implements Google Cloud Video Intelligence API.
-   * 
- */ - public static final class VideoIntelligenceServiceBlockingStub - extends io.grpc.stub.AbstractStub { - private VideoIntelligenceServiceBlockingStub(io.grpc.Channel channel) { - super(channel); - } - - private VideoIntelligenceServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected VideoIntelligenceServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new VideoIntelligenceServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * 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 { - private VideoIntelligenceServiceFutureStub(io.grpc.Channel channel) { - super(channel); - } - - private VideoIntelligenceServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected VideoIntelligenceServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new VideoIntelligenceServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * 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 - annotateVideo(com.google.cloud.videointelligence.v1beta1.AnnotateVideoRequest request) { - return futureUnaryCall( - getChannel().newCall(getAnnotateVideoMethodHelper(), getCallOptions()), request); - } - } - - private static final int METHODID_ANNOTATE_VIDEO = 0; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final VideoIntelligenceServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(VideoIntelligenceServiceImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_ANNOTATE_VIDEO: - serviceImpl.annotateVideo( - (com.google.cloud.videointelligence.v1beta1.AnnotateVideoRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class VideoIntelligenceServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - VideoIntelligenceServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.videointelligence.v1beta1.VideoIntelligenceServiceProto - .getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("VideoIntelligenceService"); - } - } - - private static final class VideoIntelligenceServiceFileDescriptorSupplier - extends VideoIntelligenceServiceBaseDescriptorSupplier { - VideoIntelligenceServiceFileDescriptorSupplier() {} - } - - private static final class VideoIntelligenceServiceMethodDescriptorSupplier - extends VideoIntelligenceServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - VideoIntelligenceServiceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (VideoIntelligenceServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new VideoIntelligenceServiceFileDescriptorSupplier()) - .addMethod(getAnnotateVideoMethodHelper()) - .build(); - } - } - } - return result; - } -} diff --git a/proto-google-cloud-video-intelligence-v1beta1/pom.xml b/proto-google-cloud-video-intelligence-v1beta1/pom.xml deleted file mode 100644 index 89da715e8..000000000 --- a/proto-google-cloud-video-intelligence-v1beta1/pom.xml +++ /dev/null @@ -1,26 +0,0 @@ - - 4.0.0 - proto-google-cloud-video-intelligence-v1beta1 - 0.80.1-SNAPSHOT - proto-google-cloud-video-intelligence-v1beta1 - PROTO library for proto-google-cloud-video-intelligence-v1beta1 - - com.google.api.grpc - google-api-grpc - 0.80.1-SNAPSHOT - - - - com.google.protobuf - protobuf-java - compile - - - com.google.api.grpc - proto-google-common-protos - compile - - - \ No newline at end of file diff --git a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/AnnotateVideoProgress.java b/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/AnnotateVideoProgress.java deleted file mode 100644 index 4d47c2215..000000000 --- a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/AnnotateVideoProgress.java +++ /dev/null @@ -1,1020 +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 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 - annotationProgress_; - /** - * - * - *
-   * Progress metadata for all videos specified in `AnnotateVideoRequest`.
-   * 
- * - * - * repeated .google.cloud.videointelligence.v1beta1.VideoAnnotationProgress annotation_progress = 1; - * - */ - public java.util.List - getAnnotationProgressList() { - return annotationProgress_; - } - /** - * - * - *
-   * 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 - implements - // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1beta1.AnnotateVideoProgress) - com.google.cloud.videointelligence.v1beta1.AnnotateVideoProgressOrBuilder { - 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); - } - - // Construct using com.google.cloud.videointelligence.v1beta1.AnnotateVideoProgress.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getAnnotationProgressFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (annotationProgressBuilder_ == null) { - annotationProgress_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - annotationProgressBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.videointelligence.v1beta1.VideoIntelligenceServiceProto - .internal_static_google_cloud_videointelligence_v1beta1_AnnotateVideoProgress_descriptor; - } - - @java.lang.Override - public com.google.cloud.videointelligence.v1beta1.AnnotateVideoProgress - getDefaultInstanceForType() { - return com.google.cloud.videointelligence.v1beta1.AnnotateVideoProgress.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.videointelligence.v1beta1.AnnotateVideoProgress build() { - com.google.cloud.videointelligence.v1beta1.AnnotateVideoProgress result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.videointelligence.v1beta1.AnnotateVideoProgress buildPartial() { - com.google.cloud.videointelligence.v1beta1.AnnotateVideoProgress result = - new com.google.cloud.videointelligence.v1beta1.AnnotateVideoProgress(this); - int from_bitField0_ = bitField0_; - if (annotationProgressBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - annotationProgress_ = java.util.Collections.unmodifiableList(annotationProgress_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.annotationProgress_ = annotationProgress_; - } else { - result.annotationProgress_ = annotationProgressBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.videointelligence.v1beta1.AnnotateVideoProgress) { - return mergeFrom((com.google.cloud.videointelligence.v1beta1.AnnotateVideoProgress) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.videointelligence.v1beta1.AnnotateVideoProgress other) { - if (other - == com.google.cloud.videointelligence.v1beta1.AnnotateVideoProgress.getDefaultInstance()) - return this; - if (annotationProgressBuilder_ == null) { - if (!other.annotationProgress_.isEmpty()) { - if (annotationProgress_.isEmpty()) { - annotationProgress_ = other.annotationProgress_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAnnotationProgressIsMutable(); - annotationProgress_.addAll(other.annotationProgress_); - } - onChanged(); - } - } else { - if (!other.annotationProgress_.isEmpty()) { - if (annotationProgressBuilder_.isEmpty()) { - annotationProgressBuilder_.dispose(); - annotationProgressBuilder_ = null; - annotationProgress_ = other.annotationProgress_; - bitField0_ = (bitField0_ & ~0x00000001); - annotationProgressBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAnnotationProgressFieldBuilder() - : null; - } else { - annotationProgressBuilder_.addAllMessages(other.annotationProgress_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.videointelligence.v1beta1.AnnotateVideoProgress parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.videointelligence.v1beta1.AnnotateVideoProgress) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List - annotationProgress_ = java.util.Collections.emptyList(); - - private void ensureAnnotationProgressIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - annotationProgress_ = - new java.util.ArrayList< - com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress>( - annotationProgress_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress, - com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress.Builder, - com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgressOrBuilder> - annotationProgressBuilder_; - - /** - * - * - *
-     * Progress metadata for all videos specified in `AnnotateVideoRequest`.
-     * 
- * - * - * repeated .google.cloud.videointelligence.v1beta1.VideoAnnotationProgress annotation_progress = 1; - * - */ - public java.util.List - getAnnotationProgressList() { - if (annotationProgressBuilder_ == null) { - return java.util.Collections.unmodifiableList(annotationProgress_); - } else { - return annotationProgressBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * 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 PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnnotateVideoProgress parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnnotateVideoProgress(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.videointelligence.v1beta1.AnnotateVideoProgress - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/AnnotateVideoProgressOrBuilder.java b/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/AnnotateVideoProgressOrBuilder.java deleted file mode 100644 index 780d25de5..000000000 --- a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/AnnotateVideoProgressOrBuilder.java +++ /dev/null @@ -1,76 +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 interface AnnotateVideoProgressOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1beta1.AnnotateVideoProgress) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Progress metadata for all videos specified in `AnnotateVideoRequest`.
-   * 
- * - * - * repeated .google.cloud.videointelligence.v1beta1.VideoAnnotationProgress annotation_progress = 1; - * - */ - java.util.List - getAnnotationProgressList(); - /** - * - * - *
-   * 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(); - mutable_bitField0_ |= 0x00000004; - } - features_.add(rawValue); - break; - } - case 18: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - features_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - features_.add(rawValue); - } - input.popLimit(oldLimit); - break; - } - case 26: - { - com.google.cloud.videointelligence.v1beta1.VideoContext.Builder subBuilder = null; - if (videoContext_ != null) { - subBuilder = videoContext_.toBuilder(); - } - videoContext_ = - input.readMessage( - com.google.cloud.videointelligence.v1beta1.VideoContext.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(videoContext_); - videoContext_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - outputUri_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - locationId_ = s; - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - inputContent_ = 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_ & 0x00000004) != 0)) { - features_ = java.util.Collections.unmodifiableList(features_); - } - 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_AnnotateVideoRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.videointelligence.v1beta1.VideoIntelligenceServiceProto - .internal_static_google_cloud_videointelligence_v1beta1_AnnotateVideoRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.videointelligence.v1beta1.AnnotateVideoRequest.class, - com.google.cloud.videointelligence.v1beta1.AnnotateVideoRequest.Builder.class); - } - - private int bitField0_; - public static final int INPUT_URI_FIELD_NUMBER = 1; - private volatile java.lang.Object 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.
-   * 
- * - * 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 features_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.videointelligence.v1beta1.Feature> - features_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.videointelligence.v1beta1.Feature>() { - public com.google.cloud.videointelligence.v1beta1.Feature convert( - java.lang.Integer from) { - @SuppressWarnings("deprecation") - com.google.cloud.videointelligence.v1beta1.Feature result = - com.google.cloud.videointelligence.v1beta1.Feature.valueOf(from); - return result == null - ? com.google.cloud.videointelligence.v1beta1.Feature.UNRECOGNIZED - : result; - } - }; - /** - * - * - *
-   * Requested video annotation features.
-   * 
- * - * repeated .google.cloud.videointelligence.v1beta1.Feature features = 2; - */ - public java.util.List getFeaturesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.videointelligence.v1beta1.Feature>( - features_, features_converter_); - } - /** - * - * - *
-   * 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 getFeaturesValueList() { - return features_; - } - /** - * - * - *
-   * 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 - implements - // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1beta1.AnnotateVideoRequest) - com.google.cloud.videointelligence.v1beta1.AnnotateVideoRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.videointelligence.v1beta1.VideoIntelligenceServiceProto - .internal_static_google_cloud_videointelligence_v1beta1_AnnotateVideoRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.videointelligence.v1beta1.VideoIntelligenceServiceProto - .internal_static_google_cloud_videointelligence_v1beta1_AnnotateVideoRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.videointelligence.v1beta1.AnnotateVideoRequest.class, - com.google.cloud.videointelligence.v1beta1.AnnotateVideoRequest.Builder.class); - } - - // Construct using com.google.cloud.videointelligence.v1beta1.AnnotateVideoRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - inputUri_ = ""; - - inputContent_ = ""; - - features_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - if (videoContextBuilder_ == null) { - videoContext_ = null; - } else { - videoContext_ = null; - videoContextBuilder_ = null; - } - outputUri_ = ""; - - locationId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.videointelligence.v1beta1.VideoIntelligenceServiceProto - .internal_static_google_cloud_videointelligence_v1beta1_AnnotateVideoRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.videointelligence.v1beta1.AnnotateVideoRequest - getDefaultInstanceForType() { - return com.google.cloud.videointelligence.v1beta1.AnnotateVideoRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.videointelligence.v1beta1.AnnotateVideoRequest build() { - com.google.cloud.videointelligence.v1beta1.AnnotateVideoRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.videointelligence.v1beta1.AnnotateVideoRequest buildPartial() { - com.google.cloud.videointelligence.v1beta1.AnnotateVideoRequest result = - new com.google.cloud.videointelligence.v1beta1.AnnotateVideoRequest(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.inputUri_ = inputUri_; - result.inputContent_ = inputContent_; - if (((bitField0_ & 0x00000004) != 0)) { - features_ = java.util.Collections.unmodifiableList(features_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.features_ = features_; - if (videoContextBuilder_ == null) { - result.videoContext_ = videoContext_; - } else { - result.videoContext_ = videoContextBuilder_.build(); - } - result.outputUri_ = outputUri_; - result.locationId_ = locationId_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.videointelligence.v1beta1.AnnotateVideoRequest) { - return mergeFrom((com.google.cloud.videointelligence.v1beta1.AnnotateVideoRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.videointelligence.v1beta1.AnnotateVideoRequest other) { - if (other - == com.google.cloud.videointelligence.v1beta1.AnnotateVideoRequest.getDefaultInstance()) - return this; - if (!other.getInputUri().isEmpty()) { - inputUri_ = other.inputUri_; - onChanged(); - } - if (!other.getInputContent().isEmpty()) { - inputContent_ = other.inputContent_; - onChanged(); - } - if (!other.features_.isEmpty()) { - if (features_.isEmpty()) { - features_ = other.features_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureFeaturesIsMutable(); - features_.addAll(other.features_); - } - onChanged(); - } - if (other.hasVideoContext()) { - mergeVideoContext(other.getVideoContext()); - } - if (!other.getOutputUri().isEmpty()) { - outputUri_ = other.outputUri_; - onChanged(); - } - if (!other.getLocationId().isEmpty()) { - locationId_ = other.locationId_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.videointelligence.v1beta1.AnnotateVideoRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.videointelligence.v1beta1.AnnotateVideoRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object 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.
-     * 
- * - * 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 features_ = java.util.Collections.emptyList(); - - private void ensureFeaturesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - features_ = new java.util.ArrayList(features_); - bitField0_ |= 0x00000004; - } - } - /** - * - * - *
-     * Requested video annotation features.
-     * 
- * - * repeated .google.cloud.videointelligence.v1beta1.Feature features = 2; - */ - public java.util.List getFeaturesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.videointelligence.v1beta1.Feature>( - features_, features_converter_); - } - /** - * - * - *
-     * 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 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 getFeaturesValueList() { - return java.util.Collections.unmodifiableList(features_); - } - /** - * - * - *
-     * 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 values) { - ensureFeaturesIsMutable(); - for (int value : values) { - features_.add(value); - } - onChanged(); - return this; - } - - private com.google.cloud.videointelligence.v1beta1.VideoContext videoContext_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.videointelligence.v1beta1.VideoContext, - com.google.cloud.videointelligence.v1beta1.VideoContext.Builder, - com.google.cloud.videointelligence.v1beta1.VideoContextOrBuilder> - videoContextBuilder_; - /** - * - * - *
-     * 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 PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnnotateVideoRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnnotateVideoRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.videointelligence.v1beta1.AnnotateVideoRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/AnnotateVideoRequestOrBuilder.java b/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/AnnotateVideoRequestOrBuilder.java deleted file mode 100644 index 0d6a17d92..000000000 --- a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/AnnotateVideoRequestOrBuilder.java +++ /dev/null @@ -1,210 +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 interface AnnotateVideoRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1beta1.AnnotateVideoRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * 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 getFeaturesList(); - /** - * - * - *
-   * 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 getFeaturesValueList(); - /** - * - * - *
-   * 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 - annotationResults_; - /** - * - * - *
-   * Annotation results for all videos specified in `AnnotateVideoRequest`.
-   * 
- * - * - * repeated .google.cloud.videointelligence.v1beta1.VideoAnnotationResults annotation_results = 1; - * - */ - public java.util.List - getAnnotationResultsList() { - return annotationResults_; - } - /** - * - * - *
-   * 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 - implements - // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1beta1.AnnotateVideoResponse) - com.google.cloud.videointelligence.v1beta1.AnnotateVideoResponseOrBuilder { - 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); - } - - // Construct using com.google.cloud.videointelligence.v1beta1.AnnotateVideoResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getAnnotationResultsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (annotationResultsBuilder_ == null) { - annotationResults_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - annotationResultsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.videointelligence.v1beta1.VideoIntelligenceServiceProto - .internal_static_google_cloud_videointelligence_v1beta1_AnnotateVideoResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.videointelligence.v1beta1.AnnotateVideoResponse - getDefaultInstanceForType() { - return com.google.cloud.videointelligence.v1beta1.AnnotateVideoResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.videointelligence.v1beta1.AnnotateVideoResponse build() { - com.google.cloud.videointelligence.v1beta1.AnnotateVideoResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.videointelligence.v1beta1.AnnotateVideoResponse buildPartial() { - com.google.cloud.videointelligence.v1beta1.AnnotateVideoResponse result = - new com.google.cloud.videointelligence.v1beta1.AnnotateVideoResponse(this); - int from_bitField0_ = bitField0_; - if (annotationResultsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - annotationResults_ = java.util.Collections.unmodifiableList(annotationResults_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.annotationResults_ = annotationResults_; - } else { - result.annotationResults_ = annotationResultsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.videointelligence.v1beta1.AnnotateVideoResponse) { - return mergeFrom((com.google.cloud.videointelligence.v1beta1.AnnotateVideoResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.videointelligence.v1beta1.AnnotateVideoResponse other) { - if (other - == com.google.cloud.videointelligence.v1beta1.AnnotateVideoResponse.getDefaultInstance()) - return this; - if (annotationResultsBuilder_ == null) { - if (!other.annotationResults_.isEmpty()) { - if (annotationResults_.isEmpty()) { - annotationResults_ = other.annotationResults_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAnnotationResultsIsMutable(); - annotationResults_.addAll(other.annotationResults_); - } - onChanged(); - } - } else { - if (!other.annotationResults_.isEmpty()) { - if (annotationResultsBuilder_.isEmpty()) { - annotationResultsBuilder_.dispose(); - annotationResultsBuilder_ = null; - annotationResults_ = other.annotationResults_; - bitField0_ = (bitField0_ & ~0x00000001); - annotationResultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAnnotationResultsFieldBuilder() - : null; - } else { - annotationResultsBuilder_.addAllMessages(other.annotationResults_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.videointelligence.v1beta1.AnnotateVideoResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.videointelligence.v1beta1.AnnotateVideoResponse) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List - annotationResults_ = java.util.Collections.emptyList(); - - private void ensureAnnotationResultsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - annotationResults_ = - new java.util.ArrayList< - com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults>( - annotationResults_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults, - com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults.Builder, - com.google.cloud.videointelligence.v1beta1.VideoAnnotationResultsOrBuilder> - annotationResultsBuilder_; - - /** - * - * - *
-     * Annotation results for all videos specified in `AnnotateVideoRequest`.
-     * 
- * - * - * repeated .google.cloud.videointelligence.v1beta1.VideoAnnotationResults annotation_results = 1; - * - */ - public java.util.List - getAnnotationResultsList() { - if (annotationResultsBuilder_ == null) { - return java.util.Collections.unmodifiableList(annotationResults_); - } else { - return annotationResultsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * 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 - getAnnotationResultsBuilderList() { - return getAnnotationResultsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults, - com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults.Builder, - com.google.cloud.videointelligence.v1beta1.VideoAnnotationResultsOrBuilder> - getAnnotationResultsFieldBuilder() { - if (annotationResultsBuilder_ == null) { - annotationResultsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults, - com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults.Builder, - com.google.cloud.videointelligence.v1beta1.VideoAnnotationResultsOrBuilder>( - annotationResults_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - annotationResults_ = null; - } - return annotationResultsBuilder_; - } - - @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.AnnotateVideoResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta1.AnnotateVideoResponse) - private static final com.google.cloud.videointelligence.v1beta1.AnnotateVideoResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1beta1.AnnotateVideoResponse(); - } - - public static com.google.cloud.videointelligence.v1beta1.AnnotateVideoResponse - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnnotateVideoResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnnotateVideoResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.videointelligence.v1beta1.AnnotateVideoResponse - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/AnnotateVideoResponseOrBuilder.java b/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/AnnotateVideoResponseOrBuilder.java deleted file mode 100644 index 011bdf681..000000000 --- a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/AnnotateVideoResponseOrBuilder.java +++ /dev/null @@ -1,75 +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 interface AnnotateVideoResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1beta1.AnnotateVideoResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Annotation results for all videos specified in `AnnotateVideoRequest`.
-   * 
- * - * - * repeated .google.cloud.videointelligence.v1beta1.VideoAnnotationResults annotation_results = 1; - * - */ - java.util.List - getAnnotationResultsList(); - /** - * - * - *
-   * 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 - implements - // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1beta1.BoundingBox) - com.google.cloud.videointelligence.v1beta1.BoundingBoxOrBuilder { - 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); - } - - // Construct using com.google.cloud.videointelligence.v1beta1.BoundingBox.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - left_ = 0; - - right_ = 0; - - bottom_ = 0; - - top_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.videointelligence.v1beta1.VideoIntelligenceServiceProto - .internal_static_google_cloud_videointelligence_v1beta1_BoundingBox_descriptor; - } - - @java.lang.Override - public com.google.cloud.videointelligence.v1beta1.BoundingBox getDefaultInstanceForType() { - return com.google.cloud.videointelligence.v1beta1.BoundingBox.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.videointelligence.v1beta1.BoundingBox build() { - com.google.cloud.videointelligence.v1beta1.BoundingBox result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.videointelligence.v1beta1.BoundingBox buildPartial() { - com.google.cloud.videointelligence.v1beta1.BoundingBox result = - new com.google.cloud.videointelligence.v1beta1.BoundingBox(this); - result.left_ = left_; - result.right_ = right_; - result.bottom_ = bottom_; - result.top_ = top_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.videointelligence.v1beta1.BoundingBox) { - return mergeFrom((com.google.cloud.videointelligence.v1beta1.BoundingBox) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.videointelligence.v1beta1.BoundingBox other) { - if (other == com.google.cloud.videointelligence.v1beta1.BoundingBox.getDefaultInstance()) - return this; - if (other.getLeft() != 0) { - setLeft(other.getLeft()); - } - if (other.getRight() != 0) { - setRight(other.getRight()); - } - if (other.getBottom() != 0) { - setBottom(other.getBottom()); - } - if (other.getTop() != 0) { - setTop(other.getTop()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.videointelligence.v1beta1.BoundingBox parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.videointelligence.v1beta1.BoundingBox) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int left_; - /** - * - * - *
-     * 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 PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BoundingBox parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BoundingBox(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.videointelligence.v1beta1.BoundingBox getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/BoundingBoxOrBuilder.java b/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/BoundingBoxOrBuilder.java deleted file mode 100644 index 7253306c0..000000000 --- a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/BoundingBoxOrBuilder.java +++ /dev/null @@ -1,54 +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 interface BoundingBoxOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1beta1.BoundingBox) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * 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 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 java.util.List getSegmentsList() { - 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 java.util.List - 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 locations_; - /** - * - * - *
-   * Face locations at one frame per second.
-   * 
- * - * repeated .google.cloud.videointelligence.v1beta1.FaceLocation locations = 3; - */ - public java.util.List - getLocationsList() { - return locations_; - } - /** - * - * - *
-   * Face locations at one frame per second.
-   * 
- * - * repeated .google.cloud.videointelligence.v1beta1.FaceLocation locations = 3; - */ - public java.util.List - 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 - implements - // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1beta1.FaceAnnotation) - com.google.cloud.videointelligence.v1beta1.FaceAnnotationOrBuilder { - 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); - } - - // Construct using com.google.cloud.videointelligence.v1beta1.FaceAnnotation.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getSegmentsFieldBuilder(); - getLocationsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - thumbnail_ = ""; - - if (segmentsBuilder_ == null) { - segments_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - segmentsBuilder_.clear(); - } - if (locationsBuilder_ == null) { - locations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - locationsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.videointelligence.v1beta1.VideoIntelligenceServiceProto - .internal_static_google_cloud_videointelligence_v1beta1_FaceAnnotation_descriptor; - } - - @java.lang.Override - public com.google.cloud.videointelligence.v1beta1.FaceAnnotation getDefaultInstanceForType() { - return com.google.cloud.videointelligence.v1beta1.FaceAnnotation.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.videointelligence.v1beta1.FaceAnnotation build() { - com.google.cloud.videointelligence.v1beta1.FaceAnnotation result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.videointelligence.v1beta1.FaceAnnotation buildPartial() { - com.google.cloud.videointelligence.v1beta1.FaceAnnotation result = - new com.google.cloud.videointelligence.v1beta1.FaceAnnotation(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.thumbnail_ = thumbnail_; - if (segmentsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - segments_ = java.util.Collections.unmodifiableList(segments_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.segments_ = segments_; - } else { - result.segments_ = segmentsBuilder_.build(); - } - if (locationsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - locations_ = java.util.Collections.unmodifiableList(locations_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.locations_ = locations_; - } else { - result.locations_ = locationsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.videointelligence.v1beta1.FaceAnnotation) { - return mergeFrom((com.google.cloud.videointelligence.v1beta1.FaceAnnotation) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.videointelligence.v1beta1.FaceAnnotation other) { - if (other == com.google.cloud.videointelligence.v1beta1.FaceAnnotation.getDefaultInstance()) - return this; - if (!other.getThumbnail().isEmpty()) { - thumbnail_ = other.thumbnail_; - onChanged(); - } - if (segmentsBuilder_ == null) { - if (!other.segments_.isEmpty()) { - if (segments_.isEmpty()) { - segments_ = other.segments_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureSegmentsIsMutable(); - segments_.addAll(other.segments_); - } - onChanged(); - } - } else { - if (!other.segments_.isEmpty()) { - if (segmentsBuilder_.isEmpty()) { - segmentsBuilder_.dispose(); - segmentsBuilder_ = null; - segments_ = other.segments_; - bitField0_ = (bitField0_ & ~0x00000002); - segmentsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSegmentsFieldBuilder() - : null; - } else { - segmentsBuilder_.addAllMessages(other.segments_); - } - } - } - if (locationsBuilder_ == null) { - if (!other.locations_.isEmpty()) { - if (locations_.isEmpty()) { - locations_ = other.locations_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureLocationsIsMutable(); - locations_.addAll(other.locations_); - } - onChanged(); - } - } else { - if (!other.locations_.isEmpty()) { - if (locationsBuilder_.isEmpty()) { - locationsBuilder_.dispose(); - locationsBuilder_ = null; - locations_ = other.locations_; - bitField0_ = (bitField0_ & ~0x00000004); - locationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLocationsFieldBuilder() - : null; - } else { - locationsBuilder_.addAllMessages(other.locations_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.videointelligence.v1beta1.FaceAnnotation parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.videointelligence.v1beta1.FaceAnnotation) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private 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)) { - 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 segments_ = - java.util.Collections.emptyList(); - - private void ensureSegmentsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - segments_ = - new java.util.ArrayList( - segments_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.videointelligence.v1beta1.VideoSegment, - com.google.cloud.videointelligence.v1beta1.VideoSegment.Builder, - com.google.cloud.videointelligence.v1beta1.VideoSegmentOrBuilder> - segmentsBuilder_; - - /** - * - * - *
-     * 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 - getSegmentsList() { - if (segmentsBuilder_ == null) { - return java.util.Collections.unmodifiableList(segments_); - } else { - return segmentsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * 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 - 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 - getSegmentsBuilderList() { - return getSegmentsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.videointelligence.v1beta1.VideoSegment, - com.google.cloud.videointelligence.v1beta1.VideoSegment.Builder, - com.google.cloud.videointelligence.v1beta1.VideoSegmentOrBuilder> - getSegmentsFieldBuilder() { - if (segmentsBuilder_ == null) { - segmentsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.videointelligence.v1beta1.VideoSegment, - com.google.cloud.videointelligence.v1beta1.VideoSegment.Builder, - com.google.cloud.videointelligence.v1beta1.VideoSegmentOrBuilder>( - segments_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); - segments_ = null; - } - return segmentsBuilder_; - } - - private java.util.List locations_ = - java.util.Collections.emptyList(); - - private void ensureLocationsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - locations_ = - new java.util.ArrayList( - locations_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.videointelligence.v1beta1.FaceLocation, - com.google.cloud.videointelligence.v1beta1.FaceLocation.Builder, - com.google.cloud.videointelligence.v1beta1.FaceLocationOrBuilder> - locationsBuilder_; - - /** - * - * - *
-     * Face locations at one frame per second.
-     * 
- * - * repeated .google.cloud.videointelligence.v1beta1.FaceLocation locations = 3; - */ - public java.util.List - getLocationsList() { - if (locationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(locations_); - } else { - return locationsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * 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 - 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 - getLocationsBuilderList() { - return getLocationsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.videointelligence.v1beta1.FaceLocation, - com.google.cloud.videointelligence.v1beta1.FaceLocation.Builder, - com.google.cloud.videointelligence.v1beta1.FaceLocationOrBuilder> - getLocationsFieldBuilder() { - if (locationsBuilder_ == null) { - locationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.videointelligence.v1beta1.FaceLocation, - com.google.cloud.videointelligence.v1beta1.FaceLocation.Builder, - com.google.cloud.videointelligence.v1beta1.FaceLocationOrBuilder>( - locations_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); - locations_ = null; - } - return locationsBuilder_; - } - - @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.FaceAnnotation) - } - - // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta1.FaceAnnotation) - private static final com.google.cloud.videointelligence.v1beta1.FaceAnnotation DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1beta1.FaceAnnotation(); - } - - public static com.google.cloud.videointelligence.v1beta1.FaceAnnotation getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FaceAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FaceAnnotation(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.videointelligence.v1beta1.FaceAnnotation getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/FaceAnnotationOrBuilder.java b/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/FaceAnnotationOrBuilder.java deleted file mode 100644 index d2a1a5511..000000000 --- a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/FaceAnnotationOrBuilder.java +++ /dev/null @@ -1,145 +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 interface FaceAnnotationOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1beta1.FaceAnnotation) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * 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 getSegmentsList(); - /** - * - * - *
-   * 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 - 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 getLocationsList(); - /** - * - * - *
-   * 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 - 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 - implements - // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1beta1.FaceLocation) - com.google.cloud.videointelligence.v1beta1.FaceLocationOrBuilder { - 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); - } - - // Construct using com.google.cloud.videointelligence.v1beta1.FaceLocation.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (boundingBoxBuilder_ == null) { - boundingBox_ = null; - } else { - boundingBox_ = null; - boundingBoxBuilder_ = null; - } - timeOffset_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.videointelligence.v1beta1.VideoIntelligenceServiceProto - .internal_static_google_cloud_videointelligence_v1beta1_FaceLocation_descriptor; - } - - @java.lang.Override - public com.google.cloud.videointelligence.v1beta1.FaceLocation getDefaultInstanceForType() { - return com.google.cloud.videointelligence.v1beta1.FaceLocation.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.videointelligence.v1beta1.FaceLocation build() { - com.google.cloud.videointelligence.v1beta1.FaceLocation result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.videointelligence.v1beta1.FaceLocation buildPartial() { - com.google.cloud.videointelligence.v1beta1.FaceLocation result = - new com.google.cloud.videointelligence.v1beta1.FaceLocation(this); - if (boundingBoxBuilder_ == null) { - result.boundingBox_ = boundingBox_; - } else { - result.boundingBox_ = boundingBoxBuilder_.build(); - } - result.timeOffset_ = timeOffset_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.videointelligence.v1beta1.FaceLocation) { - return mergeFrom((com.google.cloud.videointelligence.v1beta1.FaceLocation) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.videointelligence.v1beta1.FaceLocation other) { - if (other == com.google.cloud.videointelligence.v1beta1.FaceLocation.getDefaultInstance()) - return this; - if (other.hasBoundingBox()) { - mergeBoundingBox(other.getBoundingBox()); - } - if (other.getTimeOffset() != 0L) { - setTimeOffset(other.getTimeOffset()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.videointelligence.v1beta1.FaceLocation parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.videointelligence.v1beta1.FaceLocation) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.cloud.videointelligence.v1beta1.BoundingBox boundingBox_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.videointelligence.v1beta1.BoundingBox, - com.google.cloud.videointelligence.v1beta1.BoundingBox.Builder, - com.google.cloud.videointelligence.v1beta1.BoundingBoxOrBuilder> - boundingBoxBuilder_; - /** - * - * - *
-     * 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 PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FaceLocation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FaceLocation(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.videointelligence.v1beta1.FaceLocation getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/FaceLocationOrBuilder.java b/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/FaceLocationOrBuilder.java deleted file mode 100644 index d384cbb57..000000000 --- a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/FaceLocationOrBuilder.java +++ /dev/null @@ -1,52 +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 interface FaceLocationOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1beta1.FaceLocation) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * 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 internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Feature findValueByNumber(int number) { - return Feature.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.videointelligence.v1beta1.VideoIntelligenceServiceProto.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final Feature[] VALUES = values(); - - public static Feature valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Feature(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.videointelligence.v1beta1.Feature) -} diff --git a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/LabelAnnotation.java b/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/LabelAnnotation.java deleted file mode 100644 index 17d6e3acb..000000000 --- a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/LabelAnnotation.java +++ /dev/null @@ -1,1269 +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 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 locations_; - /** - * - * - *
-   * Where the label was detected and with what confidence.
-   * 
- * - * repeated .google.cloud.videointelligence.v1beta1.LabelLocation locations = 3; - */ - public java.util.List - getLocationsList() { - return locations_; - } - /** - * - * - *
-   * Where the label was detected and with what confidence.
-   * 
- * - * repeated .google.cloud.videointelligence.v1beta1.LabelLocation locations = 3; - */ - public java.util.List - 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 - implements - // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1beta1.LabelAnnotation) - com.google.cloud.videointelligence.v1beta1.LabelAnnotationOrBuilder { - 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); - } - - // Construct using com.google.cloud.videointelligence.v1beta1.LabelAnnotation.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getLocationsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - description_ = ""; - - languageCode_ = ""; - - if (locationsBuilder_ == null) { - locations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - locationsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.videointelligence.v1beta1.VideoIntelligenceServiceProto - .internal_static_google_cloud_videointelligence_v1beta1_LabelAnnotation_descriptor; - } - - @java.lang.Override - public com.google.cloud.videointelligence.v1beta1.LabelAnnotation getDefaultInstanceForType() { - return com.google.cloud.videointelligence.v1beta1.LabelAnnotation.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.videointelligence.v1beta1.LabelAnnotation build() { - com.google.cloud.videointelligence.v1beta1.LabelAnnotation result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.videointelligence.v1beta1.LabelAnnotation buildPartial() { - com.google.cloud.videointelligence.v1beta1.LabelAnnotation result = - new com.google.cloud.videointelligence.v1beta1.LabelAnnotation(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.description_ = description_; - result.languageCode_ = languageCode_; - if (locationsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - locations_ = java.util.Collections.unmodifiableList(locations_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.locations_ = locations_; - } else { - result.locations_ = locationsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.videointelligence.v1beta1.LabelAnnotation) { - return mergeFrom((com.google.cloud.videointelligence.v1beta1.LabelAnnotation) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.videointelligence.v1beta1.LabelAnnotation other) { - if (other == com.google.cloud.videointelligence.v1beta1.LabelAnnotation.getDefaultInstance()) - return this; - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - if (!other.getLanguageCode().isEmpty()) { - languageCode_ = other.languageCode_; - onChanged(); - } - if (locationsBuilder_ == null) { - if (!other.locations_.isEmpty()) { - if (locations_.isEmpty()) { - locations_ = other.locations_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureLocationsIsMutable(); - locations_.addAll(other.locations_); - } - onChanged(); - } - } else { - if (!other.locations_.isEmpty()) { - if (locationsBuilder_.isEmpty()) { - locationsBuilder_.dispose(); - locationsBuilder_ = null; - locations_ = other.locations_; - bitField0_ = (bitField0_ & ~0x00000004); - locationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLocationsFieldBuilder() - : null; - } else { - locationsBuilder_.addAllMessages(other.locations_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.videointelligence.v1beta1.LabelAnnotation parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.videointelligence.v1beta1.LabelAnnotation) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private 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)) { - 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 locations_ = - java.util.Collections.emptyList(); - - private void ensureLocationsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - locations_ = - new java.util.ArrayList( - locations_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.videointelligence.v1beta1.LabelLocation, - com.google.cloud.videointelligence.v1beta1.LabelLocation.Builder, - com.google.cloud.videointelligence.v1beta1.LabelLocationOrBuilder> - locationsBuilder_; - - /** - * - * - *
-     * Where the label was detected and with what confidence.
-     * 
- * - * repeated .google.cloud.videointelligence.v1beta1.LabelLocation locations = 3; - */ - public java.util.List - getLocationsList() { - if (locationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(locations_); - } else { - return locationsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * 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 - 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 - getLocationsBuilderList() { - return getLocationsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.videointelligence.v1beta1.LabelLocation, - com.google.cloud.videointelligence.v1beta1.LabelLocation.Builder, - com.google.cloud.videointelligence.v1beta1.LabelLocationOrBuilder> - getLocationsFieldBuilder() { - if (locationsBuilder_ == null) { - locationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.videointelligence.v1beta1.LabelLocation, - com.google.cloud.videointelligence.v1beta1.LabelLocation.Builder, - com.google.cloud.videointelligence.v1beta1.LabelLocationOrBuilder>( - locations_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); - locations_ = null; - } - return locationsBuilder_; - } - - @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.LabelAnnotation) - } - - // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1beta1.LabelAnnotation) - private static final com.google.cloud.videointelligence.v1beta1.LabelAnnotation DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1beta1.LabelAnnotation(); - } - - public static com.google.cloud.videointelligence.v1beta1.LabelAnnotation getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LabelAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LabelAnnotation(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.videointelligence.v1beta1.LabelAnnotation getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/LabelAnnotationOrBuilder.java b/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/LabelAnnotationOrBuilder.java deleted file mode 100644 index 9fd51f765..000000000 --- a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/LabelAnnotationOrBuilder.java +++ /dev/null @@ -1,105 +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 interface LabelAnnotationOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1beta1.LabelAnnotation) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * 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 getLocationsList(); - /** - * - * - *
-   * 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 - 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 internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public LabelDetectionMode findValueByNumber(int number) { - return LabelDetectionMode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.videointelligence.v1beta1.VideoIntelligenceServiceProto.getDescriptor() - .getEnumTypes() - .get(2); - } - - private static final LabelDetectionMode[] VALUES = values(); - - public static LabelDetectionMode valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private LabelDetectionMode(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.videointelligence.v1beta1.LabelDetectionMode) -} diff --git a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/LabelLevel.java b/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/LabelLevel.java deleted file mode 100644 index 6f8b1c7e1..000000000 --- a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/LabelLevel.java +++ /dev/null @@ -1,197 +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 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 internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public LabelLevel findValueByNumber(int number) { - return LabelLevel.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.videointelligence.v1beta1.VideoIntelligenceServiceProto.getDescriptor() - .getEnumTypes() - .get(1); - } - - private static final LabelLevel[] VALUES = values(); - - public static LabelLevel valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private LabelLevel(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.videointelligence.v1beta1.LabelLevel) -} diff --git a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/LabelLocation.java b/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/LabelLocation.java deleted file mode 100644 index d28b834d6..000000000 --- a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/LabelLocation.java +++ /dev/null @@ -1,959 +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 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 - implements - // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1beta1.LabelLocation) - com.google.cloud.videointelligence.v1beta1.LabelLocationOrBuilder { - 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); - } - - // Construct using com.google.cloud.videointelligence.v1beta1.LabelLocation.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (segmentBuilder_ == null) { - segment_ = null; - } else { - segment_ = null; - segmentBuilder_ = null; - } - confidence_ = 0F; - - level_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.videointelligence.v1beta1.VideoIntelligenceServiceProto - .internal_static_google_cloud_videointelligence_v1beta1_LabelLocation_descriptor; - } - - @java.lang.Override - public com.google.cloud.videointelligence.v1beta1.LabelLocation getDefaultInstanceForType() { - return com.google.cloud.videointelligence.v1beta1.LabelLocation.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.videointelligence.v1beta1.LabelLocation build() { - com.google.cloud.videointelligence.v1beta1.LabelLocation result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.videointelligence.v1beta1.LabelLocation buildPartial() { - com.google.cloud.videointelligence.v1beta1.LabelLocation result = - new com.google.cloud.videointelligence.v1beta1.LabelLocation(this); - if (segmentBuilder_ == null) { - result.segment_ = segment_; - } else { - result.segment_ = segmentBuilder_.build(); - } - result.confidence_ = confidence_; - result.level_ = level_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.videointelligence.v1beta1.LabelLocation) { - return mergeFrom((com.google.cloud.videointelligence.v1beta1.LabelLocation) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.videointelligence.v1beta1.LabelLocation other) { - if (other == com.google.cloud.videointelligence.v1beta1.LabelLocation.getDefaultInstance()) - return this; - if (other.hasSegment()) { - mergeSegment(other.getSegment()); - } - if (other.getConfidence() != 0F) { - setConfidence(other.getConfidence()); - } - if (other.level_ != 0) { - setLevelValue(other.getLevelValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.videointelligence.v1beta1.LabelLocation parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.videointelligence.v1beta1.LabelLocation) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.cloud.videointelligence.v1beta1.VideoSegment segment_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.videointelligence.v1beta1.VideoSegment, - com.google.cloud.videointelligence.v1beta1.VideoSegment.Builder, - com.google.cloud.videointelligence.v1beta1.VideoSegmentOrBuilder> - segmentBuilder_; - /** - * - * - *
-     * 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 PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LabelLocation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LabelLocation(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.videointelligence.v1beta1.LabelLocation getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/LabelLocationOrBuilder.java b/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/LabelLocationOrBuilder.java deleted file mode 100644 index 9b4d3bbd9..000000000 --- a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/LabelLocationOrBuilder.java +++ /dev/null @@ -1,82 +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 interface LabelLocationOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1beta1.LabelLocation) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * 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 internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Likelihood findValueByNumber(int number) { - return Likelihood.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.videointelligence.v1beta1.VideoIntelligenceServiceProto.getDescriptor() - .getEnumTypes() - .get(3); - } - - private static final Likelihood[] VALUES = values(); - - public static Likelihood valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Likelihood(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.videointelligence.v1beta1.Likelihood) -} diff --git a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/SafeSearchAnnotation.java b/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/SafeSearchAnnotation.java deleted file mode 100644 index f7ac6966e..000000000 --- a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/SafeSearchAnnotation.java +++ /dev/null @@ -1,1204 +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; - -/** - * - * - *
- * 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 - implements - // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1beta1.SafeSearchAnnotation) - com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotationOrBuilder { - 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); - } - - // Construct using com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - adult_ = 0; - - spoof_ = 0; - - medical_ = 0; - - violent_ = 0; - - racy_ = 0; - - timeOffset_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.videointelligence.v1beta1.VideoIntelligenceServiceProto - .internal_static_google_cloud_videointelligence_v1beta1_SafeSearchAnnotation_descriptor; - } - - @java.lang.Override - public com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation - getDefaultInstanceForType() { - return com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation build() { - com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation buildPartial() { - com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation result = - new com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation(this); - result.adult_ = adult_; - result.spoof_ = spoof_; - result.medical_ = medical_; - result.violent_ = violent_; - result.racy_ = racy_; - result.timeOffset_ = timeOffset_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation) { - return mergeFrom((com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation other) { - if (other - == com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation.getDefaultInstance()) - return this; - if (other.adult_ != 0) { - setAdultValue(other.getAdultValue()); - } - if (other.spoof_ != 0) { - setSpoofValue(other.getSpoofValue()); - } - if (other.medical_ != 0) { - setMedicalValue(other.getMedicalValue()); - } - if (other.violent_ != 0) { - setViolentValue(other.getViolentValue()); - } - if (other.racy_ != 0) { - setRacyValue(other.getRacyValue()); - } - if (other.getTimeOffset() != 0L) { - setTimeOffset(other.getTimeOffset()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int adult_ = 0; - /** - * - * - *
-     * 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 PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SafeSearchAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SafeSearchAnnotation(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/SafeSearchAnnotationOrBuilder.java b/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/SafeSearchAnnotationOrBuilder.java deleted file mode 100644 index 825ae451c..000000000 --- a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/SafeSearchAnnotationOrBuilder.java +++ /dev/null @@ -1,128 +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 interface SafeSearchAnnotationOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1beta1.SafeSearchAnnotation) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * 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 - implements - // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1beta1.VideoAnnotationProgress) - com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgressOrBuilder { - 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); - } - - // Construct using - // com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - inputUri_ = ""; - - progressPercent_ = 0; - - if (startTimeBuilder_ == null) { - startTime_ = null; - } else { - startTime_ = null; - startTimeBuilder_ = null; - } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.videointelligence.v1beta1.VideoIntelligenceServiceProto - .internal_static_google_cloud_videointelligence_v1beta1_VideoAnnotationProgress_descriptor; - } - - @java.lang.Override - public com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress - getDefaultInstanceForType() { - return com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress build() { - com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress buildPartial() { - com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress result = - new com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress(this); - result.inputUri_ = inputUri_; - result.progressPercent_ = progressPercent_; - if (startTimeBuilder_ == null) { - result.startTime_ = startTime_; - } else { - result.startTime_ = startTimeBuilder_.build(); - } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress) { - return mergeFrom( - (com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress other) { - if (other - == com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress - .getDefaultInstance()) return this; - if (!other.getInputUri().isEmpty()) { - inputUri_ = other.inputUri_; - onChanged(); - } - if (other.getProgressPercent() != 0) { - setProgressPercent(other.getProgressPercent()); - } - if (other.hasStartTime()) { - mergeStartTime(other.getStartTime()); - } - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private 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)) { - 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 PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VideoAnnotationProgress parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VideoAnnotationProgress(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.videointelligence.v1beta1.VideoAnnotationProgress - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/VideoAnnotationProgressOrBuilder.java b/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/VideoAnnotationProgressOrBuilder.java deleted file mode 100644 index ab5cc28bd..000000000 --- a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/VideoAnnotationProgressOrBuilder.java +++ /dev/null @@ -1,107 +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 interface VideoAnnotationProgressOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1beta1.VideoAnnotationProgress) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * 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 - labelAnnotations_; - /** - * - * - *
-   * Label annotations. There is exactly one element for each unique label.
-   * 
- * - * repeated .google.cloud.videointelligence.v1beta1.LabelAnnotation label_annotations = 2; - * - */ - public java.util.List - getLabelAnnotationsList() { - return labelAnnotations_; - } - /** - * - * - *
-   * 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 - faceAnnotations_; - /** - * - * - *
-   * Face annotations. There is exactly one element for each unique face.
-   * 
- * - * repeated .google.cloud.videointelligence.v1beta1.FaceAnnotation face_annotations = 3; - * - */ - public java.util.List - getFaceAnnotationsList() { - return faceAnnotations_; - } - /** - * - * - *
-   * 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 shotAnnotations_; - /** - * - * - *
-   * Shot annotations. Each shot is represented as a video segment.
-   * 
- * - * repeated .google.cloud.videointelligence.v1beta1.VideoSegment shot_annotations = 4; - * - */ - public java.util.List - getShotAnnotationsList() { - return shotAnnotations_; - } - /** - * - * - *
-   * Shot annotations. Each shot is represented as a video segment.
-   * 
- * - * repeated .google.cloud.videointelligence.v1beta1.VideoSegment shot_annotations = 4; - * - */ - public java.util.List - 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 - safeSearchAnnotations_; - /** - * - * - *
-   * Safe search annotations.
-   * 
- * - * - * repeated .google.cloud.videointelligence.v1beta1.SafeSearchAnnotation safe_search_annotations = 6; - * - */ - public java.util.List - getSafeSearchAnnotationsList() { - return safeSearchAnnotations_; - } - /** - * - * - *
-   * 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 - implements - // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1beta1.VideoAnnotationResults) - com.google.cloud.videointelligence.v1beta1.VideoAnnotationResultsOrBuilder { - 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); - } - - // Construct using - // com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getLabelAnnotationsFieldBuilder(); - getFaceAnnotationsFieldBuilder(); - getShotAnnotationsFieldBuilder(); - getSafeSearchAnnotationsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - inputUri_ = ""; - - if (labelAnnotationsBuilder_ == null) { - labelAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - labelAnnotationsBuilder_.clear(); - } - if (faceAnnotationsBuilder_ == null) { - faceAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - faceAnnotationsBuilder_.clear(); - } - if (shotAnnotationsBuilder_ == null) { - shotAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - shotAnnotationsBuilder_.clear(); - } - if (safeSearchAnnotationsBuilder_ == null) { - safeSearchAnnotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - } else { - safeSearchAnnotationsBuilder_.clear(); - } - if (errorBuilder_ == null) { - error_ = null; - } else { - error_ = null; - errorBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.videointelligence.v1beta1.VideoIntelligenceServiceProto - .internal_static_google_cloud_videointelligence_v1beta1_VideoAnnotationResults_descriptor; - } - - @java.lang.Override - public com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults - getDefaultInstanceForType() { - return com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults build() { - com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults buildPartial() { - com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults result = - new com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.inputUri_ = inputUri_; - if (labelAnnotationsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - labelAnnotations_ = java.util.Collections.unmodifiableList(labelAnnotations_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.labelAnnotations_ = labelAnnotations_; - } else { - result.labelAnnotations_ = labelAnnotationsBuilder_.build(); - } - if (faceAnnotationsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - faceAnnotations_ = java.util.Collections.unmodifiableList(faceAnnotations_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.faceAnnotations_ = faceAnnotations_; - } else { - result.faceAnnotations_ = faceAnnotationsBuilder_.build(); - } - if (shotAnnotationsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - shotAnnotations_ = java.util.Collections.unmodifiableList(shotAnnotations_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.shotAnnotations_ = shotAnnotations_; - } else { - result.shotAnnotations_ = shotAnnotationsBuilder_.build(); - } - if (safeSearchAnnotationsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { - safeSearchAnnotations_ = java.util.Collections.unmodifiableList(safeSearchAnnotations_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.safeSearchAnnotations_ = safeSearchAnnotations_; - } else { - result.safeSearchAnnotations_ = safeSearchAnnotationsBuilder_.build(); - } - if (errorBuilder_ == null) { - result.error_ = error_; - } else { - result.error_ = errorBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults) { - return mergeFrom((com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults other) { - if (other - == com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults.getDefaultInstance()) - return this; - if (!other.getInputUri().isEmpty()) { - inputUri_ = other.inputUri_; - onChanged(); - } - if (labelAnnotationsBuilder_ == null) { - if (!other.labelAnnotations_.isEmpty()) { - if (labelAnnotations_.isEmpty()) { - labelAnnotations_ = other.labelAnnotations_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureLabelAnnotationsIsMutable(); - labelAnnotations_.addAll(other.labelAnnotations_); - } - onChanged(); - } - } else { - if (!other.labelAnnotations_.isEmpty()) { - if (labelAnnotationsBuilder_.isEmpty()) { - labelAnnotationsBuilder_.dispose(); - labelAnnotationsBuilder_ = null; - labelAnnotations_ = other.labelAnnotations_; - bitField0_ = (bitField0_ & ~0x00000002); - labelAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLabelAnnotationsFieldBuilder() - : null; - } else { - labelAnnotationsBuilder_.addAllMessages(other.labelAnnotations_); - } - } - } - if (faceAnnotationsBuilder_ == null) { - if (!other.faceAnnotations_.isEmpty()) { - if (faceAnnotations_.isEmpty()) { - faceAnnotations_ = other.faceAnnotations_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureFaceAnnotationsIsMutable(); - faceAnnotations_.addAll(other.faceAnnotations_); - } - onChanged(); - } - } else { - if (!other.faceAnnotations_.isEmpty()) { - if (faceAnnotationsBuilder_.isEmpty()) { - faceAnnotationsBuilder_.dispose(); - faceAnnotationsBuilder_ = null; - faceAnnotations_ = other.faceAnnotations_; - bitField0_ = (bitField0_ & ~0x00000004); - faceAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFaceAnnotationsFieldBuilder() - : null; - } else { - faceAnnotationsBuilder_.addAllMessages(other.faceAnnotations_); - } - } - } - if (shotAnnotationsBuilder_ == null) { - if (!other.shotAnnotations_.isEmpty()) { - if (shotAnnotations_.isEmpty()) { - shotAnnotations_ = other.shotAnnotations_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureShotAnnotationsIsMutable(); - shotAnnotations_.addAll(other.shotAnnotations_); - } - onChanged(); - } - } else { - if (!other.shotAnnotations_.isEmpty()) { - if (shotAnnotationsBuilder_.isEmpty()) { - shotAnnotationsBuilder_.dispose(); - shotAnnotationsBuilder_ = null; - shotAnnotations_ = other.shotAnnotations_; - bitField0_ = (bitField0_ & ~0x00000008); - shotAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getShotAnnotationsFieldBuilder() - : null; - } else { - shotAnnotationsBuilder_.addAllMessages(other.shotAnnotations_); - } - } - } - if (safeSearchAnnotationsBuilder_ == null) { - if (!other.safeSearchAnnotations_.isEmpty()) { - if (safeSearchAnnotations_.isEmpty()) { - safeSearchAnnotations_ = other.safeSearchAnnotations_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureSafeSearchAnnotationsIsMutable(); - safeSearchAnnotations_.addAll(other.safeSearchAnnotations_); - } - onChanged(); - } - } else { - if (!other.safeSearchAnnotations_.isEmpty()) { - if (safeSearchAnnotationsBuilder_.isEmpty()) { - safeSearchAnnotationsBuilder_.dispose(); - safeSearchAnnotationsBuilder_ = null; - safeSearchAnnotations_ = other.safeSearchAnnotations_; - bitField0_ = (bitField0_ & ~0x00000010); - safeSearchAnnotationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSafeSearchAnnotationsFieldBuilder() - : null; - } else { - safeSearchAnnotationsBuilder_.addAllMessages(other.safeSearchAnnotations_); - } - } - } - if (other.hasError()) { - mergeError(other.getError()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private 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)) { - 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 - labelAnnotations_ = java.util.Collections.emptyList(); - - private void ensureLabelAnnotationsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - labelAnnotations_ = - new java.util.ArrayList( - labelAnnotations_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.videointelligence.v1beta1.LabelAnnotation, - com.google.cloud.videointelligence.v1beta1.LabelAnnotation.Builder, - com.google.cloud.videointelligence.v1beta1.LabelAnnotationOrBuilder> - labelAnnotationsBuilder_; - - /** - * - * - *
-     * Label annotations. There is exactly one element for each unique label.
-     * 
- * - * repeated .google.cloud.videointelligence.v1beta1.LabelAnnotation label_annotations = 2; - * - */ - public java.util.List - getLabelAnnotationsList() { - if (labelAnnotationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(labelAnnotations_); - } else { - return labelAnnotationsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * 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 - 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 - getLabelAnnotationsBuilderList() { - return getLabelAnnotationsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.videointelligence.v1beta1.LabelAnnotation, - com.google.cloud.videointelligence.v1beta1.LabelAnnotation.Builder, - com.google.cloud.videointelligence.v1beta1.LabelAnnotationOrBuilder> - getLabelAnnotationsFieldBuilder() { - if (labelAnnotationsBuilder_ == null) { - labelAnnotationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.videointelligence.v1beta1.LabelAnnotation, - com.google.cloud.videointelligence.v1beta1.LabelAnnotation.Builder, - com.google.cloud.videointelligence.v1beta1.LabelAnnotationOrBuilder>( - labelAnnotations_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - labelAnnotations_ = null; - } - return labelAnnotationsBuilder_; - } - - private java.util.List - faceAnnotations_ = java.util.Collections.emptyList(); - - private void ensureFaceAnnotationsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - faceAnnotations_ = - new java.util.ArrayList( - faceAnnotations_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.videointelligence.v1beta1.FaceAnnotation, - com.google.cloud.videointelligence.v1beta1.FaceAnnotation.Builder, - com.google.cloud.videointelligence.v1beta1.FaceAnnotationOrBuilder> - faceAnnotationsBuilder_; - - /** - * - * - *
-     * Face annotations. There is exactly one element for each unique face.
-     * 
- * - * repeated .google.cloud.videointelligence.v1beta1.FaceAnnotation face_annotations = 3; - * - */ - public java.util.List - getFaceAnnotationsList() { - if (faceAnnotationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(faceAnnotations_); - } else { - return faceAnnotationsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * 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 - 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 - getFaceAnnotationsBuilderList() { - return getFaceAnnotationsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.videointelligence.v1beta1.FaceAnnotation, - com.google.cloud.videointelligence.v1beta1.FaceAnnotation.Builder, - com.google.cloud.videointelligence.v1beta1.FaceAnnotationOrBuilder> - getFaceAnnotationsFieldBuilder() { - if (faceAnnotationsBuilder_ == null) { - faceAnnotationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.videointelligence.v1beta1.FaceAnnotation, - com.google.cloud.videointelligence.v1beta1.FaceAnnotation.Builder, - com.google.cloud.videointelligence.v1beta1.FaceAnnotationOrBuilder>( - faceAnnotations_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - faceAnnotations_ = null; - } - return faceAnnotationsBuilder_; - } - - private java.util.List - shotAnnotations_ = java.util.Collections.emptyList(); - - private void ensureShotAnnotationsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - shotAnnotations_ = - new java.util.ArrayList( - shotAnnotations_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.videointelligence.v1beta1.VideoSegment, - com.google.cloud.videointelligence.v1beta1.VideoSegment.Builder, - com.google.cloud.videointelligence.v1beta1.VideoSegmentOrBuilder> - shotAnnotationsBuilder_; - - /** - * - * - *
-     * Shot annotations. Each shot is represented as a video segment.
-     * 
- * - * repeated .google.cloud.videointelligence.v1beta1.VideoSegment shot_annotations = 4; - * - */ - public java.util.List - getShotAnnotationsList() { - if (shotAnnotationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(shotAnnotations_); - } else { - return shotAnnotationsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * 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 - 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 - getShotAnnotationsBuilderList() { - return getShotAnnotationsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.videointelligence.v1beta1.VideoSegment, - com.google.cloud.videointelligence.v1beta1.VideoSegment.Builder, - com.google.cloud.videointelligence.v1beta1.VideoSegmentOrBuilder> - getShotAnnotationsFieldBuilder() { - if (shotAnnotationsBuilder_ == null) { - shotAnnotationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.videointelligence.v1beta1.VideoSegment, - com.google.cloud.videointelligence.v1beta1.VideoSegment.Builder, - com.google.cloud.videointelligence.v1beta1.VideoSegmentOrBuilder>( - shotAnnotations_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - shotAnnotations_ = null; - } - return shotAnnotationsBuilder_; - } - - private java.util.List - safeSearchAnnotations_ = java.util.Collections.emptyList(); - - private void ensureSafeSearchAnnotationsIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - safeSearchAnnotations_ = - new java.util.ArrayList< - com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation>( - safeSearchAnnotations_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation, - com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation.Builder, - com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotationOrBuilder> - safeSearchAnnotationsBuilder_; - - /** - * - * - *
-     * Safe search annotations.
-     * 
- * - * - * repeated .google.cloud.videointelligence.v1beta1.SafeSearchAnnotation safe_search_annotations = 6; - * - */ - public java.util.List - getSafeSearchAnnotationsList() { - if (safeSearchAnnotationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(safeSearchAnnotations_); - } else { - return safeSearchAnnotationsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * 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 - getSafeSearchAnnotationsBuilderList() { - return getSafeSearchAnnotationsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation, - com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation.Builder, - com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotationOrBuilder> - getSafeSearchAnnotationsFieldBuilder() { - if (safeSearchAnnotationsBuilder_ == null) { - safeSearchAnnotationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation, - com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotation.Builder, - com.google.cloud.videointelligence.v1beta1.SafeSearchAnnotationOrBuilder>( - safeSearchAnnotations_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); - safeSearchAnnotations_ = null; - } - return safeSearchAnnotationsBuilder_; - } - - private com.google.rpc.Status error_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - errorBuilder_; - /** - * - * - *
-     * 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 PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VideoAnnotationResults parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VideoAnnotationResults(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.videointelligence.v1beta1.VideoAnnotationResults - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/VideoAnnotationResultsOrBuilder.java b/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/VideoAnnotationResultsOrBuilder.java deleted file mode 100644 index 2e57361bb..000000000 --- a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/VideoAnnotationResultsOrBuilder.java +++ /dev/null @@ -1,308 +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 interface VideoAnnotationResultsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1beta1.VideoAnnotationResults) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * 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 - getLabelAnnotationsList(); - /** - * - * - *
-   * 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 - 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 - getFaceAnnotationsList(); - /** - * - * - *
-   * 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 - 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 getShotAnnotationsList(); - /** - * - * - *
-   * 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 - 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 - getSafeSearchAnnotationsList(); - /** - * - * - *
-   * 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 - 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 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 java.util.List getSegmentsList() { - 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 java.util.List - 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 - implements - // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1beta1.VideoContext) - com.google.cloud.videointelligence.v1beta1.VideoContextOrBuilder { - 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); - } - - // Construct using com.google.cloud.videointelligence.v1beta1.VideoContext.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getSegmentsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (segmentsBuilder_ == null) { - segments_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - segmentsBuilder_.clear(); - } - labelDetectionMode_ = 0; - - stationaryCamera_ = false; - - labelDetectionModel_ = ""; - - faceDetectionModel_ = ""; - - shotChangeDetectionModel_ = ""; - - safeSearchDetectionModel_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.videointelligence.v1beta1.VideoIntelligenceServiceProto - .internal_static_google_cloud_videointelligence_v1beta1_VideoContext_descriptor; - } - - @java.lang.Override - public com.google.cloud.videointelligence.v1beta1.VideoContext getDefaultInstanceForType() { - return com.google.cloud.videointelligence.v1beta1.VideoContext.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.videointelligence.v1beta1.VideoContext build() { - com.google.cloud.videointelligence.v1beta1.VideoContext result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.videointelligence.v1beta1.VideoContext buildPartial() { - com.google.cloud.videointelligence.v1beta1.VideoContext result = - new com.google.cloud.videointelligence.v1beta1.VideoContext(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (segmentsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - segments_ = java.util.Collections.unmodifiableList(segments_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.segments_ = segments_; - } else { - result.segments_ = segmentsBuilder_.build(); - } - result.labelDetectionMode_ = labelDetectionMode_; - result.stationaryCamera_ = stationaryCamera_; - result.labelDetectionModel_ = labelDetectionModel_; - result.faceDetectionModel_ = faceDetectionModel_; - result.shotChangeDetectionModel_ = shotChangeDetectionModel_; - result.safeSearchDetectionModel_ = safeSearchDetectionModel_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.videointelligence.v1beta1.VideoContext) { - return mergeFrom((com.google.cloud.videointelligence.v1beta1.VideoContext) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.videointelligence.v1beta1.VideoContext other) { - if (other == com.google.cloud.videointelligence.v1beta1.VideoContext.getDefaultInstance()) - return this; - if (segmentsBuilder_ == null) { - if (!other.segments_.isEmpty()) { - if (segments_.isEmpty()) { - segments_ = other.segments_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSegmentsIsMutable(); - segments_.addAll(other.segments_); - } - onChanged(); - } - } else { - if (!other.segments_.isEmpty()) { - if (segmentsBuilder_.isEmpty()) { - segmentsBuilder_.dispose(); - segmentsBuilder_ = null; - segments_ = other.segments_; - bitField0_ = (bitField0_ & ~0x00000001); - segmentsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSegmentsFieldBuilder() - : null; - } else { - segmentsBuilder_.addAllMessages(other.segments_); - } - } - } - if (other.labelDetectionMode_ != 0) { - setLabelDetectionModeValue(other.getLabelDetectionModeValue()); - } - if (other.getStationaryCamera() != false) { - setStationaryCamera(other.getStationaryCamera()); - } - if (!other.getLabelDetectionModel().isEmpty()) { - labelDetectionModel_ = other.labelDetectionModel_; - onChanged(); - } - if (!other.getFaceDetectionModel().isEmpty()) { - faceDetectionModel_ = other.faceDetectionModel_; - onChanged(); - } - if (!other.getShotChangeDetectionModel().isEmpty()) { - shotChangeDetectionModel_ = other.shotChangeDetectionModel_; - onChanged(); - } - if (!other.getSafeSearchDetectionModel().isEmpty()) { - safeSearchDetectionModel_ = other.safeSearchDetectionModel_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.videointelligence.v1beta1.VideoContext parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.videointelligence.v1beta1.VideoContext) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List segments_ = - java.util.Collections.emptyList(); - - private void ensureSegmentsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - segments_ = - new java.util.ArrayList( - segments_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.videointelligence.v1beta1.VideoSegment, - com.google.cloud.videointelligence.v1beta1.VideoSegment.Builder, - com.google.cloud.videointelligence.v1beta1.VideoSegmentOrBuilder> - segmentsBuilder_; - - /** - * - * - *
-     * 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 - getSegmentsList() { - if (segmentsBuilder_ == null) { - return java.util.Collections.unmodifiableList(segments_); - } else { - return segmentsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * 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 - 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 - getSegmentsBuilderList() { - return getSegmentsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.videointelligence.v1beta1.VideoSegment, - com.google.cloud.videointelligence.v1beta1.VideoSegment.Builder, - com.google.cloud.videointelligence.v1beta1.VideoSegmentOrBuilder> - getSegmentsFieldBuilder() { - if (segmentsBuilder_ == null) { - segmentsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.videointelligence.v1beta1.VideoSegment, - com.google.cloud.videointelligence.v1beta1.VideoSegment.Builder, - com.google.cloud.videointelligence.v1beta1.VideoSegmentOrBuilder>( - segments_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - segments_ = null; - } - return segmentsBuilder_; - } - - private int labelDetectionMode_ = 0; - /** - * - * - *
-     * 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 PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VideoContext parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VideoContext(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.videointelligence.v1beta1.VideoContext getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/VideoContextOrBuilder.java b/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/VideoContextOrBuilder.java deleted file mode 100644 index 064c5fe5e..000000000 --- a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/VideoContextOrBuilder.java +++ /dev/null @@ -1,203 +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 interface VideoContextOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1beta1.VideoContext) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * 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 getSegmentsList(); - /** - * - * - *
-   * 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 - 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 - implements - // @@protoc_insertion_point(builder_implements:google.cloud.videointelligence.v1beta1.VideoSegment) - com.google.cloud.videointelligence.v1beta1.VideoSegmentOrBuilder { - 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); - } - - // Construct using com.google.cloud.videointelligence.v1beta1.VideoSegment.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - startTimeOffset_ = 0L; - - endTimeOffset_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.videointelligence.v1beta1.VideoIntelligenceServiceProto - .internal_static_google_cloud_videointelligence_v1beta1_VideoSegment_descriptor; - } - - @java.lang.Override - public com.google.cloud.videointelligence.v1beta1.VideoSegment getDefaultInstanceForType() { - return com.google.cloud.videointelligence.v1beta1.VideoSegment.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.videointelligence.v1beta1.VideoSegment build() { - com.google.cloud.videointelligence.v1beta1.VideoSegment result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.videointelligence.v1beta1.VideoSegment buildPartial() { - com.google.cloud.videointelligence.v1beta1.VideoSegment result = - new com.google.cloud.videointelligence.v1beta1.VideoSegment(this); - result.startTimeOffset_ = startTimeOffset_; - result.endTimeOffset_ = endTimeOffset_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.videointelligence.v1beta1.VideoSegment) { - return mergeFrom((com.google.cloud.videointelligence.v1beta1.VideoSegment) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.videointelligence.v1beta1.VideoSegment other) { - if (other == com.google.cloud.videointelligence.v1beta1.VideoSegment.getDefaultInstance()) - return this; - if (other.getStartTimeOffset() != 0L) { - setStartTimeOffset(other.getStartTimeOffset()); - } - if (other.getEndTimeOffset() != 0L) { - setEndTimeOffset(other.getEndTimeOffset()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.videointelligence.v1beta1.VideoSegment parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.videointelligence.v1beta1.VideoSegment) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long startTimeOffset_; - /** - * - * - *
-     * 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 PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VideoSegment parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VideoSegment(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.videointelligence.v1beta1.VideoSegment getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/VideoSegmentOrBuilder.java b/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/VideoSegmentOrBuilder.java deleted file mode 100644 index 92ebe931c..000000000 --- a/proto-google-cloud-video-intelligence-v1beta1/src/main/java/com/google/cloud/videointelligence/v1beta1/VideoSegmentOrBuilder.java +++ /dev/null @@ -1,32 +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 interface VideoSegmentOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.videointelligence.v1beta1.VideoSegment) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * 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; -}