Class ResourceChangeTerraformInfo.Builder

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

public static final class ResourceChangeTerraformInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<ResourceChangeTerraformInfo.Builder> implements ResourceChangeTerraformInfoOrBuilder
 Terraform info of a ResourceChange.
 
Protobuf type google.cloud.config.v1.ResourceChangeTerraformInfo
  • 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<ResourceChangeTerraformInfo.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<ResourceChangeTerraformInfo.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<ResourceChangeTerraformInfo.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public ResourceChangeTerraformInfo.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<ResourceChangeTerraformInfo.Builder>
    • mergeFrom

    • isInitialized

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

      public ResourceChangeTerraformInfo.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<ResourceChangeTerraformInfo.Builder>
      Throws:
      IOException
    • getAddress

      public String getAddress()
       Output only. TF resource address that uniquely identifies the resource.
       
      string address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAddress in interface ResourceChangeTerraformInfoOrBuilder
      Returns:
      The address.
    • getAddressBytes

      public com.google.protobuf.ByteString getAddressBytes()
       Output only. TF resource address that uniquely identifies the resource.
       
      string address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAddressBytes in interface ResourceChangeTerraformInfoOrBuilder
      Returns:
      The bytes for address.
    • setAddress

      public ResourceChangeTerraformInfo.Builder setAddress(String value)
       Output only. TF resource address that uniquely identifies the resource.
       
      string address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The address to set.
      Returns:
      This builder for chaining.
    • clearAddress

      public ResourceChangeTerraformInfo.Builder clearAddress()
       Output only. TF resource address that uniquely identifies the resource.
       
      string address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setAddressBytes

      public ResourceChangeTerraformInfo.Builder setAddressBytes(com.google.protobuf.ByteString value)
       Output only. TF resource address that uniquely identifies the resource.
       
      string address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for address to set.
      Returns:
      This builder for chaining.
    • getType

      public String getType()
       Output only. TF resource type.
       
      string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getType in interface ResourceChangeTerraformInfoOrBuilder
      Returns:
      The type.
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
       Output only. TF resource type.
       
      string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTypeBytes in interface ResourceChangeTerraformInfoOrBuilder
      Returns:
      The bytes for type.
    • setType

       Output only. TF resource type.
       
      string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

       Output only. TF resource type.
       
      string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setTypeBytes

      public ResourceChangeTerraformInfo.Builder setTypeBytes(com.google.protobuf.ByteString value)
       Output only. TF resource type.
       
      string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for type to set.
      Returns:
      This builder for chaining.
    • getResourceName

      public String getResourceName()
       Output only. TF resource name.
       
      string resource_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getResourceName in interface ResourceChangeTerraformInfoOrBuilder
      Returns:
      The resourceName.
    • getResourceNameBytes

      public com.google.protobuf.ByteString getResourceNameBytes()
       Output only. TF resource name.
       
      string resource_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getResourceNameBytes in interface ResourceChangeTerraformInfoOrBuilder
      Returns:
      The bytes for resourceName.
    • setResourceName

      public ResourceChangeTerraformInfo.Builder setResourceName(String value)
       Output only. TF resource name.
       
      string resource_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The resourceName to set.
      Returns:
      This builder for chaining.
    • clearResourceName

      public ResourceChangeTerraformInfo.Builder clearResourceName()
       Output only. TF resource name.
       
      string resource_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setResourceNameBytes

      public ResourceChangeTerraformInfo.Builder setResourceNameBytes(com.google.protobuf.ByteString value)
       Output only. TF resource name.
       
      string resource_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for resourceName to set.
      Returns:
      This builder for chaining.
    • getProvider

      public String getProvider()
       Output only. TF resource provider.
       
      string provider = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getProvider in interface ResourceChangeTerraformInfoOrBuilder
      Returns:
      The provider.
    • getProviderBytes

      public com.google.protobuf.ByteString getProviderBytes()
       Output only. TF resource provider.
       
      string provider = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getProviderBytes in interface ResourceChangeTerraformInfoOrBuilder
      Returns:
      The bytes for provider.
    • setProvider

      public ResourceChangeTerraformInfo.Builder setProvider(String value)
       Output only. TF resource provider.
       
      string provider = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The provider to set.
      Returns:
      This builder for chaining.
    • clearProvider

      public ResourceChangeTerraformInfo.Builder clearProvider()
       Output only. TF resource provider.
       
      string provider = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setProviderBytes

      public ResourceChangeTerraformInfo.Builder setProviderBytes(com.google.protobuf.ByteString value)
       Output only. TF resource provider.
       
      string provider = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for provider to set.
      Returns:
      This builder for chaining.
    • getActionsList

      public com.google.protobuf.ProtocolStringList getActionsList()
       Output only. TF resource actions.
       
      repeated string actions = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getActionsList in interface ResourceChangeTerraformInfoOrBuilder
      Returns:
      A list containing the actions.
    • getActionsCount

      public int getActionsCount()
       Output only. TF resource actions.
       
      repeated string actions = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getActionsCount in interface ResourceChangeTerraformInfoOrBuilder
      Returns:
      The count of actions.
    • getActions

      public String getActions(int index)
       Output only. TF resource actions.
       
      repeated string actions = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getActions in interface ResourceChangeTerraformInfoOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The actions at the given index.
    • getActionsBytes

      public com.google.protobuf.ByteString getActionsBytes(int index)
       Output only. TF resource actions.
       
      repeated string actions = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getActionsBytes in interface ResourceChangeTerraformInfoOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the actions at the given index.
    • setActions

      public ResourceChangeTerraformInfo.Builder setActions(int index, String value)
       Output only. TF resource actions.
       
      repeated string actions = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      index - The index to set the value at.
      value - The actions to set.
      Returns:
      This builder for chaining.
    • addActions

      public ResourceChangeTerraformInfo.Builder addActions(String value)
       Output only. TF resource actions.
       
      repeated string actions = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The actions to add.
      Returns:
      This builder for chaining.
    • addAllActions

      public ResourceChangeTerraformInfo.Builder addAllActions(Iterable<String> values)
       Output only. TF resource actions.
       
      repeated string actions = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      values - The actions to add.
      Returns:
      This builder for chaining.
    • clearActions

      public ResourceChangeTerraformInfo.Builder clearActions()
       Output only. TF resource actions.
       
      repeated string actions = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • addActionsBytes

      public ResourceChangeTerraformInfo.Builder addActionsBytes(com.google.protobuf.ByteString value)
       Output only. TF resource actions.
       
      repeated string actions = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes of the actions to add.
      Returns:
      This builder for chaining.