Class DataRetentionConfig.Builder (1.51.0)

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

The configuration setting for Airflow database data retention mechanism.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DataRetentionConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DataRetentionConfig.Builder
Overrides

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

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=1889

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
Type Description
DataRetentionConfig.Builder

This builder for chaining.

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];

Returns
Type Description
DataRetentionConfig.Builder

clearField(Descriptors.FieldDescriptor field)

public DataRetentionConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DataRetentionConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public DataRetentionConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DataRetentionConfig.Builder
Overrides

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];

Returns
Type Description
DataRetentionConfig.Builder

clone()

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

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=1889

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
Type Description
int

The airflowDatabaseRetentionDays.

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];

Returns
Type Description
AirflowMetadataRetentionPolicyConfig

The airflowMetadataRetentionConfig.

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];

Returns
Type Description
AirflowMetadataRetentionPolicyConfig.Builder

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];

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.v1beta1.TaskLogsRetentionConfig task_logs_retention_config = 4 [(.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.v1beta1.TaskLogsRetentionConfig task_logs_retention_config = 4 [(.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.v1beta1.TaskLogsRetentionConfig task_logs_retention_config = 4 [(.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.v1beta1.AirflowMetadataRetentionPolicyConfig airflow_metadata_retention_config = 5 [(.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.v1beta1.TaskLogsRetentionConfig task_logs_retention_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the taskLogsRetentionConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.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.v1beta1.AirflowMetadataRetentionPolicyConfig airflow_metadata_retention_config = 5 [(.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.v1beta1.TaskLogsRetentionConfig task_logs_retention_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value TaskLogsRetentionConfig
Returns
Type Description
DataRetentionConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DataRetentionConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DataRetentionConfig.Builder
Overrides

setAirflowDatabaseRetentionDays(int value) (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=1889

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];

Parameter
Name Description
value int

The airflowDatabaseRetentionDays to set.

Returns
Type Description
DataRetentionConfig.Builder

This builder for chaining.

setAirflowMetadataRetentionConfig(AirflowMetadataRetentionPolicyConfig value)

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];

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.v1beta1.AirflowMetadataRetentionPolicyConfig airflow_metadata_retention_config = 5 [(.google.api.field_behavior) = OPTIONAL];

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

setField(Descriptors.FieldDescriptor field, Object value)

public DataRetentionConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DataRetentionConfig.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DataRetentionConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DataRetentionConfig.Builder
Overrides

setTaskLogsRetentionConfig(TaskLogsRetentionConfig value)

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];

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.v1beta1.TaskLogsRetentionConfig task_logs_retention_config = 4 [(.google.api.field_behavior) = OPTIONAL];

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

setUnknownFields(UnknownFieldSet unknownFields)

public final DataRetentionConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DataRetentionConfig.Builder
Overrides