public Builder setInstanceRoleValue(int value) {
      instanceRole_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
<pre>
Required. The role of the instance in cross instance replication.
</pre>

<code>
.google.cloud.memorystore.v1.CrossInstanceReplicationConfig.InstanceRole instance_role = 1 [(.google.api.field_behavior) = REQUIRED];
</code>

@param value The enum numeric value on the wire for instanceRole to set.
@return This builder for chaining.
java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/CrossInstanceReplicationConfig.java