Class Replication (0.43.0)

publicfinalclass ReplicationextendsGeneratedMessageV3implementsReplicationOrBuilder

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

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

CLUSTER_LOCATION_FIELD_NUMBER

publicstaticfinalintCLUSTER_LOCATION_FIELD_NUMBER
Field Value
Type Description
int

CREATE_TIME_FIELD_NUMBER

publicstaticfinalintCREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

DESCRIPTION_FIELD_NUMBER

publicstaticfinalintDESCRIPTION_FIELD_NUMBER
Field Value
Type Description
int

DESTINATION_VOLUME_FIELD_NUMBER

publicstaticfinalintDESTINATION_VOLUME_FIELD_NUMBER
Field Value
Type Description
int

DESTINATION_VOLUME_PARAMETERS_FIELD_NUMBER

publicstaticfinalintDESTINATION_VOLUME_PARAMETERS_FIELD_NUMBER
Field Value
Type Description
int

HEALTHY_FIELD_NUMBER

publicstaticfinalintHEALTHY_FIELD_NUMBER
Field Value
Type Description
int

HYBRID_PEERING_DETAILS_FIELD_NUMBER

publicstaticfinalintHYBRID_PEERING_DETAILS_FIELD_NUMBER
Field Value
Type Description
int

HYBRID_REPLICATION_TYPE_FIELD_NUMBER

publicstaticfinalintHYBRID_REPLICATION_TYPE_FIELD_NUMBER
Field Value
Type Description
int

LABELS_FIELD_NUMBER

publicstaticfinalintLABELS_FIELD_NUMBER
Field Value
Type Description
int

MIRROR_STATE_FIELD_NUMBER

publicstaticfinalintMIRROR_STATE_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

publicstaticfinalintNAME_FIELD_NUMBER
Field Value
Type Description
int

REPLICATION_SCHEDULE_FIELD_NUMBER

publicstaticfinalintREPLICATION_SCHEDULE_FIELD_NUMBER
Field Value
Type Description
int

ROLE_FIELD_NUMBER

publicstaticfinalintROLE_FIELD_NUMBER
Field Value
Type Description
int

SOURCE_VOLUME_FIELD_NUMBER

publicstaticfinalintSOURCE_VOLUME_FIELD_NUMBER
Field Value
Type Description
int

STATE_DETAILS_FIELD_NUMBER

publicstaticfinalintSTATE_DETAILS_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

publicstaticfinalintSTATE_FIELD_NUMBER
Field Value
Type Description
int

TRANSFER_STATS_FIELD_NUMBER

publicstaticfinalintTRANSFER_STATS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticReplicationgetDefaultInstance()
Returns
Type Description
Replication

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticReplication.BuildernewBuilder()
Returns
Type Description
Replication.Builder

newBuilder(Replication prototype)

publicstaticReplication.BuildernewBuilder(Replicationprototype)
Parameter
Name Description
prototype Replication
Returns
Type Description
Replication.Builder

parseDelimitedFrom(InputStream input)

publicstaticReplicationparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
Replication
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticReplicationparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Replication
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticReplicationparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
Replication
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticReplicationparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Replication
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticReplicationparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
Replication
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticReplicationparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Replication
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticReplicationparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Replication
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticReplicationparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Replication
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticReplicationparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
Replication
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticReplicationparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Replication
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticReplicationparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Replication
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticReplicationparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Replication
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<Replication>parser()
Returns
Type Description
Parser<Replication>

Methods

containsLabels(String key)

publicbooleancontainsLabels(Stringkey)

Resource labels to represent user provided metadata.

map<string, string> labels = 12;

Parameter
Name Description
key String
Returns
Type Description
boolean

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getClusterLocation()

publicStringgetClusterLocation()

Optional. Location of the user cluster.

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

Returns
Type Description
String

The clusterLocation.

getClusterLocationBytes()

publicByteStringgetClusterLocationBytes()

Optional. Location of the user cluster.

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

Returns
Type Description
ByteString

The bytes for clusterLocation.

getCreateTime()

publicTimestampgetCreateTime()

Output only. Replication create time.

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

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

publicTimestampOrBuildergetCreateTimeOrBuilder()

Output only. Replication create time.

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

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

publicReplicationgetDefaultInstanceForType()
Returns
Type Description
Replication

getDescription()

publicStringgetDescription()

A description about this replication relationship.

optional string description = 13;

Returns
Type Description
String

The description.

getDescriptionBytes()

publicByteStringgetDescriptionBytes()

A description about this replication relationship.

optional string description = 13;

Returns
Type Description
ByteString

The bytes for description.

getDestinationVolume()

publicStringgetDestinationVolume()

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
String

The destinationVolume.

getDestinationVolumeBytes()

publicByteStringgetDestinationVolumeBytes()

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
ByteString

The bytes for destinationVolume.

getDestinationVolumeParameters()

publicDestinationVolumeParametersgetDestinationVolumeParameters()

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
DestinationVolumeParameters

The destinationVolumeParameters.

getDestinationVolumeParametersOrBuilder()

