Class ResourceDrift.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ResourceDrift.Builder>
com.google.cloud.config.v1.ResourceDrift.Builder
All Implemented Interfaces:
ResourceDriftOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ResourceDrift

public static final class ResourceDrift.Builder extends com.google.protobuf.GeneratedMessage.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
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ResourceDrift.Builder>
    • clear

      public ResourceDrift.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ResourceDrift.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ResourceDrift.Builder>
    • getDefaultInstanceForType

      public ResourceDrift getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ResourceDrift build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ResourceDrift buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ResourceDrift.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ResourceDrift.Builder>
    • mergeFrom

      public ResourceDrift.Builder mergeFrom(ResourceDrift other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ResourceDrift.Builder>
    • mergeFrom

      public ResourceDrift.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ResourceDrift.Builder>
      Throws:
      IOException
    • 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];
      Specified by:
      getName in interface ResourceDriftOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.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];
      Specified by:
      getNameBytes in interface ResourceDriftOrBuilder
      Returns:
      The bytes for name.
    • setName

      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];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setNameBytes

      public ResourceDrift.Builder setNameBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      hasTerraformInfo in interface ResourceDriftOrBuilder
      Returns:
      Whether the terraformInfo field is set.
    • 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];
      Specified by:
      getTerraformInfo in interface ResourceDriftOrBuilder
      Returns:
      The terraformInfo.
    • setTerraformInfo

      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];
    • setTerraformInfo

      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];
    • mergeTerraformInfo

      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];
    • 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];
    • 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];
    • 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];
      Specified by:
      getTerraformInfoOrBuilder in interface ResourceDriftOrBuilder
    • 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];
      Specified by:
      getPropertyDriftsList in interface ResourceDriftOrBuilder
    • 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];
      Specified by:
      getPropertyDriftsCount in interface ResourceDriftOrBuilder
    • getPropertyDrifts

      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];
      Specified by:
      getPropertyDrifts in interface ResourceDriftOrBuilder
    • setPropertyDrifts

      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

      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];
    • addPropertyDrifts

      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

      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

      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

      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];
    • addAllPropertyDrifts

      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];
    • 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];
    • removePropertyDrifts

      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];
    • getPropertyDriftsBuilder

      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];
    • getPropertyDriftsOrBuilder

      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];
      Specified by:
      getPropertyDriftsOrBuilder in interface ResourceDriftOrBuilder
    • 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];
      Specified by:
      getPropertyDriftsOrBuilderList in interface ResourceDriftOrBuilder
    • 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

      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];
    • 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];