You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: clients/google-api-services-language/v2/2.0.0/com/google/api/services/language/v2/model/ClassificationCategory.java
+30Lines changed: 30 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,15 @@ public final class ClassificationCategory extends com.google.api.client.json.Gen
45
45
@com.google.api.client.util.Key
46
46
privatejava.lang.Stringname;
47
47
48
+
/**
49
+
* Optional. The classifier's severity of the category. This is only present when the
50
+
* ModerateTextRequest.ModelVersion is set to MODEL_VERSION_2, and the corresponding category has
51
+
* a severity score.
52
+
* The value may be {@code null}.
53
+
*/
54
+
@com.google.api.client.util.Key
55
+
privatejava.lang.Floatseverity;
56
+
48
57
/**
49
58
* The classifier's confidence of the category. Number represents how certain the classifier is
50
59
* that this category represents the given text.
@@ -81,6 +90,27 @@ public ClassificationCategory setName(java.lang.String name) {
81
90
returnthis;
82
91
}
83
92
93
+
/**
94
+
* Optional. The classifier's severity of the category. This is only present when the
95
+
* ModerateTextRequest.ModelVersion is set to MODEL_VERSION_2, and the corresponding category has
96
+
* a severity score.
97
+
* @return value or {@code null} for none
98
+
*/
99
+
publicjava.lang.FloatgetSeverity() {
100
+
returnseverity;
101
+
}
102
+
103
+
/**
104
+
* Optional. The classifier's severity of the category. This is only present when the
105
+
* ModerateTextRequest.ModelVersion is set to MODEL_VERSION_2, and the corresponding category has
106
+
* a severity score.
107
+
* @param severity severity or {@code null} for none
Copy file name to clipboardExpand all lines: clients/google-api-services-language/v2/2.0.0/com/google/api/services/language/v2/model/ModerateTextRequest.java
+24Lines changed: 24 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,13 @@ public final class ModerateTextRequest extends com.google.api.client.json.Generi
37
37
@com.google.api.client.util.Key
38
38
privateDocumentdocument;
39
39
40
+
/**
41
+
* Optional. The model version to use for ModerateText.
42
+
* The value may be {@code null}.
43
+
*/
44
+
@com.google.api.client.util.Key
45
+
privatejava.lang.StringmodelVersion;
46
+
40
47
/**
41
48
* Required. Input document.
42
49
* @return value or {@code null} for none
@@ -54,6 +61,23 @@ public ModerateTextRequest setDocument(Document document) {
54
61
returnthis;
55
62
}
56
63
64
+
/**
65
+
* Optional. The model version to use for ModerateText.
66
+
* @return value or {@code null} for none
67
+
*/
68
+
publicjava.lang.StringgetModelVersion() {
69
+
returnmodelVersion;
70
+
}
71
+
72
+
/**
73
+
* Optional. The model version to use for ModerateText.
74
+
* @param modelVersion modelVersion or {@code null} for none
0 commit comments