19#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_BIGQUERY_STORAGE_V1_BIGQUERY_WRITE_CLIENT_H
20#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_BIGQUERY_STORAGE_V1_BIGQUERY_WRITE_CLIENT_H
22#include "google/cloud/bigquery/storage/v1/bigquery_write_connection.h"
23#include "google/cloud/future.h"
24#include "google/cloud/options.h"
25#include "google/cloud/polling_policy.h"
26#include "google/cloud/status_or.h"
27#include "google/cloud/version.h"
34GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
85 return a.connection_ == b.connection_;
116 std::string
const& parent,
322 BatchCommitWriteStreamsRequest
const& request,
348 std::string
const& write_stream,
Options opts
= {});
381GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
BigQuery Write API.
Definition: bigquery_write_client.h:67
StatusOr< google::cloud::bigquery::storage::v1::WriteStream > CreateWriteStream(google::cloud::bigquery::storage::v1::CreateWriteStreamRequest const &request, Options opts={})
Creates a write stream to the given table.
BigQueryWriteClient(BigQueryWriteClient const &)=default
BigQueryWriteClient(BigQueryWriteClient &&)=default
StatusOr< google::cloud::bigquery::storage::v1::FinalizeWriteStreamResponse > FinalizeWriteStream(google::cloud::bigquery::storage::v1::FinalizeWriteStreamRequest const &request, Options opts={})
Finalize a write stream so that no new data can be appended to the stream.
StatusOr< google::cloud::bigquery::storage::v1::BatchCommitWriteStreamsResponse > BatchCommitWriteStreams(std::string const &parent, Options opts={})
Atomically commits a group of PENDING streams that belong to the same parent table.
StatusOr< google::cloud::bigquery::storage::v1::FlushRowsResponse > FlushRows(std::string const &write_stream, Options opts={})
Flushes rows to a BUFFERED stream.
friend bool operator==(BigQueryWriteClient const &a, BigQueryWriteClient const &b)
Definition: bigquery_write_client.h:83
friend bool operator!=(BigQueryWriteClient const &a, BigQueryWriteClient const &b)
Definition: bigquery_write_client.h:87
StatusOr< google::cloud::bigquery::storage::v1::BatchCommitWriteStreamsResponse > BatchCommitWriteStreams(google::cloud::bigquery::storage::v1::BatchCommitWriteStreamsRequest const &request, Options opts={})
Atomically commits a group of PENDING streams that belong to the same parent table.
StatusOr< google::cloud::bigquery::storage::v1::FlushRowsResponse > FlushRows(google::cloud::bigquery::storage::v1::FlushRowsRequest const &request, Options opts={})
Flushes rows to a BUFFERED stream.
BigQueryWriteClient(std::shared_ptr< BigQueryWriteConnection > connection, Options opts={})
StatusOr< google::cloud::bigquery::storage::v1::WriteStream > CreateWriteStream(std::string const &parent, google::cloud::bigquery::storage::v1::WriteStream const &write_stream, Options opts={})
Creates a write stream to the given table.
StatusOr< google::cloud::bigquery::storage::v1::FinalizeWriteStreamResponse > FinalizeWriteStream(std::string const &name, Options opts={})
Finalize a write stream so that no new data can be appended to the stream.
std::unique_ptr<::google::cloud::AsyncStreamingReadWriteRpc< google::cloud::bigquery::storage::v1::AppendRowsRequest, google::cloud::bigquery::storage::v1::AppendRowsResponse > > AsyncAppendRows(Options opts={})
Appends data to the given stream.
StatusOr< google::cloud::bigquery::storage::v1::WriteStream > GetWriteStream(std::string const &name, Options opts={})
Gets information about a write stream.
BigQueryWriteClient & operator=(BigQueryWriteClient const &)=default
StatusOr< google::cloud::bigquery::storage::v1::WriteStream > GetWriteStream(google::cloud::bigquery::storage::v1::GetWriteStreamRequest const &request, Options opts={})
Gets information about a write stream.
BigQueryWriteClient & operator=(BigQueryWriteClient &&)=default
The BigQueryWriteConnection object for BigQueryWriteClient.
Definition: bigquery_write_connection.h:61
Definition: bigquery_read_client.h:32
Definition: analytics_hub_client.h:30