1717package com .google .api .services .firebaseml .v2beta .model ;
1818
1919/**
20- * Content filter results for a prompt sent in the request.
20+ * Content filter results for a prompt sent in the request. Note: This is sent only in the first
21+ * stream chunk and only if no candidates were generated due to content violations.
2122 *
2223 * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
2324 * transmitted over HTTP when working with the Firebase ML API. For a detailed explanation see:
3031public final class GoogleCloudAiplatformV1beta1GenerateContentResponsePromptFeedback extends com .google .api .client .json .GenericJson {
3132
3233 /**
33- * Output only. Blocked reason.
34+ * Output only. The reason why the prompt was blocked .
3435 * The value may be {@code null}.
3536 */
3637 @ com .google .api .client .util .Key
3738 private java .lang .String blockReason ;
3839
3940 /**
40- * Output only. A readable block reason message .
41+ * Output only. A readable message that explains the reason why the prompt was blocked .
4142 * The value may be {@code null}.
4243 */
4344 @ com .google .api .client .util .Key
4445 private java .lang .String blockReasonMessage ;
4546
4647 /**
47- * Output only. Safety ratings.
48+ * Output only. A list of safety ratings for the prompt. There is one rating per category .
4849 * The value may be {@code null}.
4950 */
5051 @ com .google .api .client .util .Key
5152 private java .util .List <GoogleCloudAiplatformV1beta1SafetyRating > safetyRatings ;
5253
5354 /**
54- * Output only. Blocked reason.
55+ * Output only. The reason why the prompt was blocked .
5556 * @return value or {@code null} for none
5657 */
5758 public java .lang .String getBlockReason () {
5859 return blockReason ;
5960 }
6061
6162 /**
62- * Output only. Blocked reason.
63+ * Output only. The reason why the prompt was blocked .
6364 * @param blockReason blockReason or {@code null} for none
6465 */
6566 public GoogleCloudAiplatformV1beta1GenerateContentResponsePromptFeedback setBlockReason (java .lang .String blockReason ) {
@@ -68,15 +69,15 @@ public GoogleCloudAiplatformV1beta1GenerateContentResponsePromptFeedback setBloc
6869 }
6970
7071 /**
71- * Output only. A readable block reason message .
72+ * Output only. A readable message that explains the reason why the prompt was blocked .
7273 * @return value or {@code null} for none
7374 */
7475 public java .lang .String getBlockReasonMessage () {
7576 return blockReasonMessage ;
7677 }
7778
7879 /**
79- * Output only. A readable block reason message .
80+ * Output only. A readable message that explains the reason why the prompt was blocked .
8081 * @param blockReasonMessage blockReasonMessage or {@code null} for none
8182 */
8283 public GoogleCloudAiplatformV1beta1GenerateContentResponsePromptFeedback setBlockReasonMessage (java .lang .String blockReasonMessage ) {
@@ -85,15 +86,15 @@ public GoogleCloudAiplatformV1beta1GenerateContentResponsePromptFeedback setBloc
8586 }
8687
8788 /**
88- * Output only. Safety ratings.
89+ * Output only. A list of safety ratings for the prompt. There is one rating per category .
8990 * @return value or {@code null} for none
9091 */
9192 public java .util .List <GoogleCloudAiplatformV1beta1SafetyRating > getSafetyRatings () {
9293 return safetyRatings ;
9394 }
9495
9596 /**
96- * Output only. Safety ratings.
97+ * Output only. A list of safety ratings for the prompt. There is one rating per category .
9798 * @param safetyRatings safetyRatings or {@code null} for none
9899 */
99100 public GoogleCloudAiplatformV1beta1GenerateContentResponsePromptFeedback setSafetyRatings (java .util .List <GoogleCloudAiplatformV1beta1SafetyRating > safetyRatings ) {
0 commit comments