@java.lang.Override
  public java.lang.String getNetworkPolicyId() {
    java.lang.Object ref = networkPolicyId_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      networkPolicyId_ = s;
      return s;
    }
  }
<pre>
Required. The user-provided identifier of the network policy to be created.
This identifier must be unique within parent
`projects/{my-project}/locations/{us-central1}/networkPolicies` and becomes
the final token in the name URI.
The identifier must meet the following requirements:

* Only contains 1-63 alphanumeric characters and hyphens
* Begins with an alphabetical character
* Ends with a non-hyphen character
* Not formatted as a UUID
* Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034)
(section 3.5)
</pre>

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

@return The networkPolicyId.
java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/CreateNetworkPolicyRequest.java