Class ResourceErrorDetail.Builder (0.50.0)

public static final class ResourceErrorDetail.Builder extends GeneratedMessageV3.Builder<ResourceErrorDetail.Builder> implements ResourceErrorDetailOrBuilder

Provides details for errors and the corresponding resources.

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

Static Methods

getDescriptor()

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

Methods

addAllErrorDetails(Iterable<? extends ErrorDetail> values)

public ResourceErrorDetail.Builder addAllErrorDetails(Iterable<? extends ErrorDetail> values)

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
values Iterable<? extends com.google.cloud.bigquery.migration.v2.ErrorDetail>
Returns
Type Description
ResourceErrorDetail.Builder

addErrorDetails(ErrorDetail value)

public ResourceErrorDetail.Builder addErrorDetails(ErrorDetail value)

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
value ErrorDetail
Returns
Type Description
ResourceErrorDetail.Builder

addErrorDetails(ErrorDetail.Builder builderForValue)

public ResourceErrorDetail.Builder addErrorDetails(ErrorDetail.Builder builderForValue)

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
builderForValue ErrorDetail.Builder
Returns
Type Description
ResourceErrorDetail.Builder

addErrorDetails(int index, ErrorDetail value)

public ResourceErrorDetail.Builder addErrorDetails(int index, ErrorDetail value)

Required. The error details for the resource.

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

Parameters
Name Description
index int
value ErrorDetail
Returns
Type Description
ResourceErrorDetail.Builder

addErrorDetails(int index, ErrorDetail.Builder builderForValue)

public ResourceErrorDetail.Builder addErrorDetails(int index, ErrorDetail.Builder builderForValue)

Required. The error details for the resource.

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

Parameters
Name Description
index int
builderForValue ErrorDetail.Builder
Returns
Type Description
ResourceErrorDetail.Builder

addErrorDetailsBuilder()

public ErrorDetail.Builder addErrorDetailsBuilder()

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
ErrorDetail.Builder

addErrorDetailsBuilder(int index)

public ErrorDetail.Builder addErrorDetailsBuilder(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.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ResourceErrorDetail.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ResourceErrorDetail.Builder
Overrides

build()

public ResourceErrorDetail build()
Returns
Type Description
ResourceErrorDetail

buildPartial()

public ResourceErrorDetail buildPartial()
Returns
Type Description
ResourceErrorDetail

clear()

public ResourceErrorDetail.Builder clear()
Returns
Type Description
ResourceErrorDetail.Builder
Overrides

clearErrorCount()

public ResourceErrorDetail.Builder clearErrorCount()

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
ResourceErrorDetail.Builder

This builder for chaining.

clearErrorDetails()

public ResourceErrorDetail.Builder clearErrorDetails()

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
ResourceErrorDetail.Builder

clearField(Descriptors.FieldDescriptor field)

public ResourceErrorDetail.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ResourceErrorDetail.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ResourceErrorDetail.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ResourceErrorDetail.Builder
Overrides

clearResourceInfo()

public ResourceErrorDetail.Builder clearResourceInfo()

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

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

Returns
Type Description
ResourceErrorDetail.Builder

clone()

public ResourceErrorDetail.Builder clone()
Returns
Type Description
ResourceErrorDetail.Builder
Overrides

getDefaultInstanceForType()

public ResourceErrorDetail getDefaultInstanceForType()
Returns
Type Description
ResourceErrorDetail

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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

getErrorDetailsBuilder(int index)

public ErrorDetail.Builder getErrorDetailsBuilder(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.Builder

getErrorDetailsBuilderList()

public List<ErrorDetail.Builder> getErrorDetailsBuilderList()

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<Builder>

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>

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.

getResourceInfoBuilder()

public ResourceInfo.Builder getResourceInfoBuilder()

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.Builder

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

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ResourceErrorDetail other)

public ResourceErrorDetail.Builder mergeFrom(ResourceErrorDetail other)
Parameter
Name Description
other ResourceErrorDetail
Returns
Type Description
ResourceErrorDetail.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ResourceErrorDetail.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResourceErrorDetail.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ResourceErrorDetail.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ResourceErrorDetail.Builder
Overrides

mergeResourceInfo(ResourceInfo value)

public ResourceErrorDetail.Builder mergeResourceInfo(ResourceInfo value)

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

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

Parameter
Name Description
value com.google.rpc.ResourceInfo
Returns
Type Description
ResourceErrorDetail.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ResourceErrorDetail.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ResourceErrorDetail.Builder
Overrides

removeErrorDetails(int index)

public ResourceErrorDetail.Builder removeErrorDetails(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
ResourceErrorDetail.Builder

setErrorCount(int value)

public ResourceErrorDetail.Builder setErrorCount(int value)

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];

Parameter
Name Description
value int

The errorCount to set.

Returns
Type Description
ResourceErrorDetail.Builder

This builder for chaining.

setErrorDetails(int index, ErrorDetail value)

public ResourceErrorDetail.Builder setErrorDetails(int index, ErrorDetail value)

Required. The error details for the resource.

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

Parameters
Name Description
index int
value ErrorDetail
Returns
Type Description
ResourceErrorDetail.Builder

setErrorDetails(int index, ErrorDetail.Builder builderForValue)

public ResourceErrorDetail.Builder setErrorDetails(int index, ErrorDetail.Builder builderForValue)

Required. The error details for the resource.

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

Parameters
Name Description
index int
builderForValue ErrorDetail.Builder
Returns
Type Description
ResourceErrorDetail.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ResourceErrorDetail.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ResourceErrorDetail.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ResourceErrorDetail.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ResourceErrorDetail.Builder
Overrides

setResourceInfo(ResourceInfo value)

public ResourceErrorDetail.Builder setResourceInfo(ResourceInfo value)

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

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

Parameter
Name Description
value com.google.rpc.ResourceInfo
Returns
Type Description
ResourceErrorDetail.Builder

setResourceInfo(ResourceInfo.Builder builderForValue)

public ResourceErrorDetail.Builder setResourceInfo(ResourceInfo.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue com.google.rpc.ResourceInfo.Builder
Returns
Type Description
ResourceErrorDetail.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ResourceErrorDetail.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ResourceErrorDetail.Builder
Overrides