Class AppendRowsResponse
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.bigquery.storage.v1.AppendRowsResponse
-
- All Implemented Interfaces:
AppendRowsResponseOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class AppendRowsResponse extends com.google.protobuf.GeneratedMessageV3 implements AppendRowsResponseOrBuilder
Response message for `AppendRows`.
Protobuf typegoogle.cloud.bigquery.storage.v1.AppendRowsResponse
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AppendRowsResponse.AppendResult
AppendResult is returned for successful append requests.static interface
AppendRowsResponse.AppendResultOrBuilder
static class
AppendRowsResponse.Builder
Response message for `AppendRows`.static class
AppendRowsResponse.ResponseCase
-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
APPEND_RESULT_FIELD_NUMBER
static int
ERROR_FIELD_NUMBER
static int
ROW_ERRORS_FIELD_NUMBER
static int
UPDATED_SCHEMA_FIELD_NUMBER
static int
WRITE_STREAM_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
AppendRowsResponse.AppendResult
getAppendResult()
Result if the append is successful.AppendRowsResponse.AppendResultOrBuilder
getAppendResultOrBuilder()
Result if the append is successful.static AppendRowsResponse
getDefaultInstance()
AppendRowsResponse
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.rpc.Status
getError()
Error returned when problems were encountered.com.google.rpc.StatusOrBuilder
getErrorOrBuilder()
Error returned when problems were encountered.com.google.protobuf.Parser<AppendRowsResponse>
getParserForType()
AppendRowsResponse.ResponseCase
getResponseCase()
RowError
getRowErrors(int index)
If a request failed due to corrupted rows, no rows in the batch will be appended.int
getRowErrorsCount()
If a request failed due to corrupted rows, no rows in the batch will be appended.List<RowError>
getRowErrorsList()
If a request failed due to corrupted rows, no rows in the batch will be appended.RowErrorOrBuilder
getRowErrorsOrBuilder(int index)
If a request failed due to corrupted rows, no rows in the batch will be appended.List<? extends RowErrorOrBuilder>
getRowErrorsOrBuilderList()
If a request failed due to corrupted rows, no rows in the batch will be appended.int
getSerializedSize()
TableSchema
getUpdatedSchema()
If backend detects a schema update, pass it to user so that user can use it to input new type of message.TableSchemaOrBuilder
getUpdatedSchemaOrBuilder()
If backend detects a schema update, pass it to user so that user can use it to input new type of message.String
getWriteStream()
The target of the append operation.com.google.protobuf.ByteString
getWriteStreamBytes()
The target of the append operation.boolean
hasAppendResult()
Result if the append is successful.boolean
hasError()
Error returned when problems were encountered.int
hashCode()
boolean
hasUpdatedSchema()
If backend detects a schema update, pass it to user so that user can use it to input new type of message.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static AppendRowsResponse.Builder
newBuilder()
static AppendRowsResponse.Builder
newBuilder(AppendRowsResponse prototype)
AppendRowsResponse.Builder
newBuilderForType()
protected AppendRowsResponse.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static AppendRowsResponse
parseDelimitedFrom(InputStream input)
static AppendRowsResponse
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AppendRowsResponse
parseFrom(byte[] data)
static AppendRowsResponse
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AppendRowsResponse
parseFrom(com.google.protobuf.ByteString data)
static AppendRowsResponse
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AppendRowsResponse
parseFrom(com.google.protobuf.CodedInputStream input)
static AppendRowsResponse
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AppendRowsResponse
parseFrom(InputStream input)
static AppendRowsResponse
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AppendRowsResponse
parseFrom(ByteBuffer data)
static AppendRowsResponse
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<AppendRowsResponse>
parser()
AppendRowsResponse.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
APPEND_RESULT_FIELD_NUMBER
public static final int APPEND_RESULT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ERROR_FIELD_NUMBER
public static final int ERROR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
UPDATED_SCHEMA_FIELD_NUMBER
public static final int UPDATED_SCHEMA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ROW_ERRORS_FIELD_NUMBER
public static final int ROW_ERRORS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
WRITE_STREAM_FIELD_NUMBER
public static final int WRITE_STREAM_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getResponseCase
public AppendRowsResponse.ResponseCase getResponseCase()
- Specified by:
getResponseCase
in interfaceAppendRowsResponseOrBuilder
-
hasAppendResult
public boolean hasAppendResult()
Result if the append is successful.
.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1;
- Specified by:
hasAppendResult
in interfaceAppendRowsResponseOrBuilder
- Returns:
- Whether the appendResult field is set.
-
getAppendResult
public AppendRowsResponse.AppendResult getAppendResult()
Result if the append is successful.
.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1;
- Specified by:
getAppendResult
in interfaceAppendRowsResponseOrBuilder
- Returns:
- The appendResult.
-
getAppendResultOrBuilder
public AppendRowsResponse.AppendResultOrBuilder getAppendResultOrBuilder()
Result if the append is successful.
.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1;
- Specified by:
getAppendResultOrBuilder
in interfaceAppendRowsResponseOrBuilder
-
hasError
public boolean hasError()
Error returned when problems were encountered. If present, it indicates rows were not accepted into the system. Users can retry or continue with other append requests within the same connection. Additional information about error signalling: ALREADY_EXISTS: Happens when an append specified an offset, and the backend already has received data at this offset. Typically encountered in retry scenarios, and can be ignored. OUT_OF_RANGE: Returned when the specified offset in the stream is beyond the current end of the stream. INVALID_ARGUMENT: Indicates a malformed request or data. ABORTED: Request processing is aborted because of prior failures. The request can be retried if previous failure is addressed. INTERNAL: Indicates server side error(s) that can be retried.
.google.rpc.Status error = 2;
- Specified by:
hasError
in interfaceAppendRowsResponseOrBuilder
- Returns:
- Whether the error field is set.
-
getError
public com.google.rpc.Status getError()
Error returned when problems were encountered. If present, it indicates rows were not accepted into the system. Users can retry or continue with other append requests within the same connection. Additional information about error signalling: ALREADY_EXISTS: Happens when an append specified an offset, and the backend already has received data at this offset. Typically encountered in retry scenarios, and can be ignored. OUT_OF_RANGE: Returned when the specified offset in the stream is beyond the current end of the stream. INVALID_ARGUMENT: Indicates a malformed request or data. ABORTED: Request processing is aborted because of prior failures. The request can be retried if previous failure is addressed. INTERNAL: Indicates server side error(s) that can be retried.
.google.rpc.Status error = 2;
- Specified by:
getError
in interfaceAppendRowsResponseOrBuilder
- Returns:
- The error.
-
getErrorOrBuilder
public com.google.rpc.StatusOrBuilder getErrorOrBuilder()
Error returned when problems were encountered. If present, it indicates rows were not accepted into the system. Users can retry or continue with other append requests within the same connection. Additional information about error signalling: ALREADY_EXISTS: Happens when an append specified an offset, and the backend already has received data at this offset. Typically encountered in retry scenarios, and can be ignored. OUT_OF_RANGE: Returned when the specified offset in the stream is beyond the current end of the stream. INVALID_ARGUMENT: Indicates a malformed request or data. ABORTED: Request processing is aborted because of prior failures. The request can be retried if previous failure is addressed. INTERNAL: Indicates server side error(s) that can be retried.
.google.rpc.Status error = 2;
- Specified by:
getErrorOrBuilder
in interfaceAppendRowsResponseOrBuilder
-
hasUpdatedSchema
public boolean hasUpdatedSchema()
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.
.google.cloud.bigquery.storage.v1.TableSchema updated_schema = 3;
- Specified by:
hasUpdatedSchema
in interfaceAppendRowsResponseOrBuilder
- Returns:
- Whether the updatedSchema field is set.
-
getUpdatedSchema
public TableSchema getUpdatedSchema()
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.
.google.cloud.bigquery.storage.v1.TableSchema updated_schema = 3;
- Specified by:
getUpdatedSchema
in interfaceAppendRowsResponseOrBuilder
- Returns:
- The updatedSchema.
-
getUpdatedSchemaOrBuilder
public TableSchemaOrBuilder getUpdatedSchemaOrBuilder()
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.
.google.cloud.bigquery.storage.v1.TableSchema updated_schema = 3;
- Specified by:
getUpdatedSchemaOrBuilder
in interfaceAppendRowsResponseOrBuilder
-
getRowErrorsList
public List<RowError> getRowErrorsList()
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.
repeated .google.cloud.bigquery.storage.v1.RowError row_errors = 4;
- Specified by:
getRowErrorsList
in interfaceAppendRowsResponseOrBuilder
-
getRowErrorsOrBuilderList
public List<? extends RowErrorOrBuilder> getRowErrorsOrBuilderList()
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.
repeated .google.cloud.bigquery.storage.v1.RowError row_errors = 4;
- Specified by:
getRowErrorsOrBuilderList
in interfaceAppendRowsResponseOrBuilder
-
getRowErrorsCount
public int getRowErrorsCount()
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.
repeated .google.cloud.bigquery.storage.v1.RowError row_errors = 4;
- Specified by:
getRowErrorsCount
in interfaceAppendRowsResponseOrBuilder
-
getRowErrors
public RowError getRowErrors(int index)
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.
repeated .google.cloud.bigquery.storage.v1.RowError row_errors = 4;
- Specified by:
getRowErrors
in interfaceAppendRowsResponseOrBuilder
-
getRowErrorsOrBuilder
public RowErrorOrBuilder getRowErrorsOrBuilder(int index)
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.
repeated .google.cloud.bigquery.storage.v1.RowError row_errors = 4;
- Specified by:
getRowErrorsOrBuilder
in interfaceAppendRowsResponseOrBuilder
-
getWriteStream
public String getWriteStream()
The target of the append operation. Matches the write_stream in the corresponding request.
string write_stream = 5;
- Specified by:
getWriteStream
in interfaceAppendRowsResponseOrBuilder
- Returns:
- The writeStream.
-
getWriteStreamBytes
public com.google.protobuf.ByteString getWriteStreamBytes()
The target of the append operation. Matches the write_stream in the corresponding request.
string write_stream = 5;
- Specified by:
getWriteStreamBytes
in interfaceAppendRowsResponseOrBuilder
- Returns:
- The bytes for writeStream.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static AppendRowsResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AppendRowsResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AppendRowsResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AppendRowsResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AppendRowsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AppendRowsResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AppendRowsResponse parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static AppendRowsResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static AppendRowsResponse parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static AppendRowsResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static AppendRowsResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static AppendRowsResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public AppendRowsResponse.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static AppendRowsResponse.Builder newBuilder()
-
newBuilder
public static AppendRowsResponse.Builder newBuilder(AppendRowsResponse prototype)
-
toBuilder
public AppendRowsResponse.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AppendRowsResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static AppendRowsResponse getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<AppendRowsResponse> parser()
-
getParserForType
public com.google.protobuf.Parser<AppendRowsResponse> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public AppendRowsResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-