Class SchedulePolicy (1.0.5)

public final class SchedulePolicy extends GeneratedMessageV3 implements SchedulePolicyOrBuilder

A policy for scheduling replications.

Protobuf type google.cloud.vmmigration.v1.SchedulePolicy

Static Fields

IDLE_DURATION_FIELD_NUMBER

public static final int IDLE_DURATION_FIELD_NUMBER
Field Value
TypeDescription
int

SKIP_OS_ADAPTATION_FIELD_NUMBER

public static final int SKIP_OS_ADAPTATION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SchedulePolicy getDefaultInstance()
Returns
TypeDescription
SchedulePolicy

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static SchedulePolicy.Builder newBuilder()
Returns
TypeDescription
SchedulePolicy.Builder

newBuilder(SchedulePolicy prototype)

public static SchedulePolicy.Builder newBuilder(SchedulePolicy prototype)
Parameter
NameDescription
prototypeSchedulePolicy
Returns
TypeDescription
SchedulePolicy.Builder

parseDelimitedFrom(InputStream input)

public static SchedulePolicy parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SchedulePolicy
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SchedulePolicy parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SchedulePolicy
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static SchedulePolicy parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
SchedulePolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SchedulePolicy parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SchedulePolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SchedulePolicy parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
SchedulePolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SchedulePolicy parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SchedulePolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SchedulePolicy parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
SchedulePolicy
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SchedulePolicy parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SchedulePolicy
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static SchedulePolicy parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SchedulePolicy
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SchedulePolicy parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SchedulePolicy
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static SchedulePolicy parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
SchedulePolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SchedulePolicy parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SchedulePolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<SchedulePolicy> parser()
Returns
TypeDescription
Parser<SchedulePolicy>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public SchedulePolicy getDefaultInstanceForType()
Returns
TypeDescription
SchedulePolicy

getIdleDuration()

public Duration getIdleDuration()

The idle duration between replication stages.

.google.protobuf.Duration idle_duration = 1;

Returns
TypeDescription
Duration

The idleDuration.

getIdleDurationOrBuilder()

public DurationOrBuilder getIdleDurationOrBuilder()

The idle duration between replication stages.

.google.protobuf.Duration idle_duration = 1;

Returns
TypeDescription
DurationOrBuilder

getParserForType()

public Parser<SchedulePolicy> getParserForType()
Returns
TypeDescription
Parser<SchedulePolicy>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSkipOsAdaptation()

public boolean getSkipOsAdaptation()

A flag to indicate whether to skip OS adaptation during the replication sync. OS adaptation is a process where the VM's operating system undergoes changes and adaptations to fully function on Compute Engine.

bool skip_os_adaptation = 2;

Returns
TypeDescription
boolean

The skipOsAdaptation.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasIdleDuration()

public boolean hasIdleDuration()

The idle duration between replication stages.

.google.protobuf.Duration idle_duration = 1;

Returns
TypeDescription
boolean

Whether the idleDuration field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public SchedulePolicy.Builder newBuilderForType()
Returns
TypeDescription
SchedulePolicy.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SchedulePolicy.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
SchedulePolicy.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public SchedulePolicy.Builder toBuilder()
Returns
TypeDescription
SchedulePolicy.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException