Class Replication

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

    public final class Replication
    extends com.google.protobuf.GeneratedMessageV3
    implements ReplicationOrBuilder
     Replication is a nested resource under Volume, that describes a
     cross-region replication relationship between 2 volumes in different
     regions.
     
    Protobuf type google.cloud.netapp.v1.Replication
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetMapField

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getName

        public String getName()
         Output only. 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) = OUTPUT_ONLY];
        Specified by:
        getName in interface ReplicationOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Output only. 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) = OUTPUT_ONLY];
        Specified by:
        getNameBytes in interface ReplicationOrBuilder
        Returns:
        The bytes for name.
      • getStateValue

        public int getStateValue()
         Output only. State of the replication.
         
        .google.cloud.netapp.v1.Replication.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStateValue in interface ReplicationOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • getState

        public Replication.State getState()
         Output only. State of the replication.
         
        .google.cloud.netapp.v1.Replication.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getState in interface ReplicationOrBuilder
        Returns:
        The state.
      • getStateDetails

        public String getStateDetails()
         Output only. State details of the replication.
         
        string state_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStateDetails in interface ReplicationOrBuilder
        Returns:
        The stateDetails.
      • getStateDetailsBytes

        public com.google.protobuf.ByteString getStateDetailsBytes()
         Output only. State details of the replication.
         
        string state_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStateDetailsBytes in interface ReplicationOrBuilder
        Returns:
        The bytes for stateDetails.
      • getRoleValue

        public int getRoleValue()
         Output only. Indicates whether this points to source or destination.
         
        .google.cloud.netapp.v1.Replication.ReplicationRole role = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getRoleValue in interface ReplicationOrBuilder
        Returns:
        The enum numeric value on the wire for role.
      • getRole

        public Replication.ReplicationRole getRole()
         Output only. Indicates whether this points to source or destination.
         
        .google.cloud.netapp.v1.Replication.ReplicationRole role = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getRole in interface ReplicationOrBuilder
        Returns:
        The role.
      • getReplicationScheduleValue

        public int getReplicationScheduleValue()
         Required. Indicates the schedule for replication.
         
        .google.cloud.netapp.v1.Replication.ReplicationSchedule replication_schedule = 5 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getReplicationScheduleValue in interface ReplicationOrBuilder
        Returns:
        The enum numeric value on the wire for replicationSchedule.
      • getReplicationSchedule

        public Replication.ReplicationSchedule getReplicationSchedule()
         Required. Indicates the schedule for replication.
         
        .google.cloud.netapp.v1.Replication.ReplicationSchedule replication_schedule = 5 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getReplicationSchedule in interface ReplicationOrBuilder
        Returns:
        The replicationSchedule.
      • getMirrorStateValue

        public int getMirrorStateValue()
         Output only. Indicates the state of mirroring.
         
        .google.cloud.netapp.v1.Replication.MirrorState mirror_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getMirrorStateValue in interface ReplicationOrBuilder
        Returns:
        The enum numeric value on the wire for mirrorState.
      • getMirrorState

        public Replication.MirrorState getMirrorState()
         Output only. Indicates the state of mirroring.
         
        .google.cloud.netapp.v1.Replication.MirrorState mirror_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getMirrorState in interface ReplicationOrBuilder
        Returns:
        The mirrorState.
      • hasHealthy

        public boolean hasHealthy()
         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];
        Specified by:
        hasHealthy in interface ReplicationOrBuilder
        Returns:
        Whether the healthy field is set.
      • getHealthy

        public boolean getHealthy()
         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];
        Specified by:
        getHealthy in interface ReplicationOrBuilder
        Returns:
        The healthy.
      • hasCreateTime

        public boolean hasCreateTime()
         Output only. Replication create time.
         
        .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCreateTime in interface ReplicationOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Output only. Replication create time.
         
        .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTime in interface ReplicationOrBuilder
        Returns:
        The createTime.
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Output only. Replication create time.
         
        .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTimeOrBuilder in interface ReplicationOrBuilder
      • getDestinationVolume

        public String getDestinationVolume()
         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) = { ... }
        Specified by:
        getDestinationVolume in interface ReplicationOrBuilder
        Returns:
        The destinationVolume.
      • getDestinationVolumeBytes

        public com.google.protobuf.ByteString getDestinationVolumeBytes()
         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) = { ... }
        Specified by:
        getDestinationVolumeBytes in interface ReplicationOrBuilder
        Returns:
        The bytes for destinationVolume.
      • hasTransferStats

        public boolean hasTransferStats()
         Output only. Replication transfer statistics.
         
        .google.cloud.netapp.v1.TransferStats transfer_stats = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasTransferStats in interface ReplicationOrBuilder
        Returns:
        Whether the transferStats field is set.
      • getTransferStats

        public TransferStats getTransferStats()
         Output only. Replication transfer statistics.
         
        .google.cloud.netapp.v1.TransferStats transfer_stats = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getTransferStats in interface ReplicationOrBuilder
        Returns:
        The transferStats.
      • containsLabels

        public boolean containsLabels​(String key)
         Resource labels to represent user provided metadata.
         
        map<string, string> labels = 12;
        Specified by:
        containsLabels in interface ReplicationOrBuilder
      • hasDescription

        public boolean hasDescription()
         A description about this replication relationship.
         
        optional string description = 13;
        Specified by:
        hasDescription in interface ReplicationOrBuilder
        Returns:
        Whether the description field is set.
      • getDescription

        public String getDescription()
         A description about this replication relationship.
         
        optional string description = 13;
        Specified by:
        getDescription in interface ReplicationOrBuilder
        Returns:
        The description.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         A description about this replication relationship.
         
        optional string description = 13;
        Specified by:
        getDescriptionBytes in interface ReplicationOrBuilder
        Returns:
        The bytes for description.
      • hasDestinationVolumeParameters

        public boolean hasDestinationVolumeParameters()
         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];
        Specified by:
        hasDestinationVolumeParameters in interface ReplicationOrBuilder
        Returns:
        Whether the destinationVolumeParameters field is set.
      • getDestinationVolumeParameters

        public DestinationVolumeParameters getDestinationVolumeParameters()
         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];
        Specified by:
        getDestinationVolumeParameters in interface ReplicationOrBuilder
        Returns:
        The destinationVolumeParameters.
      • getSourceVolume

        public String getSourceVolume()
         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) = { ... }
        Specified by:
        getSourceVolume in interface ReplicationOrBuilder
        Returns:
        The sourceVolume.
      • getSourceVolumeBytes

        public com.google.protobuf.ByteString getSourceVolumeBytes()
         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) = { ... }
        Specified by:
        getSourceVolumeBytes in interface ReplicationOrBuilder
        Returns:
        The bytes for sourceVolume.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

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

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

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

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

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

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

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

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

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

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

        public static Replication getDefaultInstance()
      • parser

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

        public com.google.protobuf.Parser<Replication> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public Replication getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder