Skip to content

Commit 30452f1

Browse files
feat: [google-cloud-modelarmor] MultiLanguage Detection in Model Armor Floor Setting (#14162)
BEGIN_COMMIT_OVERRIDE feat: MultiLanguage Detection in Model Armor Floor Setting feat: MultiLanguage Detection in Model Armor Floor Setting END_COMMIT_OVERRIDE - [ ] Regenerate this pull request now. PiperOrigin-RevId: 788746055 Source-Link: googleapis/googleapis@71d04ac Source-Link: googleapis/googleapis-gen@5619bfd Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW1vZGVsYXJtb3IvLk93bEJvdC55YW1sIiwiaCI6IjU2MTliZmQ4NWRjOWEyZDZlZGFmMjU3MGYzMTgzYTg3NjFmZGJkNzUifQ== BEGIN_NESTED_COMMIT feat: [google-cloud-modelarmor] MultiLanguage Detection in Model Armor Floor Setting PiperOrigin-RevId: 788746043 Source-Link: googleapis/googleapis@db658a1 Source-Link: googleapis/googleapis-gen@53c4422 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW1vZGVsYXJtb3IvLk93bEJvdC55YW1sIiwiaCI6IjUzYzQ0MjI2ZDM2ZjQwNGMwM2E4MjJlMjhhMjQwZjJhZWY1MTkwYzUifQ== END_NESTED_COMMIT --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 2f16fa5 commit 30452f1

File tree

9 files changed

+67
-9
lines changed

9 files changed

+67
-9
lines changed

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

Lines changed: 1 addition & 1 deletion
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.7" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

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

Lines changed: 1 addition & 1 deletion
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.7" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

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

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,34 @@ class IntegratedService(proto.Enum):
401401
AI_PLATFORM = 1
402402

403403
class FloorSettingMetadata(proto.Message):
404-
r"""message describing FloorSetting Metadata"""
404+
r"""message describing FloorSetting Metadata
405+
406+
Attributes:
407+
multi_language_detection (google.cloud.modelarmor_v1.types.FloorSetting.FloorSettingMetadata.MultiLanguageDetection):
408+
Optional. Metadata for multi language
409+
detection.
410+
"""
411+
412+
class MultiLanguageDetection(proto.Message):
413+
r"""Metadata to enable multi language detection via floor
414+
setting.
415+
416+
Attributes:
417+
enable_multi_language_detection (bool):
418+
Required. If true, multi language detection
419+
will be enabled.
420+
"""
421+
422+
enable_multi_language_detection: bool = proto.Field(
423+
proto.BOOL,
424+
number=1,
425+
)
426+
427+
multi_language_detection: "FloorSetting.FloorSettingMetadata.MultiLanguageDetection" = proto.Field(
428+
proto.MESSAGE,
429+
number=1,
430+
message="FloorSetting.FloorSettingMetadata.MultiLanguageDetection",
431+
)
405432

406433
name: str = proto.Field(
407434
proto.STRING,

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

Lines changed: 1 addition & 1 deletion
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.7" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

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

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,34 @@ class IntegratedService(proto.Enum):
401401
AI_PLATFORM = 1
402402

403403
class FloorSettingMetadata(proto.Message):
404-
r"""message describing FloorSetting Metadata"""
404+
r"""message describing FloorSetting Metadata
405+
406+
Attributes:
407+
multi_language_detection (google.cloud.modelarmor_v1beta.types.FloorSetting.FloorSettingMetadata.MultiLanguageDetection):
408+
Optional. Metadata for multi language
409+
detection.
410+
"""
411+
412+
class MultiLanguageDetection(proto.Message):
413+
r"""Metadata to enable multi language detection via floor
414+
setting.
415+
416+
Attributes:
417+
enable_multi_language_detection (bool):
418+
Required. If true, multi language detection
419+
will be enabled.
420+
"""
421+
422+
enable_multi_language_detection: bool = proto.Field(
423+
proto.BOOL,
424+
number=1,
425+
)
426+
427+
multi_language_detection: "FloorSetting.FloorSettingMetadata.MultiLanguageDetection" = proto.Field(
428+
proto.MESSAGE,
429+
number=1,
430+
message="FloorSetting.FloorSettingMetadata.MultiLanguageDetection",
431+
)
405432

406433
name: str = proto.Field(
407434
proto.STRING,

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

Lines changed: 1 addition & 1 deletion
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.7"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

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

Lines changed: 1 addition & 1 deletion
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.7"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

packages/google-cloud-modelarmor/tests/unit/gapic/modelarmor_v1/test_model_armor.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7347,7 +7347,9 @@ def test_update_floor_setting_rest_call_success(request_type):
73477347
"inspect_and_block": True,
73487348
"enable_cloud_logging": True,
73497349
},
7350-
"floor_setting_metadata": {},
7350+
"floor_setting_metadata": {
7351+
"multi_language_detection": {"enable_multi_language_detection": True}
7352+
},
73517353
}
73527354
# The version of a generated dependency at test runtime may differ from the version used during generation.
73537355
# Delete any fields which are not present in the current runtime dependency

packages/google-cloud-modelarmor/tests/unit/gapic/modelarmor_v1beta/test_model_armor.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7352,7 +7352,9 @@ def test_update_floor_setting_rest_call_success(request_type):
73527352
"inspect_and_block": True,
73537353
"enable_cloud_logging": True,
73547354
},
7355-
"floor_setting_metadata": {},
7355+
"floor_setting_metadata": {
7356+
"multi_language_detection": {"enable_multi_language_detection": True}
7357+
},
73567358
}
73577359
# The version of a generated dependency at test runtime may differ from the version used during generation.
73587360
# Delete any fields which are not present in the current runtime dependency

0 commit comments

Comments
 (0)