@java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, model_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_);
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      output.writeMessage(6, getCreateTime());
    }
    if (predictionResourcesCase_ == 7) {
      output.writeMessage(
          7, (com.google.cloud.vertexai.api.DedicatedResources) predictionResources_);
    }
    if (predictionResourcesCase_ == 8) {
      output.writeMessage(
          8, (com.google.cloud.vertexai.api.AutomaticResources) predictionResources_);
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      output.writeMessage(9, getExplanationSpec());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 11, serviceAccount_);
    }
    if (enableAccessLogging_ != false) {
      output.writeBool(13, enableAccessLogging_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      output.writeMessage(14, getPrivateEndpoints());
    }
    if (disableContainerLogging_ != false) {
      output.writeBool(15, disableContainerLogging_);
    }
    if (predictionResourcesCase_ == 17) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 17, predictionResources_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelVersionId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 18, modelVersionId_);
    }
    if (disableExplanations_ != false) {
      output.writeBool(19, disableExplanations_);
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      output.writeMessage(23, getFasterDeploymentConfig());
    }
    if (((bitField0_ & 0x00000010) != 0)) {
      output.writeMessage(26, getStatus());
    }
    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
        output, internalGetSystemLabels(), SystemLabelsDefaultEntryHolder.defaultEntry, 28);
    if (((bitField0_ & 0x00000020) != 0)) {
      output.writeMessage(30, getSpeculativeDecodingSpec());
    }
    getUnknownFields().writeTo(output);
  }
<pre>
Optional. Spec for configuring speculative decoding.
</pre>

<code>
.google.cloud.vertexai.v1.SpeculativeDecodingSpec speculative_decoding_spec = 30 [(.google.api.field_behavior) = OPTIONAL];
</code>
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/DeployedModel.java