/// <summary>
 /// Asynchronously uploads a stream of ORC data to a table.
 /// This method just creates a <see cref="TableReference"/> and delegates to <see cref="BigQueryClient.UploadOrcAsync(TableReference, Stream, UploadOrcOptions, CancellationToken)"/>.
 /// </summary>
 /// <param name="tableId">The table ID. Must not be null.</param>
 /// <param name="input">The stream of input data. Must not be null.</param>
 /// <param name="options">The options for the operation. May be null, in which case defaults will be supplied.</param>
 /// <param name="cancellationToken">The token to monitor for cancellation requests.</param>
 /// <returns>A task representing the asynchronous operation. When complete, the result is
 /// a data upload job.</returns>
 public Task <BigQueryJob> UploadOrcAsync(string tableId, Stream input, UploadOrcOptions options = null, CancellationToken cancellationToken = default) =>
 _client.UploadOrcAsync(GetTableReference(tableId), input, options, cancellationToken);
 /// <summary>
 /// Uploads a stream of ORC data to a table.
 /// This method just creates a <see cref="TableReference"/> and delegates to <see cref="BigQueryClient.UploadOrc(TableReference, Stream, UploadOrcOptions)"/>.
 /// </summary>
 /// <param name="tableId">The table ID. Must not be null.</param>
 /// <param name="input">The stream of input data. Must not be null.</param>
 /// <param name="options">The options for the operation. May be null, in which case defaults will be supplied.</param>
 /// <returns>A data upload job.</returns>
 public BigQueryJob UploadOrc(string tableId, Stream input, UploadOrcOptions options = null) =>
 _client.UploadOrc(GetTableReference(tableId), input, options);
        /// <inheritdoc />
        public override BigQueryJob UploadOrc(TableReference tableReference, Stream input, UploadOrcOptions options = null)
        {
            GaxPreconditions.CheckNotNull(tableReference, nameof(tableReference));
            GaxPreconditions.CheckNotNull(input, nameof(input));

            var configuration = new JobConfigurationLoad
            {
                DestinationTable = tableReference,
                SourceFormat = "ORC"
            };
            options?.ModifyConfiguration(configuration);

            return UploadData(configuration, input, "application/octet-stream", options);
        }
        /// <inheritdoc />
        public override async Task<BigQueryJob> UploadOrcAsync(TableReference tableReference, Stream input, UploadOrcOptions options = null, CancellationToken cancellationToken = default)
        {
            GaxPreconditions.CheckNotNull(tableReference, nameof(tableReference));
            GaxPreconditions.CheckNotNull(input, nameof(input));

            var configuration = new JobConfigurationLoad
            {
                DestinationTable = tableReference,
                SourceFormat = "ORC"
            };
            options?.ModifyConfiguration(configuration);

            return await UploadDataAsync(configuration, input, "application/octet-stream", options, cancellationToken).ConfigureAwait(false);
        }
 /// <summary>
 /// Asynchronously uploads a stream of ORC data to this table.
 /// This method just creates a <see cref="TableReference"/> and delegates to <see cref="BigQueryClient.UploadOrcAsync(TableReference, Stream, UploadOrcOptions, CancellationToken)"/>.
 /// </summary>
 /// <param name="input">The stream of input data. Must not be null.</param>
 /// <param name="options">The options for the operation. May be null, in which case defaults will be supplied.</param>
 /// <param name="cancellationToken">The token to monitor for cancellation requests.</param>
 /// <returns>A task representing the asynchronous operation. When complete, the result is
 /// a data upload job.</returns>
 public Task <BigQueryJob> UploadOrcAsync(Stream input, UploadOrcOptions options = null, CancellationToken cancellationToken = default) =>
 _client.UploadOrcAsync(Reference, input, options, cancellationToken);
 /// <summary>
 /// Uploads a stream of ORC data to this table.
 /// This method just creates a <see cref="TableReference"/> and delegates to <see cref="BigQueryClient.UploadOrc(TableReference, Stream, UploadOrcOptions)"/>.
 /// </summary>
 /// <param name="input">The stream of input data. Must not be null.</param>
 /// <param name="options">The options for the operation. May be null, in which case defaults will be supplied.</param>
 /// <returns>A data upload job.</returns>
 public BigQueryJob UploadOrc(Stream input, UploadOrcOptions options = null) => _client.UploadOrc(Reference, input, options);