All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.netapp.v1.TransferStats Maven / Gradle / Ivy

/*
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/netapp/v1/replication.proto

// Protobuf Java Version: 3.25.4
package com.google.cloud.netapp.v1;

/**
 *
 *
 * 
 * TransferStats reports all statistics related to replication transfer.
 * 
* * Protobuf type {@code google.cloud.netapp.v1.TransferStats} */ public final class TransferStats extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.netapp.v1.TransferStats) TransferStatsOrBuilder { private static final long serialVersionUID = 0L; // Use TransferStats.newBuilder() to construct. private TransferStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TransferStats() { lastTransferError_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TransferStats(); } 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); } private int bitField0_; public static final int TRANSFER_BYTES_FIELD_NUMBER = 1; private long transferBytes_ = 0L; /** * * *
   * 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_; } public static final int TOTAL_TRANSFER_DURATION_FIELD_NUMBER = 2; private com.google.protobuf.Duration totalTransferDuration_; /** * * *
   * 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. */ @java.lang.Override 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. */ @java.lang.Override public com.google.protobuf.Duration getTotalTransferDuration() { 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; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTotalTransferDurationOrBuilder() { return totalTransferDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalTransferDuration_; } public static final int LAST_TRANSFER_BYTES_FIELD_NUMBER = 3; private long lastTransferBytes_ = 0L; /** * * *
   * 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_; } public static final int LAST_TRANSFER_DURATION_FIELD_NUMBER = 4; private com.google.protobuf.Duration lastTransferDuration_; /** * * *
   * Time taken during last transfer.
   * 
* * optional .google.protobuf.Duration last_transfer_duration = 4; * * @return Whether the lastTransferDuration field is set. */ @java.lang.Override public boolean hasLastTransferDuration() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
   * Time taken during last transfer.
   * 
* * optional .google.protobuf.Duration last_transfer_duration = 4; * * @return The lastTransferDuration. */ @java.lang.Override public com.google.protobuf.Duration getLastTransferDuration() { return lastTransferDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : lastTransferDuration_; } /** * * *
   * Time taken during last transfer.
   * 
* * optional .google.protobuf.Duration last_transfer_duration = 4; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getLastTransferDurationOrBuilder() { return lastTransferDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : lastTransferDuration_; } public static final int LAG_DURATION_FIELD_NUMBER = 5; private com.google.protobuf.Duration 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; * * @return Whether the lagDuration field is set. */ @java.lang.Override 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. */ @java.lang.Override public com.google.protobuf.Duration getLagDuration() { 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; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getLagDurationOrBuilder() { return lagDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : lagDuration_; } public static final int UPDATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp updateTime_; /** * * *
   * Time when progress was updated last.
   * 
* * optional .google.protobuf.Timestamp update_time = 6; * * @return Whether the updateTime field is set. */ @java.lang.Override public boolean hasUpdateTime() { return ((bitField0_ & 0x00000020) != 0); } /** * * *
   * Time when progress was updated last.
   * 
* * optional .google.protobuf.Timestamp update_time = 6; * * @return The updateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** * * *
   * Time when progress was updated last.
   * 
* * optional .google.protobuf.Timestamp update_time = 6; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int LAST_TRANSFER_END_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp lastTransferEndTime_; /** * * *
   * Time when last transfer completed.
   * 
* * optional .google.protobuf.Timestamp last_transfer_end_time = 7; * * @return Whether the lastTransferEndTime field is set. */ @java.lang.Override public boolean hasLastTransferEndTime() { return ((bitField0_ & 0x00000040) != 0); } /** * * *
   * Time when last transfer completed.
   * 
* * optional .google.protobuf.Timestamp last_transfer_end_time = 7; * * @return The lastTransferEndTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastTransferEndTime() { return lastTransferEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastTransferEndTime_; } /** * * *
   * Time when last transfer completed.
   * 
* * optional .google.protobuf.Timestamp last_transfer_end_time = 7; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLastTransferEndTimeOrBuilder() { return lastTransferEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastTransferEndTime_; } public static final int LAST_TRANSFER_ERROR_FIELD_NUMBER = 8; @SuppressWarnings("serial") private volatile 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. */ @java.lang.Override 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. */ @java.lang.Override public java.lang.String getLastTransferError() { java.lang.Object ref = lastTransferError_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lastTransferError_ = s; return s; } } /** * * *
   * A message describing the cause of the last transfer failure.
   * 
* * optional string last_transfer_error = 8; * * @return The bytes for lastTransferError. */ @java.lang.Override public com.google.protobuf.ByteString getLastTransferErrorBytes() { java.lang.Object ref = lastTransferError_; if (ref instanceof java.lang.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; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(1, transferBytes_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getTotalTransferDuration()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeInt64(3, lastTransferBytes_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(4, getLastTransferDuration()); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(5, getLagDuration()); } if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(6, getUpdateTime()); } if (((bitField0_ & 0x00000040) != 0)) { output.writeMessage(7, getLastTransferEndTime()); } if (((bitField0_ & 0x00000080) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, lastTransferError_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, transferBytes_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTotalTransferDuration()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, lastTransferBytes_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getLastTransferDuration()); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getLagDuration()); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime()); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getLastTransferEndTime()); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, lastTransferError_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.netapp.v1.TransferStats)) { return super.equals(obj); } com.google.cloud.netapp.v1.TransferStats other = (com.google.cloud.netapp.v1.TransferStats) obj; if (hasTransferBytes() != other.hasTransferBytes()) return false; if (hasTransferBytes()) { if (getTransferBytes() != other.getTransferBytes()) return false; } if (hasTotalTransferDuration() != other.hasTotalTransferDuration()) return false; if (hasTotalTransferDuration()) { if (!getTotalTransferDuration().equals(other.getTotalTransferDuration())) return false; } if (hasLastTransferBytes() != other.hasLastTransferBytes()) return false; if (hasLastTransferBytes()) { if (getLastTransferBytes() != other.getLastTransferBytes()) return false; } if (hasLastTransferDuration() != other.hasLastTransferDuration()) return false; if (hasLastTransferDuration()) { if (!getLastTransferDuration().equals(other.getLastTransferDuration())) return false; } if (hasLagDuration() != other.hasLagDuration()) return false; if (hasLagDuration()) { if (!getLagDuration().equals(other.getLagDuration())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (hasLastTransferEndTime() != other.hasLastTransferEndTime()) return false; if (hasLastTransferEndTime()) { if (!getLastTransferEndTime().equals(other.getLastTransferEndTime())) return false; } if (hasLastTransferError() != other.hasLastTransferError()) return false; if (hasLastTransferError()) { if (!getLastTransferError().equals(other.getLastTransferError())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasTransferBytes()) { hash = (37 * hash) + TRANSFER_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTransferBytes()); } if (hasTotalTransferDuration()) { hash = (37 * hash) + TOTAL_TRANSFER_DURATION_FIELD_NUMBER; hash = (53 * hash) + getTotalTransferDuration().hashCode(); } if (hasLastTransferBytes()) { hash = (37 * hash) + LAST_TRANSFER_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLastTransferBytes()); } if (hasLastTransferDuration()) { hash = (37 * hash) + LAST_TRANSFER_DURATION_FIELD_NUMBER; hash = (53 * hash) + getLastTransferDuration().hashCode(); } if (hasLagDuration()) { hash = (37 * hash) + LAG_DURATION_FIELD_NUMBER; hash = (53 * hash) + getLagDuration().hashCode(); } if (hasUpdateTime()) { hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getUpdateTime().hashCode(); } if (hasLastTransferEndTime()) { hash = (37 * hash) + LAST_TRANSFER_END_TIME_FIELD_NUMBER; hash = (53 * hash) + getLastTransferEndTime().hashCode(); } if (hasLastTransferError()) { hash = (37 * hash) + LAST_TRANSFER_ERROR_FIELD_NUMBER; hash = (53 * hash) + getLastTransferError().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.netapp.v1.TransferStats parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.netapp.v1.TransferStats parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.netapp.v1.TransferStats parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.netapp.v1.TransferStats parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.netapp.v1.TransferStats parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.netapp.v1.TransferStats parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.netapp.v1.TransferStats parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.netapp.v1.TransferStats parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.netapp.v1.TransferStats parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.netapp.v1.TransferStats parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.netapp.v1.TransferStats parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.netapp.v1.TransferStats parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.cloud.netapp.v1.TransferStats prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
   * TransferStats reports all statistics related to replication transfer.
   * 
* * Protobuf type {@code google.cloud.netapp.v1.TransferStats} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder 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; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy