Class AutoMigrationConfig.Builder

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

public static final class AutoMigrationConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<AutoMigrationConfig.Builder> implements AutoMigrationConfigOrBuilder
 AutoMigrationConfig contains the automigration configuration for a project.
 
Protobuf type google.cloud.config.v1.AutoMigrationConfig
  • 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<AutoMigrationConfig.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<AutoMigrationConfig.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<AutoMigrationConfig.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

      public String getName()
       Identifier. The name of the AutoMigrationConfig.
       Format:
       'projects/{project_id}/locations/{location}/AutoMigrationConfig'.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface AutoMigrationConfigOrBuilder
      Returns:
      The name.
    • getNameBytes

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

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

      public AutoMigrationConfig.Builder clearName()
       Identifier. The name of the AutoMigrationConfig.
       Format:
       'projects/{project_id}/locations/{location}/AutoMigrationConfig'.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public AutoMigrationConfig.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. The name of the AutoMigrationConfig.
       Format:
       'projects/{project_id}/locations/{location}/AutoMigrationConfig'.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. Time the AutoMigrationConfig was last updated.
       
      .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface AutoMigrationConfigOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. Time the AutoMigrationConfig was last updated.
       
      .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface AutoMigrationConfigOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public AutoMigrationConfig.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Time the AutoMigrationConfig was last updated.
       
      .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public AutoMigrationConfig.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Time the AutoMigrationConfig was last updated.
       
      .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public AutoMigrationConfig.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Time the AutoMigrationConfig was last updated.
       
      .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public AutoMigrationConfig.Builder clearUpdateTime()
       Output only. Time the AutoMigrationConfig was last updated.
       
      .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. Time the AutoMigrationConfig was last updated.
       
      .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. Time the AutoMigrationConfig was last updated.
       
      .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface AutoMigrationConfigOrBuilder
    • getAutoMigrationEnabled

      public boolean getAutoMigrationEnabled()
       Optional. Whether the auto migration is enabled for the project.
       
      bool auto_migration_enabled = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAutoMigrationEnabled in interface AutoMigrationConfigOrBuilder
      Returns:
      The autoMigrationEnabled.
    • setAutoMigrationEnabled

      public AutoMigrationConfig.Builder setAutoMigrationEnabled(boolean value)
       Optional. Whether the auto migration is enabled for the project.
       
      bool auto_migration_enabled = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The autoMigrationEnabled to set.
      Returns:
      This builder for chaining.
    • clearAutoMigrationEnabled

      public AutoMigrationConfig.Builder clearAutoMigrationEnabled()
       Optional. Whether the auto migration is enabled for the project.
       
      bool auto_migration_enabled = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.