public int getAgentPoolsCount() {
        if (agentPoolsBuilder_ == null) {
          return agentPools_.size();
        } else {
          return agentPoolsBuilder_.getCount();
        }
      }
<pre>
A list of agent pools.
</pre>

<code>repeated .google.storagetransfer.v1.AgentPool agent_pools = 1;</code>
java-storage-transfer/proto-google-cloud-storage-transfer-v1/src/main/java/com/google/storagetransfer/v1/proto/TransferProto.java