@java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
        return true;
      }
      if (!(obj
          instanceof com.google.storagetransfer.v1.proto.TransferProto.CreateAgentPoolRequest)) {
        return super.equals(obj);
      }
      com.google.storagetransfer.v1.proto.TransferProto.CreateAgentPoolRequest other =
          (com.google.storagetransfer.v1.proto.TransferProto.CreateAgentPoolRequest) obj;

      if (!getProjectId().equals(other.getProjectId())) return false;
      if (hasAgentPool() != other.hasAgentPool()) return false;
      if (hasAgentPool()) {
        if (!getAgentPool().equals(other.getAgentPool())) return false;
      }
      if (!getAgentPoolId().equals(other.getAgentPoolId())) return false;
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }
<pre>
Required. The ID of the agent pool to create.

The `agent_pool_id` must meet the following requirements:

*   Length of 128 characters or less.
*   Not start with the string `goog`.
*   Start with a lowercase ASCII character, followed by:
    *   Zero or more: lowercase Latin alphabet characters, numerals,
        hyphens (`-`), periods (`.`), underscores (`_`), or tildes (`~`).
    *   One or more numerals or lowercase ASCII characters.

As expressed by the regular expression:
`^(?!goog)[a-z]([a-z0-9-._~]*[a-z0-9])?$`.
</pre>

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

@return The bytes for agentPoolId.
java-storage-transfer/proto-google-cloud-storage-transfer-v1/src/main/java/com/google/storagetransfer/v1/proto/TransferProto.java