Class ImportIaCError.Builder (0.3.0)

public static final class ImportIaCError.Builder extends GeneratedMessage.Builder<ImportIaCError.Builder> implements ImportIaCErrorOrBuilder

Message representing the error encountered during import. Example: A variable with name "name" is expected to be of type string, but is provided as number, inside a module named "my_module". { resource_address: "module.my_module.name" file: "gs://my_bucket/main.tf" range: { start: { line: 2 byte_offset: 1 column: 2 } end: { line: 2 byte_offset: 10 column: 10 } } description: "Error parsing field: \"name\". Expected type \"string\" but got \"number\"." type: INVALID }

Protobuf type google.cloud.designcenter.v1.ImportIaCError

Static Methods

getDescriptor()

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

Methods

build()

public ImportIaCError build()
Returns
Type Description
ImportIaCError

buildPartial()

public ImportIaCError buildPartial()
Returns
Type Description
ImportIaCError

clear()

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

clearDescription()

public ImportIaCError.Builder clearDescription()

Output only. The description of the error.

string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ImportIaCError.Builder

This builder for chaining.

clearErrorCode()

public ImportIaCError.Builder clearErrorCode()

Output only. Specific error code for the import error.

.google.cloud.designcenter.v1.ImportIaCError.ErrorCode error_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ImportIaCError.Builder

This builder for chaining.

clearFile()

public ImportIaCError.Builder clearFile()

Output only. The file where the error has occurred.

string file = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ImportIaCError.Builder

This builder for chaining.

clearRange()

public ImportIaCError.Builder clearRange()

Output only. The code portion where this error occurs.

.google.cloud.designcenter.v1.CodeRange range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ImportIaCError.Builder

clearResourceAddress()

public ImportIaCError.Builder clearResourceAddress()

Output only. The resource address of the error.

string resource_address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ImportIaCError.Builder

This builder for chaining.

clearType()

public ImportIaCError.Builder clearType()

Output only. The type of error.

.google.cloud.designcenter.v1.ImportIaCError.Type type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ImportIaCError.Builder

This builder for chaining.

getDefaultInstanceForType()

public ImportIaCError getDefaultInstanceForType()
Returns
Type Description
ImportIaCError

getDescription()

public String getDescription()

Output only. The description of the error.

string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Output only. The description of the error.

string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getErrorCode()

public ImportIaCError.ErrorCode getErrorCode()

Output only. Specific error code for the import error.

.google.cloud.designcenter.v1.ImportIaCError.ErrorCode error_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ImportIaCError.ErrorCode

The errorCode.

getErrorCodeValue()

public int getErrorCodeValue()

Output only. Specific error code for the import error.

.google.cloud.designcenter.v1.ImportIaCError.ErrorCode error_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for errorCode.

getFile()

public String getFile()

Output only. The file where the error has occurred.

string file = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The file.

getFileBytes()

public ByteString getFileBytes()

Output only. The file where the error has occurred.

string file = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for file.

getRange()

public CodeRange getRange()

Output only. The code portion where this error occurs.

.google.cloud.designcenter.v1.CodeRange range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CodeRange

The range.

getRangeBuilder()

public CodeRange.Builder getRangeBuilder()

Output only. The code portion where this error occurs.

.google.cloud.designcenter.v1.CodeRange range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CodeRange.Builder

getRangeOrBuilder()

public CodeRangeOrBuilder getRangeOrBuilder()

Output only. The code portion where this error occurs.

.google.cloud.designcenter.v1.CodeRange range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CodeRangeOrBuilder

getResourceAddress()

public String getResourceAddress()

Output only. The resource address of the error.

string resource_address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The resourceAddress.

getResourceAddressBytes()

public ByteString getResourceAddressBytes()

Output only. The resource address of the error.

string resource_address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for resourceAddress.

getType()

public ImportIaCError.Type getType()

Output only. The type of error.

.google.cloud.designcenter.v1.ImportIaCError.Type type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ImportIaCError.Type

The type.

getTypeValue()

public int getTypeValue()

Output only. The type of error.

.google.cloud.designcenter.v1.ImportIaCError.Type type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for type.

hasRange()

public boolean hasRange()

Output only. The code portion where this error occurs.

.google.cloud.designcenter.v1.CodeRange range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the range field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ImportIaCError other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeRange(CodeRange value)

public ImportIaCError.Builder mergeRange(CodeRange value)

Output only. The code portion where this error occurs.

.google.cloud.designcenter.v1.CodeRange range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value CodeRange
Returns
Type Description
ImportIaCError.Builder

setDescription(String value)

public ImportIaCError.Builder setDescription(String value)

Output only. The description of the error.

string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The description to set.

Returns
Type Description
ImportIaCError.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public ImportIaCError.Builder setDescriptionBytes(ByteString value)

Output only. The description of the error.

string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
ImportIaCError.Builder

This builder for chaining.

setErrorCode(ImportIaCError.ErrorCode value)

public ImportIaCError.Builder setErrorCode(ImportIaCError.ErrorCode value)

Output only. Specific error code for the import error.

.google.cloud.designcenter.v1.ImportIaCError.ErrorCode error_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ImportIaCError.ErrorCode

The errorCode to set.

Returns
Type Description
ImportIaCError.Builder

This builder for chaining.

setErrorCodeValue(int value)

public ImportIaCError.Builder setErrorCodeValue(int value)

Output only. Specific error code for the import error.

.google.cloud.designcenter.v1.ImportIaCError.ErrorCode error_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for errorCode to set.

Returns
Type Description
ImportIaCError.Builder

This builder for chaining.

setFile(String value)

public ImportIaCError.Builder setFile(String value)

Output only. The file where the error has occurred.

string file = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The file to set.

Returns
Type Description
ImportIaCError.Builder

This builder for chaining.

setFileBytes(ByteString value)

public ImportIaCError.Builder setFileBytes(ByteString value)

Output only. The file where the error has occurred.

string file = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for file to set.

Returns
Type Description
ImportIaCError.Builder

This builder for chaining.

setRange(CodeRange value)

public ImportIaCError.Builder setRange(CodeRange value)

Output only. The code portion where this error occurs.

.google.cloud.designcenter.v1.CodeRange range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value CodeRange
Returns
Type Description
ImportIaCError.Builder

setRange(CodeRange.Builder builderForValue)

public ImportIaCError.Builder setRange(CodeRange.Builder builderForValue)

Output only. The code portion where this error occurs.

.google.cloud.designcenter.v1.CodeRange range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue CodeRange.Builder
Returns
Type Description
ImportIaCError.Builder

setResourceAddress(String value)

public ImportIaCError.Builder setResourceAddress(String value)

Output only. The resource address of the error.

string resource_address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The resourceAddress to set.

Returns
Type Description
ImportIaCError.Builder

This builder for chaining.

setResourceAddressBytes(ByteString value)

public ImportIaCError.Builder setResourceAddressBytes(ByteString value)

Output only. The resource address of the error.

string resource_address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for resourceAddress to set.

Returns
Type Description
ImportIaCError.Builder

This builder for chaining.

setType(ImportIaCError.Type value)

public ImportIaCError.Builder setType(ImportIaCError.Type value)

Output only. The type of error.

.google.cloud.designcenter.v1.ImportIaCError.Type type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ImportIaCError.Type

The type to set.

Returns
Type Description
ImportIaCError.Builder

This builder for chaining.

setTypeValue(int value)

public ImportIaCError.Builder setTypeValue(int value)

Output only. The type of error.

.google.cloud.designcenter.v1.ImportIaCError.Type type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for type to set.

Returns
Type Description
ImportIaCError.Builder

This builder for chaining.