public com.google.protobuf.ByteString getNodeIdBytes() {
        java.lang.Object ref = "";
        if (nameStrategyCase_ == 2) {
          ref = nameStrategy_;
        }
        if (ref instanceof java.lang.String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          if (nameStrategyCase_ == 2) {
            nameStrategy_ = b;
          }
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
<pre>
Optional. The unqualified resource name. Should follow the
`^[A-Za-z0-9_.~+%-]+$` regex format. This is only specified when
requesting a single node. In case of multislice requests,
multislice_params must be populated instead.
</pre>

<code>string node_id = 2 [(.google.api.field_behavior) = OPTIONAL];</code>

@return The bytes for nodeId.
java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/QueuedResource.java