Skip to content

Commit 4ed1e92

Browse files
Google APIscopybara-github
authored andcommitted
feat: add Model Armor PHP and C# SDK support
docs: fixed the documentation for DetectionConfidenceLevel PiperOrigin-RevId: 753847147
1 parent 0d7906c commit 4ed1e92

3 files changed

Lines changed: 25 additions & 5 deletions

File tree

google/cloud/modelarmor/v1/BUILD.bazel

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -296,9 +296,7 @@ ruby_grpc_library(
296296
ruby_cloud_gapic_library(
297297
name = "modelarmor_ruby_gapic",
298298
srcs = [":modelarmor_proto_with_info"],
299-
extra_protoc_parameters = [
300-
"ruby-cloud-gem-name=google-cloud-modelarmor-v1",
301-
],
299+
extra_protoc_parameters = ["ruby-cloud-gem-name=google-cloud-modelarmor-v1"],
302300
grpc_service_config = "modelarmor_v1_grpc_service_config.json",
303301
rest_numeric_enums = True,
304302
service_yaml = "modelarmor_v1.yaml",
@@ -333,7 +331,6 @@ load(
333331

334332
csharp_proto_library(
335333
name = "modelarmor_csharp_proto",
336-
extra_opts = [],
337334
deps = [":modelarmor_proto"],
338335
)
339336

google/cloud/modelarmor/v1/modelarmor_v1.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ publishing:
5555
common:
5656
destinations:
5757
- PACKAGE_MANAGER
58+
php_settings:
59+
common:
60+
destinations:
61+
- PACKAGE_MANAGER
5862
python_settings:
5963
common:
6064
destinations:
@@ -63,6 +67,10 @@ publishing:
6367
common:
6468
destinations:
6569
- PACKAGE_MANAGER
70+
dotnet_settings:
71+
common:
72+
destinations:
73+
- PACKAGE_MANAGER
6674
go_settings:
6775
common:
6876
destinations:

google/cloud/modelarmor/v1/service.proto

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,12 @@ import "google/protobuf/empty.proto";
2525
import "google/protobuf/field_mask.proto";
2626
import "google/protobuf/timestamp.proto";
2727

28+
option csharp_namespace = "Google.Cloud.ModelArmor.V1";
2829
option go_package = "cloud.google.com/go/modelarmor/apiv1/modelarmorpb;modelarmorpb";
2930
option java_multiple_files = true;
3031
option java_outer_classname = "V1mainProto";
3132
option java_package = "com.google.cloud.modelarmor.v1";
33+
option php_namespace = "Google\\Cloud\\ModelArmor\\V1";
3234

3335
// Service describing handlers for resources
3436
service ModelArmor {
@@ -175,7 +177,7 @@ enum RaiFilterType {
175177
// Higher value maps to a greater confidence level. To enforce stricter level a
176178
// lower value should be used.
177179
enum DetectionConfidenceLevel {
178-
// Same as MEDIUM_AND_ABOVE.
180+
// Same as LOW_AND_ABOVE.
179181
DETECTION_CONFIDENCE_LEVEL_UNSPECIFIED = 0;
180182

181183
// Highest chance of a false positive.
@@ -700,6 +702,10 @@ message SanitizationResult {
700702

701703
// Error message if any.
702704
string error_message = 2;
705+
706+
// Passthrough field defined in TemplateMetadata to indicate whether to
707+
// ignore partial invocation failures.
708+
bool ignore_partial_invocation_failures = 3;
703709
}
704710

705711
// Output only. Overall filter match state for Sanitization.
@@ -858,6 +864,15 @@ message ByteDataItem {
858864

859865
// PDF
860866
PDF = 2;
867+
868+
// DOCX, DOCM, DOTX, DOTM
869+
WORD_DOCUMENT = 3;
870+
871+
// XLSX, XLSM, XLTX, XLYM
872+
EXCEL_DOCUMENT = 4;
873+
874+
// PPTX, PPTM, POTX, POTM, POT
875+
POWERPOINT_DOCUMENT = 5;
861876
}
862877

863878
// Required. The type of byte data

0 commit comments

Comments
 (0)