public Builder setAgentPool(
          com.google.storagetransfer.v1.proto.TransferTypes.AgentPool value) {
        if (agentPoolBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          agentPool_ = value;
        } else {
          agentPoolBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
<pre>
Required. The agent pool to create.
</pre>

<code>
.google.storagetransfer.v1.AgentPool agent_pool = 2 [(.google.api.field_behavior) = REQUIRED];
</code>
java-storage-transfer/proto-google-cloud-storage-transfer-v1/src/main/java/com/google/storagetransfer/v1/proto/TransferProto.java