Skip to content

Commit 472278b

Browse files
Google APIscopybara-github
authored andcommitted
chore: revert earlier invalid change
PiperOrigin-RevId: 788833040
1 parent 71d04ac commit 472278b

File tree

2 files changed

+0
-36
lines changed

2 files changed

+0
-36
lines changed

google/cloud/aiplatform/v1/content.proto

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@ option java_outer_classname = "ContentProto";
3131
option java_package = "com.google.cloud.aiplatform.v1";
3232
option php_namespace = "Google\\Cloud\\AIPlatform\\V1";
3333
option ruby_package = "Google::Cloud::AIPlatform::V1";
34-
option (google.api.resource_definition) = {
35-
type: "modelarmor.googleapis.com/Template"
36-
pattern: "projects/{project}/locations/{location}/templates/{template}"
37-
};
3834

3935
// Harm categories that will block the content.
4036
enum HarmCategory {
@@ -507,9 +503,6 @@ message Candidate {
507503

508504
// The function call generated by the model is invalid.
509505
MALFORMED_FUNCTION_CALL = 9;
510-
511-
// The model response was blocked by Model Armor.
512-
MODEL_ARMOR = 10;
513506
}
514507

515508
// Output only. Index of the candidate.
@@ -732,27 +725,6 @@ message RetrievalMetadata {
732725
[(google.api.field_behavior) = OPTIONAL];
733726
}
734727

735-
// Configuration for Model Armor integrations of prompt and responses.
736-
message ModelArmorConfig {
737-
// Optional. The name of the Model Armor template to use for prompt
738-
// sanitization.
739-
string prompt_template_name = 1 [
740-
(google.api.field_behavior) = OPTIONAL,
741-
(google.api.resource_reference) = {
742-
type: "modelarmor.googleapis.com/Template"
743-
}
744-
];
745-
746-
// Optional. The name of the Model Armor template to use for response
747-
// sanitization.
748-
string response_template_name = 2 [
749-
(google.api.field_behavior) = OPTIONAL,
750-
(google.api.resource_reference) = {
751-
type: "modelarmor.googleapis.com/Template"
752-
}
753-
];
754-
}
755-
756728
// Represents token counting info for a single modality.
757729
message ModalityTokenCount {
758730
// The modality associated with this token count.

google/cloud/aiplatform/v1/prediction_service.proto

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -738,11 +738,6 @@ message GenerateContentRequest {
738738
repeated SafetySetting safety_settings = 3
739739
[(google.api.field_behavior) = OPTIONAL];
740740

741-
// Optional. Settings for prompt and response sanitization using the Model
742-
// Armor service. If supplied, safety_settings must not be supplied.
743-
ModelArmorConfig model_armor_config = 11
744-
[(google.api.field_behavior) = OPTIONAL];
745-
746741
// Optional. Generation config.
747742
GenerationConfig generation_config = 4
748743
[(google.api.field_behavior) = OPTIONAL];
@@ -769,9 +764,6 @@ message GenerateContentResponse {
769764

770765
// Candidates blocked due to prohibited content.
771766
PROHIBITED_CONTENT = 4;
772-
773-
// The user prompt was blocked by Model Armor.
774-
MODEL_ARMOR = 5;
775767
}
776768

777769
// Output only. Blocked reason.

0 commit comments

Comments
 (0)