Class DataRetentionConfig.Builder (1.85.0)

public static final class DataRetentionConfig.Builder extends GeneratedMessage.Builder<DataRetentionConfig.Builder> implements DataRetentionConfigOrBuilder

The configuration setting for Airflow database data retention mechanism.

Protobuf type google.cloud.orchestration.airflow.service.v1.DataRetentionConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public DataRetentionConfig build()
Returns
Type Description
DataRetentionConfig

buildPartial()

public DataRetentionConfig buildPartial()
Returns
Type Description
DataRetentionConfig

clear()

public DataRetentionConfig.Builder clear()
Returns
Type Description
DataRetentionConfig.Builder
Overrides

clearAirflowMetadataRetentionConfig()

public DataRetentionConfig.Builder clearAirflowMetadataRetentionConfig()

Optional. The retention policy for airflow metadata database.

.google.cloud.orchestration.airflow.service.v1.AirflowMetadataRetentionPolicyConfig airflow_metadata_retention_config = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DataRetentionConfig.Builder

clearTaskLogsRetentionConfig()

public DataRetentionConfig.Builder clearTaskLogsRetentionConfig()

Optional. The configuration settings for task logs retention

.google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig task_logs_retention_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DataRetentionConfig.Builder

getAirflowMetadataRetentionConfig()

public AirflowMetadataRetentionPolicyConfig getAirflowMetadataRetentionConfig()

Optional. The retention policy for airflow metadata database.

.google.cloud.orchestration.airflow.service.v1.AirflowMetadataRetentionPolicyConfig airflow_metadata_retention_config = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AirflowMetadataRetentionPolicyConfig

The airflowMetadataRetentionConfig.

getAirflowMetadataRetentionConfigBuilder()

public AirflowMetadataRetentionPolicyConfig.Builder getAirflowMetadataRetentionConfigBuilder()

Optional. The retention policy for airflow metadata database.

.google.cloud.orchestration.airflow.service.v1.AirflowMetadataRetentionPolicyConfig airflow_metadata_retention_config = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AirflowMetadataRetentionPolicyConfig.Builder

getAirflowMetadataRetentionConfigOrBuilder()

public AirflowMetadataRetentionPolicyConfigOrBuilder getAirflowMetadataRetentionConfigOrBuilder()

Optional. The retention policy for airflow metadata database.

.google.cloud.orchestration.airflow.service.v1.AirflowMetadataRetentionPolicyConfig airflow_metadata_retention_config = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AirflowMetadataRetentionPolicyConfigOrBuilder

getDefaultInstanceForType()

public DataRetentionConfig getDefaultInstanceForType()
Returns
Type Description
DataRetentionConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getTaskLogsRetentionConfig()

public TaskLogsRetentionConfig getTaskLogsRetentionConfig()

Optional. The configuration settings for task logs retention

.google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig task_logs_retention_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TaskLogsRetentionConfig

The taskLogsRetentionConfig.

getTaskLogsRetentionConfigBuilder()

public TaskLogsRetentionConfig.Builder getTaskLogsRetentionConfigBuilder()

Optional. The configuration settings for task logs retention

.google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig task_logs_retention_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TaskLogsRetentionConfig.Builder

getTaskLogsRetentionConfigOrBuilder()

public TaskLogsRetentionConfigOrBuilder getTaskLogsRetentionConfigOrBuilder()

Optional. The configuration settings for task logs retention

.google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig task_logs_retention_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TaskLogsRetentionConfigOrBuilder

hasAirflowMetadataRetentionConfig()

public boolean hasAirflowMetadataRetentionConfig()

Optional. The retention policy for airflow metadata database.

.google.cloud.orchestration.airflow.service.v1.AirflowMetadataRetentionPolicyConfig airflow_metadata_retention_config = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the airflowMetadataRetentionConfig field is set.

hasTaskLogsRetentionConfig()

public boolean hasTaskLogsRetentionConfig()

Optional. The configuration settings for task logs retention

.google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig task_logs_retention_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the taskLogsRetentionConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAirflowMetadataRetentionConfig(AirflowMetadataRetentionPolicyConfig value)

public DataRetentionConfig.Builder mergeAirflowMetadataRetentionConfig(AirflowMetadataRetentionPolicyConfig value)

Optional. The retention policy for airflow metadata database.

.google.cloud.orchestration.airflow.service.v1.AirflowMetadataRetentionPolicyConfig airflow_metadata_retention_config = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AirflowMetadataRetentionPolicyConfig
Returns
Type Description
DataRetentionConfig.Builder

mergeFrom(DataRetentionConfig other)

public DataRetentionConfig.Builder mergeFrom(DataRetentionConfig other)
Parameter
Name Description
other DataRetentionConfig
Returns
Type Description
DataRetentionConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DataRetentionConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataRetentionConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DataRetentionConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DataRetentionConfig.Builder
Overrides

mergeTaskLogsRetentionConfig(TaskLogsRetentionConfig value)

public DataRetentionConfig.Builder mergeTaskLogsRetentionConfig(TaskLogsRetentionConfig value)

Optional. The configuration settings for task logs retention

.google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig task_logs_retention_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value TaskLogsRetentionConfig
Returns
Type Description
DataRetentionConfig.Builder

setAirflowMetadataRetentionConfig(AirflowMetadataRetentionPolicyConfig value)

public DataRetentionConfig.Builder setAirflowMetadataRetentionConfig(AirflowMetadataRetentionPolicyConfig value)

Optional. The retention policy for airflow metadata database.

.google.cloud.orchestration.airflow.service.v1.AirflowMetadataRetentionPolicyConfig airflow_metadata_retention_config = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AirflowMetadataRetentionPolicyConfig
Returns
Type Description
DataRetentionConfig.Builder

setAirflowMetadataRetentionConfig(AirflowMetadataRetentionPolicyConfig.Builder builderForValue)

public DataRetentionConfig.Builder setAirflowMetadataRetentionConfig(AirflowMetadataRetentionPolicyConfig.Builder builderForValue)

Optional. The retention policy for airflow metadata database.

.google.cloud.orchestration.airflow.service.v1.AirflowMetadataRetentionPolicyConfig airflow_metadata_retention_config = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue AirflowMetadataRetentionPolicyConfig.Builder
Returns
Type Description
DataRetentionConfig.Builder

setTaskLogsRetentionConfig(TaskLogsRetentionConfig value)

public DataRetentionConfig.Builder setTaskLogsRetentionConfig(TaskLogsRetentionConfig value)

Optional. The configuration settings for task logs retention

.google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig task_logs_retention_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value TaskLogsRetentionConfig
Returns
Type Description
DataRetentionConfig.Builder

setTaskLogsRetentionConfig(TaskLogsRetentionConfig.Builder builderForValue)

public DataRetentionConfig.Builder setTaskLogsRetentionConfig(TaskLogsRetentionConfig.Builder builderForValue)

Optional. The configuration settings for task logs retention

.google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig task_logs_retention_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue TaskLogsRetentionConfig.Builder
Returns
Type Description
DataRetentionConfig.Builder