Class Replication (0.26.0)

public final class Replication extends 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

Static Fields

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
Type Description
int

DESTINATION_VOLUME_FIELD_NUMBER

public static final int DESTINATION_VOLUME_FIELD_NUMBER
Field Value
Type Description
int

DESTINATION_VOLUME_PARAMETERS_FIELD_NUMBER

public static final int DESTINATION_VOLUME_PARAMETERS_FIELD_NUMBER
Field Value
Type Description
int

HEALTHY_FIELD_NUMBER

public static final int HEALTHY_FIELD_NUMBER
Field Value
Type Description
int

LABELS_FIELD_NUMBER

public static final int LABELS_FIELD_NUMBER
Field Value
Type Description
int

MIRROR_STATE_FIELD_NUMBER

public static final int MIRROR_STATE_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

REPLICATION_SCHEDULE_FIELD_NUMBER

public static final int REPLICATION_SCHEDULE_FIELD_NUMBER
Field Value
Type Description
int

ROLE_FIELD_NUMBER

public static final int ROLE_FIELD_NUMBER
Field Value
Type Description
int

SOURCE_VOLUME_FIELD_NUMBER

public static final int SOURCE_VOLUME_FIELD_NUMBER
Field Value
Type Description
int

STATE_DETAILS_FIELD_NUMBER

public static final int STATE_DETAILS_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

TRANSFER_STATS_FIELD_NUMBER

public static final int TRANSFER_STATS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Replication getDefaultInstance()
Returns
Type Description
Replication

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Replication.Builder newBuilder()
Returns
Type Description
Replication.Builder

newBuilder(Replication prototype)

public static Replication.Builder newBuilder(Replication prototype)
Parameter
Name Description
prototype Replication
Returns
Type Description
Replication.Builder

parseDelimitedFrom(InputStream input)

public static Replication parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Replication
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Replication parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Replication
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Replication parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Replication
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Replication parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Replication
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Replication parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Replication
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Replication parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Replication
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Replication parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Replication
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Replication parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Replication
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Replication parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Replication
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Replication parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Replication
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Replication parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Replication
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Replication parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Replication
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Replication> parser()
Returns
Type Description
Parser<Replication>

Methods

containsLabels(String key)

public boolean containsLabels(String key)

Resource labels to represent user provided metadata.

map<string, string> labels = 12;

Parameter
Name Description
key String
Returns
Type Description
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCreateTime()

public Timestamp getCreateTime()

Output only. Replication create time.

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

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Replication create time.

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

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Replication getDefaultInstanceForType()
Returns
Type Description
Replication

getDescription()

public String getDescription()

A description about this replication relationship.

optional string description = 13;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

A description about this replication relationship.

optional string description = 13;

Returns
Type Description
ByteString

The bytes for description.

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

Returns
Type Description
String

The destinationVolume.

getDestinationVolumeBytes()

public 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
ByteString

The bytes for destinationVolume.

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

Returns
Type Description
DestinationVolumeParameters

The destinationVolumeParameters.

getDestinationVolumeParametersOrBuilder()

public 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
DestinationVolumeParametersOrBuilder

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

Returns
Type Description
boolean

The healthy.

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Resource labels to represent user provided metadata.

map<string, string> labels = 12;

Returns
Type Description
int

getLabelsMap()

public Map<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)

public String getLabelsOrDefault(String key, String defaultValue)

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)

public String getLabelsOrThrow(String key)

Resource labels to represent user provided metadata.

map<string, string> labels = 12;

Parameter
Name Description
key String
Returns
Type Description
String

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

Returns
Type Description
Replication.MirrorState

The mirrorState.

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

Returns
Type Description
int

The enum numeric value on the wire for mirrorState.

getName()

public 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
String

The name.

getNameBytes()

public 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
ByteString

The bytes for name.

getParserForType()

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

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

Returns
Type Description
Replication.ReplicationSchedule

The replicationSchedule.

getReplicationScheduleValue()

public 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
int

The enum numeric value on the wire for replicationSchedule.

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

Returns
Type Description
Replication.ReplicationRole

The role.

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

Returns
Type Description
int

The enum numeric value on the wire for role.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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

Returns
Type Description
String

The sourceVolume.

getSourceVolumeBytes()

public 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
ByteString

The bytes for sourceVolume.

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

Returns
Type Description
Replication.State

The state.

getStateDetails()

public String getStateDetails()

Output only. State details of the replication.

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

Returns
Type Description
String

The stateDetails.

getStateDetailsBytes()

public ByteString getStateDetailsBytes()

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()

public 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
int

The enum numeric value on the wire for state.

getTransferStats()

public TransferStats getTransferStats()

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()

public TransferStatsOrBuilder getTransferStatsOrBuilder()

Output only. Replication transfer statistics.

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

Returns
Type Description
TransferStatsOrBuilder

hasCreateTime()

public boolean hasCreateTime()

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()

public boolean hasDescription()

A description about this replication relationship.

optional string description = 13;

Returns
Type Description
boolean

Whether the description field is set.

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

Returns
Type Description
boolean

Whether the destinationVolumeParameters field is set.

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

Returns
Type Description
boolean

Whether the healthy field is set.

hasTransferStats()

public boolean hasTransferStats()

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()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Replication.Builder newBuilderForType()
Returns
Type Description
Replication.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Replication.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Replication.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Replication.Builder toBuilder()
Returns
Type Description
Replication.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException