Package com.google.cloud.redis.v1
Class PersistenceConfig.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<PersistenceConfig.Builder>
-
- com.google.cloud.redis.v1.PersistenceConfig.Builder
-
- All Implemented Interfaces:
PersistenceConfigOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- PersistenceConfig
public static final class PersistenceConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PersistenceConfig.Builder> implements PersistenceConfigOrBuilder
Configuration of the persistence functionality.
Protobuf typegoogle.cloud.redis.v1.PersistenceConfig
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<PersistenceConfig.Builder>
-
clear
public PersistenceConfig.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<PersistenceConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<PersistenceConfig.Builder>
-
getDefaultInstanceForType
public PersistenceConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public PersistenceConfig build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public PersistenceConfig buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public PersistenceConfig.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<PersistenceConfig.Builder>
-
setField
public PersistenceConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PersistenceConfig.Builder>
-
clearField
public PersistenceConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PersistenceConfig.Builder>
-
clearOneof
public PersistenceConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<PersistenceConfig.Builder>
-
setRepeatedField
public PersistenceConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PersistenceConfig.Builder>
-
addRepeatedField
public PersistenceConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PersistenceConfig.Builder>
-
mergeFrom
public PersistenceConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<PersistenceConfig.Builder>
-
mergeFrom
public PersistenceConfig.Builder mergeFrom(PersistenceConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<PersistenceConfig.Builder>
-
mergeFrom
public PersistenceConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<PersistenceConfig.Builder>
- Throws:
IOException
-
getPersistenceModeValue
public int getPersistenceModeValue()
Optional. Controls whether Persistence features are enabled. If not provided, the existing value will be used.
.google.cloud.redis.v1.PersistenceConfig.PersistenceMode persistence_mode = 1 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getPersistenceModeValue
in interfacePersistenceConfigOrBuilder
- Returns:
- The enum numeric value on the wire for persistenceMode.
-
setPersistenceModeValue
public PersistenceConfig.Builder setPersistenceModeValue(int value)
Optional. Controls whether Persistence features are enabled. If not provided, the existing value will be used.
.google.cloud.redis.v1.PersistenceConfig.PersistenceMode persistence_mode = 1 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The enum numeric value on the wire for persistenceMode to set.- Returns:
- This builder for chaining.
-
getPersistenceMode
public PersistenceConfig.PersistenceMode getPersistenceMode()
Optional. Controls whether Persistence features are enabled. If not provided, the existing value will be used.
.google.cloud.redis.v1.PersistenceConfig.PersistenceMode persistence_mode = 1 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getPersistenceMode
in interfacePersistenceConfigOrBuilder
- Returns:
- The persistenceMode.
-
setPersistenceMode
public PersistenceConfig.Builder setPersistenceMode(PersistenceConfig.PersistenceMode value)
Optional. Controls whether Persistence features are enabled. If not provided, the existing value will be used.
.google.cloud.redis.v1.PersistenceConfig.PersistenceMode persistence_mode = 1 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The persistenceMode to set.- Returns:
- This builder for chaining.
-
clearPersistenceMode
public PersistenceConfig.Builder clearPersistenceMode()
Optional. Controls whether Persistence features are enabled. If not provided, the existing value will be used.
.google.cloud.redis.v1.PersistenceConfig.PersistenceMode persistence_mode = 1 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- This builder for chaining.
-
getRdbSnapshotPeriodValue
public int getRdbSnapshotPeriodValue()
Optional. Period between RDB snapshots. Snapshots will be attempted every period starting from the provided snapshot start time. For example, a start time of 01/01/2033 06:45 and SIX_HOURS snapshot period will do nothing until 01/01/2033, and then trigger snapshots every day at 06:45, 12:45, 18:45, and 00:45 the next day, and so on. If not provided, TWENTY_FOUR_HOURS will be used as default.
.google.cloud.redis.v1.PersistenceConfig.SnapshotPeriod rdb_snapshot_period = 2 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getRdbSnapshotPeriodValue
in interfacePersistenceConfigOrBuilder
- Returns:
- The enum numeric value on the wire for rdbSnapshotPeriod.
-
setRdbSnapshotPeriodValue
public PersistenceConfig.Builder setRdbSnapshotPeriodValue(int value)
Optional. Period between RDB snapshots. Snapshots will be attempted every period starting from the provided snapshot start time. For example, a start time of 01/01/2033 06:45 and SIX_HOURS snapshot period will do nothing until 01/01/2033, and then trigger snapshots every day at 06:45, 12:45, 18:45, and 00:45 the next day, and so on. If not provided, TWENTY_FOUR_HOURS will be used as default.
.google.cloud.redis.v1.PersistenceConfig.SnapshotPeriod rdb_snapshot_period = 2 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The enum numeric value on the wire for rdbSnapshotPeriod to set.- Returns:
- This builder for chaining.
-
getRdbSnapshotPeriod
public PersistenceConfig.SnapshotPeriod getRdbSnapshotPeriod()
Optional. Period between RDB snapshots. Snapshots will be attempted every period starting from the provided snapshot start time. For example, a start time of 01/01/2033 06:45 and SIX_HOURS snapshot period will do nothing until 01/01/2033, and then trigger snapshots every day at 06:45, 12:45, 18:45, and 00:45 the next day, and so on. If not provided, TWENTY_FOUR_HOURS will be used as default.
.google.cloud.redis.v1.PersistenceConfig.SnapshotPeriod rdb_snapshot_period = 2 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getRdbSnapshotPeriod
in interfacePersistenceConfigOrBuilder
- Returns:
- The rdbSnapshotPeriod.
-
setRdbSnapshotPeriod
public PersistenceConfig.Builder setRdbSnapshotPeriod(PersistenceConfig.SnapshotPeriod value)
Optional. Period between RDB snapshots. Snapshots will be attempted every period starting from the provided snapshot start time. For example, a start time of 01/01/2033 06:45 and SIX_HOURS snapshot period will do nothing until 01/01/2033, and then trigger snapshots every day at 06:45, 12:45, 18:45, and 00:45 the next day, and so on. If not provided, TWENTY_FOUR_HOURS will be used as default.
.google.cloud.redis.v1.PersistenceConfig.SnapshotPeriod rdb_snapshot_period = 2 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The rdbSnapshotPeriod to set.- Returns:
- This builder for chaining.
-
clearRdbSnapshotPeriod
public PersistenceConfig.Builder clearRdbSnapshotPeriod()
Optional. Period between RDB snapshots. Snapshots will be attempted every period starting from the provided snapshot start time. For example, a start time of 01/01/2033 06:45 and SIX_HOURS snapshot period will do nothing until 01/01/2033, and then trigger snapshots every day at 06:45, 12:45, 18:45, and 00:45 the next day, and so on. If not provided, TWENTY_FOUR_HOURS will be used as default.
.google.cloud.redis.v1.PersistenceConfig.SnapshotPeriod rdb_snapshot_period = 2 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- This builder for chaining.
-
hasRdbNextSnapshotTime
public boolean hasRdbNextSnapshotTime()
Output only. The next time that a snapshot attempt is scheduled to occur.
.google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasRdbNextSnapshotTime
in interfacePersistenceConfigOrBuilder
- Returns:
- Whether the rdbNextSnapshotTime field is set.
-
getRdbNextSnapshotTime
public com.google.protobuf.Timestamp getRdbNextSnapshotTime()
Output only. The next time that a snapshot attempt is scheduled to occur.
.google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getRdbNextSnapshotTime
in interfacePersistenceConfigOrBuilder
- Returns:
- The rdbNextSnapshotTime.
-
setRdbNextSnapshotTime
public PersistenceConfig.Builder setRdbNextSnapshotTime(com.google.protobuf.Timestamp value)
Output only. The next time that a snapshot attempt is scheduled to occur.
.google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setRdbNextSnapshotTime
public PersistenceConfig.Builder setRdbNextSnapshotTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The next time that a snapshot attempt is scheduled to occur.
.google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeRdbNextSnapshotTime
public PersistenceConfig.Builder mergeRdbNextSnapshotTime(com.google.protobuf.Timestamp value)
Output only. The next time that a snapshot attempt is scheduled to occur.
.google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearRdbNextSnapshotTime
public PersistenceConfig.Builder clearRdbNextSnapshotTime()
Output only. The next time that a snapshot attempt is scheduled to occur.
.google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getRdbNextSnapshotTimeBuilder
public com.google.protobuf.Timestamp.Builder getRdbNextSnapshotTimeBuilder()
Output only. The next time that a snapshot attempt is scheduled to occur.
.google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getRdbNextSnapshotTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getRdbNextSnapshotTimeOrBuilder()
Output only. The next time that a snapshot attempt is scheduled to occur.
.google.protobuf.Timestamp rdb_next_snapshot_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getRdbNextSnapshotTimeOrBuilder
in interfacePersistenceConfigOrBuilder
-
hasRdbSnapshotStartTime
public boolean hasRdbSnapshotStartTime()
Optional. Date and time that the first snapshot was/will be attempted, and to which future snapshots will be aligned. If not provided, the current time will be used.
.google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
hasRdbSnapshotStartTime
in interfacePersistenceConfigOrBuilder
- Returns:
- Whether the rdbSnapshotStartTime field is set.
-
getRdbSnapshotStartTime
public com.google.protobuf.Timestamp getRdbSnapshotStartTime()
Optional. Date and time that the first snapshot was/will be attempted, and to which future snapshots will be aligned. If not provided, the current time will be used.
.google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getRdbSnapshotStartTime
in interfacePersistenceConfigOrBuilder
- Returns:
- The rdbSnapshotStartTime.
-
setRdbSnapshotStartTime
public PersistenceConfig.Builder setRdbSnapshotStartTime(com.google.protobuf.Timestamp value)
Optional. Date and time that the first snapshot was/will be attempted, and to which future snapshots will be aligned. If not provided, the current time will be used.
.google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL];
-
setRdbSnapshotStartTime
public PersistenceConfig.Builder setRdbSnapshotStartTime(com.google.protobuf.Timestamp.Builder builderForValue)
Optional. Date and time that the first snapshot was/will be attempted, and to which future snapshots will be aligned. If not provided, the current time will be used.
.google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL];
-
mergeRdbSnapshotStartTime
public PersistenceConfig.Builder mergeRdbSnapshotStartTime(com.google.protobuf.Timestamp value)
Optional. Date and time that the first snapshot was/will be attempted, and to which future snapshots will be aligned. If not provided, the current time will be used.
.google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL];
-
clearRdbSnapshotStartTime
public PersistenceConfig.Builder clearRdbSnapshotStartTime()
Optional. Date and time that the first snapshot was/will be attempted, and to which future snapshots will be aligned. If not provided, the current time will be used.
.google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL];
-
getRdbSnapshotStartTimeBuilder
public com.google.protobuf.Timestamp.Builder getRdbSnapshotStartTimeBuilder()
Optional. Date and time that the first snapshot was/will be attempted, and to which future snapshots will be aligned. If not provided, the current time will be used.
.google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL];
-
getRdbSnapshotStartTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getRdbSnapshotStartTimeOrBuilder()
Optional. Date and time that the first snapshot was/will be attempted, and to which future snapshots will be aligned. If not provided, the current time will be used.
.google.protobuf.Timestamp rdb_snapshot_start_time = 5 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getRdbSnapshotStartTimeOrBuilder
in interfacePersistenceConfigOrBuilder
-
setUnknownFields
public final PersistenceConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<PersistenceConfig.Builder>
-
mergeUnknownFields
public final PersistenceConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<PersistenceConfig.Builder>
-
-