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

com.google.cloud.netapp.v1.Replication 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;

/**
 *
 *
 * 
 * Replication is a nested resource under Volume, that describes a
 * cross-region replication relationship between 2 volumes in different
 * regions.
 * 
* * Protobuf type {@code google.cloud.netapp.v1.Replication} */ public final class Replication extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.netapp.v1.Replication) ReplicationOrBuilder { private static final long serialVersionUID = 0L; // Use Replication.newBuilder() to construct. private Replication(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Replication() { name_ = ""; state_ = 0; stateDetails_ = ""; role_ = 0; replicationSchedule_ = 0; mirrorState_ = 0; destinationVolume_ = ""; description_ = ""; sourceVolume_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Replication(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.netapp.v1.ReplicationProto .internal_static_google_cloud_netapp_v1_Replication_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 12: return internalGetLabels(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.netapp.v1.ReplicationProto .internal_static_google_cloud_netapp_v1_Replication_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.netapp.v1.Replication.class, com.google.cloud.netapp.v1.Replication.Builder.class); } /** * * *
   * The replication states
   * New enum values may be added in future to indicate possible new states.
   * 
* * Protobuf enum {@code google.cloud.netapp.v1.Replication.State} */ public enum State implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * Unspecified replication State
     * 
* * STATE_UNSPECIFIED = 0; */ STATE_UNSPECIFIED(0), /** * * *
     * Replication is creating.
     * 
* * CREATING = 1; */ CREATING(1), /** * * *
     * Replication is ready.
     * 
* * READY = 2; */ READY(2), /** * * *
     * Replication is updating.
     * 
* * UPDATING = 3; */ UPDATING(3), /** * * *
     * Replication is deleting.
     * 
* * DELETING = 5; */ DELETING(5), /** * * *
     * Replication is in error state.
     * 
* * ERROR = 6; */ ERROR(6), UNRECOGNIZED(-1), ; /** * * *
     * Unspecified replication State
     * 
* * STATE_UNSPECIFIED = 0; */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** * * *
     * Replication is creating.
     * 
* * CREATING = 1; */ public static final int CREATING_VALUE = 1; /** * * *
     * Replication is ready.
     * 
* * READY = 2; */ public static final int READY_VALUE = 2; /** * * *
     * Replication is updating.
     * 
* * UPDATING = 3; */ public static final int UPDATING_VALUE = 3; /** * * *
     * Replication is deleting.
     * 
* * DELETING = 5; */ public static final int DELETING_VALUE = 5; /** * * *
     * Replication is in error state.
     * 
* * ERROR = 6; */ public static final int ERROR_VALUE = 6; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static State valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static State forNumber(int value) { switch (value) { case 0: return STATE_UNSPECIFIED; case 1: return CREATING; case 2: return READY; case 3: return UPDATING; case 5: return DELETING; case 6: return ERROR; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public State findValueByNumber(int number) { return State.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.netapp.v1.Replication.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private State(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.netapp.v1.Replication.State) } /** * * *
   * New enum values may be added in future to support different replication
   * topology.
   * 
* * Protobuf enum {@code google.cloud.netapp.v1.Replication.ReplicationRole} */ public enum ReplicationRole implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * Unspecified replication role
     * 
* * REPLICATION_ROLE_UNSPECIFIED = 0; */ REPLICATION_ROLE_UNSPECIFIED(0), /** * * *
     * Indicates Source volume.
     * 
* * SOURCE = 1; */ SOURCE(1), /** * * *
     * Indicates Destination volume.
     * 
* * DESTINATION = 2; */ DESTINATION(2), UNRECOGNIZED(-1), ; /** * * *
     * Unspecified replication role
     * 
* * REPLICATION_ROLE_UNSPECIFIED = 0; */ public static final int REPLICATION_ROLE_UNSPECIFIED_VALUE = 0; /** * * *
     * Indicates Source volume.
     * 
* * SOURCE = 1; */ public static final int SOURCE_VALUE = 1; /** * * *
     * Indicates Destination volume.
     * 
* * DESTINATION = 2; */ public static final int DESTINATION_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ReplicationRole valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static ReplicationRole forNumber(int value) { switch (value) { case 0: return REPLICATION_ROLE_UNSPECIFIED; case 1: return SOURCE; case 2: return DESTINATION; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public ReplicationRole findValueByNumber(int number) { return ReplicationRole.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.netapp.v1.Replication.getDescriptor().getEnumTypes().get(1); } private static final ReplicationRole[] VALUES = values(); public static ReplicationRole valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private ReplicationRole(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.netapp.v1.Replication.ReplicationRole) } /** * * *
   * Schedule for Replication.
   * New enum values may be added in future to support different frequency of
   * replication.
   * 
* * Protobuf enum {@code google.cloud.netapp.v1.Replication.ReplicationSchedule} */ public enum ReplicationSchedule implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * Unspecified ReplicationSchedule
     * 
* * REPLICATION_SCHEDULE_UNSPECIFIED = 0; */ REPLICATION_SCHEDULE_UNSPECIFIED(0), /** * * *
     * Replication happens once every 10 minutes.
     * 
* * EVERY_10_MINUTES = 1; */ EVERY_10_MINUTES(1), /** * * *
     * Replication happens once every hour.
     * 
* * HOURLY = 2; */ HOURLY(2), /** * * *
     * Replication happens once every day.
     * 
* * DAILY = 3; */ DAILY(3), UNRECOGNIZED(-1), ; /** * * *
     * Unspecified ReplicationSchedule
     * 
* * REPLICATION_SCHEDULE_UNSPECIFIED = 0; */ public static final int REPLICATION_SCHEDULE_UNSPECIFIED_VALUE = 0; /** * * *
     * Replication happens once every 10 minutes.
     * 
* * EVERY_10_MINUTES = 1; */ public static final int EVERY_10_MINUTES_VALUE = 1; /** * * *
     * Replication happens once every hour.
     * 
* * HOURLY = 2; */ public static final int HOURLY_VALUE = 2; /** * * *
     * Replication happens once every day.
     * 
* * DAILY = 3; */ public static final int DAILY_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ReplicationSchedule valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static ReplicationSchedule forNumber(int value) { switch (value) { case 0: return REPLICATION_SCHEDULE_UNSPECIFIED; case 1: return EVERY_10_MINUTES; case 2: return HOURLY; case 3: return DAILY; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public ReplicationSchedule findValueByNumber(int number) { return ReplicationSchedule.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.netapp.v1.Replication.getDescriptor().getEnumTypes().get(2); } private static final ReplicationSchedule[] VALUES = values(); public static ReplicationSchedule valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private ReplicationSchedule(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.netapp.v1.Replication.ReplicationSchedule) } /** * * *
   * Mirroring states.
   * No new value is expected to be added in future.
   * 
* * Protobuf enum {@code google.cloud.netapp.v1.Replication.MirrorState} */ public enum MirrorState implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * Unspecified MirrorState
     * 
* * MIRROR_STATE_UNSPECIFIED = 0; */ MIRROR_STATE_UNSPECIFIED(0), /** * * *
     * Destination volume is being prepared.
     * 
* * PREPARING = 1; */ PREPARING(1), /** * * *
     * Destination volume has been initialized and is ready to receive
     * replication transfers.
     * 
* * MIRRORED = 2; */ MIRRORED(2), /** * * *
     * Destination volume is not receiving replication transfers.
     * 
* * STOPPED = 3; */ STOPPED(3), /** * * *
     * Incremental replication is in progress.
     * 
* * TRANSFERRING = 4; */ TRANSFERRING(4), UNRECOGNIZED(-1), ; /** * * *
     * Unspecified MirrorState
     * 
* * MIRROR_STATE_UNSPECIFIED = 0; */ public static final int MIRROR_STATE_UNSPECIFIED_VALUE = 0; /** * * *
     * Destination volume is being prepared.
     * 
* * PREPARING = 1; */ public static final int PREPARING_VALUE = 1; /** * * *
     * Destination volume has been initialized and is ready to receive
     * replication transfers.
     * 
* * MIRRORED = 2; */ public static final int MIRRORED_VALUE = 2; /** * * *
     * Destination volume is not receiving replication transfers.
     * 
* * STOPPED = 3; */ public static final int STOPPED_VALUE = 3; /** * * *
     * Incremental replication is in progress.
     * 
* * TRANSFERRING = 4; */ public static final int TRANSFERRING_VALUE = 4; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static MirrorState valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static MirrorState forNumber(int value) { switch (value) { case 0: return MIRROR_STATE_UNSPECIFIED; case 1: return PREPARING; case 2: return MIRRORED; case 3: return STOPPED; case 4: return TRANSFERRING; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public MirrorState findValueByNumber(int number) { return MirrorState.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.netapp.v1.Replication.getDescriptor().getEnumTypes().get(3); } private static final MirrorState[] VALUES = values(); public static MirrorState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private MirrorState(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.netapp.v1.Replication.MirrorState) } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * * *
   * Identifier. The resource name of the Replication.
   * Format:
   * `projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}`.
   * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** * * *
   * Identifier. The resource name of the Replication.
   * Format:
   * `projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}`.
   * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STATE_FIELD_NUMBER = 2; private int state_ = 0; /** * * *
   * Output only. State of the replication.
   * 
* * * .google.cloud.netapp.v1.Replication.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for state. */ @java.lang.Override public int getStateValue() { return state_; } /** * * *
   * Output only. State of the replication.
   * 
* * * .google.cloud.netapp.v1.Replication.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The state. */ @java.lang.Override public com.google.cloud.netapp.v1.Replication.State getState() { com.google.cloud.netapp.v1.Replication.State result = com.google.cloud.netapp.v1.Replication.State.forNumber(state_); return result == null ? com.google.cloud.netapp.v1.Replication.State.UNRECOGNIZED : result; } public static final int STATE_DETAILS_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object stateDetails_ = ""; /** * * *
   * Output only. State details of the replication.
   * 
* * string state_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The stateDetails. */ @java.lang.Override public java.lang.String getStateDetails() { java.lang.Object ref = stateDetails_; 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(); stateDetails_ = s; return s; } } /** * * *
   * Output only. State details of the replication.
   * 
* * string state_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for stateDetails. */ @java.lang.Override public com.google.protobuf.ByteString getStateDetailsBytes() { java.lang.Object ref = stateDetails_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); stateDetails_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ROLE_FIELD_NUMBER = 4; private int role_ = 0; /** * * *
   * Output only. Indicates whether this points to source or destination.
   * 
* * * .google.cloud.netapp.v1.Replication.ReplicationRole role = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for role. */ @java.lang.Override public int getRoleValue() { return role_; } /** * * *
   * Output only. Indicates whether this points to source or destination.
   * 
* * * .google.cloud.netapp.v1.Replication.ReplicationRole role = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The role. */ @java.lang.Override public com.google.cloud.netapp.v1.Replication.ReplicationRole getRole() { com.google.cloud.netapp.v1.Replication.ReplicationRole result = com.google.cloud.netapp.v1.Replication.ReplicationRole.forNumber(role_); return result == null ? com.google.cloud.netapp.v1.Replication.ReplicationRole.UNRECOGNIZED : result; } public static final int REPLICATION_SCHEDULE_FIELD_NUMBER = 5; private int replicationSchedule_ = 0; /** * * *
   * Required. Indicates the schedule for replication.
   * 
* * * .google.cloud.netapp.v1.Replication.ReplicationSchedule replication_schedule = 5 [(.google.api.field_behavior) = REQUIRED]; * * * @return The enum numeric value on the wire for replicationSchedule. */ @java.lang.Override public int getReplicationScheduleValue() { return replicationSchedule_; } /** * * *
   * Required. Indicates the schedule for replication.
   * 
* * * .google.cloud.netapp.v1.Replication.ReplicationSchedule replication_schedule = 5 [(.google.api.field_behavior) = REQUIRED]; * * * @return The replicationSchedule. */ @java.lang.Override public com.google.cloud.netapp.v1.Replication.ReplicationSchedule getReplicationSchedule() { com.google.cloud.netapp.v1.Replication.ReplicationSchedule result = com.google.cloud.netapp.v1.Replication.ReplicationSchedule.forNumber(replicationSchedule_); return result == null ? com.google.cloud.netapp.v1.Replication.ReplicationSchedule.UNRECOGNIZED : result; } public static final int MIRROR_STATE_FIELD_NUMBER = 6; private int mirrorState_ = 0; /** * * *
   * Output only. Indicates the state of mirroring.
   * 
* * * .google.cloud.netapp.v1.Replication.MirrorState mirror_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for mirrorState. */ @java.lang.Override public int getMirrorStateValue() { return mirrorState_; } /** * * *
   * Output only. Indicates the state of mirroring.
   * 
* * * .google.cloud.netapp.v1.Replication.MirrorState mirror_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The mirrorState. */ @java.lang.Override public com.google.cloud.netapp.v1.Replication.MirrorState getMirrorState() { com.google.cloud.netapp.v1.Replication.MirrorState result = com.google.cloud.netapp.v1.Replication.MirrorState.forNumber(mirrorState_); return result == null ? com.google.cloud.netapp.v1.Replication.MirrorState.UNRECOGNIZED : result; } public static final int HEALTHY_FIELD_NUMBER = 8; private boolean healthy_ = false; /** * * *
   * Output only. Condition of the relationship. Can be one of the following:
   * - true: The replication relationship is healthy. It has not missed the most
   * recent scheduled transfer.
   * - false: The replication relationship is not healthy. It has missed the
   * most recent scheduled transfer.
   * 
* * optional bool healthy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the healthy field is set. */ @java.lang.Override public boolean hasHealthy() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * Output only. Condition of the relationship. Can be one of the following:
   * - true: The replication relationship is healthy. It has not missed the most
   * recent scheduled transfer.
   * - false: The replication relationship is not healthy. It has missed the
   * most recent scheduled transfer.
   * 
* * optional bool healthy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The healthy. */ @java.lang.Override public boolean getHealthy() { return healthy_; } public static final int CREATE_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp createTime_; /** * * *
   * Output only. Replication create time.
   * 
* * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the createTime field is set. */ @java.lang.Override public boolean hasCreateTime() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
   * Output only. Replication create time.
   * 
* * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The createTime. */ @java.lang.Override public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** * * *
   * Output only. Replication create time.
   * 
* * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int DESTINATION_VOLUME_FIELD_NUMBER = 10; @SuppressWarnings("serial") private volatile java.lang.Object destinationVolume_ = ""; /** * * *
   * Output only. Full name of destination volume resource.
   * Example : "projects/{project}/locations/{location}/volumes/{volume_id}"
   * 
* * * string destination_volume = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @return The destinationVolume. */ @java.lang.Override public java.lang.String getDestinationVolume() { java.lang.Object ref = destinationVolume_; 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(); destinationVolume_ = s; return s; } } /** * * *
   * Output only. Full name of destination volume resource.
   * Example : "projects/{project}/locations/{location}/volumes/{volume_id}"
   * 
* * * string destination_volume = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @return The bytes for destinationVolume. */ @java.lang.Override public com.google.protobuf.ByteString getDestinationVolumeBytes() { java.lang.Object ref = destinationVolume_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); destinationVolume_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TRANSFER_STATS_FIELD_NUMBER = 11; private com.google.cloud.netapp.v1.TransferStats transferStats_; /** * * *
   * Output only. Replication transfer statistics.
   * 
* * * .google.cloud.netapp.v1.TransferStats transfer_stats = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the transferStats field is set. */ @java.lang.Override public boolean hasTransferStats() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
   * Output only. Replication transfer statistics.
   * 
* * * .google.cloud.netapp.v1.TransferStats transfer_stats = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The transferStats. */ @java.lang.Override public com.google.cloud.netapp.v1.TransferStats getTransferStats() { return transferStats_ == null ? com.google.cloud.netapp.v1.TransferStats.getDefaultInstance() : transferStats_; } /** * * *
   * Output only. Replication transfer statistics.
   * 
* * * .google.cloud.netapp.v1.TransferStats transfer_stats = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.cloud.netapp.v1.TransferStatsOrBuilder getTransferStatsOrBuilder() { return transferStats_ == null ? com.google.cloud.netapp.v1.TransferStats.getDefaultInstance() : transferStats_; } public static final int LABELS_FIELD_NUMBER = 12; private static final class LabelsDefaultEntryHolder { static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry.newDefaultInstance( com.google.cloud.netapp.v1.ReplicationProto .internal_static_google_cloud_netapp_v1_Replication_LabelsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** * * *
   * Resource labels to represent user provided metadata.
   * 
* * map<string, string> labels = 12; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** * * *
   * Resource labels to represent user provided metadata.
   * 
* * map<string, string> labels = 12; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** * * *
   * Resource labels to represent user provided metadata.
   * 
* * map<string, string> labels = 12; */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
   * Resource labels to represent user provided metadata.
   * 
* * map<string, string> labels = 12; */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int DESCRIPTION_FIELD_NUMBER = 13; @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** * * *
   * A description about this replication relationship.
   * 
* * optional string description = 13; * * @return Whether the description field is set. */ @java.lang.Override public boolean hasDescription() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
   * A description about this replication relationship.
   * 
* * optional string description = 13; * * @return The description. */ @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; 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(); description_ = s; return s; } } /** * * *
   * A description about this replication relationship.
   * 
* * optional string description = 13; * * @return The bytes for description. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESTINATION_VOLUME_PARAMETERS_FIELD_NUMBER = 14; private com.google.cloud.netapp.v1.DestinationVolumeParameters destinationVolumeParameters_; /** * * *
   * Required. Input only. Destination volume parameters
   * 
* * * .google.cloud.netapp.v1.DestinationVolumeParameters destination_volume_parameters = 14 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; * * * @return Whether the destinationVolumeParameters field is set. */ @java.lang.Override public boolean hasDestinationVolumeParameters() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
   * Required. Input only. Destination volume parameters
   * 
* * * .google.cloud.netapp.v1.DestinationVolumeParameters destination_volume_parameters = 14 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; * * * @return The destinationVolumeParameters. */ @java.lang.Override public com.google.cloud.netapp.v1.DestinationVolumeParameters getDestinationVolumeParameters() { return destinationVolumeParameters_ == null ? com.google.cloud.netapp.v1.DestinationVolumeParameters.getDefaultInstance() : destinationVolumeParameters_; } /** * * *
   * Required. Input only. Destination volume parameters
   * 
* * * .google.cloud.netapp.v1.DestinationVolumeParameters destination_volume_parameters = 14 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; * */ @java.lang.Override public com.google.cloud.netapp.v1.DestinationVolumeParametersOrBuilder getDestinationVolumeParametersOrBuilder() { return destinationVolumeParameters_ == null ? com.google.cloud.netapp.v1.DestinationVolumeParameters.getDefaultInstance() : destinationVolumeParameters_; } public static final int SOURCE_VOLUME_FIELD_NUMBER = 15; @SuppressWarnings("serial") private volatile java.lang.Object sourceVolume_ = ""; /** * * *
   * Output only. Full name of source volume resource.
   * Example : "projects/{project}/locations/{location}/volumes/{volume_id}"
   * 
* * * string source_volume = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @return The sourceVolume. */ @java.lang.Override public java.lang.String getSourceVolume() { java.lang.Object ref = sourceVolume_; 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(); sourceVolume_ = s; return s; } } /** * * *
   * Output only. Full name of source volume resource.
   * Example : "projects/{project}/locations/{location}/volumes/{volume_id}"
   * 
* * * string source_volume = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @return The bytes for sourceVolume. */ @java.lang.Override public com.google.protobuf.ByteString getSourceVolumeBytes() { java.lang.Object ref = sourceVolume_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceVolume_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (state_ != com.google.cloud.netapp.v1.Replication.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(2, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateDetails_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, stateDetails_); } if (role_ != com.google.cloud.netapp.v1.Replication.ReplicationRole.REPLICATION_ROLE_UNSPECIFIED .getNumber()) { output.writeEnum(4, role_); } if (replicationSchedule_ != com.google.cloud.netapp.v1.Replication.ReplicationSchedule .REPLICATION_SCHEDULE_UNSPECIFIED .getNumber()) { output.writeEnum(5, replicationSchedule_); } if (mirrorState_ != com.google.cloud.netapp.v1.Replication.MirrorState.MIRROR_STATE_UNSPECIFIED .getNumber()) { output.writeEnum(6, mirrorState_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(8, healthy_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(9, getCreateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationVolume_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, destinationVolume_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(11, getTransferStats()); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 12); if (((bitField0_ & 0x00000008) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, description_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(14, getDestinationVolumeParameters()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceVolume_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 15, sourceVolume_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (state_ != com.google.cloud.netapp.v1.Replication.State.STATE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateDetails_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, stateDetails_); } if (role_ != com.google.cloud.netapp.v1.Replication.ReplicationRole.REPLICATION_ROLE_UNSPECIFIED .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, role_); } if (replicationSchedule_ != com.google.cloud.netapp.v1.Replication.ReplicationSchedule .REPLICATION_SCHEDULE_UNSPECIFIED .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, replicationSchedule_); } if (mirrorState_ != com.google.cloud.netapp.v1.Replication.MirrorState.MIRROR_STATE_UNSPECIFIED .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, mirrorState_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, healthy_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getCreateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationVolume_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, destinationVolume_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getTransferStats()); } for (java.util.Map.Entry entry : internalGetLabels().getMap().entrySet()) { com.google.protobuf.MapEntry labels__ = LabelsDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, labels__); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, description_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 14, getDestinationVolumeParameters()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceVolume_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, sourceVolume_); } 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.Replication)) { return super.equals(obj); } com.google.cloud.netapp.v1.Replication other = (com.google.cloud.netapp.v1.Replication) obj; if (!getName().equals(other.getName())) return false; if (state_ != other.state_) return false; if (!getStateDetails().equals(other.getStateDetails())) return false; if (role_ != other.role_) return false; if (replicationSchedule_ != other.replicationSchedule_) return false; if (mirrorState_ != other.mirrorState_) return false; if (hasHealthy() != other.hasHealthy()) return false; if (hasHealthy()) { if (getHealthy() != other.getHealthy()) return false; } if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { if (!getCreateTime().equals(other.getCreateTime())) return false; } if (!getDestinationVolume().equals(other.getDestinationVolume())) return false; if (hasTransferStats() != other.hasTransferStats()) return false; if (hasTransferStats()) { if (!getTransferStats().equals(other.getTransferStats())) return false; } if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (hasDescription() != other.hasDescription()) return false; if (hasDescription()) { if (!getDescription().equals(other.getDescription())) return false; } if (hasDestinationVolumeParameters() != other.hasDestinationVolumeParameters()) return false; if (hasDestinationVolumeParameters()) { if (!getDestinationVolumeParameters().equals(other.getDestinationVolumeParameters())) return false; } if (!getSourceVolume().equals(other.getSourceVolume())) 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(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + STATE_DETAILS_FIELD_NUMBER; hash = (53 * hash) + getStateDetails().hashCode(); hash = (37 * hash) + ROLE_FIELD_NUMBER; hash = (53 * hash) + role_; hash = (37 * hash) + REPLICATION_SCHEDULE_FIELD_NUMBER; hash = (53 * hash) + replicationSchedule_; hash = (37 * hash) + MIRROR_STATE_FIELD_NUMBER; hash = (53 * hash) + mirrorState_; if (hasHealthy()) { hash = (37 * hash) + HEALTHY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHealthy()); } if (hasCreateTime()) { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); } hash = (37 * hash) + DESTINATION_VOLUME_FIELD_NUMBER; hash = (53 * hash) + getDestinationVolume().hashCode(); if (hasTransferStats()) { hash = (37 * hash) + TRANSFER_STATS_FIELD_NUMBER; hash = (53 * hash) + getTransferStats().hashCode(); } if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } if (hasDescription()) { hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); } if (hasDestinationVolumeParameters()) { hash = (37 * hash) + DESTINATION_VOLUME_PARAMETERS_FIELD_NUMBER; hash = (53 * hash) + getDestinationVolumeParameters().hashCode(); } hash = (37 * hash) + SOURCE_VOLUME_FIELD_NUMBER; hash = (53 * hash) + getSourceVolume().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.netapp.v1.Replication parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.netapp.v1.Replication 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.Replication parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.netapp.v1.Replication 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.Replication parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.netapp.v1.Replication 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.Replication parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.netapp.v1.Replication 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.Replication parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.netapp.v1.Replication 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.Replication 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.Replication 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.Replication 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; } /** * * *
   * Replication is a nested resource under Volume, that describes a
   * cross-region replication relationship between 2 volumes in different
   * regions.
   * 
* * Protobuf type {@code google.cloud.netapp.v1.Replication} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.netapp.v1.Replication) com.google.cloud.netapp.v1.ReplicationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.netapp.v1.ReplicationProto .internal_static_google_cloud_netapp_v1_Replication_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 12: return internalGetLabels(); default: throw new RuntimeException("Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 12: return internalGetMutableLabels(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.netapp.v1.ReplicationProto .internal_static_google_cloud_netapp_v1_Replication_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.netapp.v1.Replication.class, com.google.cloud.netapp.v1.Replication.Builder.class); } // Construct using com.google.cloud.netapp.v1.Replication.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCreateTimeFieldBuilder(); getTransferStatsFieldBuilder(); getDestinationVolumeParametersFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; state_ = 0; stateDetails_ = ""; role_ = 0; replicationSchedule_ = 0; mirrorState_ = 0; healthy_ = false; createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); createTimeBuilder_ = null; } destinationVolume_ = ""; transferStats_ = null; if (transferStatsBuilder_ != null) { transferStatsBuilder_.dispose(); transferStatsBuilder_ = null; } internalGetMutableLabels().clear(); description_ = ""; destinationVolumeParameters_ = null; if (destinationVolumeParametersBuilder_ != null) { destinationVolumeParametersBuilder_.dispose(); destinationVolumeParametersBuilder_ = null; } sourceVolume_ = ""; 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_Replication_descriptor; } @java.lang.Override public com.google.cloud.netapp.v1.Replication getDefaultInstanceForType() { return com.google.cloud.netapp.v1.Replication.getDefaultInstance(); } @java.lang.Override public com.google.cloud.netapp.v1.Replication build() { com.google.cloud.netapp.v1.Replication result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.netapp.v1.Replication buildPartial() { com.google.cloud.netapp.v1.Replication result = new com.google.cloud.netapp.v1.Replication(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.cloud.netapp.v1.Replication result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.state_ = state_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.stateDetails_ = stateDetails_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.role_ = role_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.replicationSchedule_ = replicationSchedule_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.mirrorState_ = mirrorState_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000040) != 0)) { result.healthy_ = healthy_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000080) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000100) != 0)) { result.destinationVolume_ = destinationVolume_; } if (((from_bitField0_ & 0x00000200) != 0)) { result.transferStats_ = transferStatsBuilder_ == null ? transferStats_ : transferStatsBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000400) != 0)) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } if (((from_bitField0_ & 0x00000800) != 0)) { result.description_ = description_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00001000) != 0)) { result.destinationVolumeParameters_ = destinationVolumeParametersBuilder_ == null ? destinationVolumeParameters_ : destinationVolumeParametersBuilder_.build(); to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00002000) != 0)) { result.sourceVolume_ = sourceVolume_; } 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.Replication) { return mergeFrom((com.google.cloud.netapp.v1.Replication) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.netapp.v1.Replication other) { if (other == com.google.cloud.netapp.v1.Replication.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (other.state_ != 0) { setStateValue(other.getStateValue()); } if (!other.getStateDetails().isEmpty()) { stateDetails_ = other.stateDetails_; bitField0_ |= 0x00000004; onChanged(); } if (other.role_ != 0) { setRoleValue(other.getRoleValue()); } if (other.replicationSchedule_ != 0) { setReplicationScheduleValue(other.getReplicationScheduleValue()); } if (other.mirrorState_ != 0) { setMirrorStateValue(other.getMirrorStateValue()); } if (other.hasHealthy()) { setHealthy(other.getHealthy()); } if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } if (!other.getDestinationVolume().isEmpty()) { destinationVolume_ = other.destinationVolume_; bitField0_ |= 0x00000100; onChanged(); } if (other.hasTransferStats()) { mergeTransferStats(other.getTransferStats()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000400; if (other.hasDescription()) { description_ = other.description_; bitField0_ |= 0x00000800; onChanged(); } if (other.hasDestinationVolumeParameters()) { mergeDestinationVolumeParameters(other.getDestinationVolumeParameters()); } if (!other.getSourceVolume().isEmpty()) { sourceVolume_ = other.sourceVolume_; bitField0_ |= 0x00002000; 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 10: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { state_ = input.readEnum(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { stateDetails_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 32: { role_ = input.readEnum(); bitField0_ |= 0x00000008; break; } // case 32 case 40: { replicationSchedule_ = input.readEnum(); bitField0_ |= 0x00000010; break; } // case 40 case 48: { mirrorState_ = input.readEnum(); bitField0_ |= 0x00000020; break; } // case 48 case 64: { healthy_ = input.readBool(); bitField0_ |= 0x00000040; break; } // case 64 case 74: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000080; break; } // case 74 case 82: { destinationVolume_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000100; break; } // case 82 case 90: { input.readMessage(getTransferStatsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000200; break; } // case 90 case 98: { com.google.protobuf.MapEntry labels__ = input.readMessage( LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); bitField0_ |= 0x00000400; break; } // case 98 case 106: { description_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000800; break; } // case 106 case 114: { input.readMessage( getDestinationVolumeParametersFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00001000; break; } // case 114 case 122: { sourceVolume_ = input.readStringRequireUtf8(); bitField0_ |= 0x00002000; break; } // case 122 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 java.lang.Object name_ = ""; /** * * *
     * Identifier. The resource name of the Replication.
     * Format:
     * `projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}`.
     * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Identifier. The resource name of the Replication.
     * Format:
     * `projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}`.
     * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Identifier. The resource name of the Replication.
     * Format:
     * `projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}`.
     * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * Identifier. The resource name of the Replication.
     * Format:
     * `projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}`.
     * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * Identifier. The resource name of the Replication.
     * Format:
     * `projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}`.
     * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private int state_ = 0; /** * * *
     * Output only. State of the replication.
     * 
* * * .google.cloud.netapp.v1.Replication.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for state. */ @java.lang.Override public int getStateValue() { return state_; } /** * * *
     * Output only. State of the replication.
     * 
* * * .google.cloud.netapp.v1.Replication.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { state_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Output only. State of the replication.
     * 
* * * .google.cloud.netapp.v1.Replication.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The state. */ @java.lang.Override public com.google.cloud.netapp.v1.Replication.State getState() { com.google.cloud.netapp.v1.Replication.State result = com.google.cloud.netapp.v1.Replication.State.forNumber(state_); return result == null ? com.google.cloud.netapp.v1.Replication.State.UNRECOGNIZED : result; } /** * * *
     * Output only. State of the replication.
     * 
* * * .google.cloud.netapp.v1.Replication.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The state to set. * @return This builder for chaining. */ public Builder setState(com.google.cloud.netapp.v1.Replication.State value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; state_ = value.getNumber(); onChanged(); return this; } /** * * *
     * Output only. State of the replication.
     * 
* * * .google.cloud.netapp.v1.Replication.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. */ public Builder clearState() { bitField0_ = (bitField0_ & ~0x00000002); state_ = 0; onChanged(); return this; } private java.lang.Object stateDetails_ = ""; /** * * *
     * Output only. State details of the replication.
     * 
* * string state_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The stateDetails. */ public java.lang.String getStateDetails() { java.lang.Object ref = stateDetails_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stateDetails_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Output only. State details of the replication.
     * 
* * string state_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for stateDetails. */ public com.google.protobuf.ByteString getStateDetailsBytes() { java.lang.Object ref = stateDetails_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); stateDetails_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Output only. State details of the replication.
     * 
* * string state_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The stateDetails to set. * @return This builder for chaining. */ public Builder setStateDetails(java.lang.String value) { if (value == null) { throw new NullPointerException(); } stateDetails_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Output only. State details of the replication.
     * 
* * string state_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearStateDetails() { stateDetails_ = getDefaultInstance().getStateDetails(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * * *
     * Output only. State details of the replication.
     * 
* * string state_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for stateDetails to set. * @return This builder for chaining. */ public Builder setStateDetailsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); stateDetails_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private int role_ = 0; /** * * *
     * Output only. Indicates whether this points to source or destination.
     * 
* * * .google.cloud.netapp.v1.Replication.ReplicationRole role = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for role. */ @java.lang.Override public int getRoleValue() { return role_; } /** * * *
     * Output only. Indicates whether this points to source or destination.
     * 
* * * .google.cloud.netapp.v1.Replication.ReplicationRole role = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The enum numeric value on the wire for role to set. * @return This builder for chaining. */ public Builder setRoleValue(int value) { role_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Output only. Indicates whether this points to source or destination.
     * 
* * * .google.cloud.netapp.v1.Replication.ReplicationRole role = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The role. */ @java.lang.Override public com.google.cloud.netapp.v1.Replication.ReplicationRole getRole() { com.google.cloud.netapp.v1.Replication.ReplicationRole result = com.google.cloud.netapp.v1.Replication.ReplicationRole.forNumber(role_); return result == null ? com.google.cloud.netapp.v1.Replication.ReplicationRole.UNRECOGNIZED : result; } /** * * *
     * Output only. Indicates whether this points to source or destination.
     * 
* * * .google.cloud.netapp.v1.Replication.ReplicationRole role = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The role to set. * @return This builder for chaining. */ public Builder setRole(com.google.cloud.netapp.v1.Replication.ReplicationRole value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; role_ = value.getNumber(); onChanged(); return this; } /** * * *
     * Output only. Indicates whether this points to source or destination.
     * 
* * * .google.cloud.netapp.v1.Replication.ReplicationRole role = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. */ public Builder clearRole() { bitField0_ = (bitField0_ & ~0x00000008); role_ = 0; onChanged(); return this; } private int replicationSchedule_ = 0; /** * * *
     * Required. Indicates the schedule for replication.
     * 
* * * .google.cloud.netapp.v1.Replication.ReplicationSchedule replication_schedule = 5 [(.google.api.field_behavior) = REQUIRED]; * * * @return The enum numeric value on the wire for replicationSchedule. */ @java.lang.Override public int getReplicationScheduleValue() { return replicationSchedule_; } /** * * *
     * Required. Indicates the schedule for replication.
     * 
* * * .google.cloud.netapp.v1.Replication.ReplicationSchedule replication_schedule = 5 [(.google.api.field_behavior) = REQUIRED]; * * * @param value The enum numeric value on the wire for replicationSchedule to set. * @return This builder for chaining. */ public Builder setReplicationScheduleValue(int value) { replicationSchedule_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * Required. Indicates the schedule for replication.
     * 
* * * .google.cloud.netapp.v1.Replication.ReplicationSchedule replication_schedule = 5 [(.google.api.field_behavior) = REQUIRED]; * * * @return The replicationSchedule. */ @java.lang.Override public com.google.cloud.netapp.v1.Replication.ReplicationSchedule getReplicationSchedule() { com.google.cloud.netapp.v1.Replication.ReplicationSchedule result = com.google.cloud.netapp.v1.Replication.ReplicationSchedule.forNumber( replicationSchedule_); return result == null ? com.google.cloud.netapp.v1.Replication.ReplicationSchedule.UNRECOGNIZED : result; } /** * * *
     * Required. Indicates the schedule for replication.
     * 
* * * .google.cloud.netapp.v1.Replication.ReplicationSchedule replication_schedule = 5 [(.google.api.field_behavior) = REQUIRED]; * * * @param value The replicationSchedule to set. * @return This builder for chaining. */ public Builder setReplicationSchedule( com.google.cloud.netapp.v1.Replication.ReplicationSchedule value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; replicationSchedule_ = value.getNumber(); onChanged(); return this; } /** * * *
     * Required. Indicates the schedule for replication.
     * 
* * * .google.cloud.netapp.v1.Replication.ReplicationSchedule replication_schedule = 5 [(.google.api.field_behavior) = REQUIRED]; * * * @return This builder for chaining. */ public Builder clearReplicationSchedule() { bitField0_ = (bitField0_ & ~0x00000010); replicationSchedule_ = 0; onChanged(); return this; } private int mirrorState_ = 0; /** * * *
     * Output only. Indicates the state of mirroring.
     * 
* * * .google.cloud.netapp.v1.Replication.MirrorState mirror_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for mirrorState. */ @java.lang.Override public int getMirrorStateValue() { return mirrorState_; } /** * * *
     * Output only. Indicates the state of mirroring.
     * 
* * * .google.cloud.netapp.v1.Replication.MirrorState mirror_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The enum numeric value on the wire for mirrorState to set. * @return This builder for chaining. */ public Builder setMirrorStateValue(int value) { mirrorState_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * Output only. Indicates the state of mirroring.
     * 
* * * .google.cloud.netapp.v1.Replication.MirrorState mirror_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The mirrorState. */ @java.lang.Override public com.google.cloud.netapp.v1.Replication.MirrorState getMirrorState() { com.google.cloud.netapp.v1.Replication.MirrorState result = com.google.cloud.netapp.v1.Replication.MirrorState.forNumber(mirrorState_); return result == null ? com.google.cloud.netapp.v1.Replication.MirrorState.UNRECOGNIZED : result; } /** * * *
     * Output only. Indicates the state of mirroring.
     * 
* * * .google.cloud.netapp.v1.Replication.MirrorState mirror_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The mirrorState to set. * @return This builder for chaining. */ public Builder setMirrorState(com.google.cloud.netapp.v1.Replication.MirrorState value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; mirrorState_ = value.getNumber(); onChanged(); return this; } /** * * *
     * Output only. Indicates the state of mirroring.
     * 
* * * .google.cloud.netapp.v1.Replication.MirrorState mirror_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. */ public Builder clearMirrorState() { bitField0_ = (bitField0_ & ~0x00000020); mirrorState_ = 0; onChanged(); return this; } private boolean healthy_; /** * * *
     * Output only. Condition of the relationship. Can be one of the following:
     * - true: The replication relationship is healthy. It has not missed the most
     * recent scheduled transfer.
     * - false: The replication relationship is not healthy. It has missed the
     * most recent scheduled transfer.
     * 
* * optional bool healthy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the healthy field is set. */ @java.lang.Override public boolean hasHealthy() { return ((bitField0_ & 0x00000040) != 0); } /** * * *
     * Output only. Condition of the relationship. Can be one of the following:
     * - true: The replication relationship is healthy. It has not missed the most
     * recent scheduled transfer.
     * - false: The replication relationship is not healthy. It has missed the
     * most recent scheduled transfer.
     * 
* * optional bool healthy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The healthy. */ @java.lang.Override public boolean getHealthy() { return healthy_; } /** * * *
     * Output only. Condition of the relationship. Can be one of the following:
     * - true: The replication relationship is healthy. It has not missed the most
     * recent scheduled transfer.
     * - false: The replication relationship is not healthy. It has missed the
     * most recent scheduled transfer.
     * 
* * optional bool healthy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The healthy to set. * @return This builder for chaining. */ public Builder setHealthy(boolean value) { healthy_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
     * Output only. Condition of the relationship. Can be one of the following:
     * - true: The replication relationship is healthy. It has not missed the most
     * recent scheduled transfer.
     * - false: The replication relationship is not healthy. It has missed the
     * most recent scheduled transfer.
     * 
* * optional bool healthy = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearHealthy() { bitField0_ = (bitField0_ & ~0x00000040); healthy_ = false; onChanged(); return this; } private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** * * *
     * Output only. Replication create time.
     * 
* * * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000080) != 0); } /** * * *
     * Output only. Replication create time.
     * 
* * * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** * * *
     * Output only. Replication create time.
     * 
* * * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createTime_ = value; } else { createTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000080; onChanged(); return this; } /** * * *
     * Output only. Replication create time.
     * 
* * * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; onChanged(); return this; } /** * * *
     * Output only. Replication create time.
     * 
* * * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } } else { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { bitField0_ |= 0x00000080; onChanged(); } return this; } /** * * *
     * Output only. Replication create time.
     * 
* * * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000080); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); createTimeBuilder_ = null; } onChanged(); return this; } /** * * *
     * Output only. Replication create time.
     * 
* * * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000080; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** * * *
     * Output only. Replication create time.
     * 
* * * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** * * *
     * Output only. Replication create time.
     * 
* * * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; } private java.lang.Object destinationVolume_ = ""; /** * * *
     * Output only. Full name of destination volume resource.
     * Example : "projects/{project}/locations/{location}/volumes/{volume_id}"
     * 
* * * string destination_volume = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @return The destinationVolume. */ public java.lang.String getDestinationVolume() { java.lang.Object ref = destinationVolume_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationVolume_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Output only. Full name of destination volume resource.
     * Example : "projects/{project}/locations/{location}/volumes/{volume_id}"
     * 
* * * string destination_volume = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @return The bytes for destinationVolume. */ public com.google.protobuf.ByteString getDestinationVolumeBytes() { java.lang.Object ref = destinationVolume_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); destinationVolume_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Output only. Full name of destination volume resource.
     * Example : "projects/{project}/locations/{location}/volumes/{volume_id}"
     * 
* * * string destination_volume = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @param value The destinationVolume to set. * @return This builder for chaining. */ public Builder setDestinationVolume(java.lang.String value) { if (value == null) { throw new NullPointerException(); } destinationVolume_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** * * *
     * Output only. Full name of destination volume resource.
     * Example : "projects/{project}/locations/{location}/volumes/{volume_id}"
     * 
* * * string destination_volume = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. */ public Builder clearDestinationVolume() { destinationVolume_ = getDefaultInstance().getDestinationVolume(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } /** * * *
     * Output only. Full name of destination volume resource.
     * Example : "projects/{project}/locations/{location}/volumes/{volume_id}"
     * 
* * * string destination_volume = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @param value The bytes for destinationVolume to set. * @return This builder for chaining. */ public Builder setDestinationVolumeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); destinationVolume_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } private com.google.cloud.netapp.v1.TransferStats transferStats_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.netapp.v1.TransferStats, com.google.cloud.netapp.v1.TransferStats.Builder, com.google.cloud.netapp.v1.TransferStatsOrBuilder> transferStatsBuilder_; /** * * *
     * Output only. Replication transfer statistics.
     * 
* * * .google.cloud.netapp.v1.TransferStats transfer_stats = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the transferStats field is set. */ public boolean hasTransferStats() { return ((bitField0_ & 0x00000200) != 0); } /** * * *
     * Output only. Replication transfer statistics.
     * 
* * * .google.cloud.netapp.v1.TransferStats transfer_stats = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The transferStats. */ public com.google.cloud.netapp.v1.TransferStats getTransferStats() { if (transferStatsBuilder_ == null) { return transferStats_ == null ? com.google.cloud.netapp.v1.TransferStats.getDefaultInstance() : transferStats_; } else { return transferStatsBuilder_.getMessage(); } } /** * * *
     * Output only. Replication transfer statistics.
     * 
* * * .google.cloud.netapp.v1.TransferStats transfer_stats = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setTransferStats(com.google.cloud.netapp.v1.TransferStats value) { if (transferStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } transferStats_ = value; } else { transferStatsBuilder_.setMessage(value); } bitField0_ |= 0x00000200; onChanged(); return this; } /** * * *
     * Output only. Replication transfer statistics.
     * 
* * * .google.cloud.netapp.v1.TransferStats transfer_stats = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setTransferStats( com.google.cloud.netapp.v1.TransferStats.Builder builderForValue) { if (transferStatsBuilder_ == null) { transferStats_ = builderForValue.build(); } else { transferStatsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; onChanged(); return this; } /** * * *
     * Output only. Replication transfer statistics.
     * 
* * * .google.cloud.netapp.v1.TransferStats transfer_stats = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeTransferStats(com.google.cloud.netapp.v1.TransferStats value) { if (transferStatsBuilder_ == null) { if (((bitField0_ & 0x00000200) != 0) && transferStats_ != null && transferStats_ != com.google.cloud.netapp.v1.TransferStats.getDefaultInstance()) { getTransferStatsBuilder().mergeFrom(value); } else { transferStats_ = value; } } else { transferStatsBuilder_.mergeFrom(value); } if (transferStats_ != null) { bitField0_ |= 0x00000200; onChanged(); } return this; } /** * * *
     * Output only. Replication transfer statistics.
     * 
* * * .google.cloud.netapp.v1.TransferStats transfer_stats = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearTransferStats() { bitField0_ = (bitField0_ & ~0x00000200); transferStats_ = null; if (transferStatsBuilder_ != null) { transferStatsBuilder_.dispose(); transferStatsBuilder_ = null; } onChanged(); return this; } /** * * *
     * Output only. Replication transfer statistics.
     * 
* * * .google.cloud.netapp.v1.TransferStats transfer_stats = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.netapp.v1.TransferStats.Builder getTransferStatsBuilder() { bitField0_ |= 0x00000200; onChanged(); return getTransferStatsFieldBuilder().getBuilder(); } /** * * *
     * Output only. Replication transfer statistics.
     * 
* * * .google.cloud.netapp.v1.TransferStats transfer_stats = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.netapp.v1.TransferStatsOrBuilder getTransferStatsOrBuilder() { if (transferStatsBuilder_ != null) { return transferStatsBuilder_.getMessageOrBuilder(); } else { return transferStats_ == null ? com.google.cloud.netapp.v1.TransferStats.getDefaultInstance() : transferStats_; } } /** * * *
     * Output only. Replication transfer statistics.
     * 
* * * .google.cloud.netapp.v1.TransferStats transfer_stats = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.netapp.v1.TransferStats, com.google.cloud.netapp.v1.TransferStats.Builder, com.google.cloud.netapp.v1.TransferStatsOrBuilder> getTransferStatsFieldBuilder() { if (transferStatsBuilder_ == null) { transferStatsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.netapp.v1.TransferStats, com.google.cloud.netapp.v1.TransferStats.Builder, com.google.cloud.netapp.v1.TransferStatsOrBuilder>( getTransferStats(), getParentForChildren(), isClean()); transferStats_ = null; } return transferStatsBuilder_; } private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } bitField0_ |= 0x00000400; onChanged(); return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** * * *
     * Resource labels to represent user provided metadata.
     * 
* * map<string, string> labels = 12; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** * * *
     * Resource labels to represent user provided metadata.
     * 
* * map<string, string> labels = 12; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** * * *
     * Resource labels to represent user provided metadata.
     * 
* * map<string, string> labels = 12; */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
     * Resource labels to represent user provided metadata.
     * 
* * map<string, string> labels = 12; */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000400); internalGetMutableLabels().getMutableMap().clear(); return this; } /** * * *
     * Resource labels to represent user provided metadata.
     * 
* * map<string, string> labels = 12; */ public Builder removeLabels(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { bitField0_ |= 0x00000400; return internalGetMutableLabels().getMutableMap(); } /** * * *
     * Resource labels to represent user provided metadata.
     * 
* * map<string, string> labels = 12; */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap().put(key, value); bitField0_ |= 0x00000400; return this; } /** * * *
     * Resource labels to represent user provided metadata.
     * 
* * map<string, string> labels = 12; */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); bitField0_ |= 0x00000400; return this; } private java.lang.Object description_ = ""; /** * * *
     * A description about this replication relationship.
     * 
* * optional string description = 13; * * @return Whether the description field is set. */ public boolean hasDescription() { return ((bitField0_ & 0x00000800) != 0); } /** * * *
     * A description about this replication relationship.
     * 
* * optional string description = 13; * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * A description about this replication relationship.
     * 
* * optional string description = 13; * * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * A description about this replication relationship.
     * 
* * optional string description = 13; * * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** * * *
     * A description about this replication relationship.
     * 
* * optional string description = 13; * * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } /** * * *
     * A description about this replication relationship.
     * 
* * optional string description = 13; * * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } private com.google.cloud.netapp.v1.DestinationVolumeParameters destinationVolumeParameters_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.netapp.v1.DestinationVolumeParameters, com.google.cloud.netapp.v1.DestinationVolumeParameters.Builder, com.google.cloud.netapp.v1.DestinationVolumeParametersOrBuilder> destinationVolumeParametersBuilder_; /** * * *
     * Required. Input only. Destination volume parameters
     * 
* * * .google.cloud.netapp.v1.DestinationVolumeParameters destination_volume_parameters = 14 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; * * * @return Whether the destinationVolumeParameters field is set. */ public boolean hasDestinationVolumeParameters() { return ((bitField0_ & 0x00001000) != 0); } /** * * *
     * Required. Input only. Destination volume parameters
     * 
* * * .google.cloud.netapp.v1.DestinationVolumeParameters destination_volume_parameters = 14 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; * * * @return The destinationVolumeParameters. */ public com.google.cloud.netapp.v1.DestinationVolumeParameters getDestinationVolumeParameters() { if (destinationVolumeParametersBuilder_ == null) { return destinationVolumeParameters_ == null ? com.google.cloud.netapp.v1.DestinationVolumeParameters.getDefaultInstance() : destinationVolumeParameters_; } else { return destinationVolumeParametersBuilder_.getMessage(); } } /** * * *
     * Required. Input only. Destination volume parameters
     * 
* * * .google.cloud.netapp.v1.DestinationVolumeParameters destination_volume_parameters = 14 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; * */ public Builder setDestinationVolumeParameters( com.google.cloud.netapp.v1.DestinationVolumeParameters value) { if (destinationVolumeParametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } destinationVolumeParameters_ = value; } else { destinationVolumeParametersBuilder_.setMessage(value); } bitField0_ |= 0x00001000; onChanged(); return this; } /** * * *
     * Required. Input only. Destination volume parameters
     * 
* * * .google.cloud.netapp.v1.DestinationVolumeParameters destination_volume_parameters = 14 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; * */ public Builder setDestinationVolumeParameters( com.google.cloud.netapp.v1.DestinationVolumeParameters.Builder builderForValue) { if (destinationVolumeParametersBuilder_ == null) { destinationVolumeParameters_ = builderForValue.build(); } else { destinationVolumeParametersBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00001000; onChanged(); return this; } /** * * *
     * Required. Input only. Destination volume parameters
     * 
* * * .google.cloud.netapp.v1.DestinationVolumeParameters destination_volume_parameters = 14 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; * */ public Builder mergeDestinationVolumeParameters( com.google.cloud.netapp.v1.DestinationVolumeParameters value) { if (destinationVolumeParametersBuilder_ == null) { if (((bitField0_ & 0x00001000) != 0) && destinationVolumeParameters_ != null && destinationVolumeParameters_ != com.google.cloud.netapp.v1.DestinationVolumeParameters.getDefaultInstance()) { getDestinationVolumeParametersBuilder().mergeFrom(value); } else { destinationVolumeParameters_ = value; } } else { destinationVolumeParametersBuilder_.mergeFrom(value); } if (destinationVolumeParameters_ != null) { bitField0_ |= 0x00001000; onChanged(); } return this; } /** * * *
     * Required. Input only. Destination volume parameters
     * 
* * * .google.cloud.netapp.v1.DestinationVolumeParameters destination_volume_parameters = 14 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; * */ public Builder clearDestinationVolumeParameters() { bitField0_ = (bitField0_ & ~0x00001000); destinationVolumeParameters_ = null; if (destinationVolumeParametersBuilder_ != null) { destinationVolumeParametersBuilder_.dispose(); destinationVolumeParametersBuilder_ = null; } onChanged(); return this; } /** * * *
     * Required. Input only. Destination volume parameters
     * 
* * * .google.cloud.netapp.v1.DestinationVolumeParameters destination_volume_parameters = 14 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; * */ public com.google.cloud.netapp.v1.DestinationVolumeParameters.Builder getDestinationVolumeParametersBuilder() { bitField0_ |= 0x00001000; onChanged(); return getDestinationVolumeParametersFieldBuilder().getBuilder(); } /** * * *
     * Required. Input only. Destination volume parameters
     * 
* * * .google.cloud.netapp.v1.DestinationVolumeParameters destination_volume_parameters = 14 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; * */ public com.google.cloud.netapp.v1.DestinationVolumeParametersOrBuilder getDestinationVolumeParametersOrBuilder() { if (destinationVolumeParametersBuilder_ != null) { return destinationVolumeParametersBuilder_.getMessageOrBuilder(); } else { return destinationVolumeParameters_ == null ? com.google.cloud.netapp.v1.DestinationVolumeParameters.getDefaultInstance() : destinationVolumeParameters_; } } /** * * *
     * Required. Input only. Destination volume parameters
     * 
* * * .google.cloud.netapp.v1.DestinationVolumeParameters destination_volume_parameters = 14 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.netapp.v1.DestinationVolumeParameters, com.google.cloud.netapp.v1.DestinationVolumeParameters.Builder, com.google.cloud.netapp.v1.DestinationVolumeParametersOrBuilder> getDestinationVolumeParametersFieldBuilder() { if (destinationVolumeParametersBuilder_ == null) { destinationVolumeParametersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.netapp.v1.DestinationVolumeParameters, com.google.cloud.netapp.v1.DestinationVolumeParameters.Builder, com.google.cloud.netapp.v1.DestinationVolumeParametersOrBuilder>( getDestinationVolumeParameters(), getParentForChildren(), isClean()); destinationVolumeParameters_ = null; } return destinationVolumeParametersBuilder_; } private java.lang.Object sourceVolume_ = ""; /** * * *
     * Output only. Full name of source volume resource.
     * Example : "projects/{project}/locations/{location}/volumes/{volume_id}"
     * 
* * * string source_volume = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @return The sourceVolume. */ public java.lang.String getSourceVolume() { java.lang.Object ref = sourceVolume_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceVolume_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Output only. Full name of source volume resource.
     * Example : "projects/{project}/locations/{location}/volumes/{volume_id}"
     * 
* * * string source_volume = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @return The bytes for sourceVolume. */ public com.google.protobuf.ByteString getSourceVolumeBytes() { java.lang.Object ref = sourceVolume_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceVolume_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Output only. Full name of source volume resource.
     * Example : "projects/{project}/locations/{location}/volumes/{volume_id}"
     * 
* * * string source_volume = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @param value The sourceVolume to set. * @return This builder for chaining. */ public Builder setSourceVolume(java.lang.String value) { if (value == null) { throw new NullPointerException(); } sourceVolume_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } /** * * *
     * Output only. Full name of source volume resource.
     * Example : "projects/{project}/locations/{location}/volumes/{volume_id}"
     * 
* * * string source_volume = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. */ public Builder clearSourceVolume() { sourceVolume_ = getDefaultInstance().getSourceVolume(); bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } /** * * *
     * Output only. Full name of source volume resource.
     * Example : "projects/{project}/locations/{location}/volumes/{volume_id}"
     * 
* * * string source_volume = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @param value The bytes for sourceVolume to set. * @return This builder for chaining. */ public Builder setSourceVolumeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceVolume_ = value; bitField0_ |= 0x00002000; 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.Replication) } // @@protoc_insertion_point(class_scope:google.cloud.netapp.v1.Replication) private static final com.google.cloud.netapp.v1.Replication DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.netapp.v1.Replication(); } public static com.google.cloud.netapp.v1.Replication getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Replication 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.Replication getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy