Class ReplicationCycle

  • All Implemented Interfaces:
    ReplicationCycleOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class ReplicationCycle
    extends com.google.protobuf.GeneratedMessageV3
    implements ReplicationCycleOrBuilder
     ReplicationCycle contains information about the current replication cycle
     status.
     
    Protobuf type google.cloud.vmmigration.v1.ReplicationCycle
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         The identifier of the ReplicationCycle.
         
        string name = 13;
        Specified by:
        getNameBytes in interface ReplicationCycleOrBuilder
        Returns:
        The bytes for name.
      • getCycleNumber

        public int getCycleNumber()
         The cycle's ordinal number.
         
        int32 cycle_number = 10;
        Specified by:
        getCycleNumber in interface ReplicationCycleOrBuilder
        Returns:
        The cycleNumber.
      • hasStartTime

        public boolean hasStartTime()
         The time the replication cycle has started.
         
        .google.protobuf.Timestamp start_time = 1;
        Specified by:
        hasStartTime in interface ReplicationCycleOrBuilder
        Returns:
        Whether the startTime field is set.
      • getStartTime

        public com.google.protobuf.Timestamp getStartTime()
         The time the replication cycle has started.
         
        .google.protobuf.Timestamp start_time = 1;
        Specified by:
        getStartTime in interface ReplicationCycleOrBuilder
        Returns:
        The startTime.
      • getStartTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
         The time the replication cycle has started.
         
        .google.protobuf.Timestamp start_time = 1;
        Specified by:
        getStartTimeOrBuilder in interface ReplicationCycleOrBuilder
      • hasEndTime

        public boolean hasEndTime()
         The time the replication cycle has ended.
         
        .google.protobuf.Timestamp end_time = 6;
        Specified by:
        hasEndTime in interface ReplicationCycleOrBuilder
        Returns:
        Whether the endTime field is set.
      • getEndTime

        public com.google.protobuf.Timestamp getEndTime()
         The time the replication cycle has ended.
         
        .google.protobuf.Timestamp end_time = 6;
        Specified by:
        getEndTime in interface ReplicationCycleOrBuilder
        Returns:
        The endTime.
      • getEndTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()
         The time the replication cycle has ended.
         
        .google.protobuf.Timestamp end_time = 6;
        Specified by:
        getEndTimeOrBuilder in interface ReplicationCycleOrBuilder
      • hasTotalPauseDuration

        public boolean hasTotalPauseDuration()
         The accumulated duration the replication cycle was paused.
         
        .google.protobuf.Duration total_pause_duration = 7;
        Specified by:
        hasTotalPauseDuration in interface ReplicationCycleOrBuilder
        Returns:
        Whether the totalPauseDuration field is set.
      • getTotalPauseDuration

        public com.google.protobuf.Duration getTotalPauseDuration()
         The accumulated duration the replication cycle was paused.
         
        .google.protobuf.Duration total_pause_duration = 7;
        Specified by:
        getTotalPauseDuration in interface ReplicationCycleOrBuilder
        Returns:
        The totalPauseDuration.
      • getTotalPauseDurationOrBuilder

        public com.google.protobuf.DurationOrBuilder getTotalPauseDurationOrBuilder()
         The accumulated duration the replication cycle was paused.
         
        .google.protobuf.Duration total_pause_duration = 7;
        Specified by:
        getTotalPauseDurationOrBuilder in interface ReplicationCycleOrBuilder
      • getProgressPercent

        @Deprecated
        public int getProgressPercent()
        Deprecated.
        google.cloud.vmmigration.v1.ReplicationCycle.progress_percent is deprecated. See google/cloud/vmmigration/v1/vmmigration.proto;l=715
         The current progress in percentage of this cycle.
         Was replaced by 'steps' field, which breaks down the cycle progression more
         accurately.
         
        int32 progress_percent = 5 [deprecated = true];
        Specified by:
        getProgressPercent in interface ReplicationCycleOrBuilder
        Returns:
        The progressPercent.
      • getStepsCount

        public int getStepsCount()
         The cycle's steps list representing its progress.
         
        repeated .google.cloud.vmmigration.v1.CycleStep steps = 9;
        Specified by:
        getStepsCount in interface ReplicationCycleOrBuilder
      • getSteps

        public CycleStep getSteps​(int index)
         The cycle's steps list representing its progress.
         
        repeated .google.cloud.vmmigration.v1.CycleStep steps = 9;
        Specified by:
        getSteps in interface ReplicationCycleOrBuilder
      • getStateValue

        public int getStateValue()
         State of the ReplicationCycle.
         
        .google.cloud.vmmigration.v1.ReplicationCycle.State state = 11;
        Specified by:
        getStateValue in interface ReplicationCycleOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • hasError

        public boolean hasError()
         Provides details on the state of the cycle in case of an error.
         
        .google.rpc.Status error = 12;
        Specified by:
        hasError in interface ReplicationCycleOrBuilder
        Returns:
        Whether the error field is set.
      • getError

        public com.google.rpc.Status getError()
         Provides details on the state of the cycle in case of an error.
         
        .google.rpc.Status error = 12;
        Specified by:
        getError in interface ReplicationCycleOrBuilder
        Returns:
        The error.
      • getErrorOrBuilder

        public com.google.rpc.StatusOrBuilder getErrorOrBuilder()
         Provides details on the state of the cycle in case of an error.
         
        .google.rpc.Status error = 12;
        Specified by:
        getErrorOrBuilder in interface ReplicationCycleOrBuilder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static ReplicationCycle parseFrom​(ByteBuffer data)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ReplicationCycle parseFrom​(ByteBuffer data,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ReplicationCycle parseFrom​(com.google.protobuf.ByteString data)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ReplicationCycle parseFrom​(com.google.protobuf.ByteString data,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ReplicationCycle parseFrom​(byte[] data)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ReplicationCycle parseFrom​(byte[] data,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ReplicationCycle parseFrom​(com.google.protobuf.CodedInputStream input,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws IOException
        Throws:
        IOException
      • newBuilderForType

        public ReplicationCycle.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public ReplicationCycle.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected ReplicationCycle.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<ReplicationCycle> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public ReplicationCycle getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder