Class AirflowMetadataRetentionPolicyConfig.Builder (1.47.0)

public static final class AirflowMetadataRetentionPolicyConfig.Builder extends GeneratedMessageV3.Builder<AirflowMetadataRetentionPolicyConfig.Builder> implements AirflowMetadataRetentionPolicyConfigOrBuilder

The policy for airflow metadata database retention.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AirflowMetadataRetentionPolicyConfig build()
Returns
Type Description
AirflowMetadataRetentionPolicyConfig

buildPartial()

public AirflowMetadataRetentionPolicyConfig buildPartial()
Returns
Type Description
AirflowMetadataRetentionPolicyConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRetentionDays()

public AirflowMetadataRetentionPolicyConfig.Builder clearRetentionDays()

Optional. How many days data should be retained for.

int32 retention_days = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AirflowMetadataRetentionPolicyConfig.Builder

This builder for chaining.

clearRetentionMode()

public AirflowMetadataRetentionPolicyConfig.Builder clearRetentionMode()

Optional. Retention can be either enabled or disabled.

.google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig.RetentionMode retention_mode = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AirflowMetadataRetentionPolicyConfig.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public AirflowMetadataRetentionPolicyConfig getDefaultInstanceForType()
Returns
Type Description
AirflowMetadataRetentionPolicyConfig

getDescriptorForType()

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

getRetentionDays()

public int getRetentionDays()

Optional. How many days data should be retained for.

int32 retention_days = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The retentionDays.

getRetentionMode()

public AirflowMetadataRetentionPolicyConfig.RetentionMode getRetentionMode()

Optional. Retention can be either enabled or disabled.

.google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig.RetentionMode retention_mode = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AirflowMetadataRetentionPolicyConfig.RetentionMode

The retentionMode.

getRetentionModeValue()

public int getRetentionModeValue()

Optional. Retention can be either enabled or disabled.

.google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig.RetentionMode retention_mode = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for retentionMode.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AirflowMetadataRetentionPolicyConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setRetentionDays(int value)

public AirflowMetadataRetentionPolicyConfig.Builder setRetentionDays(int value)

Optional. How many days data should be retained for.

int32 retention_days = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The retentionDays to set.

Returns
Type Description
AirflowMetadataRetentionPolicyConfig.Builder

This builder for chaining.

setRetentionMode(AirflowMetadataRetentionPolicyConfig.RetentionMode value)

public AirflowMetadataRetentionPolicyConfig.Builder setRetentionMode(AirflowMetadataRetentionPolicyConfig.RetentionMode value)

Optional. Retention can be either enabled or disabled.

.google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig.RetentionMode retention_mode = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AirflowMetadataRetentionPolicyConfig.RetentionMode

The retentionMode to set.

Returns
Type Description
AirflowMetadataRetentionPolicyConfig.Builder

This builder for chaining.

setRetentionModeValue(int value)

public AirflowMetadataRetentionPolicyConfig.Builder setRetentionModeValue(int value)

Optional. Retention can be either enabled or disabled.

.google.cloud.orchestration.airflow.service.v1beta1.AirflowMetadataRetentionPolicyConfig.RetentionMode retention_mode = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for retentionMode to set.

Returns
Type Description
AirflowMetadataRetentionPolicyConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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