implements
// @@protoc_insertion_point(builder_implements:google.cloud.netapp.v1.TransferStats)
com.google.cloud.netapp.v1.TransferStatsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.netapp.v1.ReplicationProto
.internal_static_google_cloud_netapp_v1_TransferStats_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.netapp.v1.ReplicationProto
.internal_static_google_cloud_netapp_v1_TransferStats_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.netapp.v1.TransferStats.class,
com.google.cloud.netapp.v1.TransferStats.Builder.class);
}
// Construct using com.google.cloud.netapp.v1.TransferStats.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getTotalTransferDurationFieldBuilder();
getLastTransferDurationFieldBuilder();
getLagDurationFieldBuilder();
getUpdateTimeFieldBuilder();
getLastTransferEndTimeFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
transferBytes_ = 0L;
totalTransferDuration_ = null;
if (totalTransferDurationBuilder_ != null) {
totalTransferDurationBuilder_.dispose();
totalTransferDurationBuilder_ = null;
}
lastTransferBytes_ = 0L;
lastTransferDuration_ = null;
if (lastTransferDurationBuilder_ != null) {
lastTransferDurationBuilder_.dispose();
lastTransferDurationBuilder_ = null;
}
lagDuration_ = null;
if (lagDurationBuilder_ != null) {
lagDurationBuilder_.dispose();
lagDurationBuilder_ = null;
}
updateTime_ = null;
if (updateTimeBuilder_ != null) {
updateTimeBuilder_.dispose();
updateTimeBuilder_ = null;
}
lastTransferEndTime_ = null;
if (lastTransferEndTimeBuilder_ != null) {
lastTransferEndTimeBuilder_.dispose();
lastTransferEndTimeBuilder_ = null;
}
lastTransferError_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.netapp.v1.ReplicationProto
.internal_static_google_cloud_netapp_v1_TransferStats_descriptor;
}
@java.lang.Override
public com.google.cloud.netapp.v1.TransferStats getDefaultInstanceForType() {
return com.google.cloud.netapp.v1.TransferStats.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.netapp.v1.TransferStats build() {
com.google.cloud.netapp.v1.TransferStats result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.netapp.v1.TransferStats buildPartial() {
com.google.cloud.netapp.v1.TransferStats result =
new com.google.cloud.netapp.v1.TransferStats(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.netapp.v1.TransferStats result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.transferBytes_ = transferBytes_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.totalTransferDuration_ =
totalTransferDurationBuilder_ == null
? totalTransferDuration_
: totalTransferDurationBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.lastTransferBytes_ = lastTransferBytes_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.lastTransferDuration_ =
lastTransferDurationBuilder_ == null
? lastTransferDuration_
: lastTransferDurationBuilder_.build();
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.lagDuration_ =
lagDurationBuilder_ == null ? lagDuration_ : lagDurationBuilder_.build();
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.lastTransferEndTime_ =
lastTransferEndTimeBuilder_ == null
? lastTransferEndTime_
: lastTransferEndTimeBuilder_.build();
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.lastTransferError_ = lastTransferError_;
to_bitField0_ |= 0x00000080;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.netapp.v1.TransferStats) {
return mergeFrom((com.google.cloud.netapp.v1.TransferStats) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.netapp.v1.TransferStats other) {
if (other == com.google.cloud.netapp.v1.TransferStats.getDefaultInstance()) return this;
if (other.hasTransferBytes()) {
setTransferBytes(other.getTransferBytes());
}
if (other.hasTotalTransferDuration()) {
mergeTotalTransferDuration(other.getTotalTransferDuration());
}
if (other.hasLastTransferBytes()) {
setLastTransferBytes(other.getLastTransferBytes());
}
if (other.hasLastTransferDuration()) {
mergeLastTransferDuration(other.getLastTransferDuration());
}
if (other.hasLagDuration()) {
mergeLagDuration(other.getLagDuration());
}
if (other.hasUpdateTime()) {
mergeUpdateTime(other.getUpdateTime());
}
if (other.hasLastTransferEndTime()) {
mergeLastTransferEndTime(other.getLastTransferEndTime());
}
if (other.hasLastTransferError()) {
lastTransferError_ = other.lastTransferError_;
bitField0_ |= 0x00000080;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8:
{
transferBytes_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18:
{
input.readMessage(
getTotalTransferDurationFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 24:
{
lastTransferBytes_ = input.readInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
case 34:
{
input.readMessage(
getLastTransferDurationFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 42:
{
input.readMessage(getLagDurationFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 42
case 50:
{
input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 50
case 58:
{
input.readMessage(
getLastTransferEndTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000040;
break;
} // case 58
case 66:
{
lastTransferError_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000080;
break;
} // case 66
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private long transferBytes_;
/**
*
*
*
* Cumulative bytes trasferred so far for the replication relatinonship.
*
*
* optional int64 transfer_bytes = 1;
*
* @return Whether the transferBytes field is set.
*/
@java.lang.Override
public boolean hasTransferBytes() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Cumulative bytes trasferred so far for the replication relatinonship.
*
*
* optional int64 transfer_bytes = 1;
*
* @return The transferBytes.
*/
@java.lang.Override
public long getTransferBytes() {
return transferBytes_;
}
/**
*
*
*
* Cumulative bytes trasferred so far for the replication relatinonship.
*
*
* optional int64 transfer_bytes = 1;
*
* @param value The transferBytes to set.
* @return This builder for chaining.
*/
public Builder setTransferBytes(long value) {
transferBytes_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Cumulative bytes trasferred so far for the replication relatinonship.
*
*
* optional int64 transfer_bytes = 1;
*
* @return This builder for chaining.
*/
public Builder clearTransferBytes() {
bitField0_ = (bitField0_ & ~0x00000001);
transferBytes_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.Duration totalTransferDuration_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration,
com.google.protobuf.Duration.Builder,
com.google.protobuf.DurationOrBuilder>
totalTransferDurationBuilder_;
/**
*
*
*
* Cumulative time taken across all transfers for the replication
* relationship.
*
*
* optional .google.protobuf.Duration total_transfer_duration = 2;
*
* @return Whether the totalTransferDuration field is set.
*/
public boolean hasTotalTransferDuration() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* Cumulative time taken across all transfers for the replication
* relationship.
*
*
* optional .google.protobuf.Duration total_transfer_duration = 2;
*
* @return The totalTransferDuration.
*/
public com.google.protobuf.Duration getTotalTransferDuration() {
if (totalTransferDurationBuilder_ == null) {
return totalTransferDuration_ == null
? com.google.protobuf.Duration.getDefaultInstance()
: totalTransferDuration_;
} else {
return totalTransferDurationBuilder_.getMessage();
}
}
/**
*
*
*
* Cumulative time taken across all transfers for the replication
* relationship.
*
*
* optional .google.protobuf.Duration total_transfer_duration = 2;
*/
public Builder setTotalTransferDuration(com.google.protobuf.Duration value) {
if (totalTransferDurationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
totalTransferDuration_ = value;
} else {
totalTransferDurationBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Cumulative time taken across all transfers for the replication
* relationship.
*
*
* optional .google.protobuf.Duration total_transfer_duration = 2;
*/
public Builder setTotalTransferDuration(com.google.protobuf.Duration.Builder builderForValue) {
if (totalTransferDurationBuilder_ == null) {
totalTransferDuration_ = builderForValue.build();
} else {
totalTransferDurationBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Cumulative time taken across all transfers for the replication
* relationship.
*
*
* optional .google.protobuf.Duration total_transfer_duration = 2;
*/
public Builder mergeTotalTransferDuration(com.google.protobuf.Duration value) {
if (totalTransferDurationBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)
&& totalTransferDuration_ != null
&& totalTransferDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
getTotalTransferDurationBuilder().mergeFrom(value);
} else {
totalTransferDuration_ = value;
}
} else {
totalTransferDurationBuilder_.mergeFrom(value);
}
if (totalTransferDuration_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
*
*
* Cumulative time taken across all transfers for the replication
* relationship.
*
*
* optional .google.protobuf.Duration total_transfer_duration = 2;
*/
public Builder clearTotalTransferDuration() {
bitField0_ = (bitField0_ & ~0x00000002);
totalTransferDuration_ = null;
if (totalTransferDurationBuilder_ != null) {
totalTransferDurationBuilder_.dispose();
totalTransferDurationBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Cumulative time taken across all transfers for the replication
* relationship.
*
*
* optional .google.protobuf.Duration total_transfer_duration = 2;
*/
public com.google.protobuf.Duration.Builder getTotalTransferDurationBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getTotalTransferDurationFieldBuilder().getBuilder();
}
/**
*
*
*
* Cumulative time taken across all transfers for the replication
* relationship.
*
*
* optional .google.protobuf.Duration total_transfer_duration = 2;
*/
public com.google.protobuf.DurationOrBuilder getTotalTransferDurationOrBuilder() {
if (totalTransferDurationBuilder_ != null) {
return totalTransferDurationBuilder_.getMessageOrBuilder();
} else {
return totalTransferDuration_ == null
? com.google.protobuf.Duration.getDefaultInstance()
: totalTransferDuration_;
}
}
/**
*
*
*
* Cumulative time taken across all transfers for the replication
* relationship.
*
*
* optional .google.protobuf.Duration total_transfer_duration = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration,
com.google.protobuf.Duration.Builder,
com.google.protobuf.DurationOrBuilder>
getTotalTransferDurationFieldBuilder() {
if (totalTransferDurationBuilder_ == null) {
totalTransferDurationBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration,
com.google.protobuf.Duration.Builder,
com.google.protobuf.DurationOrBuilder>(
getTotalTransferDuration(), getParentForChildren(), isClean());
totalTransferDuration_ = null;
}
return totalTransferDurationBuilder_;
}
private long lastTransferBytes_;
/**
*
*
*
* Last transfer size in bytes.
*
*
* optional int64 last_transfer_bytes = 3;
*
* @return Whether the lastTransferBytes field is set.
*/
@java.lang.Override
public boolean hasLastTransferBytes() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* Last transfer size in bytes.
*
*
* optional int64 last_transfer_bytes = 3;
*
* @return The lastTransferBytes.
*/
@java.lang.Override
public long getLastTransferBytes() {
return lastTransferBytes_;
}
/**
*
*
*
* Last transfer size in bytes.
*
*
* optional int64 last_transfer_bytes = 3;
*
* @param value The lastTransferBytes to set.
* @return This builder for chaining.
*/
public Builder setLastTransferBytes(long value) {
lastTransferBytes_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Last transfer size in bytes.
*
*
* optional int64 last_transfer_bytes = 3;
*
* @return This builder for chaining.
*/
public Builder clearLastTransferBytes() {
bitField0_ = (bitField0_ & ~0x00000004);
lastTransferBytes_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.Duration lastTransferDuration_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration,
com.google.protobuf.Duration.Builder,
com.google.protobuf.DurationOrBuilder>
lastTransferDurationBuilder_;
/**
*
*
*
* Time taken during last transfer.
*
*
* optional .google.protobuf.Duration last_transfer_duration = 4;
*
* @return Whether the lastTransferDuration field is set.
*/
public boolean hasLastTransferDuration() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*
*
* Time taken during last transfer.
*
*
* optional .google.protobuf.Duration last_transfer_duration = 4;
*
* @return The lastTransferDuration.
*/
public com.google.protobuf.Duration getLastTransferDuration() {
if (lastTransferDurationBuilder_ == null) {
return lastTransferDuration_ == null
? com.google.protobuf.Duration.getDefaultInstance()
: lastTransferDuration_;
} else {
return lastTransferDurationBuilder_.getMessage();
}
}
/**
*
*
*
* Time taken during last transfer.
*
*
* optional .google.protobuf.Duration last_transfer_duration = 4;
*/
public Builder setLastTransferDuration(com.google.protobuf.Duration value) {
if (lastTransferDurationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
lastTransferDuration_ = value;
} else {
lastTransferDurationBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Time taken during last transfer.
*
*
* optional .google.protobuf.Duration last_transfer_duration = 4;
*/
public Builder setLastTransferDuration(com.google.protobuf.Duration.Builder builderForValue) {
if (lastTransferDurationBuilder_ == null) {
lastTransferDuration_ = builderForValue.build();
} else {
lastTransferDurationBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Time taken during last transfer.
*
*
* optional .google.protobuf.Duration last_transfer_duration = 4;
*/
public Builder mergeLastTransferDuration(com.google.protobuf.Duration value) {
if (lastTransferDurationBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)
&& lastTransferDuration_ != null
&& lastTransferDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
getLastTransferDurationBuilder().mergeFrom(value);
} else {
lastTransferDuration_ = value;
}
} else {
lastTransferDurationBuilder_.mergeFrom(value);
}
if (lastTransferDuration_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
*
*
* Time taken during last transfer.
*
*
* optional .google.protobuf.Duration last_transfer_duration = 4;
*/
public Builder clearLastTransferDuration() {
bitField0_ = (bitField0_ & ~0x00000008);
lastTransferDuration_ = null;
if (lastTransferDurationBuilder_ != null) {
lastTransferDurationBuilder_.dispose();
lastTransferDurationBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Time taken during last transfer.
*
*
* optional .google.protobuf.Duration last_transfer_duration = 4;
*/
public com.google.protobuf.Duration.Builder getLastTransferDurationBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getLastTransferDurationFieldBuilder().getBuilder();
}
/**
*
*
*
* Time taken during last transfer.
*
*
* optional .google.protobuf.Duration last_transfer_duration = 4;
*/
public com.google.protobuf.DurationOrBuilder getLastTransferDurationOrBuilder() {
if (lastTransferDurationBuilder_ != null) {
return lastTransferDurationBuilder_.getMessageOrBuilder();
} else {
return lastTransferDuration_ == null
? com.google.protobuf.Duration.getDefaultInstance()
: lastTransferDuration_;
}
}
/**
*
*
*
* Time taken during last transfer.
*
*
* optional .google.protobuf.Duration last_transfer_duration = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration,
com.google.protobuf.Duration.Builder,
com.google.protobuf.DurationOrBuilder>
getLastTransferDurationFieldBuilder() {
if (lastTransferDurationBuilder_ == null) {
lastTransferDurationBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration,
com.google.protobuf.Duration.Builder,
com.google.protobuf.DurationOrBuilder>(
getLastTransferDuration(), getParentForChildren(), isClean());
lastTransferDuration_ = null;
}
return lastTransferDurationBuilder_;
}
private com.google.protobuf.Duration lagDuration_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration,
com.google.protobuf.Duration.Builder,
com.google.protobuf.DurationOrBuilder>
lagDurationBuilder_;
/**
*
*
*
* 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;
*
* @return Whether the lagDuration field is set.
*/
public boolean hasLagDuration() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
*
*
* 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;
*
* @return The lagDuration.
*/
public com.google.protobuf.Duration getLagDuration() {
if (lagDurationBuilder_ == null) {
return lagDuration_ == null
? com.google.protobuf.Duration.getDefaultInstance()
: lagDuration_;
} else {
return lagDurationBuilder_.getMessage();
}
}
/**
*
*
*
* 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;
*/
public Builder setLagDuration(com.google.protobuf.Duration value) {
if (lagDurationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
lagDuration_ = value;
} else {
lagDurationBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* 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;
*/
public Builder setLagDuration(com.google.protobuf.Duration.Builder builderForValue) {
if (lagDurationBuilder_ == null) {
lagDuration_ = builderForValue.build();
} else {
lagDurationBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* 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;
*/
public Builder mergeLagDuration(com.google.protobuf.Duration value) {
if (lagDurationBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)
&& lagDuration_ != null
&& lagDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
getLagDurationBuilder().mergeFrom(value);
} else {
lagDuration_ = value;
}
} else {
lagDurationBuilder_.mergeFrom(value);
}
if (lagDuration_ != null) {
bitField0_ |= 0x00000010;
onChanged();
}
return this;
}
/**
*
*
*
* 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;
*/
public Builder clearLagDuration() {
bitField0_ = (bitField0_ & ~0x00000010);
lagDuration_ = null;
if (lagDurationBuilder_ != null) {
lagDurationBuilder_.dispose();
lagDurationBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* 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;
*/
public com.google.protobuf.Duration.Builder getLagDurationBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getLagDurationFieldBuilder().getBuilder();
}
/**
*
*
*
* 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;
*/
public com.google.protobuf.DurationOrBuilder getLagDurationOrBuilder() {
if (lagDurationBuilder_ != null) {
return lagDurationBuilder_.getMessageOrBuilder();
} else {
return lagDuration_ == null
? com.google.protobuf.Duration.getDefaultInstance()
: lagDuration_;
}
}
/**
*
*
*
* 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;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration,
com.google.protobuf.Duration.Builder,
com.google.protobuf.DurationOrBuilder>
getLagDurationFieldBuilder() {
if (lagDurationBuilder_ == null) {
lagDurationBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration,
com.google.protobuf.Duration.Builder,
com.google.protobuf.DurationOrBuilder>(
getLagDuration(), getParentForChildren(), isClean());
lagDuration_ = null;
}
return lagDurationBuilder_;
}
private com.google.protobuf.Timestamp updateTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
updateTimeBuilder_;
/**
*
*
*
* Time when progress was updated last.
*
*
* optional .google.protobuf.Timestamp update_time = 6;
*
* @return Whether the updateTime field is set.
*/
public boolean hasUpdateTime() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
*
*
* Time when progress was updated last.
*
*
* optional .google.protobuf.Timestamp update_time = 6;
*
* @return The updateTime.
*/
public com.google.protobuf.Timestamp getUpdateTime() {
if (updateTimeBuilder_ == null) {
return updateTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: updateTime_;
} else {
return updateTimeBuilder_.getMessage();
}
}
/**
*
*
*
* Time when progress was updated last.
*
*
* optional .google.protobuf.Timestamp update_time = 6;
*/
public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
if (updateTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
updateTime_ = value;
} else {
updateTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* Time when progress was updated last.
*
*
* optional .google.protobuf.Timestamp update_time = 6;
*/
public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (updateTimeBuilder_ == null) {
updateTime_ = builderForValue.build();
} else {
updateTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* Time when progress was updated last.
*
*
* optional .google.protobuf.Timestamp update_time = 6;
*/
public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
if (updateTimeBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0)
&& updateTime_ != null
&& updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getUpdateTimeBuilder().mergeFrom(value);
} else {
updateTime_ = value;
}
} else {
updateTimeBuilder_.mergeFrom(value);
}
if (updateTime_ != null) {
bitField0_ |= 0x00000020;
onChanged();
}
return this;
}
/**
*
*
*
* Time when progress was updated last.
*
*
* optional .google.protobuf.Timestamp update_time = 6;
*/
public Builder clearUpdateTime() {
bitField0_ = (bitField0_ & ~0x00000020);
updateTime_ = null;
if (updateTimeBuilder_ != null) {
updateTimeBuilder_.dispose();
updateTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Time when progress was updated last.
*
*
* optional .google.protobuf.Timestamp update_time = 6;
*/
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getUpdateTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* Time when progress was updated last.
*
*
* optional .google.protobuf.Timestamp update_time = 6;
*/
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
if (updateTimeBuilder_ != null) {
return updateTimeBuilder_.getMessageOrBuilder();
} else {
return updateTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: updateTime_;
}
}
/**
*
*
*
* Time when progress was updated last.
*
*
* optional .google.protobuf.Timestamp update_time = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getUpdateTimeFieldBuilder() {
if (updateTimeBuilder_ == null) {
updateTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getUpdateTime(), getParentForChildren(), isClean());
updateTime_ = null;
}
return updateTimeBuilder_;
}
private com.google.protobuf.Timestamp lastTransferEndTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
lastTransferEndTimeBuilder_;
/**
*
*
*
* Time when last transfer completed.
*
*
* optional .google.protobuf.Timestamp last_transfer_end_time = 7;
*
* @return Whether the lastTransferEndTime field is set.
*/
public boolean hasLastTransferEndTime() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
*
*
* Time when last transfer completed.
*
*
* optional .google.protobuf.Timestamp last_transfer_end_time = 7;
*
* @return The lastTransferEndTime.
*/
public com.google.protobuf.Timestamp getLastTransferEndTime() {
if (lastTransferEndTimeBuilder_ == null) {
return lastTransferEndTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: lastTransferEndTime_;
} else {
return lastTransferEndTimeBuilder_.getMessage();
}
}
/**
*
*
*
* Time when last transfer completed.
*
*
* optional .google.protobuf.Timestamp last_transfer_end_time = 7;
*/
public Builder setLastTransferEndTime(com.google.protobuf.Timestamp value) {
if (lastTransferEndTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
lastTransferEndTime_ = value;
} else {
lastTransferEndTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*
*
* Time when last transfer completed.
*
*
* optional .google.protobuf.Timestamp last_transfer_end_time = 7;
*/
public Builder setLastTransferEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (lastTransferEndTimeBuilder_ == null) {
lastTransferEndTime_ = builderForValue.build();
} else {
lastTransferEndTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*
*
* Time when last transfer completed.
*
*
* optional .google.protobuf.Timestamp last_transfer_end_time = 7;
*/
public Builder mergeLastTransferEndTime(com.google.protobuf.Timestamp value) {
if (lastTransferEndTimeBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0)
&& lastTransferEndTime_ != null
&& lastTransferEndTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getLastTransferEndTimeBuilder().mergeFrom(value);
} else {
lastTransferEndTime_ = value;
}
} else {
lastTransferEndTimeBuilder_.mergeFrom(value);
}
if (lastTransferEndTime_ != null) {
bitField0_ |= 0x00000040;
onChanged();
}
return this;
}
/**
*
*
*
* Time when last transfer completed.
*
*
* optional .google.protobuf.Timestamp last_transfer_end_time = 7;
*/
public Builder clearLastTransferEndTime() {
bitField0_ = (bitField0_ & ~0x00000040);
lastTransferEndTime_ = null;
if (lastTransferEndTimeBuilder_ != null) {
lastTransferEndTimeBuilder_.dispose();
lastTransferEndTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Time when last transfer completed.
*
*
* optional .google.protobuf.Timestamp last_transfer_end_time = 7;
*/
public com.google.protobuf.Timestamp.Builder getLastTransferEndTimeBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getLastTransferEndTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* Time when last transfer completed.
*
*
* optional .google.protobuf.Timestamp last_transfer_end_time = 7;
*/
public com.google.protobuf.TimestampOrBuilder getLastTransferEndTimeOrBuilder() {
if (lastTransferEndTimeBuilder_ != null) {
return lastTransferEndTimeBuilder_.getMessageOrBuilder();
} else {
return lastTransferEndTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: lastTransferEndTime_;
}
}
/**
*
*
*
* Time when last transfer completed.
*
*
* optional .google.protobuf.Timestamp last_transfer_end_time = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getLastTransferEndTimeFieldBuilder() {
if (lastTransferEndTimeBuilder_ == null) {
lastTransferEndTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getLastTransferEndTime(), getParentForChildren(), isClean());
lastTransferEndTime_ = null;
}
return lastTransferEndTimeBuilder_;
}
private java.lang.Object lastTransferError_ = "";
/**
*
*
*
* A message describing the cause of the last transfer failure.
*
*
* optional string last_transfer_error = 8;
*
* @return Whether the lastTransferError field is set.
*/
public boolean hasLastTransferError() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
*
*
* A message describing the cause of the last transfer failure.
*
*
* optional string last_transfer_error = 8;
*
* @return The lastTransferError.
*/
public java.lang.String getLastTransferError() {
java.lang.Object ref = lastTransferError_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
lastTransferError_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* A message describing the cause of the last transfer failure.
*
*
* optional string last_transfer_error = 8;
*
* @return The bytes for lastTransferError.
*/
public com.google.protobuf.ByteString getLastTransferErrorBytes() {
java.lang.Object ref = lastTransferError_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
lastTransferError_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* A message describing the cause of the last transfer failure.
*
*
* optional string last_transfer_error = 8;
*
* @param value The lastTransferError to set.
* @return This builder for chaining.
*/
public Builder setLastTransferError(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
lastTransferError_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*
*
* A message describing the cause of the last transfer failure.
*
*
* optional string last_transfer_error = 8;
*
* @return This builder for chaining.
*/
public Builder clearLastTransferError() {
lastTransferError_ = getDefaultInstance().getLastTransferError();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
return this;
}
/**
*
*
*
* A message describing the cause of the last transfer failure.
*
*
* optional string last_transfer_error = 8;
*
* @param value The bytes for lastTransferError to set.
* @return This builder for chaining.
*/
public Builder setLastTransferErrorBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
lastTransferError_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.cloud.netapp.v1.TransferStats)
}
// @@protoc_insertion_point(class_scope:google.cloud.netapp.v1.TransferStats)
private static final com.google.cloud.netapp.v1.TransferStats DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.netapp.v1.TransferStats();
}
public static com.google.cloud.netapp.v1.TransferStats getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TransferStats parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.cloud.netapp.v1.TransferStats getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}