@CanIgnoreReturnValue
    public Builder setModelName(String modelName) {
      checkArgument(
          !Strings.isNullOrEmpty(modelName),
          "modelName can't be null or empty. Please refer to"
              + " https://cloud.google.com/vertex-ai/docs/generative-ai/learn/models#gemini-models"
              + " to find the right model name.");

      this.modelName = modelName;
      return this;
    }
Sets the name of the generative model. This is required for building a GenerativeModel
instance. Supported format: "gemini-pro", "models/gemini-pro",
"publishers/google/models/gemini-pro", where "gemini-pro" is the model name. Valid model
names can be found in the Gemini models documentation:
https://cloud.google.com/vertex-ai/docs/generative-ai/learn/models#gemini-models
java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/GenerativeModel.java