This is an experimental RPC service definition for the BigQuery Table Service.
It should not be relied on for production use cases at this time.
Equality
Instances of this class created via copy-construction or copy-assignment always compare equal. Instances created with equal std::shared_ptr<*Connection> objects compare equal. Objects that compare equal share the same underlying resources.
Performance
Creating a new instance of this class is a relatively expensive operation, new objects establish new connections to the service. In contrast, copy-construction, move-construction, and the corresponding assignment operations are relatively efficient as the copies share all underlying resources.
Thread Safety
Concurrent access to different instances of this class, even if they compare equal, is guaranteed to work. Two or more threads operating on the same instance of this class is not guaranteed to work. Since copy-construction and move-construction is a relatively efficient operation, consider using such a copy when using this class from multiple threads.
Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.bigquery.v2.GetTableRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.
opts
Options
Optional. Override the class-level options, such as retry and backoff policies.
Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.bigquery.v2.InsertTableRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.
opts
Options
Optional. Override the class-level options, such as retry and backoff policies.
The update method replaces the entire table resource, whereas the patch method only replaces fields that are provided in the submitted table resource. This method supports RFC5789 patch semantics.
Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.bigquery.v2.UpdateOrPatchTableRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.
opts
Options
Optional. Override the class-level options, such as retry and backoff policies.
Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.bigquery.v2.UpdateOrPatchTableRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.
opts
Options
Optional. Override the class-level options, such as retry and backoff policies.
Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.bigquery.v2.DeleteTableRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.
opts
Options
Optional. Override the class-level options, such as retry and backoff policies.
Returns
Type
Description
Status
a Status object. If the request failed, the status contains the details of the failure.
Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.bigquery.v2.ListTablesRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.
opts
Options
Optional. Override the class-level options, such as retry and backoff policies.
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has begin() and end() member functions returning a iterator class meeting the input iterator requirements. The value type for this iterator is a StatusOr as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the StatusOr<T> contains elements of type google.cloud.bigquery.v2.ListFormatTable, or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the Protobuf mapping rules.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-14 UTC."],[[["\u003cp\u003eThis experimental RPC service definition for the BigQuery Table Service should not be used for production use cases at this time.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTableServiceClient\u003c/code\u003e class provides methods for managing BigQuery tables, such as creating, retrieving, updating, patching, deleting, and listing tables.\u003c/p\u003e\n"],["\u003cp\u003eCreating a new instance of the \u003ccode\u003eTableServiceClient\u003c/code\u003e is relatively expensive, while copy-construction, move-construction, and assignment operations are efficient because they share underlying resources.\u003c/p\u003e\n"],["\u003cp\u003eThe class supports concurrent access to different instances, but multiple threads operating on the same instance are not guaranteed to work, so you should consider using copies in multithreaded situations.\u003c/p\u003e\n"],["\u003cp\u003eThe latest release candidate version for this class is \u003ca href=\"/cpp/docs/reference/bigquerycontrol/latest/classgoogle_1_1cloud_1_1bigquerycontrol__v2_1_1TableServiceClient\"\u003e2.37.0-rc\u003c/a\u003e with subsequent releases ranging down to \u003ca href=\"/cpp/docs/reference/bigquerycontrol/2.27.0/classgoogle_1_1cloud_1_1bigquerycontrol__v2_1_1TableServiceClient\"\u003e2.27.0\u003c/a\u003e.\u003c/p\u003e\n"]]],[],null,["# Class TableServiceClient (2.27.0)\n\nVersion 2.27.0keyboard_arrow_down\n\n- [2.42.0-rc (latest)](/cpp/docs/reference/bigquerycontrol/latest/classgoogle_1_1cloud_1_1bigquerycontrol__v2_1_1TableServiceClient)\n- [2.41.0](/cpp/docs/reference/bigquerycontrol/2.41.0/classgoogle_1_1cloud_1_1bigquerycontrol__v2_1_1TableServiceClient)\n- [2.40.0](/cpp/docs/reference/bigquerycontrol/2.40.0/classgoogle_1_1cloud_1_1bigquerycontrol__v2_1_1TableServiceClient)\n- [2.39.0](/cpp/docs/reference/bigquerycontrol/2.39.0/classgoogle_1_1cloud_1_1bigquerycontrol__v2_1_1TableServiceClient)\n- [2.38.0](/cpp/docs/reference/bigquerycontrol/2.38.0/classgoogle_1_1cloud_1_1bigquerycontrol__v2_1_1TableServiceClient)\n- [2.37.0](/cpp/docs/reference/bigquerycontrol/2.37.0/classgoogle_1_1cloud_1_1bigquerycontrol__v2_1_1TableServiceClient)\n- [2.36.0](/cpp/docs/reference/bigquerycontrol/2.36.0/classgoogle_1_1cloud_1_1bigquerycontrol__v2_1_1TableServiceClient)\n- [2.35.0](/cpp/docs/reference/bigquerycontrol/2.35.0/classgoogle_1_1cloud_1_1bigquerycontrol__v2_1_1TableServiceClient)\n- [2.34.0](/cpp/docs/reference/bigquerycontrol/2.34.0/classgoogle_1_1cloud_1_1bigquerycontrol__v2_1_1TableServiceClient)\n- [2.33.0](/cpp/docs/reference/bigquerycontrol/2.33.0/classgoogle_1_1cloud_1_1bigquerycontrol__v2_1_1TableServiceClient)\n- [2.32.0](/cpp/docs/reference/bigquerycontrol/2.32.0/classgoogle_1_1cloud_1_1bigquerycontrol__v2_1_1TableServiceClient)\n- [2.31.0](/cpp/docs/reference/bigquerycontrol/2.31.0/classgoogle_1_1cloud_1_1bigquerycontrol__v2_1_1TableServiceClient)\n- [2.30.0](/cpp/docs/reference/bigquerycontrol/2.30.0/classgoogle_1_1cloud_1_1bigquerycontrol__v2_1_1TableServiceClient)\n- [2.29.0](/cpp/docs/reference/bigquerycontrol/2.29.0/classgoogle_1_1cloud_1_1bigquerycontrol__v2_1_1TableServiceClient)\n- [2.28.0](/cpp/docs/reference/bigquerycontrol/2.28.0/classgoogle_1_1cloud_1_1bigquerycontrol__v2_1_1TableServiceClient)\n- [2.27.0](/cpp/docs/reference/bigquerycontrol/2.27.0/classgoogle_1_1cloud_1_1bigquerycontrol__v2_1_1TableServiceClient) \nThis is an experimental RPC service definition for the BigQuery Table Service. \nIt should not be relied on for production use cases at this time.\n\n###### Equality\n\nInstances of this class created via copy-construction or copy-assignment always compare equal. Instances created with equal `std::shared_ptr\u003c*Connection\u003e` objects compare equal. Objects that compare equal share the same underlying resources.\n\n###### Performance\n\nCreating a new instance of this class is a relatively expensive operation, new objects establish new connections to the service. In contrast, copy-construction, move-construction, and the corresponding assignment operations are relatively efficient as the copies share all underlying resources.\n\n###### Thread Safety\n\nConcurrent access to different instances of this class, even if they compare equal, is guaranteed to work. Two or more threads operating on the same instance of this class is not guaranteed to work. Since copy-construction and move-construction is a relatively efficient operation, consider using such a copy when using this class from multiple threads.\n\nConstructors\n------------\n\n### TableServiceClient(TableServiceClient const \\&)\n\nCopy and move support\n\n### TableServiceClient(TableServiceClient \\&\\&)\n\nCopy and move support\n\n### TableServiceClient(std::shared_ptr\\\u003c TableServiceConnection \\\u003e, Options)\n\nOperators\n---------\n\n### operator=(TableServiceClient const \\&)\n\nCopy and move support\n\n### operator=(TableServiceClient \\&\\&)\n\nCopy and move support\n\nFunctions\n---------\n\n### GetTable(google::cloud::bigquery::v2::GetTableRequest const \\&, Options)\n\nGets the specified table resource by table ID. \nThis method does not return the data in the table, it only returns the table resource, which describes the structure of this table.\n\n### InsertTable(google::cloud::bigquery::v2::InsertTableRequest const \\&, Options)\n\nCreates a new, empty table in the dataset.\n\n### PatchTable(google::cloud::bigquery::v2::UpdateOrPatchTableRequest const \\&, Options)\n\nUpdates information in an existing table. \nThe update method replaces the entire table resource, whereas the patch method only replaces fields that are provided in the submitted table resource. This method supports RFC5789 patch semantics.\n\n### UpdateTable(google::cloud::bigquery::v2::UpdateOrPatchTableRequest const \\&, Options)\n\nUpdates information in an existing table. \nThe update method replaces the entire Table resource, whereas the patch method only replaces fields that are provided in the submitted Table resource.\n\n### DeleteTable(google::cloud::bigquery::v2::DeleteTableRequest const \\&, Options)\n\nDeletes the table specified by tableId from the dataset. \nIf the table contains data, all the data will be deleted.\n\n### ListTables(google::cloud::bigquery::v2::ListTablesRequest, Options)\n\nLists all tables in the specified dataset. \nRequires the READER dataset role."]]