# Interface ReplicationOrBuilder (0.72.0)

0.72.0 (latest) 0.70.0 0.67.0 0.66.0 0.64.0 0.62.0 0.61.0 0.59.0 0.57.0 0.55.0 0.54.0 0.53.0 0.52.0 0.51.0 0.49.0 0.47.0 0.46.0 0.43.0 0.42.0 0.41.0 0.39.0 0.38.0 0.37.0 0.36.0 0.35.0 0.34.0 0.33.0 0.32.0 0.31.0 0.30.0 0.28.0 0.27.0 0.26.0 0.25.0 0.24.0 0.23.0 0.22.0 0.21.0 0.20.0 0.19.0 0.18.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.3.0 0.2.0 0.1.0

    public interface ReplicationOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### containsLabels(String key)

    public abstract boolean containsLabels(String key)

Resource labels to represent user provided metadata.

`map<string, string> labels = 12;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getClusterLocation()

    public abstract String getClusterLocation()

Optional. Location of the user cluster.

`string cluster_location = 18 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The clusterLocation. |

### getClusterLocationBytes()

    public abstract ByteString getClusterLocationBytes()

Optional. Location of the user cluster.

`string cluster_location = 18 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for clusterLocation. |

### getCreateTime()

    public abstract Timestamp getCreateTime()

Output only. Replication create time.

`.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The createTime. |

### getCreateTimeOrBuilder()

    public abstract TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Replication create time.

`.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### getDescription()

    public abstract String getDescription()

A description about this replication relationship.

`optional string description = 13;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The description. |

### getDescriptionBytes()

    public abstract ByteString getDescriptionBytes()

A description about this replication relationship.

`optional string description = 13;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for description. |

### getDestinationVolume()

    public abstract 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) = { ... }
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The destinationVolume. |

### getDestinationVolumeBytes()

    public abstract 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) = { ... }
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for destinationVolume. |

### getDestinationVolumeParameters()

    public abstract 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];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-netapp/latest/com.google.cloud.netapp.v1.DestinationVolumeParameters` | The destinationVolumeParameters. |

### getDestinationVolumeParametersOrBuilder()

    public abstract DestinationVolumeParametersOrBuilder getDestinationVolumeParametersOrBuilder()

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];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-netapp/latest/com.google.cloud.netapp.v1.DestinationVolumeParametersOrBuilder` |   |

### getHealthy()

    public abstract 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];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The healthy. |

### getHybridPeeringDetails()

    public abstract HybridPeeringDetails getHybridPeeringDetails()

Output only. Hybrid peering details.

`
.google.cloud.netapp.v1.HybridPeeringDetails hybrid_peering_details = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-netapp/latest/com.google.cloud.netapp.v1.HybridPeeringDetails` | The hybridPeeringDetails. |

### getHybridPeeringDetailsOrBuilder()

    public abstract HybridPeeringDetailsOrBuilder getHybridPeeringDetailsOrBuilder()

Output only. Hybrid peering details.

`
.google.cloud.netapp.v1.HybridPeeringDetails hybrid_peering_details = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-netapp/latest/com.google.cloud.netapp.v1.HybridPeeringDetailsOrBuilder` |   |

### getHybridReplicationType()

    public abstract Replication.HybridReplicationType getHybridReplicationType()

Output only. Type of the hybrid replication.

`
.google.cloud.netapp.v1.Replication.HybridReplicationType hybrid_replication_type = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-netapp/latest/com.google.cloud.netapp.v1.Replication.HybridReplicationType` | The hybridReplicationType. |

### getHybridReplicationTypeValue()

    public abstract int getHybridReplicationTypeValue()

Output only. Type of the hybrid replication.

`
.google.cloud.netapp.v1.Replication.HybridReplicationType hybrid_replication_type = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for hybridReplicationType. |

### getHybridReplicationUserCommands()

    public abstract UserCommands getHybridReplicationUserCommands()

Output only. Copy pastable snapmirror commands to be executed on onprem
cluster by the customer.

`
.google.cloud.netapp.v1.UserCommands hybrid_replication_user_commands = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-netapp/latest/com.google.cloud.netapp.v1.UserCommands` | The hybridReplicationUserCommands. |

### getHybridReplicationUserCommandsOrBuilder()

    public abstract UserCommandsOrBuilder getHybridReplicationUserCommandsOrBuilder()

Output only. Copy pastable snapmirror commands to be executed on onprem
cluster by the customer.

`
.google.cloud.netapp.v1.UserCommands hybrid_replication_user_commands = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-netapp/latest/com.google.cloud.netapp.v1.UserCommandsOrBuilder` |   |

### getLabels() (deprecated)

    public abstract Map<String,String> getLabels()

