/** Constructs an instance of VideoIntelligenceServiceClient with default settings. */ public static final VideoIntelligenceServiceClient create() throws IOException { return create(VideoIntelligenceServiceSettings.newBuilder().build()); }
private static Builder createDefault() { return new Builder(VideoIntelligenceServiceStubSettings.newBuilder()); }
public VideoIntelligenceServiceStubSettings.Builder getStubSettingsBuilder() { return ((VideoIntelligenceServiceStubSettings.Builder) getStubSettings()); }
/** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); }
public static final VideoIntelligenceServiceSettings create( VideoIntelligenceServiceStubSettings stub) throws IOException { return new VideoIntelligenceServiceSettings.Builder(stub.toBuilder()).build(); }
/** Returns a builder containing all the values of this settings class. */ public Builder toBuilder() { return new Builder(this); }
/** * Applies the given settings updater function to all of the unary API methods in this service. * * <p>Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; }
@Before public void setUp() throws IOException { serviceHelper.reset(); channelProvider = serviceHelper.createChannelProvider(); VideoIntelligenceServiceSettings settings = VideoIntelligenceServiceSettings.newBuilder() .setTransportChannelProvider(channelProvider) .setCredentialsProvider(NoCredentialsProvider.create()) .build(); client = VideoIntelligenceServiceClient.create(settings); }
/** 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(); }
/** Returns the builder for the settings used for calls to annotateVideo. */ public UnaryCallSettings.Builder<AnnotateVideoRequest, Operation> annotateVideoSettings() { return getStubSettingsBuilder().annotateVideoSettings(); }