GrpcCallSettings.<ListGroupStatsRequest, ListGroupStatsResponse>newBuilder() .setMethodDescriptor(listGroupStatsMethodDescriptor) .build(); GrpcCallSettings<ListEventsRequest, ListEventsResponse> listEventsTransportSettings = GrpcCallSettings.<ListEventsRequest, ListEventsResponse>newBuilder() .setMethodDescriptor(listEventsMethodDescriptor) .build(); GrpcCallSettings<DeleteEventsRequest, DeleteEventsResponse> deleteEventsTransportSettings = GrpcCallSettings.<DeleteEventsRequest, DeleteEventsResponse>newBuilder() .setMethodDescriptor(deleteEventsMethodDescriptor) .build();
GrpcCallSettings.<BatchAnnotateImagesRequest, BatchAnnotateImagesResponse>newBuilder() .setMethodDescriptor(batchAnnotateImagesMethodDescriptor) .build(); GrpcCallSettings<AsyncBatchAnnotateFilesRequest, Operation> asyncBatchAnnotateFilesTransportSettings = GrpcCallSettings.<AsyncBatchAnnotateFilesRequest, Operation>newBuilder() .setMethodDescriptor(asyncBatchAnnotateFilesMethodDescriptor) .build();
GrpcCallSettings.<BatchAnnotateImagesRequest, BatchAnnotateImagesResponse>newBuilder() .setMethodDescriptor(batchAnnotateImagesMethodDescriptor) .build(); GrpcCallSettings<AsyncBatchAnnotateFilesRequest, Operation> asyncBatchAnnotateFilesTransportSettings = GrpcCallSettings.<AsyncBatchAnnotateFilesRequest, Operation>newBuilder() .setMethodDescriptor(asyncBatchAnnotateFilesMethodDescriptor) .build();
GrpcCallSettings.<BatchAnnotateImagesRequest, BatchAnnotateImagesResponse>newBuilder() .setMethodDescriptor(batchAnnotateImagesMethodDescriptor) .build(); GrpcCallSettings<AsyncBatchAnnotateFilesRequest, Operation> asyncBatchAnnotateFilesTransportSettings = GrpcCallSettings.<AsyncBatchAnnotateFilesRequest, Operation>newBuilder() .setMethodDescriptor(asyncBatchAnnotateFilesMethodDescriptor) .build();
GrpcCallSettings.<ExportAssetsRequest, Operation>newBuilder() .setMethodDescriptor(exportAssetsMethodDescriptor) .build(); GrpcCallSettings<BatchGetAssetsHistoryRequest, BatchGetAssetsHistoryResponse> batchGetAssetsHistoryTransportSettings = .<BatchGetAssetsHistoryRequest, BatchGetAssetsHistoryResponse>newBuilder() .setMethodDescriptor(batchGetAssetsHistoryMethodDescriptor) .build();
GrpcCallSettings.<PatchTracesRequest, Empty>newBuilder() .setMethodDescriptor(patchTracesMethodDescriptor) .build(); GrpcCallSettings<GetTraceRequest, Trace> getTraceTransportSettings = GrpcCallSettings.<GetTraceRequest, Trace>newBuilder() .setMethodDescriptor(getTraceMethodDescriptor) .build(); GrpcCallSettings<ListTracesRequest, ListTracesResponse> listTracesTransportSettings = GrpcCallSettings.<ListTracesRequest, ListTracesResponse>newBuilder() .setMethodDescriptor(listTracesMethodDescriptor) .build();
/** * Constructs an instance of GrpcSessionsStub, 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 GrpcSessionsStub( SessionsStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; GrpcCallSettings<DetectIntentRequest, DetectIntentResponse> detectIntentTransportSettings = GrpcCallSettings.<DetectIntentRequest, DetectIntentResponse>newBuilder() .setMethodDescriptor(detectIntentMethodDescriptor) .build(); GrpcCallSettings<StreamingDetectIntentRequest, StreamingDetectIntentResponse> streamingDetectIntentTransportSettings = GrpcCallSettings .<StreamingDetectIntentRequest, StreamingDetectIntentResponse>newBuilder() .setMethodDescriptor(streamingDetectIntentMethodDescriptor) .build(); this.detectIntentCallable = callableFactory.createUnaryCallable( detectIntentTransportSettings, settings.detectIntentSettings(), clientContext); this.streamingDetectIntentCallable = callableFactory.createBidiStreamingCallable( streamingDetectIntentTransportSettings, settings.streamingDetectIntentSettings(), clientContext); backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); }
/** * Constructs an instance of GrpcSessionsStub, 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 GrpcSessionsStub( SessionsStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; GrpcCallSettings<DetectIntentRequest, DetectIntentResponse> detectIntentTransportSettings = GrpcCallSettings.<DetectIntentRequest, DetectIntentResponse>newBuilder() .setMethodDescriptor(detectIntentMethodDescriptor) .build(); GrpcCallSettings<StreamingDetectIntentRequest, StreamingDetectIntentResponse> streamingDetectIntentTransportSettings = GrpcCallSettings .<StreamingDetectIntentRequest, StreamingDetectIntentResponse>newBuilder() .setMethodDescriptor(streamingDetectIntentMethodDescriptor) .build(); this.detectIntentCallable = callableFactory.createUnaryCallable( detectIntentTransportSettings, settings.detectIntentSettings(), clientContext); this.streamingDetectIntentCallable = callableFactory.createBidiStreamingCallable( streamingDetectIntentTransportSettings, settings.streamingDetectIntentSettings(), clientContext); backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); }
/** * Constructs an instance of GrpcTextToSpeechStub, 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 GrpcTextToSpeechStub( TextToSpeechStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; GrpcCallSettings<ListVoicesRequest, ListVoicesResponse> listVoicesTransportSettings = GrpcCallSettings.<ListVoicesRequest, ListVoicesResponse>newBuilder() .setMethodDescriptor(listVoicesMethodDescriptor) .build(); GrpcCallSettings<SynthesizeSpeechRequest, SynthesizeSpeechResponse> synthesizeSpeechTransportSettings = GrpcCallSettings.<SynthesizeSpeechRequest, SynthesizeSpeechResponse>newBuilder() .setMethodDescriptor(synthesizeSpeechMethodDescriptor) .build(); this.listVoicesCallable = callableFactory.createUnaryCallable( listVoicesTransportSettings, settings.listVoicesSettings(), clientContext); this.synthesizeSpeechCallable = callableFactory.createUnaryCallable( synthesizeSpeechTransportSettings, settings.synthesizeSpeechSettings(), clientContext); backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); }
/** * Constructs an instance of GrpcErrorGroupServiceStub, 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 GrpcErrorGroupServiceStub( ErrorGroupServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; GrpcCallSettings<GetGroupRequest, ErrorGroup> getGroupTransportSettings = GrpcCallSettings.<GetGroupRequest, ErrorGroup>newBuilder() .setMethodDescriptor(getGroupMethodDescriptor) .build(); GrpcCallSettings<UpdateGroupRequest, ErrorGroup> updateGroupTransportSettings = GrpcCallSettings.<UpdateGroupRequest, ErrorGroup>newBuilder() .setMethodDescriptor(updateGroupMethodDescriptor) .build(); this.getGroupCallable = callableFactory.createUnaryCallable( getGroupTransportSettings, settings.getGroupSettings(), clientContext); this.updateGroupCallable = callableFactory.createUnaryCallable( updateGroupTransportSettings, settings.updateGroupSettings(), clientContext); backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); }
/** * Constructs an instance of GrpcTraceServiceStub, 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 GrpcTraceServiceStub( TraceServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; GrpcCallSettings<BatchWriteSpansRequest, Empty> batchWriteSpansTransportSettings = GrpcCallSettings.<BatchWriteSpansRequest, Empty>newBuilder() .setMethodDescriptor(batchWriteSpansMethodDescriptor) .build(); GrpcCallSettings<Span, Span> createSpanTransportSettings = GrpcCallSettings.<Span, Span>newBuilder() .setMethodDescriptor(createSpanMethodDescriptor) .build(); this.batchWriteSpansCallable = callableFactory.createUnaryCallable( batchWriteSpansTransportSettings, settings.batchWriteSpansSettings(), clientContext); this.createSpanCallable = callableFactory.createUnaryCallable( createSpanTransportSettings, settings.createSpanSettings(), clientContext); backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); }
/** * 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<AnnotateVideoRequest, Operation> annotateVideoTransportSettings = GrpcCallSettings.<AnnotateVideoRequest, Operation>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()); }
/** * 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<AnnotateVideoRequest, Operation> annotateVideoTransportSettings = GrpcCallSettings.<AnnotateVideoRequest, Operation>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()); }
/** * 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<AnnotateVideoRequest, Operation> annotateVideoTransportSettings = GrpcCallSettings.<AnnotateVideoRequest, Operation>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()); }
/** * Constructs an instance of GrpcTextToSpeechStub, 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 GrpcTextToSpeechStub( TextToSpeechStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; GrpcCallSettings<ListVoicesRequest, ListVoicesResponse> listVoicesTransportSettings = GrpcCallSettings.<ListVoicesRequest, ListVoicesResponse>newBuilder() .setMethodDescriptor(listVoicesMethodDescriptor) .build(); GrpcCallSettings<SynthesizeSpeechRequest, SynthesizeSpeechResponse> synthesizeSpeechTransportSettings = GrpcCallSettings.<SynthesizeSpeechRequest, SynthesizeSpeechResponse>newBuilder() .setMethodDescriptor(synthesizeSpeechMethodDescriptor) .build(); this.listVoicesCallable = callableFactory.createUnaryCallable( listVoicesTransportSettings, settings.listVoicesSettings(), clientContext); this.synthesizeSpeechCallable = callableFactory.createUnaryCallable( synthesizeSpeechTransportSettings, settings.synthesizeSpeechSettings(), clientContext); backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); }
/** * 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<AnnotateVideoRequest, Operation> annotateVideoTransportSettings = GrpcCallSettings.<AnnotateVideoRequest, Operation>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()); }
/** * 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<AnnotateVideoRequest, Operation> annotateVideoTransportSettings = GrpcCallSettings.<AnnotateVideoRequest, Operation>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()); }
/** * Constructs an instance of GrpcImageAnnotatorStub, 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 GrpcImageAnnotatorStub( ImageAnnotatorStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; GrpcCallSettings<BatchAnnotateImagesRequest, BatchAnnotateImagesResponse> batchAnnotateImagesTransportSettings = GrpcCallSettings.<BatchAnnotateImagesRequest, BatchAnnotateImagesResponse>newBuilder() .setMethodDescriptor(batchAnnotateImagesMethodDescriptor) .build(); this.batchAnnotateImagesCallable = callableFactory.createUnaryCallable( batchAnnotateImagesTransportSettings, settings.batchAnnotateImagesSettings(), clientContext); backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); }
/** * Constructs an instance of GrpcReportErrorsServiceStub, 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 GrpcReportErrorsServiceStub( ReportErrorsServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; GrpcCallSettings<ReportErrorEventRequest, ReportErrorEventResponse> reportErrorEventTransportSettings = GrpcCallSettings.<ReportErrorEventRequest, ReportErrorEventResponse>newBuilder() .setMethodDescriptor(reportErrorEventMethodDescriptor) .build(); this.reportErrorEventCallable = callableFactory.createUnaryCallable( reportErrorEventTransportSettings, settings.reportErrorEventSettings(), clientContext); backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); }
/** * Constructs an instance of GrpcPredictionServiceStub, 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 GrpcPredictionServiceStub( PredictionServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; GrpcCallSettings<PredictRequest, PredictResponse> predictTransportSettings = GrpcCallSettings.<PredictRequest, PredictResponse>newBuilder() .setMethodDescriptor(predictMethodDescriptor) .build(); this.predictCallable = callableFactory.createUnaryCallable( predictTransportSettings, settings.predictSettings(), clientContext); backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); }