Class Replication.Builder (0.9.0)

public static final class Replication.Builder extends GeneratedMessageV3.Builder<Replication.Builder> 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 Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Replication.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Replication.Builder
Overrides

build()

public Replication build()
Returns
TypeDescription
Replication

buildPartial()

public Replication buildPartial()
Returns
TypeDescription
Replication

clear()

public Replication.Builder clear()
Returns
TypeDescription
Replication.Builder
Overrides

clearCreateTime()

public Replication.Builder clearCreateTime()

Output only. Replication create time.

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

Returns
TypeDescription
Replication.Builder

clearDescription()

public Replication.Builder clearDescription()

A description about this replication relationship.

optional string description = 13;

Returns
TypeDescription
Replication.Builder

This builder for chaining.

clearDestinationVolume()

public Replication.Builder clearDestinationVolume()

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
TypeDescription
Replication.Builder

This builder for chaining.

clearDestinationVolumeParameters()

public Replication.Builder clearDestinationVolumeParameters()

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
TypeDescription
Replication.Builder

clearField(Descriptors.FieldDescriptor field)

public Replication.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Replication.Builder
Overrides

clearHealthy()

public Replication.Builder clearHealthy()

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
TypeDescription
Replication.Builder

This builder for chaining.

clearLabels()

public Replication.Builder clearLabels()
Returns
TypeDescription
Replication.Builder

clearMirrorState()

public Replication.Builder clearMirrorState()

Output only. Indicates the state of mirroring.

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

Returns
TypeDescription
Replication.Builder

This builder for chaining.

clearName()

public Replication.Builder clearName()

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

Returns
TypeDescription
Replication.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Replication.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Replication.Builder
Overrides

clearReplicationSchedule()

public Replication.Builder clearReplicationSchedule()

Required. Indicates the schedule for replication.

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

Returns
TypeDescription
Replication.Builder

This builder for chaining.

clearRole()

public Replication.Builder clearRole()

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
TypeDescription
Replication.Builder

This builder for chaining.

clearSourceVolume()

public Replication.Builder clearSourceVolume()

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
TypeDescription
Replication.Builder

This builder for chaining.

clearState()

public Replication.Builder clearState()

Output only. State of the replication.

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

Returns
TypeDescription
Replication.Builder

This builder for chaining.

clearStateDetails()

public Replication.Builder clearStateDetails()

Output only. State details of the replication.

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

Returns
TypeDescription
Replication.Builder

This builder for chaining.

clearTransferStats()

public Replication.Builder clearTransferStats()

Output only. Replication transfer statistics.

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

Returns
TypeDescription
Replication.Builder

clone()

public Replication.Builder clone()
Returns
TypeDescription
Replication.Builder
Overrides

containsLabels(String key)

public boolean containsLabels(String key)

Resource labels to represent user provided metadata.

map<string, string> labels = 12;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getCreateTime()

public Timestamp getCreateTime()

Output only. Replication create time.

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

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Replication create time.

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

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Replication create time.

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

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Replication getDefaultInstanceForType()
Returns
TypeDescription
Replication

getDescription()

public String getDescription()

A description about this replication relationship.

optional string description = 13;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

A description about this replication relationship.

optional string description = 13;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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
TypeDescription
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
TypeDescription
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
TypeDescription
DestinationVolumeParameters

The destinationVolumeParameters.

getDestinationVolumeParametersBuilder()

public DestinationVolumeParameters.Builder getDestinationVolumeParametersBuilder()

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
TypeDescription
DestinationVolumeParameters.Builder

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
TypeDescription
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
TypeDescription
boolean

The healthy.

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Resource labels to represent user provided metadata.

map<string, string> labels = 12;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Resource labels to represent user provided metadata.

map<string, string> labels = 12;

Returns
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Resource labels to represent user provided metadata.

map<string, string> labels = 12;

Parameter
NameDescription
keyString
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for mirrorState.

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

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

Returns
TypeDescription
String

The name.

getNameBytes()

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

Returns
TypeDescription
ByteString

The bytes for name.

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

The enum numeric value on the wire for role.

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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TransferStats

The transferStats.

getTransferStatsBuilder()

public TransferStats.Builder getTransferStatsBuilder()

Output only. Replication transfer statistics.

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

Returns
TypeDescription
TransferStats.Builder

getTransferStatsOrBuilder()

public TransferStatsOrBuilder getTransferStatsOrBuilder()

Output only. Replication transfer statistics.

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

Returns
TypeDescription
TransferStatsOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Replication create time.

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

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasDescription()

public boolean hasDescription()

A description about this replication relationship.

optional string description = 13;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the transferStats field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public Replication.Builder mergeCreateTime(Timestamp value)

Output only. Replication create time.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Replication.Builder

mergeDestinationVolumeParameters(DestinationVolumeParameters value)

public Replication.Builder mergeDestinationVolumeParameters(DestinationVolumeParameters value)

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

Parameter
NameDescription
valueDestinationVolumeParameters
Returns
TypeDescription
Replication.Builder

mergeFrom(Replication other)

public Replication.Builder mergeFrom(Replication other)
Parameter
NameDescription
otherReplication
Returns
TypeDescription
Replication.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Replication.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Replication.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Replication.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Replication.Builder
Overrides

mergeTransferStats(TransferStats value)

public Replication.Builder mergeTransferStats(TransferStats value)

Output only. Replication transfer statistics.

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

Parameter
NameDescription
valueTransferStats
Returns
TypeDescription
Replication.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Replication.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Replication.Builder
Overrides

putAllLabels(Map<String,String> values)

public Replication.Builder putAllLabels(Map<String,String> values)

Resource labels to represent user provided metadata.

map<string, string> labels = 12;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
Replication.Builder

putLabels(String key, String value)

public Replication.Builder putLabels(String key, String value)

Resource labels to represent user provided metadata.

map<string, string> labels = 12;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
Replication.Builder

removeLabels(String key)

public Replication.Builder removeLabels(String key)

Resource labels to represent user provided metadata.

map<string, string> labels = 12;

Parameter
NameDescription
keyString
Returns
TypeDescription
Replication.Builder

setCreateTime(Timestamp value)

public Replication.Builder setCreateTime(Timestamp value)

Output only. Replication create time.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Replication.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Replication.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Replication create time.

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

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Replication.Builder

setDescription(String value)

public Replication.Builder setDescription(String value)

A description about this replication relationship.

optional string description = 13;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
Replication.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Replication.Builder setDescriptionBytes(ByteString value)

A description about this replication relationship.

optional string description = 13;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
Replication.Builder

This builder for chaining.

setDestinationVolume(String value)

public Replication.Builder setDestinationVolume(String value)

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

Parameter
NameDescription
valueString

The destinationVolume to set.

Returns
TypeDescription
Replication.Builder

This builder for chaining.

setDestinationVolumeBytes(ByteString value)

public Replication.Builder setDestinationVolumeBytes(ByteString value)

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

Parameter
NameDescription
valueByteString

The bytes for destinationVolume to set.

Returns
TypeDescription
Replication.Builder

This builder for chaining.

setDestinationVolumeParameters(DestinationVolumeParameters value)

public Replication.Builder setDestinationVolumeParameters(DestinationVolumeParameters value)

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

Parameter
NameDescription
valueDestinationVolumeParameters
Returns
TypeDescription
Replication.Builder

setDestinationVolumeParameters(DestinationVolumeParameters.Builder builderForValue)

public Replication.Builder setDestinationVolumeParameters(DestinationVolumeParameters.Builder builderForValue)

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

Parameter
NameDescription
builderForValueDestinationVolumeParameters.Builder
Returns
TypeDescription
Replication.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Replication.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Replication.Builder
Overrides

setHealthy(boolean value)

public Replication.Builder setHealthy(boolean value)

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

Parameter
NameDescription
valueboolean

The healthy to set.

Returns
TypeDescription
Replication.Builder

This builder for chaining.

setMirrorState(Replication.MirrorState value)

public Replication.Builder setMirrorState(Replication.MirrorState value)

Output only. Indicates the state of mirroring.

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

