Skip to content

Commit 70701c3

Browse files
feat: [google-cloud-modelarmor] addignore_partial_invocation_failures to message SanitizationMetadata (#13863)
- [ ] Regenerate this pull request now. BEGIN_COMMIT_OVERRIDE docs: fixed the documentation for DetectionConfidenceLevel feat: add`ignore_partial_invocation_failures` to message `SanitizationMetadata` END_COMMIT_OVERRIDE PiperOrigin-RevId: 753847147 Source-Link: googleapis/googleapis@4ed1e92 Source-Link: googleapis/googleapis-gen@386b940 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW1vZGVsYXJtb3IvLk93bEJvdC55YW1sIiwiaCI6IjM4NmI5NDAyMDEyNzEyYmMyNTBkZmRmNGRhOGFjZGFkZTUwMjc3N2MifQ== --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 1781daa commit 70701c3

File tree

4 files changed

+21
-4
lines changed

4 files changed

+21
-4
lines changed

packages/google-cloud-modelarmor/google/cloud/modelarmor/gapic_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.2.3" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-modelarmor/google/cloud/modelarmor_v1/gapic_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.2.3" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-modelarmor/google/cloud/modelarmor_v1/types/service.py

+18-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ class DetectionConfidenceLevel(proto.Enum):
135135
136136
Values:
137137
DETECTION_CONFIDENCE_LEVEL_UNSPECIFIED (0):
138-
Same as MEDIUM_AND_ABOVE.
138+
Same as LOW_AND_ABOVE.
139139
LOW_AND_ABOVE (1):
140140
Highest chance of a false positive.
141141
MEDIUM_AND_ABOVE (2):
@@ -1023,6 +1023,10 @@ class SanitizationMetadata(proto.Message):
10231023
Error code if any.
10241024
error_message (str):
10251025
Error message if any.
1026+
ignore_partial_invocation_failures (bool):
1027+
Passthrough field defined in TemplateMetadata
1028+
to indicate whether to ignore partial invocation
1029+
failures.
10261030
"""
10271031

10281032
error_code: int = proto.Field(
@@ -1033,6 +1037,10 @@ class SanitizationMetadata(proto.Message):
10331037
proto.STRING,
10341038
number=2,
10351039
)
1040+
ignore_partial_invocation_failures: bool = proto.Field(
1041+
proto.BOOL,
1042+
number=3,
1043+
)
10361044

10371045
filter_match_state: "FilterMatchState" = proto.Field(
10381046
proto.ENUM,
@@ -1357,10 +1365,19 @@ class ByteItemType(proto.Enum):
13571365
plain text
13581366
PDF (2):
13591367
PDF
1368+
WORD_DOCUMENT (3):
1369+
DOCX, DOCM, DOTX, DOTM
1370+
EXCEL_DOCUMENT (4):
1371+
XLSX, XLSM, XLTX, XLYM
1372+
POWERPOINT_DOCUMENT (5):
1373+
PPTX, PPTM, POTX, POTM, POT
13601374
"""
13611375
BYTE_ITEM_TYPE_UNSPECIFIED = 0
13621376
PLAINTEXT_UTF8 = 1
13631377
PDF = 2
1378+
WORD_DOCUMENT = 3
1379+
EXCEL_DOCUMENT = 4
1380+
POWERPOINT_DOCUMENT = 5
13641381

13651382
byte_data_type: ByteItemType = proto.Field(
13661383
proto.ENUM,

packages/google-cloud-modelarmor/samples/generated_samples/snippet_metadata_google.cloud.modelarmor.v1.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-modelarmor",
11-
"version": "0.2.3"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

0 commit comments

Comments
 (0)