Class SecretManagerConfig.RotationConfig.Builder (2.67.0)

public static final class SecretManagerConfig.RotationConfig.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

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

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

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.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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