Use [#getLabelsMap()](https://docs.cloud.google.com/java/docs/reference/google-cloud-netapp/latest/com.google.cloud.netapp.v1.ReplicationOrBuilder#com_google_cloud_netapp_v1_ReplicationOrBuilder_getLabelsMap__) instead.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### getLabelsCount()

    public abstract int getLabelsCount()

Resource labels to represent user provided metadata.

`map<string, string> labels = 12;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getLabelsMap()

    public abstract Map<String,String> getLabelsMap()

Resource labels to represent user provided metadata.

`map<string, string> labels = 12;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### getLabelsOrDefault(String key, String defaultValue)

    public abstract String getLabelsOrDefault(String key, String defaultValue)

Resource labels to represent user provided metadata.

`map<string, string> labels = 12;`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `defaultValue` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |   |

### getLabelsOrThrow(String key)

    public abstract String getLabelsOrThrow(String key)

Resource labels to represent user provided metadata.

`map<string, string> labels = 12;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |   |

### getMirrorState()

    public abstract 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];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-netapp/latest/com.google.cloud.netapp.v1.Replication.MirrorState` | The mirrorState. |

### getMirrorStateValue()

    public abstract int getMirrorStateValue()

Output only. Indicates the state of mirroring.

`
.google.cloud.netapp.v1.Replication.MirrorState mirror_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for mirrorState. |

### getName()

    public abstract String getName()

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];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The name. |

### getNameBytes()

    public abstract ByteString getNameBytes()

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];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for name. |

### getReplicationSchedule()

    public abstract Replication.ReplicationSchedule getReplicationSchedule()

Required. Indicates the schedule for replication.

`
.google.cloud.netapp.v1.Replication.ReplicationSchedule replication_schedule = 5 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-netapp/latest/com.google.cloud.netapp.v1.Replication.ReplicationSchedule` | The replicationSchedule. |

### getReplicationScheduleValue()

    public abstract int getReplicationScheduleValue()

Required. Indicates the schedule for replication.

`
.google.cloud.netapp.v1.Replication.ReplicationSchedule replication_schedule = 5 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for replicationSchedule. |

### getRole()

    public abstract 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];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-netapp/latest/com.google.cloud.netapp.v1.Replication.ReplicationRole` | The role. |

### getRoleValue()

    public abstract 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];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for role. |

### getSourceVolume()

    public abstract 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) = { ... }
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The sourceVolume. |

### getSourceVolumeBytes()

    public abstract 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) = { ... }
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for sourceVolume. |

### getState()

    public abstract Replication.State getState()

Output only. State of the replication.

`
.google.cloud.netapp.v1.Replication.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-netapp/latest/com.google.cloud.netapp.v1.Replication.State` | The state. |

### getStateDetails()

    public abstract String getStateDetails()

Output only. State details of the replication.

`string state_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The stateDetails. |

### getStateDetailsBytes()

    public abstract ByteString getStateDetailsBytes()

Output only. State details of the replication.

`string state_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for stateDetails. |

### getStateValue()

    public abstract int getStateValue()

Output only. State of the replication.

`
.google.cloud.netapp.v1.Replication.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for state. |

### getTransferStats()

    public abstract TransferStats getTransferStats()

Output only. Replication transfer statistics.

`
.google.cloud.netapp.v1.TransferStats transfer_stats = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-netapp/latest/com.google.cloud.netapp.v1.TransferStats` | The transferStats. |

### getTransferStatsOrBuilder()

    public abstract TransferStatsOrBuilder getTransferStatsOrBuilder()

Output only. Replication transfer statistics.

`
.google.cloud.netapp.v1.TransferStats transfer_stats = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-netapp/latest/com.google.cloud.netapp.v1.TransferStatsOrBuilder` |   |

### hasCreateTime()

    public abstract boolean hasCreateTime()

Output only. Replication create time.

`.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the createTime field is set. |

### hasDescription()

    public abstract boolean hasDescription()

A description about this replication relationship.

`optional string description = 13;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the description field is set. |

### hasDestinationVolumeParameters()

    public abstract 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];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the destinationVolumeParameters field is set. |

### hasHealthy()

    public abstract 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];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the healthy field is set. |

### hasHybridPeeringDetails()

    public abstract boolean hasHybridPeeringDetails()

Output only. Hybrid peering details.

`
.google.cloud.netapp.v1.HybridPeeringDetails hybrid_peering_details = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the hybridPeeringDetails field is set. |

### hasHybridReplicationUserCommands()

    public abstract boolean hasHybridReplicationUserCommands()

Output only. Copy pastable snapmirror commands to be executed on onprem
cluster by the customer.

`
.google.cloud.netapp.v1.UserCommands hybrid_replication_user_commands = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the hybridReplicationUserCommands field is set. |

### hasTransferStats()

    public abstract boolean hasTransferStats()

Output only. Replication transfer statistics.

`
.google.cloud.netapp.v1.TransferStats transfer_stats = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the transferStats field is set. |