Class ResourceChange.Builder (0.45.0)

public static final class ResourceChange.Builder extends GeneratedMessageV3.Builder<ResourceChange.Builder> implements ResourceChangeOrBuilder

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

Protobuf type google.cloud.config.v1.ResourceChange

Static Methods

getDescriptor()

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

Methods

addAllPropertyChanges(Iterable<? extends PropertyChange> values)

public ResourceChange.Builder addAllPropertyChanges(Iterable<? extends PropertyChange> values)

Output only. The property changes of the resource change.

repeated .google.cloud.config.v1.PropertyChange property_changes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

addPropertyChanges(PropertyChange value)

public ResourceChange.Builder addPropertyChanges(PropertyChange value)

Output only. The property changes of the resource change.

repeated .google.cloud.config.v1.PropertyChange property_changes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value PropertyChange
Returns
Type Description
ResourceChange.Builder

addPropertyChanges(PropertyChange.Builder builderForValue)

public ResourceChange.Builder addPropertyChanges(PropertyChange.Builder builderForValue)

Output only. The property changes of the resource change.

repeated .google.cloud.config.v1.PropertyChange property_changes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue PropertyChange.Builder
Returns
Type Description
ResourceChange.Builder

addPropertyChanges(int index, PropertyChange value)

public ResourceChange.Builder addPropertyChanges(int index, PropertyChange value)

Output only. The property changes of the resource change.

repeated .google.cloud.config.v1.PropertyChange property_changes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value PropertyChange
Returns
Type Description
ResourceChange.Builder

addPropertyChanges(int index, PropertyChange.Builder builderForValue)

public ResourceChange.Builder addPropertyChanges(int index, PropertyChange.Builder builderForValue)

Output only. The property changes of the resource change.

repeated .google.cloud.config.v1.PropertyChange property_changes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue PropertyChange.Builder
Returns
Type Description
ResourceChange.Builder

addPropertyChangesBuilder()

public PropertyChange.Builder addPropertyChangesBuilder()

Output only. The property changes of the resource change.

repeated .google.cloud.config.v1.PropertyChange property_changes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PropertyChange.Builder

addPropertyChangesBuilder(int index)

public PropertyChange.Builder addPropertyChangesBuilder(int index)

Output only. The property changes of the resource change.

repeated .google.cloud.config.v1.PropertyChange property_changes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
PropertyChange.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ResourceChange build()
Returns
Type Description
ResourceChange

buildPartial()

public ResourceChange buildPartial()
Returns
Type Description
ResourceChange

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearIntent()

public ResourceChange.Builder clearIntent()

Output only. The intent of the resource change.

.google.cloud.config.v1.ResourceChange.Intent intent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ResourceChange.Builder

This builder for chaining.

clearName()

public ResourceChange.Builder clearName()

Identifier. The name of the resource change. Format: 'projects/{project_id}/locations/{location}/previews/{preview}/resourceChanges/{resource_change}'.

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

Returns
Type Description
ResourceChange.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPropertyChanges()

public ResourceChange.Builder clearPropertyChanges()

Output only. The property changes of the resource change.

repeated .google.cloud.config.v1.PropertyChange property_changes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ResourceChange.Builder

clearTerraformInfo()

public ResourceChange.Builder clearTerraformInfo()

Output only. Terraform info of the resource change.

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

Returns
Type Description
ResourceChange.Builder

clone()

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

getDefaultInstanceForType()

public ResourceChange getDefaultInstanceForType()
Returns
Type Description
ResourceChange

getDescriptorForType()

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

getIntent()

public ResourceChange.Intent getIntent()

Output only. The intent of the resource change.

.google.cloud.config.v1.ResourceChange.Intent intent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ResourceChange.Intent

The intent.

getIntentValue()

public int getIntentValue()

Output only. The intent of the resource change.

.google.cloud.config.v1.ResourceChange.Intent intent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for intent.

getName()

public String getName()

Identifier. The name of the resource change. Format: 'projects/{project_id}/locations/{location}/previews/{preview}/resourceChanges/{resource_change}'.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The name of the resource change. Format: 'projects/{project_id}/locations/{location}/previews/{preview}/resourceChanges/{resource_change}'.

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

Returns
Type Description
ByteString

The bytes for name.

getPropertyChanges(int index)

public PropertyChange getPropertyChanges(int index)

Output only. The property changes of the resource change.

repeated .google.cloud.config.v1.PropertyChange property_changes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
PropertyChange

getPropertyChangesBuilder(int index)

public PropertyChange.Builder getPropertyChangesBuilder(int index)

Output only. The property changes of the resource change.

repeated .google.cloud.config.v1.PropertyChange property_changes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
PropertyChange.Builder

getPropertyChangesBuilderList()

public List<PropertyChange.Builder> getPropertyChangesBuilderList()

Output only. The property changes of the resource change.

repeated .google.cloud.config.v1.PropertyChange property_changes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getPropertyChangesCount()

public int getPropertyChangesCount()

Output only. The property changes of the resource change.

repeated .google.cloud.config.v1.PropertyChange property_changes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getPropertyChangesList()

public List<PropertyChange> getPropertyChangesList()

Output only. The property changes of the resource change.

repeated .google.cloud.config.v1.PropertyChange property_changes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<PropertyChange>

getPropertyChangesOrBuilder(int index)

public PropertyChangeOrBuilder getPropertyChangesOrBuilder(int index)

Output only. The property changes of the resource change.

repeated .google.cloud.config.v1.PropertyChange property_changes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
PropertyChangeOrBuilder

getPropertyChangesOrBuilderList()

public List<? extends PropertyChangeOrBuilder> getPropertyChangesOrBuilderList()

Output only. The property changes of the resource change.

repeated .google.cloud.config.v1.PropertyChange property_changes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

getTerraformInfo()

public ResourceChangeTerraformInfo getTerraformInfo()

Output only. Terraform info of the resource change.

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

Returns
Type Description
ResourceChangeTerraformInfo

The terraformInfo.

getTerraformInfoBuilder()

public ResourceChangeTerraformInfo.Builder getTerraformInfoBuilder()

Output only. Terraform info of the resource change.

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

Returns
Type Description
ResourceChangeTerraformInfo.Builder

getTerraformInfoOrBuilder()

public ResourceChangeTerraformInfoOrBuilder getTerraformInfoOrBuilder()

Output only. Terraform info of the resource change.

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

Returns
Type Description
ResourceChangeTerraformInfoOrBuilder

hasTerraformInfo()

public boolean hasTerraformInfo()

Output only. Terraform info of the resource change.

.google.cloud.config.v1.ResourceChangeTerraformInfo 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(ResourceChange other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTerraformInfo(ResourceChangeTerraformInfo value)

public ResourceChange.Builder mergeTerraformInfo(ResourceChangeTerraformInfo value)

Output only. Terraform info of the resource change.

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

Parameter
Name Description
value ResourceChangeTerraformInfo
Returns
Type Description
ResourceChange.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removePropertyChanges(int index)

public ResourceChange.Builder removePropertyChanges(int index)

Output only. The property changes of the resource change.

repeated .google.cloud.config.v1.PropertyChange property_changes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
ResourceChange.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setIntent(ResourceChange.Intent value)

public ResourceChange.Builder setIntent(ResourceChange.Intent value)

Output only. The intent of the resource change.

.google.cloud.config.v1.ResourceChange.Intent intent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ResourceChange.Intent

The intent to set.

Returns
Type Description
ResourceChange.Builder

This builder for chaining.

setIntentValue(int value)

public ResourceChange.Builder setIntentValue(int value)

Output only. The intent of the resource change.

.google.cloud.config.v1.ResourceChange.Intent intent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

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

Returns
Type Description
ResourceChange.Builder

This builder for chaining.

setName(String value)

public ResourceChange.Builder setName(String value)

Identifier. The name of the resource change. Format: 'projects/{project_id}/locations/{location}/previews/{preview}/resourceChanges/{resource_change}'.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ResourceChange.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ResourceChange.Builder setNameBytes(ByteString value)

Identifier. The name of the resource change. Format: 'projects/{project_id}/locations/{location}/previews/{preview}/resourceChanges/{resource_change}'.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ResourceChange.Builder

This builder for chaining.

setPropertyChanges(int index, PropertyChange value)

public ResourceChange.Builder setPropertyChanges(int index, PropertyChange value)

Output only. The property changes of the resource change.

repeated .google.cloud.config.v1.PropertyChange property_changes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value PropertyChange
Returns
Type Description
ResourceChange.Builder

setPropertyChanges(int index, PropertyChange.Builder builderForValue)

public ResourceChange.Builder setPropertyChanges(int index, PropertyChange.Builder builderForValue)

Output only. The property changes of the resource change.

repeated .google.cloud.config.v1.PropertyChange property_changes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue PropertyChange.Builder
Returns
Type Description
ResourceChange.Builder

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

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

setTerraformInfo(ResourceChangeTerraformInfo value)

public ResourceChange.Builder setTerraformInfo(ResourceChangeTerraformInfo value)

Output only. Terraform info of the resource change.

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

Parameter
Name Description
value ResourceChangeTerraformInfo
Returns
Type Description
ResourceChange.Builder

setTerraformInfo(ResourceChangeTerraformInfo.Builder builderForValue)

public ResourceChange.Builder setTerraformInfo(ResourceChangeTerraformInfo.Builder builderForValue)

Output only. Terraform info of the resource change.

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

Parameter
Name Description
builderForValue ResourceChangeTerraformInfo.Builder
Returns
Type Description
ResourceChange.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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