Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing category to HarmCategory #6502

Merged
merged 3 commits into from
Nov 12, 2024
Merged

Add missing category to HarmCategory #6502

merged 3 commits into from
Nov 12, 2024

Conversation

rlazo
Copy link
Collaborator

@rlazo rlazo commented Nov 12, 2024

No description provided.

@rlazo rlazo requested a review from daymxn November 12, 2024 17:22
Copy link
Contributor

github-actions bot commented Nov 12, 2024

Javadoc Changes:
--- /home/runner/diff/original/firebase-kotlindoc/android/com/google/firebase/vertexai/type/HarmCategory.html	2024-11-12 18:32:11.134619413 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/android/com/google/firebase/vertexai/type/HarmCategory.html	2024-11-12 18:30:09.138792582 +0000
@@ -48,6 +48,13 @@
           <tr>
             <td><code>static&nbsp;final @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmCategory.html">HarmCategory</a></code></td>
             <td>
+              <div><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmCategory.Companion.html#CIVIC_INTEGRITY()">CIVIC_INTEGRITY</a></code></div>
+              <p>Content that may be used to harm civic integrity.</p>
+            </td>
+          </tr>
+          <tr>
+            <td><code>static&nbsp;final @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmCategory.html">HarmCategory</a></code></td>
+            <td>
               <div><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmCategory.Companion.html#DANGEROUS_CONTENT()">DANGEROUS_CONTENT</a></code></div>
               <p>Dangerous content.</p>
             </td>
@@ -91,6 +98,11 @@
     </div>
     <div class="list">
       <h2>Public fields</h2>
+      <div class="api-item"><a name="getCIVIC_INTEGRITY()"></a><a name="setCIVIC_INTEGRITY()"></a><a name="getCIVIC_INTEGRITY--"></a><a name="setCIVIC_INTEGRITY--"></a>
+        <h3 class="api-name" id="CIVIC_INTEGRITY()">CIVIC_INTEGRITY</h3>
+        <pre class="api-signature no-pretty-print">public&nbsp;static&nbsp;final&nbsp;@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmCategory.html">HarmCategory</a>&nbsp;<a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmCategory.Companion.html#CIVIC_INTEGRITY()">CIVIC_INTEGRITY</a></pre>
+        <p>Content that may be used to harm civic integrity.</p>
+      </div>
       <div class="api-item"><a name="getDANGEROUS_CONTENT()"></a><a name="setDANGEROUS_CONTENT()"></a><a name="getDANGEROUS_CONTENT--"></a><a name="setDANGEROUS_CONTENT--"></a>
         <h3 class="api-name" id="DANGEROUS_CONTENT()">DANGEROUS_CONTENT</h3>
         <pre class="api-signature no-pretty-print">public&nbsp;static&nbsp;final&nbsp;@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmCategory.html">HarmCategory</a>&nbsp;<a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmCategory.Companion.html#DANGEROUS_CONTENT()">DANGEROUS_CONTENT</a></pre>
--- /home/runner/diff/original/firebase-kotlindoc/kotlin/com/google/firebase/vertexai/type/HarmCategory.html	2024-11-12 18:32:11.126619425 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/kotlin/com/google/firebase/vertexai/type/HarmCategory.html	2024-11-12 18:30:09.134792589 +0000
@@ -28,6 +28,13 @@
           <tr>
             <td><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmCategory.html">HarmCategory</a></code></td>
             <td>
+              <div><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmCategory.Companion.html#CIVIC_INTEGRITY()">CIVIC_INTEGRITY</a></code></div>
+              <p>Content that may be used to harm civic integrity.</p>
+            </td>
+          </tr>
+          <tr>
+            <td><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmCategory.html">HarmCategory</a></code></td>
+            <td>
               <div><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmCategory.Companion.html#DANGEROUS_CONTENT()">DANGEROUS_CONTENT</a></code></div>
               <p>Dangerous content.</p>
             </td>
@@ -86,6 +93,11 @@
     </div>
     <div class="list">
       <h2>Public companion properties</h2>
