Class RpoConfig (0.46.0)

public final class RpoConfig extends GeneratedMessageV3 implements RpoConfigOrBuilder

Defines RPO scheduling configuration for automatically creating Backups via this BackupPlan.

Protobuf type google.cloud.gkebackup.v1.RpoConfig

Implements

RpoConfigOrBuilder

Static Fields

EXCLUSION_WINDOWS_FIELD_NUMBER

public static final int EXCLUSION_WINDOWS_FIELD_NUMBER
Field Value
Type Description
int

TARGET_RPO_MINUTES_FIELD_NUMBER

public static final int TARGET_RPO_MINUTES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static RpoConfig getDefaultInstance()
Returns
Type Description
RpoConfig

getDescriptor()

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

newBuilder()

public static RpoConfig.Builder newBuilder()
Returns
Type Description
RpoConfig.Builder

newBuilder(RpoConfig prototype)

public static RpoConfig.Builder newBuilder(RpoConfig prototype)
Parameter
Name Description
prototype RpoConfig
Returns
Type Description
RpoConfig.Builder

parseDelimitedFrom(InputStream input)

public static RpoConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RpoConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RpoConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RpoConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static RpoConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
RpoConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RpoConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RpoConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RpoConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
RpoConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RpoConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RpoConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RpoConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
RpoConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RpoConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RpoConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static RpoConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RpoConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RpoConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RpoConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static RpoConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
RpoConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RpoConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RpoConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<RpoConfig> parser()
Returns
Type Description
Parser<RpoConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public RpoConfig getDefaultInstanceForType()
Returns
Type Description
RpoConfig

getExclusionWindows(int index)

public ExclusionWindow getExclusionWindows(int index)

Optional. User specified time windows during which backup can NOT happen for this BackupPlan - backups should start and finish outside of any given exclusion window. Note: backup jobs will be scheduled to start and finish outside the duration of the window as much as possible, but running jobs will not get canceled when it runs into the window. All the time and date values in exclusion_windows entry in the API are in UTC. We only allow <=1 recurrence (daily or weekly) exclusion window for a BackupPlan while no restriction on number of single occurrence windows.

repeated .google.cloud.gkebackup.v1.ExclusionWindow exclusion_windows = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ExclusionWindow

getExclusionWindowsCount()

public int getExclusionWindowsCount()

Optional. User specified time windows during which backup can NOT happen for this BackupPlan - backups should start and finish outside of any given exclusion window. Note: backup jobs will be scheduled to start and finish outside the duration of the window as much as possible, but running jobs will not get canceled when it runs into the window. All the time and date values in exclusion_windows entry in the API are in UTC. We only allow <=1 recurrence (daily or weekly) exclusion window for a BackupPlan while no restriction on number of single occurrence windows.

repeated .google.cloud.gkebackup.v1.ExclusionWindow exclusion_windows = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getExclusionWindowsList()

public List<ExclusionWindow> getExclusionWindowsList()

Optional. User specified time windows during which backup can NOT happen for this BackupPlan - backups should start and finish outside of any given exclusion window. Note: backup jobs will be scheduled to start and finish outside the duration of the window as much as possible, but running jobs will not get canceled when it runs into the window. All the time and date values in exclusion_windows entry in the API are in UTC. We only allow <=1 recurrence (daily or weekly) exclusion window for a BackupPlan while no restriction on number of single occurrence windows.

repeated .google.cloud.gkebackup.v1.ExclusionWindow exclusion_windows = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<ExclusionWindow>

getExclusionWindowsOrBuilder(int index)

public ExclusionWindowOrBuilder getExclusionWindowsOrBuilder(int index)

Optional. User specified time windows during which backup can NOT happen for this BackupPlan - backups should start and finish outside of any given exclusion window. Note: backup jobs will be scheduled to start and finish outside the duration of the window as much as possible, but running jobs will not get canceled when it runs into the window. All the time and date values in exclusion_windows entry in the API are in UTC. We only allow <=1 recurrence (daily or weekly) exclusion window for a BackupPlan while no restriction on number of single occurrence windows.

repeated .google.cloud.gkebackup.v1.ExclusionWindow exclusion_windows = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ExclusionWindowOrBuilder

getExclusionWindowsOrBuilderList()

public List<? extends ExclusionWindowOrBuilder> getExclusionWindowsOrBuilderList()

Optional. User specified time windows during which backup can NOT happen for this BackupPlan - backups should start and finish outside of any given exclusion window. Note: backup jobs will be scheduled to start and finish outside the duration of the window as much as possible, but running jobs will not get canceled when it runs into the window. All the time and date values in exclusion_windows entry in the API are in UTC. We only allow <=1 recurrence (daily or weekly) exclusion window for a BackupPlan while no restriction on number of single occurrence windows.

repeated .google.cloud.gkebackup.v1.ExclusionWindow exclusion_windows = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.gkebackup.v1.ExclusionWindowOrBuilder>

getParserForType()

public Parser<RpoConfig> getParserForType()
Returns
Type Description
Parser<RpoConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTargetRpoMinutes()

public int getTargetRpoMinutes()

Required. Defines the target RPO for the BackupPlan in minutes, which means the target maximum data loss in time that is acceptable for this BackupPlan. This must be at least 60, i.e., 1 hour, and at most 86400, i.e., 60 days.

int32 target_rpo_minutes = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The targetRpoMinutes.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public RpoConfig.Builder newBuilderForType()
Returns
Type Description
RpoConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected RpoConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
RpoConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public RpoConfig.Builder toBuilder()
Returns
Type Description
RpoConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException