Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

feat(v1p3beta1): added support for streaming automl action recognition #155

Merged
merged 3 commits into from Jun 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -209,12 +209,12 @@ public static class Builder
RetrySettings settings = null;
settings =
RetrySettings.newBuilder()
.setInitialRetryDelay(Duration.ofMillis(100L))
.setRetryDelayMultiplier(1.3)
.setMaxRetryDelay(Duration.ofMillis(60000L))
.setInitialRpcTimeout(Duration.ofMillis(20000L))
.setInitialRetryDelay(Duration.ofMillis(1000L))
.setRetryDelayMultiplier(2.5)
.setMaxRetryDelay(Duration.ofMillis(120000L))
.setInitialRpcTimeout(Duration.ofMillis(120000L))
.setRpcTimeoutMultiplier(1.0)
.setMaxRpcTimeout(Duration.ofMillis(20000L))
.setMaxRpcTimeout(Duration.ofMillis(120000L))
.setTotalTimeout(Duration.ofMillis(600000L))
.build();
definitions.put("default", settings);
Expand Down Expand Up @@ -251,14 +251,14 @@ private static Builder initDefaults(Builder builder) {

builder
.annotateVideoSettings()
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
builder
.annotateVideoOperationSettings()
.setInitialCallSettings(
UnaryCallSettings
.<AnnotateVideoRequest, OperationSnapshot>newUnaryCallSettingsBuilder()
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
.build())
.setResponseTransformer(
Expand Down
Expand Up @@ -26,7 +26,7 @@

// AUTO-GENERATED DOCUMENTATION AND SERVICE
/**
* Service Description: Service that implements streaming Google Cloud Video Intelligence API.
* Service Description: Service that implements streaming Video Intelligence API.
*
* <p>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:
Expand Down
Expand Up @@ -31,7 +31,7 @@

// AUTO-GENERATED DOCUMENTATION AND SERVICE
/**
* Service Description: Service that implements Google Cloud Video Intelligence API.
* Service Description: Service that implements the Video Intelligence API.
*
* <p>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:
Expand Down Expand Up @@ -185,15 +185,15 @@ public final OperationsClient getOperationsClient() {
* }
* </code></pre>
*
* @param inputUri Input video location. Currently, only [Google Cloud
* Storage](https://cloud.google.com/storage/) URIs are supported, which must be specified in
* @param inputUri Input video location. Currently, only [Cloud
* Storage](https://cloud.google.com/storage/) URIs are supported. URIs 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](https://cloud.google.com/storage/docs/request-endpoints). A
* video URI may include wildcards in `object-id`, and thus identify multiple videos.
* information, see [Request URIs](https://cloud.google.com/storage/docs/request-endpoints).
* To identify multiple videos, a video URI may include wildcards in the `object-id`.
* Supported wildcards: '&#42;' 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.
* `input_content` must be unset.
* @param features Required. Requested video annotation features.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
Expand Down
Expand Up @@ -21,7 +21,7 @@
*
* <p>============================== VideoIntelligenceServiceClient ==============================
*
* <p>Service Description: Service that implements Google Cloud Video Intelligence API.
* <p>Service Description: Service that implements the Video Intelligence API.
*
* <p>Sample for VideoIntelligenceServiceClient:
*
Expand All @@ -39,7 +39,7 @@
* ======================================= StreamingVideoIntelligenceServiceClient
* =======================================
*
* <p>Service Description: Service that implements streaming Google Cloud Video Intelligence API.
* <p>Service Description: Service that implements streaming Video Intelligence API.
*
* <p>Sample for StreamingVideoIntelligenceServiceClient:
*
Expand Down
Expand Up @@ -24,7 +24,7 @@
*
*
* <pre>
* Service that implements streaming Google Cloud Video Intelligence API.
* Service that implements streaming Video Intelligence API.
* </pre>
*/
@javax.annotation.Generated(
Expand Down Expand Up @@ -140,7 +140,7 @@ public StreamingVideoIntelligenceServiceFutureStub newStub(
*
*
* <pre>
* Service that implements streaming Google Cloud Video Intelligence API.
* Service that implements streaming Video Intelligence API.
* </pre>
*/
public abstract static class StreamingVideoIntelligenceServiceImplBase
Expand Down Expand Up @@ -182,7 +182,7 @@ public final io.grpc.ServerServiceDefinition bindService() {
*
*
* <pre>
* Service that implements streaming Google Cloud Video Intelligence API.
* Service that implements streaming Video Intelligence API.
* </pre>
*/
public static final class StreamingVideoIntelligenceServiceStub
Expand Down Expand Up @@ -223,7 +223,7 @@ protected StreamingVideoIntelligenceServiceStub build(
*
*
* <pre>
* Service that implements streaming Google Cloud Video Intelligence API.
* Service that implements streaming Video Intelligence API.
* </pre>
*/
public static final class StreamingVideoIntelligenceServiceBlockingStub
Expand All @@ -244,7 +244,7 @@ protected StreamingVideoIntelligenceServiceBlockingStub build(
*
*
* <pre>
* Service that implements streaming Google Cloud Video Intelligence API.
* Service that implements streaming Video Intelligence API.
* </pre>
*/
public static final class StreamingVideoIntelligenceServiceFutureStub
Expand Down
Expand Up @@ -26,7 +26,7 @@
*
*
* <pre>
* Service that implements Google Cloud Video Intelligence API.
* Service that implements the Video Intelligence API.
* </pre>
*/
@javax.annotation.Generated(
Expand Down Expand Up @@ -132,7 +132,7 @@ public VideoIntelligenceServiceFutureStub newStub(
*
*
* <pre>
* Service that implements Google Cloud Video Intelligence API.
* Service that implements the Video Intelligence API.
* </pre>
*/
public abstract static class VideoIntelligenceServiceImplBase implements io.grpc.BindableService {
Expand Down Expand Up @@ -170,7 +170,7 @@ public final io.grpc.ServerServiceDefinition bindService() {
*
*
* <pre>
* Service that implements Google Cloud Video Intelligence API.
* Service that implements the Video Intelligence API.
* </pre>
*/
public static final class VideoIntelligenceServiceStub
Expand Down Expand Up @@ -209,7 +209,7 @@ public void annotateVideo(
*
*
* <pre>
* Service that implements Google Cloud Video Intelligence API.
* Service that implements the Video Intelligence API.
* </pre>
*/
public static final class VideoIntelligenceServiceBlockingStub
Expand Down Expand Up @@ -245,7 +245,7 @@ public com.google.longrunning.Operation annotateVideo(
*
*
* <pre>
* Service that implements Google Cloud Video Intelligence API.
* Service that implements the Video Intelligence API.
* </pre>
*/
public static final class VideoIntelligenceServiceFutureStub
Expand Down