Class TerraformVersion.Builder

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

public static final class TerraformVersion.Builder extends com.google.protobuf.GeneratedMessage.Builder<TerraformVersion.Builder> implements TerraformVersionOrBuilder
 A TerraformVersion represents the support state the corresponding
 Terraform version.
 
Protobuf type google.cloud.config.v1.TerraformVersion
  • 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<TerraformVersion.Builder>
    • clear

      public TerraformVersion.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<TerraformVersion.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<TerraformVersion.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public TerraformVersion.Builder mergeFrom(TerraformVersion other)
    • isInitialized

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

      public TerraformVersion.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<TerraformVersion.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Identifier. The version name is in the format:
       'projects/{project_id}/locations/{location}/terraformVersions/{terraform_version}'.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface TerraformVersionOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. The version name is in the format:
       'projects/{project_id}/locations/{location}/terraformVersions/{terraform_version}'.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface TerraformVersionOrBuilder
      Returns:
      The bytes for name.
    • setName

      public TerraformVersion.Builder setName(String value)
       Identifier. The version name is in the format:
       'projects/{project_id}/locations/{location}/terraformVersions/{terraform_version}'.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public TerraformVersion.Builder clearName()
       Identifier. The version name is in the format:
       'projects/{project_id}/locations/{location}/terraformVersions/{terraform_version}'.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public TerraformVersion.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. The version name is in the format:
       'projects/{project_id}/locations/{location}/terraformVersions/{terraform_version}'.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getStateValue

      public int getStateValue()
       Output only. The state of the version, ACTIVE, DEPRECATED or OBSOLETE.
       
      .google.cloud.config.v1.TerraformVersion.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface TerraformVersionOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public TerraformVersion.Builder setStateValue(int value)
       Output only. The state of the version, ACTIVE, DEPRECATED or OBSOLETE.
       
      .google.cloud.config.v1.TerraformVersion.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public TerraformVersion.State getState()
       Output only. The state of the version, ACTIVE, DEPRECATED or OBSOLETE.
       
      .google.cloud.config.v1.TerraformVersion.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface TerraformVersionOrBuilder
      Returns:
      The state.
    • setState

       Output only. The state of the version, ACTIVE, DEPRECATED or OBSOLETE.
       
      .google.cloud.config.v1.TerraformVersion.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public TerraformVersion.Builder clearState()
       Output only. The state of the version, ACTIVE, DEPRECATED or OBSOLETE.
       
      .google.cloud.config.v1.TerraformVersion.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasSupportTime

      public boolean hasSupportTime()
       Output only. When the version is supported.
       
      .google.protobuf.Timestamp support_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasSupportTime in interface TerraformVersionOrBuilder
      Returns:
      Whether the supportTime field is set.
    • getSupportTime

      public com.google.protobuf.Timestamp getSupportTime()
       Output only. When the version is supported.
       
      .google.protobuf.Timestamp support_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSupportTime in interface TerraformVersionOrBuilder
      Returns:
      The supportTime.
    • setSupportTime

      public TerraformVersion.Builder setSupportTime(com.google.protobuf.Timestamp value)
       Output only. When the version is supported.
       
      .google.protobuf.Timestamp support_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setSupportTime

      public TerraformVersion.Builder setSupportTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. When the version is supported.
       
      .google.protobuf.Timestamp support_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeSupportTime

      public TerraformVersion.Builder mergeSupportTime(com.google.protobuf.Timestamp value)
       Output only. When the version is supported.
       
      .google.protobuf.Timestamp support_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearSupportTime

      public TerraformVersion.Builder clearSupportTime()
       Output only. When the version is supported.
       
      .google.protobuf.Timestamp support_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getSupportTimeBuilder

      public com.google.protobuf.Timestamp.Builder getSupportTimeBuilder()
       Output only. When the version is supported.
       
      .google.protobuf.Timestamp support_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getSupportTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getSupportTimeOrBuilder()
       Output only. When the version is supported.
       
      .google.protobuf.Timestamp support_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSupportTimeOrBuilder in interface TerraformVersionOrBuilder
    • hasDeprecateTime

      public boolean hasDeprecateTime()
       Output only. When the version is deprecated.
       
      optional .google.protobuf.Timestamp deprecate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasDeprecateTime in interface TerraformVersionOrBuilder
      Returns:
      Whether the deprecateTime field is set.
    • getDeprecateTime

      public com.google.protobuf.Timestamp getDeprecateTime()
       Output only. When the version is deprecated.
       
      optional .google.protobuf.Timestamp deprecate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDeprecateTime in interface TerraformVersionOrBuilder
      Returns:
      The deprecateTime.
    • setDeprecateTime

      public TerraformVersion.Builder setDeprecateTime(com.google.protobuf.Timestamp value)
       Output only. When the version is deprecated.
       
      optional .google.protobuf.Timestamp deprecate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setDeprecateTime

      public TerraformVersion.Builder setDeprecateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. When the version is deprecated.
       
      optional .google.protobuf.Timestamp deprecate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeDeprecateTime

      public TerraformVersion.Builder mergeDeprecateTime(com.google.protobuf.Timestamp value)
       Output only. When the version is deprecated.
       
      optional .google.protobuf.Timestamp deprecate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearDeprecateTime

      public TerraformVersion.Builder clearDeprecateTime()
       Output only. When the version is deprecated.
       
      optional .google.protobuf.Timestamp deprecate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getDeprecateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getDeprecateTimeBuilder()
       Output only. When the version is deprecated.
       
      optional .google.protobuf.Timestamp deprecate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getDeprecateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getDeprecateTimeOrBuilder()
       Output only. When the version is deprecated.
       
      optional .google.protobuf.Timestamp deprecate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDeprecateTimeOrBuilder in interface TerraformVersionOrBuilder
    • hasObsoleteTime

      public boolean hasObsoleteTime()
       Output only. When the version is obsolete.
       
      optional .google.protobuf.Timestamp obsolete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasObsoleteTime in interface TerraformVersionOrBuilder
      Returns:
      Whether the obsoleteTime field is set.
    • getObsoleteTime

      public com.google.protobuf.Timestamp getObsoleteTime()
       Output only. When the version is obsolete.
       
      optional .google.protobuf.Timestamp obsolete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getObsoleteTime in interface TerraformVersionOrBuilder
      Returns:
      The obsoleteTime.
    • setObsoleteTime

      public TerraformVersion.Builder setObsoleteTime(com.google.protobuf.Timestamp value)
       Output only. When the version is obsolete.
       
      optional .google.protobuf.Timestamp obsolete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setObsoleteTime

      public TerraformVersion.Builder setObsoleteTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. When the version is obsolete.
       
      optional .google.protobuf.Timestamp obsolete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeObsoleteTime

      public TerraformVersion.Builder mergeObsoleteTime(com.google.protobuf.Timestamp value)
       Output only. When the version is obsolete.
       
      optional .google.protobuf.Timestamp obsolete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearObsoleteTime

      public TerraformVersion.Builder clearObsoleteTime()
       Output only. When the version is obsolete.
       
      optional .google.protobuf.Timestamp obsolete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getObsoleteTimeBuilder

      public com.google.protobuf.Timestamp.Builder getObsoleteTimeBuilder()
       Output only. When the version is obsolete.
       
      optional .google.protobuf.Timestamp obsolete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getObsoleteTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getObsoleteTimeOrBuilder()
       Output only. When the version is obsolete.
       
      optional .google.protobuf.Timestamp obsolete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getObsoleteTimeOrBuilder in interface TerraformVersionOrBuilder