publicDestinationVolumeParametersOrBuildergetDestinationVolumeParametersOrBuilder()

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
DestinationVolumeParametersOrBuilder

getHealthy()

publicbooleangetHealthy()

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
boolean

The healthy.

getHybridPeeringDetails()

publicHybridPeeringDetailsgetHybridPeeringDetails()

Output only. Hybrid peering details.

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

Returns
Type Description
HybridPeeringDetails

The hybridPeeringDetails.

getHybridPeeringDetailsOrBuilder()

publicHybridPeeringDetailsOrBuildergetHybridPeeringDetailsOrBuilder()

Output only. Hybrid peering details.

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

Returns
Type Description
HybridPeeringDetailsOrBuilder

getHybridReplicationType()

publicReplication.HybridReplicationTypegetHybridReplicationType()

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
Replication.HybridReplicationType

The hybridReplicationType.

getHybridReplicationTypeValue()

publicintgetHybridReplicationTypeValue()

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
int

The enum numeric value on the wire for hybridReplicationType.

getLabels() (deprecated)

publicMap<String,String>getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

publicintgetLabelsCount()

Resource labels to represent user provided metadata.

map<string, string> labels = 12;

Returns
Type Description
int

getLabelsMap()

publicMap<String,String>getLabelsMap()

Resource labels to represent user provided metadata.

map<string, string> labels = 12;

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

publicStringgetLabelsOrDefault(Stringkey,StringdefaultValue)

Resource labels to represent user provided metadata.

map<string, string> labels = 12;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

publicStringgetLabelsOrThrow(Stringkey)

Resource labels to represent user provided metadata.

map<string, string> labels = 12;

Parameter
Name Description
key String
Returns
Type Description
String

getMirrorState()

publicReplication.MirrorStategetMirrorState()

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
Replication.MirrorState

The mirrorState.

getMirrorStateValue()

publicintgetMirrorStateValue()

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
int

The enum numeric value on the wire for mirrorState.

getName()

publicStringgetName()

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
String

The name.

getNameBytes()

publicByteStringgetNameBytes()

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
ByteString

The bytes for name.

getParserForType()

publicParser<Replication>getParserForType()
Returns
Type Description
Parser<Replication>
Overrides

getReplicationSchedule()

publicReplication.ReplicationSchedulegetReplicationSchedule()

Required. Indicates the schedule for replication.

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

Returns
Type Description
Replication.ReplicationSchedule

The replicationSchedule.

getReplicationScheduleValue()

publicintgetReplicationScheduleValue()

Required. Indicates the schedule for replication.

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

Returns
Type Description
int

The enum numeric value on the wire for replicationSchedule.

getRole()

publicReplication.ReplicationRolegetRole()

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
Replication.ReplicationRole

The role.

getRoleValue()

publicintgetRoleValue()

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
int

The enum numeric value on the wire for role.

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getSourceVolume()

publicStringgetSourceVolume()

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
String

The sourceVolume.

getSourceVolumeBytes()

publicByteStringgetSourceVolumeBytes()

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
ByteString

The bytes for sourceVolume.

getState()

publicReplication.StategetState()

Output only. State of the replication.

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

Returns
Type Description
Replication.State

The state.

getStateDetails()

publicStringgetStateDetails()

Output only. State details of the replication.

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

Returns
Type Description
String

The stateDetails.

getStateDetailsBytes()

publicByteStringgetStateDetailsBytes()

Output only. State details of the replication.

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

Returns
Type Description
ByteString

The bytes for stateDetails.

getStateValue()

publicintgetStateValue()

Output only. State of the replication.

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

Returns
Type Description
int

The enum numeric value on the wire for state.

getTransferStats()

publicTransferStatsgetTransferStats()

Output only. Replication transfer statistics.

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

Returns
Type Description
TransferStats

The transferStats.

getTransferStatsOrBuilder()

publicTransferStatsOrBuildergetTransferStatsOrBuilder()

Output only. Replication transfer statistics.

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

Returns
Type Description
TransferStatsOrBuilder

hasCreateTime()

publicbooleanhasCreateTime()

Output only. Replication create time.

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

Returns
Type Description
boolean

Whether the createTime field is set.

hasDescription()

publicbooleanhasDescription()

A description about this replication relationship.

optional string description = 13;

Returns
Type Description
boolean

Whether the description field is set.

hasDestinationVolumeParameters()

publicbooleanhasDestinationVolumeParameters()

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
boolean

Whether the destinationVolumeParameters field is set.

hasHealthy()

publicbooleanhasHealthy()

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
boolean

Whether the healthy field is set.

hasHybridPeeringDetails()

publicbooleanhasHybridPeeringDetails()

Output only. Hybrid peering details.

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

Returns
Type Description
boolean

Whether the hybridPeeringDetails field is set.

hasTransferStats()

publicbooleanhasTransferStats()

Output only. Replication transfer statistics.

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

Returns
Type Description
boolean

Whether the transferStats field is set.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protectedMapFieldReflectionAccessorinternalGetMapFieldReflection(intnumber)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicReplication.BuildernewBuilderForType()
Returns
Type Description
Replication.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedReplication.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Replication.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicReplication.BuildertoBuilder()
Returns
Type Description
Replication.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.