/** * 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()); }
/** * 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 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 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 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 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 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 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 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 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()); }
clientContext); backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
/** * Constructs an instance of HttpJsonZoneStub, 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 HttpJsonZoneStub( ZoneStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; HttpJsonCallSettings<GetZoneHttpRequest, Zone> getZoneTransportSettings = HttpJsonCallSettings.<GetZoneHttpRequest, Zone>newBuilder() .setMethodDescriptor(getZoneMethodDescriptor) .build(); HttpJsonCallSettings<ListZonesHttpRequest, ZoneList> listZonesTransportSettings = HttpJsonCallSettings.<ListZonesHttpRequest, ZoneList>newBuilder() .setMethodDescriptor(listZonesMethodDescriptor) .build(); this.getZoneCallable = callableFactory.createUnaryCallable( getZoneTransportSettings, settings.getZoneSettings(), clientContext); this.listZonesCallable = callableFactory.createUnaryCallable( listZonesTransportSettings, settings.listZonesSettings(), clientContext); this.listZonesPagedCallable = callableFactory.createPagedCallable( listZonesTransportSettings, settings.listZonesSettings(), clientContext); backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); }
/** * Constructs an instance of HttpJsonRegionStub, 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 HttpJsonRegionStub( RegionStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; HttpJsonCallSettings<GetRegionHttpRequest, Region> getRegionTransportSettings = HttpJsonCallSettings.<GetRegionHttpRequest, Region>newBuilder() .setMethodDescriptor(getRegionMethodDescriptor) .build(); HttpJsonCallSettings<ListRegionsHttpRequest, RegionList> listRegionsTransportSettings = HttpJsonCallSettings.<ListRegionsHttpRequest, RegionList>newBuilder() .setMethodDescriptor(listRegionsMethodDescriptor) .build(); this.getRegionCallable = callableFactory.createUnaryCallable( getRegionTransportSettings, settings.getRegionSettings(), clientContext); this.listRegionsCallable = callableFactory.createUnaryCallable( listRegionsTransportSettings, settings.listRegionsSettings(), clientContext); this.listRegionsPagedCallable = callableFactory.createPagedCallable( listRegionsTransportSettings, settings.listRegionsSettings(), clientContext); backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); }
clientContext); backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
clientContext); backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
clientContext); backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());