@java.lang.Override
  public com.google.protobuf.ByteString getNetworkPolicyBytes() {
    java.lang.Object ref = networkPolicy_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      networkPolicy_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }
<pre>
Required. The resource name of the network policy to query for assigned
external IP addresses. Resource names are schemeless URIs that follow the
conventions in https://cloud.google.com/apis/design/resource_names. For
example:
`projects/my-project/locations/us-central1/networkPolicies/my-policy`
</pre>

<code>
string network_policy = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
</code>

@return The bytes for networkPolicy.
java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/FetchNetworkPolicyExternalAddressesRequest.java