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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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>
|
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];
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];
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];
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];
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];
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
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ResourceDrift.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public ResourceDrift build()
buildPartial()
public ResourceDrift buildPartial()
clear()
public ResourceDrift.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public ResourceDrift.Builder clearField(Descriptors.FieldDescriptor field)
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];
clearOneof(Descriptors.OneofDescriptor oneof)
public ResourceDrift.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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];
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];
clone()
public ResourceDrift.Builder clone()
Overrides
getDefaultInstanceForType()
public ResourceDrift getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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
|
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
|
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];
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];
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
|
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> |
|
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];
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];
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];
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(ResourceDrift other)
public ResourceDrift.Builder mergeFrom(ResourceDrift other)
public ResourceDrift.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ResourceDrift.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
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];
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ResourceDrift.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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
|
setField(Descriptors.FieldDescriptor field, Object value)
public ResourceDrift.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
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];
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];
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ResourceDrift.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
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];
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];
setUnknownFields(UnknownFieldSet unknownFields)
public final ResourceDrift.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides