@java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (dataSourceCase_ == 1) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(
                1, (com.google.storagetransfer.v1.proto.TransferTypes.GcsData) dataSource_);
      }
      if (dataSourceCase_ == 2) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(
                2, (com.google.storagetransfer.v1.proto.TransferTypes.AwsS3Data) dataSource_);
      }
      if (dataSourceCase_ == 3) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(
                3, (com.google.storagetransfer.v1.proto.TransferTypes.HttpData) dataSource_);
      }
      if (dataSinkCase_ == 4) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(
                4, (com.google.storagetransfer.v1.proto.TransferTypes.GcsData) dataSink_);
      }
      if (((bitField0_ & 0x00000001) != 0)) {
        size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getObjectConditions());
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getTransferOptions());
      }
      if (dataSourceCase_ == 8) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(
                8,
                (com.google.storagetransfer.v1.proto.TransferTypes.AzureBlobStorageData)
                    dataSource_);
      }
      if (dataSinkCase_ == 13) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(
                13, (com.google.storagetransfer.v1.proto.TransferTypes.PosixFilesystem) dataSink_);
      }
      if (dataSourceCase_ == 14) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(
                14,
                (com.google.storagetransfer.v1.proto.TransferTypes.PosixFilesystem) dataSource_);
      }
      if (((bitField0_ & 0x00000004) != 0)) {
        size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getTransferManifest());
      }
      if (intermediateDataLocationCase_ == 16) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(
                16,
                (com.google.storagetransfer.v1.proto.TransferTypes.GcsData)
                    intermediateDataLocation_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceAgentPoolName_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, sourceAgentPoolName_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sinkAgentPoolName_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, sinkAgentPoolName_);
      }
      if (dataSourceCase_ == 19) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(
                19,
                (com.google.storagetransfer.v1.proto.TransferTypes.AwsS3CompatibleData)
                    dataSource_);
      }
      if (dataSourceCase_ == 20) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(
                20, (com.google.storagetransfer.v1.proto.TransferTypes.HdfsData) dataSource_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }
<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