Skip to content
This repository was archived by the owner on Sep 9, 2023. It is now read-only.

Commit 2ac62d6

Browse files
feat: add PredictRequestResponseLoggingConfig to Endpoint in aiplatform v1 endpoint.proto (#824)
* feat: add PredictRequestResponseLoggingConfig to Endpoint in aiplatform v1 endpoint.proto PiperOrigin-RevId: 433794371 Source-Link: googleapis/googleapis@e0f0642 Source-Link: https://github.com/googleapis/googleapis-gen/commit/3afc3ec18e795c859231a2c0f8ef172a65056e0d Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiM2FmYzNlYzE4ZTc5NWM4NTkyMzFhMmMwZjhlZjE3MmE2NTA1NmUwZCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 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 0970fdb commit 2ac62d6

File tree

124 files changed

+4019
-2814
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

124 files changed

+4019
-2814
lines changed

google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/EndpointServiceClientTest.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ public void createEndpointTest() throws Exception {
108108
ModelDeploymentMonitoringJobName.of(
109109
"[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]")
110110
.toString())
111+
.setPredictRequestResponseLoggingConfig(
112+
PredictRequestResponseLoggingConfig.newBuilder().build())
111113
.build();
112114
Operation resultOperation =
113115
Operation.newBuilder()
@@ -172,6 +174,8 @@ public void createEndpointTest2() throws Exception {
172174
ModelDeploymentMonitoringJobName.of(
173175
"[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]")
174176
.toString())
177+
.setPredictRequestResponseLoggingConfig(
178+
PredictRequestResponseLoggingConfig.newBuilder().build())
175179
.build();
176180
Operation resultOperation =
177181
Operation.newBuilder()
@@ -236,6 +240,8 @@ public void createEndpointTest3() throws Exception {
236240
ModelDeploymentMonitoringJobName.of(
237241
"[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]")
238242
.toString())
243+
.setPredictRequestResponseLoggingConfig(
244+
PredictRequestResponseLoggingConfig.newBuilder().build())
239245
.build();
240246
Operation resultOperation =
241247
Operation.newBuilder()
@@ -303,6 +309,8 @@ public void createEndpointTest4() throws Exception {
303309
ModelDeploymentMonitoringJobName.of(
304310
"[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]")
305311
.toString())
312+
.setPredictRequestResponseLoggingConfig(
313+
PredictRequestResponseLoggingConfig.newBuilder().build())
306314
.build();
307315
Operation resultOperation =
308316
Operation.newBuilder()
@@ -370,6 +378,8 @@ public void getEndpointTest() throws Exception {
370378
ModelDeploymentMonitoringJobName.of(
371379
"[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]")
372380
.toString())
381+
.setPredictRequestResponseLoggingConfig(
382+
PredictRequestResponseLoggingConfig.newBuilder().build())
373383
.build();
374384
mockEndpointService.addResponse(expectedResponse);
375385

@@ -423,6 +433,8 @@ public void getEndpointTest2() throws Exception {
423433
ModelDeploymentMonitoringJobName.of(
424434
"[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]")
425435
.toString())
436+
.setPredictRequestResponseLoggingConfig(
437+
PredictRequestResponseLoggingConfig.newBuilder().build())
426438
.build();
427439
mockEndpointService.addResponse(expectedResponse);
428440

@@ -564,6 +576,8 @@ public void updateEndpointTest() throws Exception {
564576
ModelDeploymentMonitoringJobName.of(
565577
"[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]")
566578
.toString())
579+
.setPredictRequestResponseLoggingConfig(
580+
PredictRequestResponseLoggingConfig.newBuilder().build())
567581
.build();
568582
mockEndpointService.addResponse(expectedResponse);
569583

proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationProto.java

Lines changed: 26 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -45,39 +45,37 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
4545
static {
4646
java.lang.String[] descriptorData = {
4747
"\n+google/cloud/aiplatform/v1/annotation."
48-
+ "proto\022\032google.cloud.aiplatform.v1\032\034googl"
49-
+ "e/api/annotations.proto\032\037google/api/fiel"
50-
+ "d_behavior.proto\032\031google/api/resource.pr"
51-
+ "oto\0326google/cloud/aiplatform/v1/user_act"
52-
+ "ion_reference.proto\032\034google/protobuf/str"
53-
+ "uct.proto\032\037google/protobuf/timestamp.pro"
54-
+ "to\"\316\004\n\nAnnotation\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\037\n\022"
55-
+ "payload_schema_uri\030\002 \001(\tB\003\340A\002\022,\n\007payload"
56-
+ "\030\003 \001(\0132\026.google.protobuf.ValueB\003\340A\002\0224\n\013c"
57-
+ "reate_time\030\004 \001(\0132\032.google.protobuf.Times"
58-
+ "tampB\003\340A\003\0224\n\013update_time\030\007 \001(\0132\032.google."
59-
+ "protobuf.TimestampB\003\340A\003\022\021\n\004etag\030\010 \001(\tB\003\340"
60-
+ "A\001\022O\n\021annotation_source\030\005 \001(\0132/.google.c"
61-
+ "loud.aiplatform.v1.UserActionReferenceB\003"
62-
+ "\340A\003\022G\n\006labels\030\006 \003(\01322.google.cloud.aipla"
63-
+ "tform.v1.Annotation.LabelsEntryB\003\340A\001\032-\n\013"
64-
+ "LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:"
65-
+ "\0028\001:\225\001\352A\221\001\n$aiplatform.googleapis.com/An"
66-
+ "notation\022iprojects/{project}/locations/{"
67-
+ "location}/datasets/{dataset}/dataItems/{"
68-
+ "data_item}/annotations/{annotation}B\323\001\n\036"
69-
+ "com.google.cloud.aiplatform.v1B\017Annotati"
70-
+ "onProtoP\001ZDgoogle.golang.org/genproto/go"
71-
+ "ogleapis/cloud/aiplatform/v1;aiplatform\252"
72-
+ "\002\032Google.Cloud.AIPlatform.V1\312\002\032Google\\Cl"
73-
+ "oud\\AIPlatform\\V1\352\002\035Google::Cloud::AIPla"
74-
+ "tform::V1b\006proto3"
48+
+ "proto\022\032google.cloud.aiplatform.v1\032\037googl"
49+
+ "e/api/field_behavior.proto\032\031google/api/r"
50+
+ "esource.proto\0326google/cloud/aiplatform/v"
51+
+ "1/user_action_reference.proto\032\034google/pr"
52+
+ "otobuf/struct.proto\032\037google/protobuf/tim"
53+
+ "estamp.proto\"\316\004\n\nAnnotation\022\021\n\004name\030\001 \001("
54+
+ "\tB\003\340A\003\022\037\n\022payload_schema_uri\030\002 \001(\tB\003\340A\002\022"
55+
+ ",\n\007payload\030\003 \001(\0132\026.google.protobuf.Value"
56+
+ "B\003\340A\002\0224\n\013create_time\030\004 \001(\0132\032.google.prot"
57+
+ "obuf.TimestampB\003\340A\003\0224\n\013update_time\030\007 \001(\013"
58+
+ "2\032.google.protobuf.TimestampB\003\340A\003\022\021\n\004eta"
59+
+ "g\030\010 \001(\tB\003\340A\001\022O\n\021annotation_source\030\005 \001(\0132"
60+
+ "/.google.cloud.aiplatform.v1.UserActionR"
61+
+ "eferenceB\003\340A\003\022G\n\006labels\030\006 \003(\01322.google.c"
62+
+ "loud.aiplatform.v1.Annotation.LabelsEntr"
63+
+ "yB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va"
64+
+ "lue\030\002 \001(\t:\0028\001:\225\001\352A\221\001\n$aiplatform.googlea"
65+
+ "pis.com/Annotation\022iprojects/{project}/l"
66+
+ "ocations/{location}/datasets/{dataset}/d"
67+
+ "ataItems/{data_item}/annotations/{annota"
68+
+ "tion}B\323\001\n\036com.google.cloud.aiplatform.v1"
69+
+ "B\017AnnotationProtoP\001ZDgoogle.golang.org/g"
70+
+ "enproto/googleapis/cloud/aiplatform/v1;a"
71+
+ "iplatform\252\002\032Google.Cloud.AIPlatform.V1\312\002"
72+
+ "\032Google\\Cloud\\AIPlatform\\V1\352\002\035Google::Cl"
73+
+ "oud::AIPlatform::V1b\006proto3"
7574
};
7675
descriptor =
7776
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
7877
descriptorData,
7978
new com.google.protobuf.Descriptors.FileDescriptor[] {
80-
com.google.api.AnnotationsProto.getDescriptor(),
8179
com.google.api.FieldBehaviorProto.getDescriptor(),
8280
com.google.api.ResourceProto.getDescriptor(),
8381
com.google.cloud.aiplatform.v1.UserActionReferenceProto.getDescriptor(),
@@ -113,7 +111,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
113111
registry.add(com.google.api.ResourceProto.resource);
114112
com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
115113
descriptor, registry);
116-
com.google.api.AnnotationsProto.getDescriptor();
117114
com.google.api.FieldBehaviorProto.getDescriptor();
118115
com.google.api.ResourceProto.getDescriptor();
119116
com.google.cloud.aiplatform.v1.UserActionReferenceProto.getDescriptor();

proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationSpecProto.java

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -41,31 +41,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
4141
static {
4242
java.lang.String[] descriptorData = {
4343
"\n0google/cloud/aiplatform/v1/annotation_"
44-
+ "spec.proto\022\032google.cloud.aiplatform.v1\032\034"
45-
+ "google/api/annotations.proto\032\037google/api"
46-
+ "/field_behavior.proto\032\031google/api/resour"
47-
+ "ce.proto\032\037google/protobuf/timestamp.prot"
48-
+ "o\"\314\002\n\016AnnotationSpec\022\021\n\004name\030\001 \001(\tB\003\340A\003\022"
49-
+ "\031\n\014display_name\030\002 \001(\tB\003\340A\002\0224\n\013create_tim"
50-
+ "e\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003"
51-
+ "\0224\n\013update_time\030\004 \001(\0132\032.google.protobuf."
52-
+ "TimestampB\003\340A\003\022\021\n\004etag\030\005 \001(\tB\003\340A\001:\214\001\352A\210\001"
53-
+ "\n(aiplatform.googleapis.com/AnnotationSp"
54-
+ "ec\022\\projects/{project}/locations/{locati"
55-
+ "on}/datasets/{dataset}/annotationSpecs/{"
56-
+ "annotation_spec}B\327\001\n\036com.google.cloud.ai"
57-
+ "platform.v1B\023AnnotationSpecProtoP\001ZDgoog"
58-
+ "le.golang.org/genproto/googleapis/cloud/"
59-
+ "aiplatform/v1;aiplatform\252\002\032Google.Cloud."
60-
+ "AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatform\\"
61-
+ "V1\352\002\035Google::Cloud::AIPlatform::V1b\006prot"
62-
+ "o3"
44+
+ "spec.proto\022\032google.cloud.aiplatform.v1\032\037"
45+
+ "google/api/field_behavior.proto\032\031google/"
46+
+ "api/resource.proto\032\037google/protobuf/time"
47+
+ "stamp.proto\"\314\002\n\016AnnotationSpec\022\021\n\004name\030\001"
48+
+ " \001(\tB\003\340A\003\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\0224\n\013"
49+
+ "create_time\030\003 \001(\0132\032.google.protobuf.Time"
50+
+ "stampB\003\340A\003\0224\n\013update_time\030\004 \001(\0132\032.google"
51+
+ ".protobuf.TimestampB\003\340A\003\022\021\n\004etag\030\005 \001(\tB\003"
52+
+ "\340A\001:\214\001\352A\210\001\n(aiplatform.googleapis.com/An"
53+
+ "notationSpec\022\\projects/{project}/locatio"
54+
+ "ns/{location}/datasets/{dataset}/annotat"
55+
+ "ionSpecs/{annotation_spec}B\327\001\n\036com.googl"
56+
+ "e.cloud.aiplatform.v1B\023AnnotationSpecPro"
57+
+ "toP\001ZDgoogle.golang.org/genproto/googlea"
58+
+ "pis/cloud/aiplatform/v1;aiplatform\252\002\032Goo"
59+
+ "gle.Cloud.AIPlatform.V1\312\002\032Google\\Cloud\\A"
60+
+ "IPlatform\\V1\352\002\035Google::Cloud::AIPlatform"
61+
+ "::V1b\006proto3"
6362
};
6463
descriptor =
6564
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
6665
descriptorData,
6766
new com.google.protobuf.Descriptors.FileDescriptor[] {
68-
com.google.api.AnnotationsProto.getDescriptor(),
6967
com.google.api.FieldBehaviorProto.getDescriptor(),
7068
com.google.api.ResourceProto.getDescriptor(),
7169
com.google.protobuf.TimestampProto.getDescriptor(),
@@ -84,7 +82,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
8482
registry.add(com.google.api.ResourceProto.resource);
8583
com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
8684
descriptor, registry);
87-
com.google.api.AnnotationsProto.getDescriptor();
8885
com.google.api.FieldBehaviorProto.getDescriptor();
8986
com.google.api.ResourceProto.getDescriptor();
9087
com.google.protobuf.TimestampProto.getDescriptor();

proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ArtifactProto.java

Lines changed: 26 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -45,43 +45,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
4545
static {
4646
java.lang.String[] descriptorData = {
4747
"\n)google/cloud/aiplatform/v1/artifact.pr"
48-
+ "oto\022\032google.cloud.aiplatform.v1\032\034google/"
49-
+ "api/annotations.proto\032\037google/api/field_"
50-
+ "behavior.proto\032\031google/api/resource.prot"
51-
+ "o\032&google/cloud/aiplatform/v1/value.prot"
52-
+ "o\032\034google/protobuf/struct.proto\032\037google/"
53-
+ "protobuf/timestamp.proto\"\224\005\n\010Artifact\022\021\n"
54-
+ "\004name\030\001 \001(\tB\003\340A\003\022\024\n\014display_name\030\002 \001(\t\022\013"
55-
+ "\n\003uri\030\006 \001(\t\022\014\n\004etag\030\t \001(\t\022@\n\006labels\030\n \003("
56-
+ "\01320.google.cloud.aiplatform.v1.Artifact."
57-
+ "LabelsEntry\0224\n\013create_time\030\013 \001(\0132\032.googl"
58-
+ "e.protobuf.TimestampB\003\340A\003\0224\n\013update_time"
59-
+ "\030\014 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022"
60-
+ "9\n\005state\030\r \001(\0162*.google.cloud.aiplatform"
61-
+ ".v1.Artifact.State\022\024\n\014schema_title\030\016 \001(\t"
62-
+ "\022\026\n\016schema_version\030\017 \001(\t\022)\n\010metadata\030\020 \001"
63-
+ "(\0132\027.google.protobuf.Struct\022\023\n\013descripti"
64-
+ "on\030\021 \001(\t\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005"
65-
+ "value\030\002 \001(\t:\0028\001\"5\n\005State\022\025\n\021STATE_UNSPEC"
66-
+ "IFIED\020\000\022\013\n\007PENDING\020\001\022\010\n\004LIVE\020\002:\206\001\352A\202\001\n\"a"
67-
+ "iplatform.googleapis.com/Artifact\022\\proje"
68-
+ "cts/{project}/locations/{location}/metad"
69-
+ "ataStores/{metadata_store}/artifacts/{ar"
70-
+ "tifact}B\321\001\n\036com.google.cloud.aiplatform."
71-
+ "v1B\rArtifactProtoP\001ZDgoogle.golang.org/g"
72-
+ "enproto/googleapis/cloud/aiplatform/v1;a"
73-
+ "iplatform\252\002\032Google.Cloud.AIPlatform.V1\312\002"
74-
+ "\032Google\\Cloud\\AIPlatform\\V1\352\002\035Google::Cl"
75-
+ "oud::AIPlatform::V1b\006proto3"
48+
+ "oto\022\032google.cloud.aiplatform.v1\032\037google/"
49+
+ "api/field_behavior.proto\032\031google/api/res"
50+
+ "ource.proto\032\034google/protobuf/struct.prot"
51+
+ "o\032\037google/protobuf/timestamp.proto\"\224\005\n\010A"
52+
+ "rtifact\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\014display_na"
53+
+ "me\030\002 \001(\t\022\013\n\003uri\030\006 \001(\t\022\014\n\004etag\030\t \001(\t\022@\n\006l"
54+
+ "abels\030\n \003(\01320.google.cloud.aiplatform.v1"
55+
+ ".Artifact.LabelsEntry\0224\n\013create_time\030\013 \001"
56+
+ "(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013u"
57+
+ "pdate_time\030\014 \001(\0132\032.google.protobuf.Times"
58+
+ "tampB\003\340A\003\0229\n\005state\030\r \001(\0162*.google.cloud."
59+
+ "aiplatform.v1.Artifact.State\022\024\n\014schema_t"
60+
+ "itle\030\016 \001(\t\022\026\n\016schema_version\030\017 \001(\t\022)\n\010me"
61+
+ "tadata\030\020 \001(\0132\027.google.protobuf.Struct\022\023\n"
62+
+ "\013description\030\021 \001(\t\032-\n\013LabelsEntry\022\013\n\003key"
63+
+ "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"5\n\005State\022\025\n\021ST"
64+
+ "ATE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\010\n\004LIVE\020\002"
65+
+ ":\206\001\352A\202\001\n\"aiplatform.googleapis.com/Artif"
66+
+ "act\022\\projects/{project}/locations/{locat"
67+
+ "ion}/metadataStores/{metadata_store}/art"
68+
+ "ifacts/{artifact}B\321\001\n\036com.google.cloud.a"
69+
+ "iplatform.v1B\rArtifactProtoP\001ZDgoogle.go"
70+
+ "lang.org/genproto/googleapis/cloud/aipla"
71+
+ "tform/v1;aiplatform\252\002\032Google.Cloud.AIPla"
72+
+ "tform.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035"
73+
+ "Google::Cloud::AIPlatform::V1b\006proto3"
7674
};
7775
descriptor =
7876
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
7977
descriptorData,
8078
new com.google.protobuf.Descriptors.FileDescriptor[] {
81-
com.google.api.AnnotationsProto.getDescriptor(),
8279
com.google.api.FieldBehaviorProto.getDescriptor(),
8380
com.google.api.ResourceProto.getDescriptor(),
84-
com.google.cloud.aiplatform.v1.ValueProto.getDescriptor(),
8581
com.google.protobuf.StructProto.getDescriptor(),
8682
com.google.protobuf.TimestampProto.getDescriptor(),
8783
});
@@ -118,10 +114,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
118114
registry.add(com.google.api.ResourceProto.resource);
119115
com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
120116
descriptor, registry);
121-
com.google.api.AnnotationsProto.getDescriptor();
122117
com.google.api.FieldBehaviorProto.getDescriptor();
123118
com.google.api.ResourceProto.getDescriptor();
124-
com.google.cloud.aiplatform.v1.ValueProto.getDescriptor();
125119
com.google.protobuf.StructProto.getDescriptor();
126120
com.google.protobuf.TimestampProto.getDescriptor();
127121
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy