Class TransferStats.Builder (0.2.0)

public static final class TransferStats.Builder extends GeneratedMessageV3.Builder<TransferStats.Builder> implements TransferStatsOrBuilder

TransferStats reports all statistics related to replication transfer.

Protobuf type google.cloud.netapp.v1.TransferStats

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TransferStats.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TransferStats.Builder
Overrides

build()

public TransferStats build()
Returns
TypeDescription
TransferStats

buildPartial()

public TransferStats buildPartial()
Returns
TypeDescription
TransferStats

clear()

public TransferStats.Builder clear()
Returns
TypeDescription
TransferStats.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public TransferStats.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
TransferStats.Builder
Overrides

clearLagDuration()

public TransferStats.Builder clearLagDuration()

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;

Returns
TypeDescription
TransferStats.Builder

clearLastTransferBytes()

public TransferStats.Builder clearLastTransferBytes()

Last transfer size in bytes.

optional int64 last_transfer_bytes = 3;

Returns
TypeDescription
TransferStats.Builder

This builder for chaining.

clearLastTransferDuration()

public TransferStats.Builder clearLastTransferDuration()

Time taken during last transfer.

optional .google.protobuf.Duration last_transfer_duration = 4;

Returns
TypeDescription
TransferStats.Builder

clearLastTransferEndTime()

public TransferStats.Builder clearLastTransferEndTime()

Time when last transfer completed.

optional .google.protobuf.Timestamp last_transfer_end_time = 7;

Returns
TypeDescription
TransferStats.Builder

clearLastTransferError()

public TransferStats.Builder clearLastTransferError()

A message describing the cause of the last transfer failure.

optional string last_transfer_error = 8;

Returns
TypeDescription
TransferStats.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public TransferStats.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
TransferStats.Builder
Overrides

clearTotalTransferDuration()

public TransferStats.Builder clearTotalTransferDuration()

Total time taken during transfer.

optional .google.protobuf.Duration total_transfer_duration = 2;

Returns
TypeDescription
TransferStats.Builder

clearTransferBytes()

public TransferStats.Builder clearTransferBytes()

bytes trasferred so far in current transfer.

optional int64 transfer_bytes = 1;

Returns
TypeDescription
TransferStats.Builder

This builder for chaining.

clearUpdateTime()

public TransferStats.Builder clearUpdateTime()

Time when progress was updated last.

optional .google.protobuf.Timestamp update_time = 6;

Returns
TypeDescription
TransferStats.Builder

clone()

public TransferStats.Builder clone()
Returns
TypeDescription
TransferStats.Builder
Overrides

getDefaultInstanceForType()

public TransferStats getDefaultInstanceForType()
Returns
TypeDescription
TransferStats

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLagDuration()

public 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;

Returns
TypeDescription
Duration

The lagDuration.

getLagDurationBuilder()

public Duration.Builder getLagDurationBuilder()

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;

Returns
TypeDescription
Builder

getLagDurationOrBuilder()

public 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;

Returns
TypeDescription
DurationOrBuilder

getLastTransferBytes()

public long getLastTransferBytes()

Last transfer size in bytes.

optional int64 last_transfer_bytes = 3;

Returns
TypeDescription
long

The lastTransferBytes.

getLastTransferDuration()

public Duration getLastTransferDuration()

Time taken during last transfer.

optional .google.protobuf.Duration last_transfer_duration = 4;

Returns
TypeDescription
Duration

The lastTransferDuration.

getLastTransferDurationBuilder()

public Duration.Builder getLastTransferDurationBuilder()

Time taken during last transfer.

optional .google.protobuf.Duration last_transfer_duration = 4;

Returns
TypeDescription
Builder

getLastTransferDurationOrBuilder()

public DurationOrBuilder getLastTransferDurationOrBuilder()

Time taken during last transfer.

optional .google.protobuf.Duration last_transfer_duration = 4;

Returns
TypeDescription
DurationOrBuilder

getLastTransferEndTime()

public Timestamp getLastTransferEndTime()

Time when last transfer completed.

optional .google.protobuf.Timestamp last_transfer_end_time = 7;

Returns
TypeDescription
Timestamp

The lastTransferEndTime.

getLastTransferEndTimeBuilder()

public Timestamp.Builder getLastTransferEndTimeBuilder()

Time when last transfer completed.

optional .google.protobuf.Timestamp last_transfer_end_time = 7;

Returns
TypeDescription
Builder

getLastTransferEndTimeOrBuilder()

public TimestampOrBuilder getLastTransferEndTimeOrBuilder()

Time when last transfer completed.

optional .google.protobuf.Timestamp last_transfer_end_time = 7;

Returns
TypeDescription
TimestampOrBuilder

getLastTransferError()

public String getLastTransferError()

A message describing the cause of the last transfer failure.

optional string last_transfer_error = 8;

Returns
TypeDescription
String

The lastTransferError.

getLastTransferErrorBytes()

public ByteString getLastTransferErrorBytes()

A message describing the cause of the last transfer failure.

optional string last_transfer_error = 8;

Returns
TypeDescription
ByteString

The bytes for lastTransferError.

getTotalTransferDuration()

public Duration getTotalTransferDuration()

Total time taken during transfer.

optional .google.protobuf.Duration total_transfer_duration = 2;

Returns
TypeDescription
Duration

The totalTransferDuration.

getTotalTransferDurationBuilder()

public Duration.Builder getTotalTransferDurationBuilder()

Total time taken during transfer.

optional .google.protobuf.Duration total_transfer_duration = 2;

Returns
TypeDescription
Builder

getTotalTransferDurationOrBuilder()

public DurationOrBuilder getTotalTransferDurationOrBuilder()

Total time taken during transfer.

optional .google.protobuf.Duration total_transfer_duration = 2;

Returns
TypeDescription
DurationOrBuilder

getTransferBytes()

public long getTransferBytes()

bytes trasferred so far in current transfer.

optional int64 transfer_bytes = 1;

Returns
TypeDescription
long

The transferBytes.

getUpdateTime()

public Timestamp getUpdateTime()

Time when progress was updated last.

optional .google.protobuf.Timestamp update_time = 6;

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Time when progress was updated last.

optional .google.protobuf.Timestamp update_time = 6;

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Time when progress was updated last.

optional .google.protobuf.Timestamp update_time = 6;

Returns
TypeDescription
TimestampOrBuilder

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;

Returns
TypeDescription
boolean

Whether the lagDuration field is set.

hasLastTransferBytes()

public boolean hasLastTransferBytes()

Last transfer size in bytes.

optional int64 last_transfer_bytes = 3;

Returns
TypeDescription
boolean

Whether the lastTransferBytes field is set.

hasLastTransferDuration()

public boolean hasLastTransferDuration()

Time taken during last transfer.

optional .google.protobuf.Duration last_transfer_duration = 4;

Returns
TypeDescription
boolean

Whether the lastTransferDuration field is set.

hasLastTransferEndTime()

public boolean hasLastTransferEndTime()

Time when last transfer completed.

optional .google.protobuf.Timestamp last_transfer_end_time = 7;

Returns
TypeDescription
boolean

Whether the lastTransferEndTime field is set.

hasLastTransferError()

public boolean hasLastTransferError()

A message describing the cause of the last transfer failure.

optional string last_transfer_error = 8;

Returns
TypeDescription
boolean

Whether the lastTransferError field is set.

hasTotalTransferDuration()

public boolean hasTotalTransferDuration()

Total time taken during transfer.

optional .google.protobuf.Duration total_transfer_duration = 2;

Returns
TypeDescription
boolean

Whether the totalTransferDuration field is set.

hasTransferBytes()

public boolean hasTransferBytes()

bytes trasferred so far in current transfer.

optional int64 transfer_bytes = 1;

Returns
TypeDescription
boolean

Whether the transferBytes field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Time when progress was updated last.

optional .google.protobuf.Timestamp update_time = 6;

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TransferStats other)

public TransferStats.Builder mergeFrom(TransferStats other)
Parameter
NameDescription
otherTransferStats
Returns
TypeDescription
TransferStats.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TransferStats.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TransferStats.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public TransferStats.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
TransferStats.Builder
Overrides

mergeLagDuration(Duration value)

public TransferStats.Builder mergeLagDuration(Duration value)

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;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
TransferStats.Builder

mergeLastTransferDuration(Duration value)

public TransferStats.Builder mergeLastTransferDuration(Duration value)

Time taken during last transfer.

optional .google.protobuf.Duration last_transfer_duration = 4;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
TransferStats.Builder

mergeLastTransferEndTime(Timestamp value)

public TransferStats.Builder mergeLastTransferEndTime(Timestamp value)

Time when last transfer completed.

optional .google.protobuf.Timestamp last_transfer_end_time = 7;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
TransferStats.Builder

mergeTotalTransferDuration(Duration value)

public TransferStats.Builder mergeTotalTransferDuration(Duration value)

Total time taken during transfer.

optional .google.protobuf.Duration total_transfer_duration = 2;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
TransferStats.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TransferStats.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TransferStats.Builder
Overrides

mergeUpdateTime(Timestamp value)

public TransferStats.Builder mergeUpdateTime(Timestamp value)

Time when progress was updated last.

optional .google.protobuf.Timestamp update_time = 6;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
TransferStats.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public TransferStats.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TransferStats.Builder
Overrides

setLagDuration(Duration value)

public TransferStats.Builder setLagDuration(Duration value)

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;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
TransferStats.Builder

setLagDuration(Duration.Builder builderForValue)

public TransferStats.Builder setLagDuration(Duration.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
TransferStats.Builder

setLastTransferBytes(long value)

public TransferStats.Builder setLastTransferBytes(long value)

Last transfer size in bytes.

optional int64 last_transfer_bytes = 3;

Parameter
NameDescription
valuelong

The lastTransferBytes to set.

Returns
TypeDescription
TransferStats.Builder

This builder for chaining.

setLastTransferDuration(Duration value)

public TransferStats.Builder setLastTransferDuration(Duration value)

Time taken during last transfer.

optional .google.protobuf.Duration last_transfer_duration = 4;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
TransferStats.Builder

setLastTransferDuration(Duration.Builder builderForValue)

public TransferStats.Builder setLastTransferDuration(Duration.Builder builderForValue)

Time taken during last transfer.

optional .google.protobuf.Duration last_transfer_duration = 4;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
TransferStats.Builder

setLastTransferEndTime(Timestamp value)

public TransferStats.Builder setLastTransferEndTime(Timestamp value)

Time when last transfer completed.

optional .google.protobuf.Timestamp last_transfer_end_time = 7;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
TransferStats.Builder

setLastTransferEndTime(Timestamp.Builder builderForValue)

public TransferStats.Builder setLastTransferEndTime(Timestamp.Builder builderForValue)

Time when last transfer completed.

optional .google.protobuf.Timestamp last_transfer_end_time = 7;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
TransferStats.Builder

setLastTransferError(String value)

public TransferStats.Builder setLastTransferError(String value)

A message describing the cause of the last transfer failure.

optional string last_transfer_error = 8;

Parameter
NameDescription
valueString

The lastTransferError to set.

Returns
TypeDescription
TransferStats.Builder

This builder for chaining.

setLastTransferErrorBytes(ByteString value)

public TransferStats.Builder setLastTransferErrorBytes(ByteString value)

A message describing the cause of the last transfer failure.

optional string last_transfer_error = 8;

Parameter
NameDescription
valueByteString

The bytes for lastTransferError to set.

Returns
TypeDescription
TransferStats.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public TransferStats.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TransferStats.Builder
Overrides

setTotalTransferDuration(Duration value)

public TransferStats.Builder setTotalTransferDuration(Duration value)

Total time taken during transfer.

optional .google.protobuf.Duration total_transfer_duration = 2;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
TransferStats.Builder

setTotalTransferDuration(Duration.Builder builderForValue)

public TransferStats.Builder setTotalTransferDuration(Duration.Builder builderForValue)

Total time taken during transfer.

optional .google.protobuf.Duration total_transfer_duration = 2;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
TransferStats.Builder

setTransferBytes(long value)

public TransferStats.Builder setTransferBytes(long value)

bytes trasferred so far in current transfer.

optional int64 transfer_bytes = 1;

Parameter
NameDescription
valuelong

The transferBytes to set.

Returns
TypeDescription
TransferStats.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final TransferStats.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TransferStats.Builder
Overrides

setUpdateTime(Timestamp value)

public TransferStats.Builder setUpdateTime(Timestamp value)

Time when progress was updated last.

optional .google.protobuf.Timestamp update_time = 6;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
TransferStats.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public TransferStats.Builder setUpdateTime(Timestamp.Builder builderForValue)

Time when progress was updated last.

optional .google.protobuf.Timestamp update_time = 6;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
TransferStats.Builder