public static final class ResourceDrift.Builder extends GeneratedMessage.Builder<ResourceDrift.Builder> implements ResourceDriftOrBuilderA resource drift represents a drift to a resource in the state file.
Protobuf type google.cloud.config.v1.ResourceDrift
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ResourceDrift.BuilderImplements
ResourceDriftOrBuilderStatic 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 |
|
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 |
|
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. |
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 |
|
getDefaultInstanceForType()
public ResourceDrift getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ResourceDrift |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ResourceDrift.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ResourceDrift.Builder |
|
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 |
|
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 |
|
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 |
StringThe 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 |
ByteStringThe 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 |
|
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 |
|