Class TransferStats

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

    public final class TransferStats
    extends com.google.protobuf.GeneratedMessageV3
    implements TransferStatsOrBuilder
     TransferStats reports all statistics related to replication transfer.
     
    Protobuf type google.cloud.netapp.v1.TransferStats
    See Also:
    Serialized Form
    • Field Detail

      • TRANSFER_BYTES_FIELD_NUMBER

        public static final int TRANSFER_BYTES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • TOTAL_TRANSFER_DURATION_FIELD_NUMBER

        public static final int TOTAL_TRANSFER_DURATION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • LAST_TRANSFER_BYTES_FIELD_NUMBER

        public static final int LAST_TRANSFER_BYTES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • LAST_TRANSFER_DURATION_FIELD_NUMBER

        public static final int LAST_TRANSFER_DURATION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • LAG_DURATION_FIELD_NUMBER

        public static final int LAG_DURATION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • UPDATE_TIME_FIELD_NUMBER

        public static final int UPDATE_TIME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • LAST_TRANSFER_END_TIME_FIELD_NUMBER

        public static final int LAST_TRANSFER_END_TIME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • LAST_TRANSFER_ERROR_FIELD_NUMBER

        public static final int LAST_TRANSFER_ERROR_FIELD_NUMBER
        See Also:
        Constant Field Values
    • 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
      • hasTransferBytes

        public boolean hasTransferBytes()
         bytes trasferred so far in current transfer.
         
        optional int64 transfer_bytes = 1;
        Specified by:
        hasTransferBytes in interface TransferStatsOrBuilder
        Returns:
        Whether the transferBytes field is set.
      • getTransferBytes

        public long getTransferBytes()
         bytes trasferred so far in current transfer.
         
        optional int64 transfer_bytes = 1;
        Specified by:
        getTransferBytes in interface TransferStatsOrBuilder
        Returns:
        The transferBytes.
      • hasTotalTransferDuration

        public boolean hasTotalTransferDuration()
         Total time taken during transfer.
         
        optional .google.protobuf.Duration total_transfer_duration = 2;
        Specified by:
        hasTotalTransferDuration in interface TransferStatsOrBuilder
        Returns:
        Whether the totalTransferDuration field is set.
      • getTotalTransferDuration

        public com.google.protobuf.Duration getTotalTransferDuration()
         Total time taken during transfer.
         
        optional .google.protobuf.Duration total_transfer_duration = 2;
        Specified by:
        getTotalTransferDuration in interface TransferStatsOrBuilder
        Returns:
        The totalTransferDuration.
      • getTotalTransferDurationOrBuilder

        public com.google.protobuf.DurationOrBuilder getTotalTransferDurationOrBuilder()
         Total time taken during transfer.
         
        optional .google.protobuf.Duration total_transfer_duration = 2;
        Specified by:
        getTotalTransferDurationOrBuilder in interface TransferStatsOrBuilder
      • hasLastTransferBytes

        public boolean hasLastTransferBytes()
         Last transfer size in bytes.
         
        optional int64 last_transfer_bytes = 3;
        Specified by:
        hasLastTransferBytes in interface TransferStatsOrBuilder
        Returns:
        Whether the lastTransferBytes field is set.
      • getLastTransferBytes

        public long getLastTransferBytes()
         Last transfer size in bytes.
         
        optional int64 last_transfer_bytes = 3;
        Specified by:
        getLastTransferBytes in interface TransferStatsOrBuilder
        Returns:
        The lastTransferBytes.
      • hasLastTransferDuration

        public boolean hasLastTransferDuration()
         Time taken during last transfer.
         
        optional .google.protobuf.Duration last_transfer_duration = 4;
        Specified by:
        hasLastTransferDuration in interface TransferStatsOrBuilder
        Returns:
        Whether the lastTransferDuration field is set.
      • getLastTransferDuration

        public com.google.protobuf.Duration getLastTransferDuration()
         Time taken during last transfer.
         
        optional .google.protobuf.Duration last_transfer_duration = 4;
        Specified by:
        getLastTransferDuration in interface TransferStatsOrBuilder
        Returns:
        The lastTransferDuration.
      • getLastTransferDurationOrBuilder

        public com.google.protobuf.DurationOrBuilder getLastTransferDurationOrBuilder()
         Time taken during last transfer.
         
        optional .google.protobuf.Duration last_transfer_duration = 4;
        Specified by:
        getLastTransferDurationOrBuilder in interface TransferStatsOrBuilder
      • hasLagDuration

        public boolean hasLagDuration()
         Lag duration indicates the duration by which Destination region volume
         content lags behind the primary region volume content.
         
        optional .google.protobuf.Duration lag_duration = 5;
        Specified by:
        hasLagDuration in interface TransferStatsOrBuilder
        Returns:
        Whether the lagDuration field is set.
      • getLagDuration

        public com.google.protobuf.Duration getLagDuration()
         Lag duration indicates the duration by which Destination region volume
         content lags behind the primary region volume content.
         
        optional .google.protobuf.Duration lag_duration = 5;
        Specified by:
        getLagDuration in interface TransferStatsOrBuilder
        Returns:
        The lagDuration.
      • getLagDurationOrBuilder

        public com.google.protobuf.DurationOrBuilder getLagDurationOrBuilder()
         Lag duration indicates the duration by which Destination region volume
         content lags behind the primary region volume content.
         
        optional .google.protobuf.Duration lag_duration = 5;
        Specified by:
        getLagDurationOrBuilder in interface TransferStatsOrBuilder
      • hasUpdateTime

        public boolean hasUpdateTime()
         Time when progress was updated last.
         
        optional .google.protobuf.Timestamp update_time = 6;
        Specified by:
        hasUpdateTime in interface TransferStatsOrBuilder
        Returns:
        Whether the updateTime field is set.
      • getUpdateTime

        public com.google.protobuf.Timestamp getUpdateTime()
         Time when progress was updated last.
         
        optional .google.protobuf.Timestamp update_time = 6;
        Specified by:
        getUpdateTime in interface TransferStatsOrBuilder
        Returns:
        The updateTime.
      • getUpdateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
         Time when progress was updated last.
         
        optional .google.protobuf.Timestamp update_time = 6;
        Specified by:
        getUpdateTimeOrBuilder in interface TransferStatsOrBuilder
      • hasLastTransferEndTime

        public boolean hasLastTransferEndTime()
         Time when last transfer completed.
         
        optional .google.protobuf.Timestamp last_transfer_end_time = 7;
        Specified by:
        hasLastTransferEndTime in interface TransferStatsOrBuilder
        Returns:
        Whether the lastTransferEndTime field is set.
      • getLastTransferEndTime

        public com.google.protobuf.Timestamp getLastTransferEndTime()
         Time when last transfer completed.
         
        optional .google.protobuf.Timestamp last_transfer_end_time = 7;
        Specified by:
        getLastTransferEndTime in interface TransferStatsOrBuilder
        Returns:
        The lastTransferEndTime.
      • getLastTransferEndTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getLastTransferEndTimeOrBuilder()
         Time when last transfer completed.
         
        optional .google.protobuf.Timestamp last_transfer_end_time = 7;
        Specified by:
        getLastTransferEndTimeOrBuilder in interface TransferStatsOrBuilder
      • hasLastTransferError

        public boolean hasLastTransferError()
         A message describing the cause of the last transfer failure.
         
        optional string last_transfer_error = 8;
        Specified by:
        hasLastTransferError in interface TransferStatsOrBuilder
        Returns:
        Whether the lastTransferError field is set.
      • getLastTransferError

        public String getLastTransferError()
         A message describing the cause of the last transfer failure.
         
        optional string last_transfer_error = 8;
        Specified by:
        getLastTransferError in interface TransferStatsOrBuilder
        Returns:
        The lastTransferError.
      • getLastTransferErrorBytes

        public com.google.protobuf.ByteString getLastTransferErrorBytes()
         A message describing the cause of the last transfer failure.
         
        optional string last_transfer_error = 8;
        Specified by:
        getLastTransferErrorBytes in interface TransferStatsOrBuilder
        Returns:
        The bytes for lastTransferError.
      • 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 TransferStats parseFrom​(ByteBuffer data)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

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

        public static TransferStats getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<TransferStats> parser()
      • getParserForType

        public com.google.protobuf.Parser<TransferStats> 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 TransferStats getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder