Class SecretSyncConfig.SyncRotationConfig.Builder (2.81.0)

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

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

clone()

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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

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.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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