public Builder setPolarityValue(int value) {
          polarity_ = value;
          bitField0_ |= 0x00000002;
          onChanged();
          return this;
        }
<pre>
Whether to only highlight pixels with positive contributions, negative
or both. Defaults to POSITIVE.
</pre>

<code>
.google.cloud.vertexai.v1.ExplanationMetadata.InputMetadata.Visualization.Polarity polarity = 2;
</code>

@param value The enum numeric value on the wire for polarity to set.
@return This builder for chaining.
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ExplanationMetadata.java