public static final class StorageError.Builder extends GeneratedMessageV3.Builder<StorageError.Builder> implements StorageErrorOrBuilder
Structured custom BigQuery Storage error message. The error can be attached as error details in the returned rpc Status. In particular, the use of error codes allows more structured error handling, and reduces the need to evaluate unstructured error text strings.
Protobuf type google.cloud.bigquery.storage.v1.StorageError
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > StorageError.BuilderImplements
StorageErrorOrBuilderMethods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public StorageError.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
StorageError.Builder |
build()
public StorageError build()
Type | Description |
StorageError |
buildPartial()
public StorageError buildPartial()
Type | Description |
StorageError |
clear()
public StorageError.Builder clear()
Type | Description |
StorageError.Builder |
clearCode()
public StorageError.Builder clearCode()
BigQuery Storage specific error code.
.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode code = 1;
Type | Description |
StorageError.Builder | This builder for chaining. |
clearEntity()
public StorageError.Builder clearEntity()
Name of the failed entity.
string entity = 2;
Type | Description |
StorageError.Builder | This builder for chaining. |
clearErrorMessage()
public StorageError.Builder clearErrorMessage()
Message that describes the error.
string error_message = 3;
Type | Description |
StorageError.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public StorageError.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
StorageError.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public StorageError.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
StorageError.Builder |
clone()
public StorageError.Builder clone()
Type | Description |
StorageError.Builder |
getCode()
public StorageError.StorageErrorCode getCode()
BigQuery Storage specific error code.
.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode code = 1;
Type | Description |
StorageError.StorageErrorCode | The code. |
getCodeValue()
public int getCodeValue()
BigQuery Storage specific error code.
.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode code = 1;
Type | Description |
int | The enum numeric value on the wire for code. |
getDefaultInstanceForType()
public StorageError getDefaultInstanceForType()
Type | Description |
StorageError |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getEntity()
public String getEntity()
Name of the failed entity.
string entity = 2;
Type | Description |
String | The entity. |
getEntityBytes()
public ByteString getEntityBytes()
Name of the failed entity.
string entity = 2;
Type | Description |
ByteString | The bytes for entity. |
getErrorMessage()
public String getErrorMessage()
Message that describes the error.
string error_message = 3;
Type | Description |
String | The errorMessage. |
getErrorMessageBytes()
public ByteString getErrorMessageBytes()
Message that describes the error.
string error_message = 3;
Type | Description |
ByteString | The bytes for errorMessage. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(StorageError other)
public StorageError.Builder mergeFrom(StorageError other)
Name | Description |
other | StorageError |
Type | Description |
StorageError.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public StorageError.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
StorageError.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public StorageError.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
StorageError.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final StorageError.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
StorageError.Builder |
setCode(StorageError.StorageErrorCode value)
public StorageError.Builder setCode(StorageError.StorageErrorCode value)
BigQuery Storage specific error code.
.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode code = 1;
Name | Description |
value | StorageError.StorageErrorCode The code to set. |
Type | Description |
StorageError.Builder | This builder for chaining. |
setCodeValue(int value)
public StorageError.Builder setCodeValue(int value)
BigQuery Storage specific error code.
.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode code = 1;
Name | Description |
value | int The enum numeric value on the wire for code to set. |
Type | Description |
StorageError.Builder | This builder for chaining. |
setEntity(String value)
public StorageError.Builder setEntity(String value)
Name of the failed entity.
string entity = 2;
Name | Description |
value | String The entity to set. |
Type | Description |
StorageError.Builder | This builder for chaining. |
setEntityBytes(ByteString value)
public StorageError.Builder setEntityBytes(ByteString value)
Name of the failed entity.
string entity = 2;
Name | Description |
value | ByteString The bytes for entity to set. |
Type | Description |
StorageError.Builder | This builder for chaining. |
setErrorMessage(String value)
public StorageError.Builder setErrorMessage(String value)
Message that describes the error.
string error_message = 3;
Name | Description |
value | String The errorMessage to set. |
Type | Description |
StorageError.Builder | This builder for chaining. |
setErrorMessageBytes(ByteString value)
public StorageError.Builder setErrorMessageBytes(ByteString value)
Message that describes the error.
string error_message = 3;
Name | Description |
value | ByteString The bytes for errorMessage to set. |
Type | Description |
StorageError.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public StorageError.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
StorageError.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public StorageError.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
StorageError.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final StorageError.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
StorageError.Builder |