Class TerraformError.Builder (0.6.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TerraformError build()
Returns
TypeDescription
TerraformError

buildPartial()

public TerraformError buildPartial()
Returns
TypeDescription
TerraformError

clear()

public TerraformError.Builder clear()
Returns
TypeDescription
TerraformError.Builder
Overrides

clearError()

public TerraformError.Builder clearError()

Original error response from underlying Google API, if available.

.google.rpc.Status error = 4;

Returns
TypeDescription
TerraformError.Builder

clearErrorDescription()

public TerraformError.Builder clearErrorDescription()

A human-readable error description.

string error_description = 3;

Returns
TypeDescription
TerraformError.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public TerraformError.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
TerraformError.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public TerraformError getDefaultInstanceForType()
Returns
TypeDescription
TerraformError

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getError()

public Status getError()

Original error response from underlying Google API, if available.

.google.rpc.Status error = 4;

Returns
TypeDescription
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
TypeDescription
com.google.rpc.Status.Builder

getErrorDescription()

public String getErrorDescription()

A human-readable error description.

string error_description = 3;

Returns
TypeDescription
String

The errorDescription.

getErrorDescriptionBytes()

public ByteString getErrorDescriptionBytes()

A human-readable error description.

string error_description = 3;

Returns
TypeDescription
ByteString

The bytes for errorDescription.

getErrorOrBuilder()

public StatusOrBuilder getErrorOrBuilder()

Original error response from underlying Google API, if available.

.google.rpc.Status error = 4;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for resourceAddress.

hasError()

public boolean hasError()

Original error response from underlying Google API, if available.

.google.rpc.Status error = 4;

Returns
TypeDescription
boolean

Whether the error field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
TerraformError.Builder

mergeFrom(TerraformError other)

public TerraformError.Builder mergeFrom(TerraformError other)
Parameter
NameDescription
otherTerraformError
Returns
TypeDescription
TerraformError.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public TerraformError.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
TerraformError.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TerraformError.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
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
NameDescription
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
TerraformError.Builder

setErrorDescription(String value)

public TerraformError.Builder setErrorDescription(String value)

A human-readable error description.

string error_description = 3;

Parameter
NameDescription
valueString

The errorDescription to set.

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

The bytes for errorDescription to set.

Returns
TypeDescription
TerraformError.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public TerraformError.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueint

The httpResponseCode to set.

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

The resourceAddress to set.

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

The bytes for resourceAddress to set.

Returns
TypeDescription
TerraformError.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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