Class ResourceErrorDetail (0.48.0)

public final class ResourceErrorDetail extends GeneratedMessageV3 implements ResourceErrorDetailOrBuilder

Provides details for errors and the corresponding resources.

Protobuf type google.cloud.bigquery.migration.v2.ResourceErrorDetail

Static Fields

ERROR_COUNT_FIELD_NUMBER

public static final int ERROR_COUNT_FIELD_NUMBER
Field Value
Type Description
int

ERROR_DETAILS_FIELD_NUMBER

public static final int ERROR_DETAILS_FIELD_NUMBER
Field Value
Type Description
int

RESOURCE_INFO_FIELD_NUMBER

public static final int RESOURCE_INFO_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ResourceErrorDetail getDefaultInstance()
Returns
Type Description
ResourceErrorDetail

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static ResourceErrorDetail.Builder newBuilder()
Returns
Type Description
ResourceErrorDetail.Builder

newBuilder(ResourceErrorDetail prototype)

public static ResourceErrorDetail.Builder newBuilder(ResourceErrorDetail prototype)
Parameter
Name Description
prototype ResourceErrorDetail
Returns
Type Description
ResourceErrorDetail.Builder

parseDelimitedFrom(InputStream input)

public static ResourceErrorDetail parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ResourceErrorDetail
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ResourceErrorDetail parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResourceErrorDetail
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ResourceErrorDetail parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ResourceErrorDetail
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ResourceErrorDetail parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResourceErrorDetail
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ResourceErrorDetail parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ResourceErrorDetail
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ResourceErrorDetail parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResourceErrorDetail
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ResourceErrorDetail parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ResourceErrorDetail
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ResourceErrorDetail parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResourceErrorDetail
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ResourceErrorDetail parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ResourceErrorDetail
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ResourceErrorDetail parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResourceErrorDetail
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ResourceErrorDetail parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ResourceErrorDetail
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ResourceErrorDetail parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResourceErrorDetail
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ResourceErrorDetail> parser()
Returns
Type Description
Parser<ResourceErrorDetail>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public ResourceErrorDetail getDefaultInstanceForType()
Returns
Type Description
ResourceErrorDetail

getErrorCount()

public int getErrorCount()

Required. How many errors there are in total for the resource. Truncation can be indicated by having an error_count that is higher than the size of error_details.

int32 error_count = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The errorCount.

getErrorDetails(int index)

public ErrorDetail getErrorDetails(int index)

Required. The error details for the resource.

repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
ErrorDetail

getErrorDetailsCount()

public int getErrorDetailsCount()

Required. The error details for the resource.

repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getErrorDetailsList()

public List<ErrorDetail> getErrorDetailsList()

Required. The error details for the resource.

repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<ErrorDetail>

getErrorDetailsOrBuilder(int index)

public ErrorDetailOrBuilder getErrorDetailsOrBuilder(int index)

Required. The error details for the resource.

repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
ErrorDetailOrBuilder

getErrorDetailsOrBuilderList()

public List<? extends ErrorDetailOrBuilder> getErrorDetailsOrBuilderList()

Required. The error details for the resource.

repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.bigquery.migration.v2.ErrorDetailOrBuilder>

getParserForType()

public Parser<ResourceErrorDetail> getParserForType()
Returns
Type Description
Parser<ResourceErrorDetail>
Overrides

getResourceInfo()

public ResourceInfo getResourceInfo()

Required. Information about the resource where the error is located.

.google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
com.google.rpc.ResourceInfo

The resourceInfo.

getResourceInfoOrBuilder()

public ResourceInfoOrBuilder getResourceInfoOrBuilder()

Required. Information about the resource where the error is located.

.google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
com.google.rpc.ResourceInfoOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasResourceInfo()

public boolean hasResourceInfo()

Required. Information about the resource where the error is located.

.google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the resourceInfo field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ResourceErrorDetail.Builder newBuilderForType()
Returns
Type Description
ResourceErrorDetail.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ResourceErrorDetail.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ResourceErrorDetail.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ResourceErrorDetail.Builder toBuilder()
Returns
Type Description
ResourceErrorDetail.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException