public java.lang.String getProjectId() {
      java.lang.Object ref = projectId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        projectId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
<pre>
Required. The consumer project_id where PSC connections are established.
This should be the same project_id that the instance is being created in.
</pre>

<code>string project_id = 4 [(.google.api.field_behavior) = REQUIRED];</code>

@return The projectId.
java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/PscAutoConnection.java