Class TerraformError.Builder (0.32.0)

public static final class TerraformError.Builder extends GeneratedMessageV3.Builder<TerraformError.Builder> implements TerraformErrorOrBuilder

Errors encountered during actuation using Terraform

Protobuf type google.cloud.config.v1.TerraformError

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TerraformError build()
Returns
Type Description
TerraformError

buildPartial()

public TerraformError buildPartial()
Returns
Type Description
TerraformError

clear()

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

clearError()

public TerraformError.Builder clearError()

Original error response from underlying Google API, if available.

.google.rpc.Status error = 4;

Returns
Type Description
TerraformError.Builder

clearErrorDescription()

public TerraformError.Builder clearErrorDescription()

A human-readable error description.

string error_description = 3;

Returns
Type Description
TerraformError.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearHttpResponseCode()

public TerraformError.Builder clearHttpResponseCode()

HTTP response code returned from Google Cloud Platform APIs when Terraform fails to provision the resource. If unset or 0, no HTTP response code was returned by Terraform.

int32 http_response_code = 2;

Returns
Type Description
TerraformError.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearResourceAddress()

public TerraformError.Builder clearResourceAddress()

Address of the resource associated with the error, e.g. google_compute_network.vpc_network.

string resource_address = 1;

Returns
Type Description
TerraformError.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public TerraformError getDefaultInstanceForType()
Returns
Type Description
TerraformError

getDescriptorForType()

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

getError()

public Status getError()

Original error response from underlying Google API, if available.

.google.rpc.Status error = 4;

Returns
Type Description
com.google.rpc.Status

The error.

getErrorBuilder()

public Status.Builder getErrorBuilder()

Original error response from underlying Google API, if available.

.google.rpc.Status error = 4;

Returns
Type Description
com.google.rpc.Status.Builder

getErrorDescription()

public String getErrorDescription()

A human-readable error description.

string error_description = 3;

Returns
Type Description
String

The errorDescription.

getErrorDescriptionBytes()

public ByteString getErrorDescriptionBytes()

A human-readable error description.

string error_description = 3;

Returns
Type Description
ByteString

The bytes for errorDescription.

getErrorOrBuilder()

public StatusOrBuilder getErrorOrBuilder()

Original error response from underlying Google API, if available.

.google.rpc.Status error = 4;

Returns
Type Description
com.google.rpc.StatusOrBuilder

getHttpResponseCode()

public int getHttpResponseCode()

HTTP response code returned from Google Cloud Platform APIs when Terraform fails to provision the resource. If unset or 0, no HTTP response code was returned by Terraform.

int32 http_response_code = 2;

Returns
Type Description
int

The httpResponseCode.

getResourceAddress()

public String getResourceAddress()

Address of the resource associated with the error, e.g. google_compute_network.vpc_network.

string resource_address = 1;

Returns
Type Description
String

The resourceAddress.

getResourceAddressBytes()

public ByteString getResourceAddressBytes()

Address of the resource associated with the error, e.g. google_compute_network.vpc_network.

string resource_address = 1;

Returns
Type Description
ByteString

The bytes for resourceAddress.

hasError()

public boolean hasError()

Original error response from underlying Google API, if available.

.google.rpc.Status error = 4;

Returns
Type Description
boolean

Whether the error field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeError(Status value)

public TerraformError.Builder mergeError(Status value)

Original error response from underlying Google API, if available.

.google.rpc.Status error = 4;

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
TerraformError.Builder

mergeFrom(TerraformError other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setError(Status value)

public TerraformError.Builder setError(Status value)

Original error response from underlying Google API, if available.

.google.rpc.Status error = 4;

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
TerraformError.Builder

setError(Status.Builder builderForValue)

public TerraformError.Builder setError(Status.Builder builderForValue)

Original error response from underlying Google API, if available.

.google.rpc.Status error = 4;

Parameter
Name Description
builderForValue com.google.rpc.Status.Builder
Returns
Type Description
TerraformError.Builder

setErrorDescription(String value)

public TerraformError.Builder setErrorDescription(String value)

A human-readable error description.

string error_description = 3;

Parameter
Name Description
value String

The errorDescription to set.

Returns
Type Description
TerraformError.Builder

This builder for chaining.

setErrorDescriptionBytes(ByteString value)

public TerraformError.Builder setErrorDescriptionBytes(ByteString value)

A human-readable error description.

string error_description = 3;

Parameter
Name Description
value ByteString

The bytes for errorDescription to set.

Returns
Type Description
TerraformError.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setHttpResponseCode(int value)

public TerraformError.Builder setHttpResponseCode(int value)

HTTP response code returned from Google Cloud Platform APIs when Terraform fails to provision the resource. If unset or 0, no HTTP response code was returned by Terraform.

int32 http_response_code = 2;

Parameter
Name Description
value int

The httpResponseCode to set.

Returns
Type Description
TerraformError.Builder

This builder for chaining.

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

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

setResourceAddress(String value)

public TerraformError.Builder setResourceAddress(String value)

Address of the resource associated with the error, e.g. google_compute_network.vpc_network.

string resource_address = 1;

Parameter
Name Description
value String

The resourceAddress to set.

Returns
Type Description
TerraformError.Builder

This builder for chaining.

setResourceAddressBytes(ByteString value)

public TerraformError.Builder setResourceAddressBytes(ByteString value)

Address of the resource associated with the error, e.g. google_compute_network.vpc_network.

string resource_address = 1;

Parameter
Name Description
value ByteString

The bytes for resourceAddress to set.

Returns
Type Description
TerraformError.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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