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

      size = 0;
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pubsubTopic_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, pubsubTopic_);
      }
      {
        int dataSize = 0;
        for (int i = 0; i < eventTypes_.size(); i++) {
          dataSize +=
              com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(eventTypes_.get(i));
        }
        size += dataSize;
        if (!getEventTypesList().isEmpty()) {
          size += 1;
          size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize);
        }
        eventTypesMemoizedSerializedSize = dataSize;
      }
      if (payloadFormat_
          != com.google.storagetransfer.v1.proto.TransferTypes.NotificationConfig.PayloadFormat
              .PAYLOAD_FORMAT_UNSPECIFIED
              .getNumber()) {
        size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, payloadFormat_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }
<pre>
Required. The desired format of the notification message payloads.
</pre>

<code>
.google.storagetransfer.v1.NotificationConfig.PayloadFormat payload_format = 3 [(.google.api.field_behavior) = REQUIRED];
</code>

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