diff --git a/src/main/java/com/example/config/DlpConfig.java b/src/main/java/com/example/config/DlpConfig.java index 8bbd9a2..46c3fb2 100644 --- a/src/main/java/com/example/config/DlpConfig.java +++ b/src/main/java/com/example/config/DlpConfig.java @@ -1,3 +1,8 @@ +/* + * Copyright 2025 Google. This software is provided as-is, without warranty or representation for any use or purpose. + * Your use of it is subject to your agreement with Google. + */ + package com.example.config; import com.google.cloud.dlp.v2.DlpServiceClient; diff --git a/src/main/java/com/example/exception/GlobalExceptionHandler.java b/src/main/java/com/example/exception/GlobalExceptionHandler.java index 1312c3c..b253197 100644 --- a/src/main/java/com/example/exception/GlobalExceptionHandler.java +++ b/src/main/java/com/example/exception/GlobalExceptionHandler.java @@ -1,3 +1,8 @@ +/* + * Copyright 2025 Google. This software is provided as-is, without warranty or representation for any use or purpose. + * Your use of it is subject to your agreement with Google. + */ + package com.example.exception; import java.util.HashMap; @@ -16,7 +21,7 @@ public class GlobalExceptionHandler { @ExceptionHandler(DialogflowClientException.class) public ResponseEntity> handleDialogflowClientException( - DialogflowClientException ex) { + DialogflowClientException ex) { Map error = new HashMap<>(); error.put("error", "Error communicating with Dialogflow"); error.put("message", ex.getMessage()); diff --git a/src/main/java/com/example/service/conversation/DataLossPrevention.java b/src/main/java/com/example/service/conversation/DataLossPrevention.java index 8db4883..cad28d3 100644 --- a/src/main/java/com/example/service/conversation/DataLossPrevention.java +++ b/src/main/java/com/example/service/conversation/DataLossPrevention.java @@ -1,3 +1,8 @@ +/* +* Copyright 2025 Google. This software is provided as-is, without warranty or representation for any use or purpose. +* Your use of it is subject to your agreement with Google. +*/ + package com.example.service.conversation; import reactor.core.publisher.Mono; diff --git a/src/main/java/com/example/service/conversation/DataLossPreventionImpl.java b/src/main/java/com/example/service/conversation/DataLossPreventionImpl.java index f4131cc..f1a2f9b 100644 --- a/src/main/java/com/example/service/conversation/DataLossPreventionImpl.java +++ b/src/main/java/com/example/service/conversation/DataLossPreventionImpl.java @@ -1,3 +1,8 @@ +/* +* Copyright 2025 Google. This software is provided as-is, without warranty or representation for any use or purpose. +* Your use of it is subject to your agreement with Google. +*/ + package com.example.service.conversation; import com.google.api.core.ApiFuture; diff --git a/src/main/java/com/example/service/conversation/MemoryStoreConversationService.java b/src/main/java/com/example/service/conversation/MemoryStoreConversationService.java index 6410f50..85ed4d0 100644 --- a/src/main/java/com/example/service/conversation/MemoryStoreConversationService.java +++ b/src/main/java/com/example/service/conversation/MemoryStoreConversationService.java @@ -71,7 +71,6 @@ public class MemoryStoreConversationService { ConversationSessionDTO sessionWithPantallaContexto = (pantallaContexto != null) ? sessionWithUpdatedTelefono.withPantallaContexto(pantallaContexto) : sessionWithUpdatedTelefono; ConversationSessionDTO updatedSession = sessionWithPantallaContexto.withAddedEntry(newEntry); - logger.debug("Updated session to be saved in Memorystore: {}", updatedSession); logger.info("Attempting to set updated session {} with new entry entity {} in Redis.", sessionId, newEntry.entity().name()); return redisTemplate.opsForValue().set(sessionKey, updatedSession) diff --git a/src/main/java/com/example/util/FirestoreTimestampDeserializer.java b/src/main/java/com/example/util/FirestoreTimestampDeserializer.java index 84f7370..c85bee2 100644 --- a/src/main/java/com/example/util/FirestoreTimestampDeserializer.java +++ b/src/main/java/com/example/util/FirestoreTimestampDeserializer.java @@ -1,4 +1,8 @@ -// src/main/java/com/example/util/FirestoreTimestampDeserializer.java +/* +* Copyright 2025 Google. This software is provided as-is, without warranty or representation for any use or purpose. +* Your use of it is subject to your agreement with Google. +*/ + package com.example.util; import com.fasterxml.jackson.core.JsonParser; diff --git a/src/main/java/com/example/util/FirestoreTimestampSerializer.java b/src/main/java/com/example/util/FirestoreTimestampSerializer.java index d9385e0..b9f3ccf 100644 --- a/src/main/java/com/example/util/FirestoreTimestampSerializer.java +++ b/src/main/java/com/example/util/FirestoreTimestampSerializer.java @@ -1,4 +1,8 @@ -// src/main/java/com/example/util/FirestoreTimestampSerializer.java +/* +* Copyright 2025 Google. This software is provided as-is, without warranty or representation for any use or purpose. +* Your use of it is subject to your agreement with Google. +*/ + package com.example.util; import com.fasterxml.jackson.core.JsonGenerator; diff --git a/src/main/java/com/example/util/ProtobufUtil.java b/src/main/java/com/example/util/ProtobufUtil.java index 1a7f25d..047744e 100644 --- a/src/main/java/com/example/util/ProtobufUtil.java +++ b/src/main/java/com/example/util/ProtobufUtil.java @@ -1,3 +1,8 @@ +/* +* Copyright 2025 Google. This software is provided as-is, without warranty or representation for any use or purpose. +* Your use of it is subject to your agreement with Google. +*/ + package com.example.util; import com.google.protobuf.ListValue; diff --git a/src/main/java/com/example/util/SessionIdGenerator.java b/src/main/java/com/example/util/SessionIdGenerator.java index 984e73c..0dc8aa4 100644 --- a/src/main/java/com/example/util/SessionIdGenerator.java +++ b/src/main/java/com/example/util/SessionIdGenerator.java @@ -1,3 +1,8 @@ +/* +* Copyright 2025 Google. This software is provided as-is, without warranty or representation for any use or purpose. +* Your use of it is subject to your agreement with Google. +*/ + package com.example.util; import java.util.UUID; diff --git a/src/main/java/com/example/util/TextObfuscator.java b/src/main/java/com/example/util/TextObfuscator.java index 05a447c..77321e8 100644 --- a/src/main/java/com/example/util/TextObfuscator.java +++ b/src/main/java/com/example/util/TextObfuscator.java @@ -1,3 +1,8 @@ +/* +* Copyright 2025 Google. This software is provided as-is, without warranty or representation for any use or purpose. +* Your use of it is subject to your agreement with Google. +*/ + package com.example.util; import java.util.Comparator;