19#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_BIGQUERY_STORAGE_V1_BIGQUERY_WRITE_CONNECTION_H
20#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_BIGQUERY_STORAGE_V1_BIGQUERY_WRITE_CONNECTION_H
22#include "google/cloud/bigquery/storage/v1/bigquery_write_connection_idempotency_policy.h"
23#include "google/cloud/bigquery/storage/v1/internal/bigquery_write_retry_traits.h"
24#include "google/cloud/backoff_policy.h"
25#include "google/cloud/internal/async_read_write_stream_impl.h"
26#include "google/cloud/options.h"
27#include "google/cloud/status_or.h"
28#include "google/cloud/version.h"
29#include <google/cloud/bigquery/storage/v1/storage.pb.h>
35GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
37using BigQueryWriteRetryPolicy =
39 bigquery_storage_v1_internal::BigQueryWriteRetryTraits>;
41using BigQueryWriteLimitedTimeRetryPolicy =
43 bigquery_storage_v1_internal::BigQueryWriteRetryTraits>;
45using BigQueryWriteLimitedErrorCountRetryPolicy =
46 ::
google::
cloud::internal::LimitedErrorCountRetryPolicy<
47 bigquery_storage_v1_internal::BigQueryWriteRetryTraits>;
50
51
52
53
54
55
56
57
58
59
60
91 BatchCommitWriteStreamsRequest
const& request);
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
122GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
The BigQueryWriteConnection object for BigQueryWriteClient.
Definition: bigquery_write_connection.h:61
virtual StatusOr< google::cloud::bigquery::storage::v1::WriteStream > CreateWriteStream(google::cloud::bigquery::storage::v1::CreateWriteStreamRequest const &request)
virtual StatusOr< google::cloud::bigquery::storage::v1::FlushRowsResponse > FlushRows(google::cloud::bigquery::storage::v1::FlushRowsRequest const &request)
virtual Options options()
Definition: bigquery_write_connection.h:65
virtual StatusOr< google::cloud::bigquery::storage::v1::BatchCommitWriteStreamsResponse > BatchCommitWriteStreams(google::cloud::bigquery::storage::v1::BatchCommitWriteStreamsRequest const &request)
virtual ~BigQueryWriteConnection()=0
virtual std::unique_ptr<::google::cloud::AsyncStreamingReadWriteRpc< google::cloud::bigquery::storage::v1::AppendRowsRequest, google::cloud::bigquery::storage::v1::AppendRowsResponse > > AsyncAppendRows()
virtual StatusOr< google::cloud::bigquery::storage::v1::FinalizeWriteStreamResponse > FinalizeWriteStream(google::cloud::bigquery::storage::v1::FinalizeWriteStreamRequest const &request)
virtual StatusOr< google::cloud::bigquery::storage::v1::WriteStream > GetWriteStream(google::cloud::bigquery::storage::v1::GetWriteStreamRequest const &request)
Definition: bigquery_read_client.h:32
std::shared_ptr< BigQueryWriteConnection > MakeBigQueryWriteConnection(Options options={})
A factory function to construct an object of type BigQueryWriteConnection.
Definition: analytics_hub_client.h:30