Class Replication.Builder (0.33.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Replication.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Replication.Builder
Overrides

build()

public Replication build()
Returns
Type Description
Replication

buildPartial()

public Replication buildPartial()
Returns
Type Description
Replication

clear()

public Replication.Builder clear()
Returns
Type Description
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
Type Description
Replication.Builder

clearDescription()

public Replication.Builder clearDescription()

A description about this replication relationship.

optional string description = 13;

Returns
Type Description
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
Type Description
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
Type Description
Replication.Builder

clearField(Descriptors.FieldDescriptor field)

public Replication.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
Replication.Builder

This builder for chaining.

clearLabels()

public Replication.Builder clearLabels()
Returns
Type Description
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
Type Description
Replication.Builder

This builder for chaining.

clearName()

public Replication.Builder clearName()

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Replication.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
Replication.Builder

clone()

public Replication.Builder clone()
Returns
Type Description
Replication.Builder
Overrides

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

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.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Replication create time.

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

Returns
Type Description
Builder

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.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
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.

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
Type Description
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
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.

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

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.

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.

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.

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
Type Description
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
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.

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.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
value DestinationVolumeParameters
Returns
Type Description
Replication.Builder

mergeFrom(Replication other)

public Replication.Builder mergeFrom(Replication other)
Parameter
Name Description
other Replication
Returns
Type Description
Replication.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Replication.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Replication.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Replication.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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
Name Description
value TransferStats
Returns
Type Description
Replication.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Replication.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
values Map<String,String>
Returns
Type Description
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
Name Description
key String
value String
Returns
Type Description
Replication.Builder

removeLabels(String key)

public Replication.Builder removeLabels(String key)

Resource labels to represent user provided metadata.

map<string, string> labels = 12;

Parameter
Name Description
key String
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
Replication.Builder

setDescription(String value)

public Replication.Builder setDescription(String value)

A description about this replication relationship.

optional string description = 13;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
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
Name Description
value String

The destinationVolume to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for destinationVolume to set.

Returns
Type Description
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
Name Description
value DestinationVolumeParameters
Returns
Type Description
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
Name Description
builderForValue DestinationVolumeParameters.Builder
Returns
Type Description
Replication.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Replication.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value boolean

The healthy to set.

Returns
Type Description
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
Name Description
value Replication.MirrorState

The mirrorState to set.

Returns
Type Description
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
Name Description
value int

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

Returns
Type Description
Replication.Builder

This builder for chaining.

setName(String value)

public Replication.Builder setName(String value)

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Replication.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Replication.Builder setNameBytes(ByteString value)

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
value Replication.ReplicationSchedule

The replicationSchedule to set.

Returns
Type Description
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
Name Description
value int

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

Returns
Type Description
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
Name Description
value Replication.ReplicationRole

The role to set.

Returns
Type Description
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
Name Description
value int

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

Returns
Type Description
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
Name Description
value String

The sourceVolume to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for sourceVolume to set.

Returns
Type Description
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
Name Description
value Replication.State

The state to set.

Returns
Type Description
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
Name Description
value String

The stateDetails to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for stateDetails to set.

Returns
Type Description
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
Name Description
value int

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

Returns
Type Description
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
Name Description
value TransferStats
Returns
Type Description
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
Name Description
builderForValue TransferStats.Builder
Returns
Type Description
Replication.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Replication.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Replication.Builder
Overrides