Class ImportIaCError (0.3.0)

public final class ImportIaCError extends GeneratedMessage 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 Fields

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
Type Description
int

ERROR_CODE_FIELD_NUMBER

public static final int ERROR_CODE_FIELD_NUMBER
Field Value
Type Description
int

FILE_FIELD_NUMBER

public static final int FILE_FIELD_NUMBER
Field Value
Type Description
int

RANGE_FIELD_NUMBER

public static final int RANGE_FIELD_NUMBER
Field Value
Type Description
int

RESOURCE_ADDRESS_FIELD_NUMBER

public static final int RESOURCE_ADDRESS_FIELD_NUMBER
Field Value
Type Description
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ImportIaCError getDefaultInstance()
Returns
Type Description
ImportIaCError

getDescriptor()

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

newBuilder()

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

newBuilder(ImportIaCError prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

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.

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.

getParserForType()

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

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.

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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(AbstractMessage.BuilderParent parent)

protected ImportIaCError.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ImportIaCError.Builder
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

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