proto_docs/google/cloud/bigquery/storage/v1/storage.rb in google-cloud-bigquery-storage-v1-0.10.1 vs proto_docs/google/cloud/bigquery/storage/v1/storage.rb in google-cloud-bigquery-storage-v1-0.11.0

- old
+ new

@@ -33,15 +33,17 @@ # @!attribute [rw] max_stream_count # @return [::Integer] # Max initial number of streams. If unset or zero, the server will # provide a value of streams so as to produce reasonable throughput. Must be # non-negative. The number of streams may be lower than the requested number, - # depending on the amount parallelism that is reasonable for the table. Error - # will be returned if the max count is greater than the current system - # max limit of 1,000. + # depending on the amount parallelism that is reasonable for the table. + # There is a default system max limit of 1,000. # - # Streams must be read starting from offset 0. + # This must be greater than or equal to preferred_min_stream_count. + # Typically, clients should either leave this unset to let the system to + # determine an upper bound OR set this a size for the maximum "units of work" + # it can gracefully handle. class CreateReadSessionRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end @@ -260,10 +262,15 @@ # @!attribute [rw] updated_schema # @return [::Google::Cloud::Bigquery::Storage::V1::TableSchema] # If backend detects a schema update, pass it to user so that user can # use it to input new type of message. It will be empty when no schema # updates have occurred. + # @!attribute [rw] row_errors + # @return [::Array<::Google::Cloud::Bigquery::Storage::V1::RowError>] + # If a request failed due to corrupted rows, no rows in the batch will be + # appended. The API will return row level error info, so that the caller can + # remove the bad rows and retry the request. class AppendRowsResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # AppendResult is returned for successful append requests. @@ -409,9 +416,33 @@ # Offset already exists. OFFSET_ALREADY_EXISTS = 8 # Offset out of range. OFFSET_OUT_OF_RANGE = 9 + end + end + + # The message that presents row level error info in a request. + # @!attribute [rw] index + # @return [::Integer] + # Index of the malformed row in the request. + # @!attribute [rw] code + # @return [::Google::Cloud::Bigquery::Storage::V1::RowError::RowErrorCode] + # Structured error reason for a row error. + # @!attribute [rw] message + # @return [::String] + # Description of the issue encountered when processing the row. + class RowError + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Error code for `RowError`. + module RowErrorCode + # Default error. + ROW_ERROR_CODE_UNSPECIFIED = 0 + + # One or more fields in the row has errors. + FIELDS_ERROR = 1 end end end end end