@java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
      if (widthPixels_ != 0) {
        output.writeInt32(1, widthPixels_);
      }
      if (heightPixels_ != 0) {
        output.writeInt32(2, heightPixels_);
      }
      if (java.lang.Double.doubleToRawLongBits(frameRate_) != 0) {
        output.writeDouble(3, frameRate_);
      }
      if (bitrateBps_ != 0) {
        output.writeInt32(4, bitrateBps_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pixelFormat_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 5, pixelFormat_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rateControlMode_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 6, rateControlMode_);
      }
      if (crfLevel_ != 0) {
        output.writeInt32(7, crfLevel_);
      }
      if (allowOpenGop_ != false) {
        output.writeBool(8, allowOpenGop_);
      }
      if (gopModeCase_ == 9) {
        output.writeInt32(9, (int) ((java.lang.Integer) gopMode_));
      }
      if (gopModeCase_ == 10) {
        output.writeMessage(10, (com.google.protobuf.Duration) gopMode_);
      }
      if (enableTwoPass_ != false) {
        output.writeBool(11, enableTwoPass_);
      }
      if (vbvSizeBits_ != 0) {
        output.writeInt32(12, vbvSizeBits_);
      }
      if (vbvFullnessBits_ != 0) {
        output.writeInt32(13, vbvFullnessBits_);
      }
      if (bPyramid_ != false) {
        output.writeBool(14, bPyramid_);
      }
      if (bFrameCount_ != 0) {
        output.writeInt32(15, bFrameCount_);
      }
      if (java.lang.Double.doubleToRawLongBits(aqStrength_) != 0) {
        output.writeDouble(16, aqStrength_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(profile_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 17, profile_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tune_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 18, tune_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(preset_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 19, preset_);
      }
      getUnknownFields().writeTo(output);
    }
<pre>
Enforces the specified codec preset. The default is `veryfast`. The
available options are
[FFmpeg-compatible](https://trac.ffmpeg.org/wiki/Encode/H.265).
Note that certain values for this field may cause the
transcoder to override other fields you set in the `H265CodecSettings`
message.
</pre>

<code>string preset = 19;</code>

@return The bytes for preset.
java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/VideoStream.java