Class SecretSyncConfig.SyncRotationConfig.Builder (2.86.0)

public static final class SecretSyncConfig.SyncRotationConfig.Builder extends GeneratedMessage.Builder<SecretSyncConfig.SyncRotationConfig.Builder> implements SecretSyncConfig.SyncRotationConfigOrBuilder

SyncRotationConfig is config for secret manager auto rotation.

Protobuf type google.container.v1beta1.SecretSyncConfig.SyncRotationConfig

Static Methods

getDescriptor()

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

Methods

build()

public SecretSyncConfig.SyncRotationConfig build()
Returns
Type Description
SecretSyncConfig.SyncRotationConfig

buildPartial()

public SecretSyncConfig.SyncRotationConfig buildPartial()
Returns
Type Description
SecretSyncConfig.SyncRotationConfig

clear()

public SecretSyncConfig.SyncRotationConfig.Builder clear()
Returns
Type Description
SecretSyncConfig.SyncRotationConfig.Builder
Overrides

clearEnabled()

public SecretSyncConfig.SyncRotationConfig.Builder clearEnabled()

Whether the rotation is enabled.

optional bool enabled = 1;

Returns
Type Description
SecretSyncConfig.SyncRotationConfig.Builder

This builder for chaining.

clearRotationInterval()

public SecretSyncConfig.SyncRotationConfig.Builder clearRotationInterval()

The interval between two consecutive rotations. Default rotation interval is 2 minutes.

optional .google.protobuf.Duration rotation_interval = 2;

Returns
Type Description
SecretSyncConfig.SyncRotationConfig.Builder

getDefaultInstanceForType()

public SecretSyncConfig.SyncRotationConfig getDefaultInstanceForType()
Returns
Type Description
SecretSyncConfig.SyncRotationConfig

getDescriptorForType()

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

getEnabled()

public boolean getEnabled()

Whether the rotation is enabled.

optional bool enabled = 1;

Returns
Type Description
boolean

The enabled.

getRotationInterval()

public Duration getRotationInterval()

The interval between two consecutive rotations. Default rotation interval is 2 minutes.

optional .google.protobuf.Duration rotation_interval = 2;

Returns
Type Description
Duration

The rotationInterval.

getRotationIntervalBuilder()

public Duration.Builder getRotationIntervalBuilder()

The interval between two consecutive rotations. Default rotation interval is 2 minutes.

optional .google.protobuf.Duration rotation_interval = 2;

Returns
Type Description
Builder

getRotationIntervalOrBuilder()

public DurationOrBuilder getRotationIntervalOrBuilder()

The interval between two consecutive rotations. Default rotation interval is 2 minutes.

optional .google.protobuf.Duration rotation_interval = 2;

Returns
Type Description
DurationOrBuilder

hasEnabled()

public boolean hasEnabled()

Whether the rotation is enabled.

optional bool enabled = 1;

Returns
Type Description
boolean

Whether the enabled field is set.

hasRotationInterval()

public boolean hasRotationInterval()

The interval between two consecutive rotations. Default rotation interval is 2 minutes.

optional .google.protobuf.Duration rotation_interval = 2;

Returns
Type Description
boolean

Whether the rotationInterval field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SecretSyncConfig.SyncRotationConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeRotationInterval(Duration value)

public SecretSyncConfig.SyncRotationConfig.Builder mergeRotationInterval(Duration value)

The interval between two consecutive rotations. Default rotation interval is 2 minutes.

optional .google.protobuf.Duration rotation_interval = 2;

Parameter
Name Description
value Duration
Returns
Type Description
SecretSyncConfig.SyncRotationConfig.Builder

setEnabled(boolean value)

public SecretSyncConfig.SyncRotationConfig.Builder setEnabled(boolean value)

Whether the rotation is enabled.

optional bool enabled = 1;

Parameter
Name Description
value boolean

The enabled to set.

Returns
Type Description
SecretSyncConfig.SyncRotationConfig.Builder

This builder for chaining.

setRotationInterval(Duration value)

public SecretSyncConfig.SyncRotationConfig.Builder setRotationInterval(Duration value)

The interval between two consecutive rotations. Default rotation interval is 2 minutes.

optional .google.protobuf.Duration rotation_interval = 2;

Parameter
Name Description
value Duration
Returns
Type Description
SecretSyncConfig.SyncRotationConfig.Builder

setRotationInterval(Duration.Builder builderForValue)

public SecretSyncConfig.SyncRotationConfig.Builder setRotationInterval(Duration.Builder builderForValue)

The interval between two consecutive rotations. Default rotation interval is 2 minutes.

optional .google.protobuf.Duration rotation_interval = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
SecretSyncConfig.SyncRotationConfig.Builder