public Builder setMethod(com.google.cloud.vertexai.api.SafetySetting.HarmBlockMethod value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000004;
      method_ = value.getNumber();
      onChanged();
      return this;
    }
<pre>
Optional. Specify if the threshold is used for probability or severity
score. If not specified, the threshold is used for probability score.
</pre>

<code>
.google.cloud.vertexai.v1.SafetySetting.HarmBlockMethod method = 4 [(.google.api.field_behavior) = OPTIONAL];
</code>

@param value The method to set.
@return This builder for chaining.
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/SafetySetting.java