+      <div class="api-item"><a name="getCIVIC_INTEGRITY()"></a><a name="setCIVIC_INTEGRITY()"></a><a name="getCIVIC_INTEGRITY--"></a><a name="setCIVIC_INTEGRITY--"></a>
+        <h3 class="api-name" id="CIVIC_INTEGRITY()">CIVIC_INTEGRITY</h3>
+        <pre class="api-signature no-pretty-print">val&nbsp;<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmCategory.Companion.html#CIVIC_INTEGRITY()">CIVIC_INTEGRITY</a>:&nbsp;<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmCategory.html">HarmCategory</a></pre>
+        <p>Content that may be used to harm civic integrity.</p>
+      </div>
       <div class="api-item"><a name="getDANGEROUS_CONTENT()"></a><a name="setDANGEROUS_CONTENT()"></a><a name="getDANGEROUS_CONTENT--"></a><a name="setDANGEROUS_CONTENT--"></a>
         <h3 class="api-name" id="DANGEROUS_CONTENT()">DANGEROUS_CONTENT</h3>
         <pre class="api-signature no-pretty-print">val&nbsp;<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmCategory.Companion.html#DANGEROUS_CONTENT()">DANGEROUS_CONTENT</a>:&nbsp;<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmCategory.html">HarmCategory</a></pre>

Copy link
Contributor

Vertex AI Mock Responses Check ⚠️

A newer major version of the mock responses for Vertex AI unit tests is available. update_responses.sh should be updated to clone the latest version of the responses: v5.2

Copy link
Contributor

github-actions bot commented Nov 12, 2024

Test Results

 20 files   -  38   20 suites   - 38   15s ⏱️ - 1m 57s
113 tests  - 422  113 ✅  - 421  0 💤  - 1  0 ❌ ±0 
226 runs   - 844  226 ✅  - 842  0 💤  - 2  0 ❌ ±0 

Results for commit d92e971. ± Comparison against base commit 4e2dcd0.

This pull request removes 535 and adds 113 tests. Note that renamed tests count towards both.
com.google.firebase.dataconnect.AnyValueSerializerUnitTest ‑ descriptor should have expected values
com.google.firebase.dataconnect.AnyValueSerializerUnitTest ‑ deserialize() should throw UnsupportedOperationException
com.google.firebase.dataconnect.AnyValueSerializerUnitTest ‑ serialize() should throw UnsupportedOperationException
com.google.firebase.dataconnect.AnyValueUnitTest ‑ constructor(Boolean) creates an object with the expected value
com.google.firebase.dataconnect.AnyValueUnitTest ‑ constructor(Double) creates an object with the expected value (edge cases)
com.google.firebase.dataconnect.AnyValueUnitTest ‑ constructor(Double) creates an object with the expected value (normal cases)
com.google.firebase.dataconnect.AnyValueUnitTest ‑ constructor(List) creates an object with the expected value (edge cases)
com.google.firebase.dataconnect.AnyValueUnitTest ‑ constructor(List) creates an object with the expected value (normal cases)
com.google.firebase.dataconnect.AnyValueUnitTest ‑ constructor(Map) creates an object with the expected value (edge cases)
com.google.firebase.dataconnect.AnyValueUnitTest ‑ constructor(Map) creates an object with the expected value (normal cases)
…
com.google.firebase.vertexai.GenerativeModelTesting ‑ exception thrown when using invalid location
com.google.firebase.vertexai.GenerativeModelTesting ‑ system calling in request
com.google.firebase.vertexai.SchemaTests ‑ basic schema declaration
com.google.firebase.vertexai.SchemaTests ‑ full schema declaration
com.google.firebase.vertexai.StreamingSnapshotTests ‑ citation parsed correctly
com.google.firebase.vertexai.StreamingSnapshotTests ‑ empty content
com.google.firebase.vertexai.StreamingSnapshotTests ‑ http errors
com.google.firebase.vertexai.StreamingSnapshotTests ‑ image rejected
com.google.firebase.vertexai.StreamingSnapshotTests ‑ invalid api key
com.google.firebase.vertexai.StreamingSnapshotTests ‑ invalid json
…

♻️ This comment has been updated with latest results.

@rlazo rlazo merged commit 28a227a into main Nov 12, 2024
26 of 27 checks passed
@rlazo rlazo deleted the rl.harm.category.civic branch November 12, 2024 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants