コード例 #1
0
 /// <summary>
 /// Triggers the graceful termination of a single stream in a ReadSession. This
 /// API can be used to dynamically adjust the parallelism of a batch processing
 /// task downwards without losing data.
 ///
 /// This API does not delete the stream -- it remains visible in the
 /// ReadSession, and any data processed by the stream is not released to other
 /// streams. However, no additional data will be assigned to the stream once
 /// this call completes. Callers must continue reading data on the stream until
 /// the end of the stream is reached so that data which has already been
 /// assigned to the stream will be processed.
 ///
 /// This method will return an error if there are no other live streams
 /// in the Session, or if SplitReadStream() has been called on the given
 /// Stream.
 /// </summary>
 /// <param name="request">The request to send to the server.</param>
 /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
 /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
 /// <param name="cancellationToken">An optional token for canceling the call.</param>
 /// <returns>The call object.</returns>
 public virtual grpc::AsyncUnaryCall <global::Google.Protobuf.WellKnownTypes.Empty> FinalizeStreamAsync(global::Google.Cloud.Bigquery.Storage.V1Beta1.FinalizeStreamRequest request, grpc::Metadata headers = null, global::System.DateTime?deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
 {
     return(FinalizeStreamAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)));
 }
コード例 #2
0
 /// <summary>
 /// Triggers the graceful termination of a single stream in a ReadSession. This
 /// API can be used to dynamically adjust the parallelism of a batch processing
 /// task downwards without losing data.
 ///
 /// This API does not delete the stream -- it remains visible in the
 /// ReadSession, and any data processed by the stream is not released to other
 /// streams. However, no additional data will be assigned to the stream once
 /// this call completes. Callers must continue reading data on the stream until
 /// the end of the stream is reached so that data which has already been
 /// assigned to the stream will be processed.
 ///
 /// This method will return an error if there are no other live streams
 /// in the Session, or if SplitReadStream() has been called on the given
 /// Stream.
 /// </summary>
 /// <param name="request">The request to send to the server.</param>
 /// <param name="options">The options for the call.</param>
 /// <returns>The call object.</returns>
 public virtual grpc::AsyncUnaryCall <global::Google.Protobuf.WellKnownTypes.Empty> FinalizeStreamAsync(global::Google.Cloud.Bigquery.Storage.V1Beta1.FinalizeStreamRequest request, grpc::CallOptions options)
 {
     return(CallInvoker.AsyncUnaryCall(__Method_FinalizeStream, null, options, request));
 }
コード例 #3
0
 /// <summary>
 /// Triggers the graceful termination of a single stream in a ReadSession. This
 /// API can be used to dynamically adjust the parallelism of a batch processing
 /// task downwards without losing data.
 ///
 /// This API does not delete the stream -- it remains visible in the
 /// ReadSession, and any data processed by the stream is not released to other
 /// streams. However, no additional data will be assigned to the stream once
 /// this call completes. Callers must continue reading data on the stream until
 /// the end of the stream is reached so that data which has already been
 /// assigned to the stream will be processed.
 ///
 /// This method will return an error if there are no other live streams
 /// in the Session, or if SplitReadStream() has been called on the given
 /// Stream.
 /// </summary>
 /// <param name="request">The request received from the client.</param>
 /// <param name="context">The context of the server-side call handler being invoked.</param>
 /// <returns>The response to send back to the client (wrapped by a task).</returns>
 public virtual global::System.Threading.Tasks.Task <global::Google.Protobuf.WellKnownTypes.Empty> FinalizeStream(global::Google.Cloud.Bigquery.Storage.V1Beta1.FinalizeStreamRequest request, grpc::ServerCallContext context)
 {
     throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
 }