@java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
      if (dataSourceCase_ == 1) {
        output.writeMessage(
            1, (com.google.storagetransfer.v1.proto.TransferTypes.GcsData) dataSource_);
      }
      if (dataSourceCase_ == 2) {
        output.writeMessage(
            2, (com.google.storagetransfer.v1.proto.TransferTypes.AwsS3Data) dataSource_);
      }
      if (dataSourceCase_ == 3) {
        output.writeMessage(
            3, (com.google.storagetransfer.v1.proto.TransferTypes.HttpData) dataSource_);
      }
      if (dataSinkCase_ == 4) {
        output.writeMessage(
            4, (com.google.storagetransfer.v1.proto.TransferTypes.GcsData) dataSink_);
      }
      if (((bitField0_ & 0x00000001) != 0)) {
        output.writeMessage(5, getObjectConditions());
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        output.writeMessage(6, getTransferOptions());
      }
      if (dataSourceCase_ == 8) {
        output.writeMessage(
            8,
            (com.google.storagetransfer.v1.proto.TransferTypes.AzureBlobStorageData) dataSource_);
      }
      if (dataSinkCase_ == 13) {
        output.writeMessage(
            13, (com.google.storagetransfer.v1.proto.TransferTypes.PosixFilesystem) dataSink_);
      }
      if (dataSourceCase_ == 14) {
        output.writeMessage(
            14, (com.google.storagetransfer.v1.proto.TransferTypes.PosixFilesystem) dataSource_);
      }
      if (((bitField0_ & 0x00000004) != 0)) {
        output.writeMessage(15, getTransferManifest());
      }
      if (intermediateDataLocationCase_ == 16) {
        output.writeMessage(
            16,
            (com.google.storagetransfer.v1.proto.TransferTypes.GcsData) intermediateDataLocation_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceAgentPoolName_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 17, sourceAgentPoolName_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sinkAgentPoolName_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 18, sinkAgentPoolName_);
      }
      if (dataSourceCase_ == 19) {
        output.writeMessage(
            19,
            (com.google.storagetransfer.v1.proto.TransferTypes.AwsS3CompatibleData) dataSource_);
      }
      if (dataSourceCase_ == 20) {
        output.writeMessage(
            20, (com.google.storagetransfer.v1.proto.TransferTypes.HdfsData) dataSource_);
      }
      getUnknownFields().writeTo(output);
    }
<pre>
Specifies the agent pool name associated with the posix data sink. When
unspecified, the default name is used.
</pre>

<code>string sink_agent_pool_name = 18;</code>

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