Class ResourceDrift.Builder (0.45.0)

public static final class ResourceDrift.Builder extends GeneratedMessageV3.Builder<ResourceDrift.Builder> implements ResourceDriftOrBuilder

A resource drift represents a drift to a resource in the state file.

Protobuf type google.cloud.config.v1.ResourceDrift

Static Methods

getDescriptor()

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

Methods

addAllPropertyDrifts(Iterable<? extends PropertyDrift> values)

public ResourceDrift.Builder addAllPropertyDrifts(Iterable<? extends PropertyDrift> values)

Output only. The property drifts of the resource drift.

repeated .google.cloud.config.v1.PropertyDrift property_drifts = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.cloud.config.v1.PropertyDrift>
Returns
Type Description
ResourceDrift.Builder

addPropertyDrifts(PropertyDrift value)

public ResourceDrift.Builder addPropertyDrifts(PropertyDrift value)

Output only. The property drifts of the resource drift.

repeated .google.cloud.config.v1.PropertyDrift property_drifts = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value PropertyDrift
Returns
Type Description
ResourceDrift.Builder

addPropertyDrifts(PropertyDrift.Builder builderForValue)

public ResourceDrift.Builder addPropertyDrifts(PropertyDrift.Builder builderForValue)

Output only. The property drifts of the resource drift.

repeated .google.cloud.config.v1.PropertyDrift property_drifts = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue PropertyDrift.Builder
Returns
Type Description
ResourceDrift.Builder

addPropertyDrifts(int index, PropertyDrift value)

public ResourceDrift.Builder addPropertyDrifts(int index, PropertyDrift value)

Output only. The property drifts of the resource drift.

repeated .google.cloud.config.v1.PropertyDrift property_drifts = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value PropertyDrift
Returns
Type Description
ResourceDrift.Builder

addPropertyDrifts(int index, PropertyDrift.Builder builderForValue)

public ResourceDrift.Builder addPropertyDrifts(int index, PropertyDrift.Builder builderForValue)

Output only. The property drifts of the resource drift.

repeated .google.cloud.config.v1.PropertyDrift property_drifts = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue PropertyDrift.Builder
Returns
Type Description
ResourceDrift.Builder

addPropertyDriftsBuilder()

public PropertyDrift.Builder addPropertyDriftsBuilder()

Output only. The property drifts of the resource drift.

repeated .google.cloud.config.v1.PropertyDrift property_drifts = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PropertyDrift.Builder

addPropertyDriftsBuilder(int index)

public PropertyDrift.Builder addPropertyDriftsBuilder(int index)

Output only. The property drifts of the resource drift.

repeated .google.cloud.config.v1.PropertyDrift property_drifts = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
PropertyDrift.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ResourceDrift build()
Returns
Type Description
ResourceDrift

buildPartial()

public ResourceDrift buildPartial()
Returns
Type Description
ResourceDrift

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public ResourceDrift.Builder clearName()

Identifier. The name of the resource drift. Format: 'projects/{project_id}/locations/{location}/previews/{preview}/resourceDrifts/{resource_drift}'.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ResourceDrift.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPropertyDrifts()

public ResourceDrift.Builder clearPropertyDrifts()

Output only. The property drifts of the resource drift.

repeated .google.cloud.config.v1.PropertyDrift property_drifts = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ResourceDrift.Builder

clearTerraformInfo()

public ResourceDrift.Builder clearTerraformInfo()

Output only. Terraform info of the resource drift.

.google.cloud.config.v1.ResourceDriftTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ResourceDrift.Builder

clone()

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

getDefaultInstanceForType()

public ResourceDrift getDefaultInstanceForType()
Returns
Type Description
ResourceDrift

getDescriptorForType()

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

getName()

public String getName()

Identifier. The name of the resource drift. Format: 'projects/{project_id}/locations/{location}/previews/{preview}/resourceDrifts/{resource_drift}'.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The name of the resource drift. Format: 'projects/{project_id}/locations/{location}/previews/{preview}/resourceDrifts/{resource_drift}'.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getPropertyDrifts(int index)

public PropertyDrift getPropertyDrifts(int index)

Output only. The property drifts of the resource drift.

repeated .google.cloud.config.v1.PropertyDrift property_drifts = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
PropertyDrift

getPropertyDriftsBuilder(int index)

public PropertyDrift.Builder getPropertyDriftsBuilder(int index)

Output only. The property drifts of the resource drift.

repeated .google.cloud.config.v1.PropertyDrift property_drifts = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
PropertyDrift.Builder

getPropertyDriftsBuilderList()

public List<PropertyDrift.Builder> getPropertyDriftsBuilderList()

Output only. The property drifts of the resource drift.