Parameter
NameDescription
valueReplication.MirrorState

The mirrorState to set.

Returns
TypeDescription
Replication.Builder

This builder for chaining.

setMirrorStateValue(int value)

public Replication.Builder setMirrorStateValue(int value)

Output only. Indicates the state of mirroring.

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

Parameter
NameDescription
valueint

The enum numeric value on the wire for mirrorState to set.

Returns
TypeDescription
Replication.Builder

This builder for chaining.

setName(String value)

public Replication.Builder setName(String value)

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Replication.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Replication.Builder setNameBytes(ByteString value)

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Replication.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Replication.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Replication.Builder
Overrides

setReplicationSchedule(Replication.ReplicationSchedule value)

public Replication.Builder setReplicationSchedule(Replication.ReplicationSchedule value)

Required. Indicates the schedule for replication.

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

Parameter
NameDescription
valueReplication.ReplicationSchedule

The replicationSchedule to set.

Returns
TypeDescription
Replication.Builder

This builder for chaining.

setReplicationScheduleValue(int value)

public Replication.Builder setReplicationScheduleValue(int value)

Required. Indicates the schedule for replication.

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

Parameter
NameDescription
valueint

The enum numeric value on the wire for replicationSchedule to set.

Returns
TypeDescription
Replication.Builder

This builder for chaining.

setRole(Replication.ReplicationRole value)

public Replication.Builder setRole(Replication.ReplicationRole value)

Output only. Indicates whether this points to source or destination.

.google.cloud.netapp.v1.Replication.ReplicationRole role = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueReplication.ReplicationRole

The role to set.

Returns
TypeDescription
Replication.Builder

This builder for chaining.

setRoleValue(int value)

public Replication.Builder setRoleValue(int value)

Output only. Indicates whether this points to source or destination.

.google.cloud.netapp.v1.Replication.ReplicationRole role = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

The enum numeric value on the wire for role to set.

Returns
TypeDescription
Replication.Builder

This builder for chaining.

setSourceVolume(String value)

public Replication.Builder setSourceVolume(String value)

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

Parameter
NameDescription
valueString

The sourceVolume to set.

Returns
TypeDescription
Replication.Builder

This builder for chaining.

setSourceVolumeBytes(ByteString value)

public Replication.Builder setSourceVolumeBytes(ByteString value)

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

Parameter
NameDescription
valueByteString

The bytes for sourceVolume to set.

Returns
TypeDescription
Replication.Builder

This builder for chaining.

setState(Replication.State value)

public Replication.Builder setState(Replication.State value)

Output only. State of the replication.

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

Parameter
NameDescription
valueReplication.State

The state to set.

Returns
TypeDescription
Replication.Builder

This builder for chaining.

setStateDetails(String value)

public Replication.Builder setStateDetails(String value)

Output only. State details of the replication.

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

Parameter
NameDescription
valueString

The stateDetails to set.

Returns
TypeDescription
Replication.Builder

This builder for chaining.

setStateDetailsBytes(ByteString value)

public Replication.Builder setStateDetailsBytes(ByteString value)

Output only. State details of the replication.

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

Parameter
NameDescription
valueByteString

The bytes for stateDetails to set.

Returns
TypeDescription
Replication.Builder

This builder for chaining.

setStateValue(int value)

public Replication.Builder setStateValue(int value)

Output only. State of the replication.

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

Parameter
NameDescription
valueint

The enum numeric value on the wire for state to set.

Returns
TypeDescription
Replication.Builder

This builder for chaining.

setTransferStats(TransferStats value)

public Replication.Builder setTransferStats(TransferStats value)

Output only. Replication transfer statistics.

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

Parameter
NameDescription
valueTransferStats
Returns
TypeDescription
Replication.Builder

setTransferStats(TransferStats.Builder builderForValue)

public Replication.Builder setTransferStats(TransferStats.Builder builderForValue)

Output only. Replication transfer statistics.

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

Parameter
NameDescription
builderForValueTransferStats.Builder
Returns
TypeDescription
Replication.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Replication.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Replication.Builder
Overrides