@java.lang.Override
    public com.google.cloud.memorystore.v1.CrossInstanceReplicationConfig.InstanceRole
        getInstanceRole() {
      com.google.cloud.memorystore.v1.CrossInstanceReplicationConfig.InstanceRole result =
          com.google.cloud.memorystore.v1.CrossInstanceReplicationConfig.InstanceRole.forNumber(
              instanceRole_);
      return result == null
          ? com.google.cloud.memorystore.v1.CrossInstanceReplicationConfig.InstanceRole.UNRECOGNIZED
          : result;
    }
<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>

@return The instanceRole.
java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/CrossInstanceReplicationConfig.java