repeated .google.cloud.config.v1.PropertyDrift property_drifts = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getPropertyDriftsCount()

public int getPropertyDriftsCount()

Output only. The property drifts of the resource drift.

repeated .google.cloud.config.v1.PropertyDrift property_drifts = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getPropertyDriftsList()

public List<PropertyDrift> getPropertyDriftsList()

Output only. The property drifts of the resource drift.

repeated .google.cloud.config.v1.PropertyDrift property_drifts = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<PropertyDrift>

getPropertyDriftsOrBuilder(int index)

public PropertyDriftOrBuilder getPropertyDriftsOrBuilder(int index)

Output only. The property drifts of the resource drift.

repeated .google.cloud.config.v1.PropertyDrift property_drifts = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
PropertyDriftOrBuilder

getPropertyDriftsOrBuilderList()

public List<? extends PropertyDriftOrBuilder> getPropertyDriftsOrBuilderList()

Output only. The property drifts of the resource drift.

repeated .google.cloud.config.v1.PropertyDrift property_drifts = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.config.v1.PropertyDriftOrBuilder>

getTerraformInfo()

public ResourceDriftTerraformInfo getTerraformInfo()

Output only. Terraform info of the resource drift.

.google.cloud.config.v1.ResourceDriftTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ResourceDriftTerraformInfo

The terraformInfo.

getTerraformInfoBuilder()

public ResourceDriftTerraformInfo.Builder getTerraformInfoBuilder()

Output only. Terraform info of the resource drift.

.google.cloud.config.v1.ResourceDriftTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ResourceDriftTerraformInfo.Builder

getTerraformInfoOrBuilder()

public ResourceDriftTerraformInfoOrBuilder getTerraformInfoOrBuilder()

Output only. Terraform info of the resource drift.

.google.cloud.config.v1.ResourceDriftTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ResourceDriftTerraformInfoOrBuilder

hasTerraformInfo()

public boolean hasTerraformInfo()

Output only. Terraform info of the resource drift.

.google.cloud.config.v1.ResourceDriftTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the terraformInfo field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ResourceDrift other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTerraformInfo(ResourceDriftTerraformInfo value)

public ResourceDrift.Builder mergeTerraformInfo(ResourceDriftTerraformInfo value)

Output only. Terraform info of the resource drift.

.google.cloud.config.v1.ResourceDriftTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ResourceDriftTerraformInfo
Returns
Type Description
ResourceDrift.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removePropertyDrifts(int index)

public ResourceDrift.Builder removePropertyDrifts(int index)

Output only. The property drifts of the resource drift.

repeated .google.cloud.config.v1.PropertyDrift property_drifts = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
ResourceDrift.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public ResourceDrift.Builder setName(String value)

Identifier. The name of the resource drift. Format: 'projects/{project_id}/locations/{location}/previews/{preview}/resourceDrifts/{resource_drift}'.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ResourceDrift.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ResourceDrift.Builder setNameBytes(ByteString value)

Identifier. The name of the resource drift. Format: 'projects/{project_id}/locations/{location}/previews/{preview}/resourceDrifts/{resource_drift}'.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ResourceDrift.Builder

This builder for chaining.

setPropertyDrifts(int index, PropertyDrift value)

public ResourceDrift.Builder setPropertyDrifts(int index, PropertyDrift value)

Output only. The property drifts of the resource drift.

repeated .google.cloud.config.v1.PropertyDrift property_drifts = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value PropertyDrift
Returns
Type Description
ResourceDrift.Builder

setPropertyDrifts(int index, PropertyDrift.Builder builderForValue)

public ResourceDrift.Builder setPropertyDrifts(int index, PropertyDrift.Builder builderForValue)

Output only. The property drifts of the resource drift.

repeated .google.cloud.config.v1.PropertyDrift property_drifts = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue PropertyDrift.Builder
Returns
Type Description
ResourceDrift.Builder

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

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

setTerraformInfo(ResourceDriftTerraformInfo value)

public ResourceDrift.Builder setTerraformInfo(ResourceDriftTerraformInfo value)

Output only. Terraform info of the resource drift.

.google.cloud.config.v1.ResourceDriftTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ResourceDriftTerraformInfo
Returns
Type Description
ResourceDrift.Builder

setTerraformInfo(ResourceDriftTerraformInfo.Builder builderForValue)

public ResourceDrift.Builder setTerraformInfo(ResourceDriftTerraformInfo.Builder builderForValue)

Output only. Terraform info of the resource drift.

.google.cloud.config.v1.ResourceDriftTerraformInfo terraform_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue ResourceDriftTerraformInfo.Builder
Returns
Type Description
ResourceDrift.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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