Class ResourceErrorDetail.Builder (0.7.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.bigquery.migration.v2.ErrorDetail>
Returns
TypeDescription
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
NameDescription
valueErrorDetail
Returns
TypeDescription
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
NameDescription
builderForValueErrorDetail.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueErrorDetail
Returns
TypeDescription
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
NameDescription
indexint
builderForValueErrorDetail.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ErrorDetail.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ResourceErrorDetail.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ResourceErrorDetail.Builder
Overrides

build()

public ResourceErrorDetail build()
Returns
TypeDescription
ResourceErrorDetail

buildPartial()

public ResourceErrorDetail buildPartial()
Returns
TypeDescription
ResourceErrorDetail

clear()

public ResourceErrorDetail.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ResourceErrorDetail.Builder

clearField(Descriptors.FieldDescriptor field)

public ResourceErrorDetail.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ResourceErrorDetail.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ResourceErrorDetail.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
ResourceErrorDetail.Builder

clone()

public ResourceErrorDetail.Builder clone()
Returns
TypeDescription
ResourceErrorDetail.Builder
Overrides

getDefaultInstanceForType()

public ResourceErrorDetail getDefaultInstanceForType()
Returns
TypeDescription
ResourceErrorDetail

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
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

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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
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>

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.

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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the resourceInfo field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ResourceErrorDetail other)

public ResourceErrorDetail.Builder mergeFrom(ResourceErrorDetail other)
Parameter
NameDescription
otherResourceErrorDetail
Returns
TypeDescription
ResourceErrorDetail.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ResourceErrorDetail.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResourceErrorDetail.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ResourceErrorDetail.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valuecom.google.rpc.ResourceInfo
Returns
TypeDescription
ResourceErrorDetail.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ResourceErrorDetail.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueint

The errorCount to set.

Returns
TypeDescription
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
NameDescription
indexint
valueErrorDetail
Returns
TypeDescription
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
NameDescription
indexint
builderForValueErrorDetail.Builder
Returns
TypeDescription
ResourceErrorDetail.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ResourceErrorDetail.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ResourceErrorDetail.Builder
Overrides

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

public ResourceErrorDetail.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valuecom.google.rpc.ResourceInfo
Returns
TypeDescription
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
NameDescription
builderForValuecom.google.rpc.ResourceInfo.Builder
Returns
TypeDescription
ResourceErrorDetail.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ResourceErrorDetail.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ResourceErrorDetail.Builder
Overrides