sessions/next24/books-genai-vertex-springai/src/main/java/services/domain/FirestoreService.java [45:55]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  public ApiFuture<WriteResult> storeImage(String fileName, List<String> labels, String mainColor, String modelResponse) {
    DocumentReference doc = firestore.collection("pictures").document(fileName);

    Map<String, Object> data = new HashMap<>();
    data.put("labels", labels);
    data.put("color", mainColor);
    data.put("created", new Date());
    data.put("modelResponse", modelResponse);

    return doc.set(data, SetOptions.merge());
  }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



sessions/next24/books-genai-vertex-langchain4j/src/main/java/services/domain/FirestoreService.java [45:55]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  public ApiFuture<WriteResult> storeImage(String fileName, List<String> labels, String mainColor, String modelResponse) {
    DocumentReference doc = firestore.collection("pictures").document(fileName);

    Map<String, Object> data = new HashMap<>();
    data.put("labels", labels);
    data.put("color", mainColor);
    data.put("created", new Date());
    data.put("modelResponse", modelResponse);

    return doc.set(data, SetOptions.merge());
  }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



sessions/fall24/books-genai-vertex-springai/src/main/java/services/domain/FirestoreService.java [45:55]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  public ApiFuture<WriteResult> storeImage(String fileName, List<String> labels, String mainColor, String modelResponse) {
    DocumentReference doc = firestore.collection("pictures").document(fileName);

    Map<String, Object> data = new HashMap<>();
    data.put("labels", labels);
    data.put("color", mainColor);
    data.put("created", new Date());
    data.put("modelResponse", modelResponse);

    return doc.set(data, SetOptions.merge());
  }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



sessions/fall24/books-genai-vertex-langchain4j/src/main/java/services/domain/FirestoreService.java [45:55]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  public ApiFuture<WriteResult> storeImage(String fileName, List<String> labels, String mainColor, String modelResponse) {
    DocumentReference doc = firestore.collection("pictures").document(fileName);

    Map<String, Object> data = new HashMap<>();
    data.put("labels", labels);
    data.put("color", mainColor);
    data.put("created", new Date());
    data.put("modelResponse", modelResponse);

    return doc.set(data, SetOptions.merge());
  }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



ml-demos/image-vision-vertex-langchain/src/main/java/services/EventService.java [31:41]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  public ApiFuture<WriteResult> storeImage(String fileName, List<String> labels, String mainColor, String modelResponse) {
    DocumentReference doc = firestore.collection("pictures").document(fileName);

    Map<String, Object> data = new HashMap<>();
    data.put("labels", labels);
    data.put("color", mainColor);
    data.put("created", new Date());
    data.put("modelResponse", modelResponse);

    return doc.set(data, SetOptions.merge());
  }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



