Class ResourceErrorDetail (0.15.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
TypeDescription
int

ERROR_DETAILS_FIELD_NUMBER

public static final int ERROR_DETAILS_FIELD_NUMBER
Field Value
TypeDescription
int

RESOURCE_INFO_FIELD_NUMBER

public static final int RESOURCE_INFO_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ResourceErrorDetail getDefaultInstance()
Returns
TypeDescription
ResourceErrorDetail

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ResourceErrorDetail.Builder newBuilder()
Returns
TypeDescription
ResourceErrorDetail.Builder

newBuilder(ResourceErrorDetail prototype)

public static ResourceErrorDetail.Builder newBuilder(ResourceErrorDetail prototype)
Parameter
NameDescription
prototypeResourceErrorDetail
Returns
TypeDescription
ResourceErrorDetail.Builder

parseDelimitedFrom(InputStream input)

public static ResourceErrorDetail parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ResourceErrorDetail
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ResourceErrorDetail parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResourceErrorDetail
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ResourceErrorDetail parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ResourceErrorDetail
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ResourceErrorDetail parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResourceErrorDetail
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ResourceErrorDetail parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ResourceErrorDetail
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ResourceErrorDetail parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResourceErrorDetail
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ResourceErrorDetail parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ResourceErrorDetail
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ResourceErrorDetail parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResourceErrorDetail
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ResourceErrorDetail parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ResourceErrorDetail
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ResourceErrorDetail parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResourceErrorDetail
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ResourceErrorDetail parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ResourceErrorDetail
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ResourceErrorDetail parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResourceErrorDetail
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ResourceErrorDetail> parser()
Returns
TypeDescription
Parser<ResourceErrorDetail>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public ResourceErrorDetail getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.bigquery.migration.v2.ErrorDetailOrBuilder>

getParserForType()

public Parser<ResourceErrorDetail> getParserForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
com.google.rpc.ResourceInfoOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
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
TypeDescription
boolean

Whether the resourceInfo field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ResourceErrorDetail.Builder newBuilderForType()
Returns
TypeDescription
ResourceErrorDetail.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ResourceErrorDetail.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ResourceErrorDetail.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ResourceErrorDetail.Builder toBuilder()
Returns
TypeDescription
ResourceErrorDetail.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException