Skip to content

Commit 1783b41

Browse files
feat: add enable_datapoint_upsert_logging to google.cloud.aiplatform.v1.DeployedIndex (#6542)
* build: add scripts to publish to Bazel Central Registry (BCR) PiperOrigin-RevId: 788097378 chore: regenerate gapic yaml and service yaml for privilegedaccessmanager by augmentation configs PiperOrigin-RevId: 788127000 chore: regenerate gapic yaml and service yaml for recaptchaenterprise beta by augmentation configs PiperOrigin-RevId: 788127088 chore: regenerate gapic yaml and service yaml for recaptchaenterprise by augmentation configs PiperOrigin-RevId: 788127191 chore: regenerate gapic yaml and service yaml for config by augmentation configs PiperOrigin-RevId: 788127291 chore: regenerate gapic yaml and service yaml for metastore alpha by augmentation configs PiperOrigin-RevId: 788127383 build: include all contents of the .bcr folder PiperOrigin-RevId: 788127546 feat: Remove private preview label from Model Armor protos PiperOrigin-RevId: 788251106 feat: add a FooBar API PiperOrigin-RevId: 788269006 feat: add the VeoTuningSpec PiperOrigin-RevId: 788536453 docs: update comments for rpc BatchCreatePullRequestComments, ResolvePullRequestComments and UnresolvePullRequestComments PiperOrigin-RevId: 788541778 build: include .bazelignore in this repository PiperOrigin-RevId: 788552876 Source-Link: googleapis/googleapis@8e5eb7e Source-Link: googleapis/googleapis-gen@c594542 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFpcGxhdGZvcm0vLk93bEJvdC55YW1sIiwiaCI6ImM1OTQ1NDI0NWZkYzJiOGFjODI5Zjc2YjRjNzk3MmU0M2I0NmM3NmQifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: add enable_datapoint_upsert_logging to google.cloud.aiplatform.v1.DeployedIndex PiperOrigin-RevId: 788600466 Source-Link: googleapis/googleapis@1bc3759 Source-Link: googleapis/googleapis-gen@6e29fb0 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFpcGxhdGZvcm0vLk93bEJvdC55YW1sIiwiaCI6IjZlMjlmYjBiYzFiYjViYzc4ODMzYjdkYTkzMjkyNGYyZjdlOGE0NjEifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent c7a6447 commit 1783b41

File tree

11 files changed

+1471
-10
lines changed

11 files changed

+1471
-10
lines changed

packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/content.proto

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

3640
// Harm categories that will block the content.
3741
enum HarmCategory {
@@ -596,6 +600,9 @@ message Candidate {
596600

597601
// The function call generated by the model is invalid.
598602
MALFORMED_FUNCTION_CALL = 9;
603+
604+
// The model response was blocked by Model Armor.
605+
MODEL_ARMOR = 10;
599606
}
600607

601608
// Output only. Index of the candidate.
@@ -819,6 +826,27 @@ message RetrievalMetadata {
819826
[(google.api.field_behavior) = OPTIONAL];
820827
}
821828

829+
// Configuration for Model Armor integrations of prompt and responses.
830+
message ModelArmorConfig {
831+
// Optional. The name of the Model Armor template to use for prompt
832+
// sanitization.
833+
string prompt_template_name = 1 [
834+
(google.api.field_behavior) = OPTIONAL,
835+
(google.api.resource_reference) = {
836+
type: "modelarmor.googleapis.com/Template"
837+
}
838+
];
839+
840+
// Optional. The name of the Model Armor template to use for response
841+
// sanitization.
842+
string response_template_name = 2 [
843+
(google.api.field_behavior) = OPTIONAL,
844+
(google.api.resource_reference) = {
845+
type: "modelarmor.googleapis.com/Template"
846+
}
847+
];
848+
}
849+
822850
// Represents token counting info for a single modality.
823851
message ModalityTokenCount {
824852
// The modality associated with this token count.

packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index_endpoint.proto

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,19 @@ message DeployedIndex {
228228
// Estimate your costs before enabling this option.
229229
bool enable_access_logging = 8 [(google.api.field_behavior) = OPTIONAL];
230230

231+
// Optional. If true, logs to Cloud Logging errors relating to datapoint
232+
// upserts.
233+
//
234+
// Under normal operation conditions, these log entries should be very rare.
235+
// However, if incompatible datapoint updates are being uploaded to an index,
236+
// a high volume of log entries may be generated in a short period of time.
237+
//
238+
// Note that logs may incur a cost, especially if the deployed index receives
239+
// a high volume of datapoint upserts. Estimate your costs before enabling
240+
// this option.
241+
bool enable_datapoint_upsert_logging = 20
242+
[(google.api.field_behavior) = OPTIONAL];
243+
231244
// Optional. If set, the authentication is enabled for the private endpoint.
232245
DeployedIndexAuthConfig deployed_index_auth_config = 9
233246
[(google.api.field_behavior) = OPTIONAL];

packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/prediction_service.proto

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

803+
// Optional. Settings for prompt and response sanitization using the Model
804+
// Armor service. If supplied, safety_settings must not be supplied.
805+
ModelArmorConfig model_armor_config = 11
806+
[(google.api.field_behavior) = OPTIONAL];
807+
803808
// Optional. Generation config.
804809
GenerationConfig generation_config = 4
805810
[(google.api.field_behavior) = OPTIONAL];
@@ -826,6 +831,9 @@ message GenerateContentResponse {
826831

827832
// Candidates blocked due to prohibited content.
828833
PROHIBITED_CONTENT = 4;
834+
835+
// The user prompt was blocked by Model Armor.
836+
MODEL_ARMOR = 5;
829837
}
830838

831839
// Output only. Blocked reason.

packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tuning_job.proto

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ message TuningJob {
5757

5858
// Tuning Spec for open sourced and third party Partner models.
5959
PartnerModelTuningSpec partner_model_tuning_spec = 21;
60+
61+
// Tuning Spec for Veo Tuning.
62+
VeoTuningSpec veo_tuning_spec = 33;
6063
}
6164

6265
// Output only. Identifier. Resource name of a TuningJob. Format:
@@ -577,6 +580,48 @@ message TunedModelRef {
577580
}
578581
}
579582

583+
// Hyperparameters for Veo.
584+
message VeoHyperParameters {
585+
// An enum defining the tuning task used for Veo.
586+
enum TuningTask {
587+
// Default value. This value is unused.
588+
TUNING_TASK_UNSPECIFIED = 0;
589+
590+
// Tuning task for image to video.
591+
TUNING_TASK_I2V = 1;
592+
593+
// Tuning task for text to video.
594+
TUNING_TASK_T2V = 2;
595+
}
596+
597+
// Optional. Number of complete passes the model makes over the entire
598+
// training dataset during training.
599+
int64 epoch_count = 1 [(google.api.field_behavior) = OPTIONAL];
600+
601+
// Optional. Multiplier for adjusting the default learning rate.
602+
double learning_rate_multiplier = 2 [(google.api.field_behavior) = OPTIONAL];
603+
604+
// Optional. The tuning task. Either I2V or T2V.
605+
TuningTask tuning_task = 3 [(google.api.field_behavior) = OPTIONAL];
606+
}
607+
608+
// Tuning Spec for Veo Model Tuning.
609+
message VeoTuningSpec {
610+
// Required. Training dataset used for tuning. The dataset can be specified as
611+
// either a Cloud Storage path to a JSONL file or as the resource name of a
612+
// Vertex Multimodal Dataset.
613+
string training_dataset_uri = 1 [(google.api.field_behavior) = REQUIRED];
614+
615+
// Optional. Validation dataset used for tuning. The dataset can be specified
616+
// as either a Cloud Storage path to a JSONL file or as the resource name of a
617+
// Vertex Multimodal Dataset.
618+
string validation_dataset_uri = 2 [(google.api.field_behavior) = OPTIONAL];
619+
620+
// Optional. Hyperparameters for Veo.
621+
VeoHyperParameters hyper_parameters = 3
622+
[(google.api.field_behavior) = OPTIONAL];
623+
}
624+
580625
// TunedModelCheckpoint for the Tuned Model of a Tuning Job.
581626
message TunedModelCheckpoint {
582627
// The ID of the checkpoint.

0 commit comments

Comments
 (0)