Class SecretManagerConfig.RotationConfig.Builder (2.86.0)

public static final class SecretManagerConfig.RotationConfig.Builder extends GeneratedMessage.Builder<SecretManagerConfig.RotationConfig.Builder> implements SecretManagerConfig.RotationConfigOrBuilder

RotationConfig is config for secret manager auto rotation.

Protobuf type google.container.v1beta1.SecretManagerConfig.RotationConfig

Static Methods

getDescriptor()

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

Methods

build()

public SecretManagerConfig.RotationConfig build()
Returns
Type Description
SecretManagerConfig.RotationConfig

buildPartial()

public SecretManagerConfig.RotationConfig buildPartial()
Returns
Type Description
SecretManagerConfig.RotationConfig

clear()

public SecretManagerConfig.RotationConfig.Builder clear()
Returns
Type Description
SecretManagerConfig.RotationConfig.Builder
Overrides

clearEnabled()

public SecretManagerConfig.RotationConfig.Builder clearEnabled()

Whether the rotation is enabled.

optional bool enabled = 1;

Returns
Type Description
SecretManagerConfig.RotationConfig.Builder

This builder for chaining.

clearRotationInterval()

public SecretManagerConfig.RotationConfig.Builder clearRotationInterval()

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

optional .google.protobuf.Duration rotation_interval = 2;

Returns
Type Description
SecretManagerConfig.RotationConfig.Builder

getDefaultInstanceForType()

public SecretManagerConfig.RotationConfig getDefaultInstanceForType()
Returns
Type Description
SecretManagerConfig.RotationConfig

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(SecretManagerConfig.RotationConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeRotationInterval(Duration value)

public SecretManagerConfig.RotationConfig.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
SecretManagerConfig.RotationConfig.Builder

setEnabled(boolean value)

public SecretManagerConfig.RotationConfig.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
SecretManagerConfig.RotationConfig.Builder

This builder for chaining.

setRotationInterval(Duration value)

public SecretManagerConfig.RotationConfig.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
SecretManagerConfig.RotationConfig.Builder

setRotationInterval(Duration.Builder builderForValue)

public SecretManagerConfig.RotationConfig.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
SecretManagerConfig.RotationConfig.Builder