@java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
      return true;
    }
    if (!(obj instanceof com.google.cloud.vertexai.api.GenerateContentRequest)) {
      return super.equals(obj);
    }
    com.google.cloud.vertexai.api.GenerateContentRequest other =
        (com.google.cloud.vertexai.api.GenerateContentRequest) obj;

    if (!getModel().equals(other.getModel())) return false;
    if (!getContentsList().equals(other.getContentsList())) return false;
    if (hasSystemInstruction() != other.hasSystemInstruction()) return false;
    if (hasSystemInstruction()) {
      if (!getSystemInstruction().equals(other.getSystemInstruction())) return false;
    }
    if (!getCachedContent().equals(other.getCachedContent())) return false;
    if (!getToolsList().equals(other.getToolsList())) return false;
    if (hasToolConfig() != other.hasToolConfig()) return false;
    if (hasToolConfig()) {
      if (!getToolConfig().equals(other.getToolConfig())) return false;
    }
    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
    if (!getSafetySettingsList().equals(other.getSafetySettingsList())) return false;
    if (hasGenerationConfig() != other.hasGenerationConfig()) return false;
    if (hasGenerationConfig()) {
      if (!getGenerationConfig().equals(other.getGenerationConfig())) return false;
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }
<pre>
Optional. Generation config.
</pre>

<code>
.google.cloud.vertexai.v1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL];
</code>
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerateContentRequest.java