Class DataRetentionConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DataRetentionConfig.Builder>
com.google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig.Builder
All Implemented Interfaces:
DataRetentionConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
DataRetentionConfig

public static final class DataRetentionConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<DataRetentionConfig.Builder> implements DataRetentionConfigOrBuilder
 The configuration setting for Airflow database data retention mechanism.
 
Protobuf type google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig
  • 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<DataRetentionConfig.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<DataRetentionConfig.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<DataRetentionConfig.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public DataRetentionConfig.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<DataRetentionConfig.Builder>
      Throws:
      IOException
    • getAirflowDatabaseRetentionDays

      @Deprecated public int getAirflowDatabaseRetentionDays()
      Deprecated.
      google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig.airflow_database_retention_days is deprecated. See google/cloud/orchestration/airflow/service/v1beta1/environments.proto;l=1905
       Optional. The number of days describing for how long to store event-based
       records in airflow database. If the retention mechanism is enabled this
       value must be a positive integer otherwise, value should be set to 0.
       
      int32 airflow_database_retention_days = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAirflowDatabaseRetentionDays in interface DataRetentionConfigOrBuilder
      Returns:
      The airflowDatabaseRetentionDays.
    • setAirflowDatabaseRetentionDays

      @Deprecated public DataRetentionConfig.Builder setAirflowDatabaseRetentionDays(int value)
      Deprecated.
      google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig.airflow_database_retention_days is deprecated. See google/cloud/orchestration/airflow/service/v1beta1/environments.proto;l=1905
       Optional. The number of days describing for how long to store event-based
       records in airflow database. If the retention mechanism is enabled this
       value must be a positive integer otherwise, value should be set to 0.
       
      int32 airflow_database_retention_days = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The airflowDatabaseRetentionDays to set.
      Returns:
      This builder for chaining.
    • clearAirflowDatabaseRetentionDays

      @Deprecated public DataRetentionConfig.Builder clearAirflowDatabaseRetentionDays()
      Deprecated.
      google.cloud.orchestration.airflow.service.v1beta1.DataRetentionConfig.airflow_database_retention_days is deprecated. See google/cloud/orchestration/airflow/service/v1beta1/environments.proto;l=1905
       Optional. The number of days describing for how long to store event-based
       records in airflow database. If the retention mechanism is enabled this
       value must be a positive integer otherwise, value should be set to 0.
       
      int32 airflow_database_retention_days = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasTaskLogsRetentionConfig

      public boolean hasTaskLogsRetentionConfig()
       Optional. The configuration settings for task logs retention
       
      .google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig task_logs_retention_config = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasTaskLogsRetentionConfig in interface DataRetentionConfigOrBuilder
      Returns:
      Whether the taskLogsRetentionConfig field is set.
    • getTaskLogsRetentionConfig

      public TaskLogsRetentionConfig getTaskLogsRetentionConfig()
       Optional. The configuration settings for task logs retention
       
      .google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig task_logs_retention_config = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTaskLogsRetentionConfig in interface DataRetentionConfigOrBuilder
      Returns:
      The taskLogsRetentionConfig.
    • setTaskLogsRetentionConfig

      public DataRetentionConfig.Builder setTaskLogsRetentionConfig(TaskLogsRetentionConfig value)
       Optional. The configuration settings for task logs retention
       
      .google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig task_logs_retention_config = 4 [(.google.api.field_behavior) = OPTIONAL];
    • setTaskLogsRetentionConfig

      public DataRetentionConfig.Builder setTaskLogsRetentionConfig(TaskLogsRetentionConfig.Builder builderForValue)
       Optional. The configuration settings for task logs retention
       
      .google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig task_logs_retention_config = 4 [(.google.api.field_behavior) = OPTIONAL];
    • mergeTaskLogsRetentionConfig

      public DataRetentionConfig.Builder mergeTaskLogsRetentionConfig(TaskLogsRetentionConfig value)
       Optional. The configuration settings for task logs retention
       
      .google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig task_logs_retention_config = 4 [(.google.api.field_behavior) = OPTIONAL];
    • clearTaskLogsRetentionConfig

      public DataRetentionConfig.Builder clearTaskLogsRetentionConfig()
       Optional. The configuration settings for task logs retention
       
      .google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig task_logs_retention_config = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getTaskLogsRetentionConfigBuilder

      public TaskLogsRetentionConfig.Builder getTaskLogsRetentionConfigBuilder()
       Optional. The configuration settings for task logs retention
       
      .google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig task_logs_retention_config = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getTaskLogsRetentionConfigOrBuilder

      public TaskLogsRetentionConfigOrBuilder getTaskLogsRetentionConfigOrBuilder()
       Optional. The configuration settings for task logs retention
       
      .google.cloud.orchestration.airflow.service.v1beta1.TaskLogsRetentionConfig task_logs_retention_config = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTaskLogsRetentionConfigOrBuilder in interface DataRetentionConfigOrBuilder
    • hasAirflowMetadataRetentionConfig

      public boolean hasAirflowMetadataRetentionConfig()
       Optional. The retention policy for airflow metadata database.
       
      .google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig airflow_metadata_retention_config = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasAirflowMetadataRetentionConfig in interface DataRetentionConfigOrBuilder
      Returns:
      Whether the airflowMetadataRetentionConfig field is set.
    • getAirflowMetadataRetentionConfig

      public AirflowMetadataRetentionPolicyConfig getAirflowMetadataRetentionConfig()
       Optional. The retention policy for airflow metadata database.
       
      .google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig airflow_metadata_retention_config = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAirflowMetadataRetentionConfig in interface DataRetentionConfigOrBuilder
      Returns:
      The airflowMetadataRetentionConfig.
    • setAirflowMetadataRetentionConfig

      public DataRetentionConfig.Builder setAirflowMetadataRetentionConfig(AirflowMetadataRetentionPolicyConfig value)
       Optional. The retention policy for airflow metadata database.
       
      .google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig airflow_metadata_retention_config = 5 [(.google.api.field_behavior) = OPTIONAL];
    • setAirflowMetadataRetentionConfig

      public DataRetentionConfig.Builder setAirflowMetadataRetentionConfig(AirflowMetadataRetentionPolicyConfig.Builder builderForValue)
       Optional. The retention policy for airflow metadata database.
       
      .google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig airflow_metadata_retention_config = 5 [(.google.api.field_behavior) = OPTIONAL];
    • mergeAirflowMetadataRetentionConfig

      public DataRetentionConfig.Builder mergeAirflowMetadataRetentionConfig(AirflowMetadataRetentionPolicyConfig value)
       Optional. The retention policy for airflow metadata database.
       
      .google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig airflow_metadata_retention_config = 5 [(.google.api.field_behavior) = OPTIONAL];
    • clearAirflowMetadataRetentionConfig

      public DataRetentionConfig.Builder clearAirflowMetadataRetentionConfig()
       Optional. The retention policy for airflow metadata database.
       
      .google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig airflow_metadata_retention_config = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getAirflowMetadataRetentionConfigBuilder

      public AirflowMetadataRetentionPolicyConfig.Builder getAirflowMetadataRetentionConfigBuilder()
       Optional. The retention policy for airflow metadata database.
       
      .google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig airflow_metadata_retention_config = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getAirflowMetadataRetentionConfigOrBuilder

      public AirflowMetadataRetentionPolicyConfigOrBuilder getAirflowMetadataRetentionConfigOrBuilder()
       Optional. The retention policy for airflow metadata database.
       
      .google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig airflow_metadata_retention_config = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAirflowMetadataRetentionConfigOrBuilder in interface DataRetentionConfigOrBuilder