Skip to content
This repository was archived by the owner on Sep 9, 2023. It is now read-only.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ implementation 'com.google.cloud:google-cloud-aiplatform'
If you are using Gradle without BOM, add this to your dependencies

```Groovy
implementation 'com.google.cloud:google-cloud-aiplatform:2.7.2'
implementation 'com.google.cloud:google-cloud-aiplatform:2.7.3'
```

If you are using SBT, add this to your dependencies

```Scala
libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "2.7.2"
libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "2.7.3"
```

## Authentication
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ public void createEndpointTest() throws Exception {
ModelDeploymentMonitoringJobName.of(
"[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]")
.toString())
.setPredictRequestResponseLoggingConfig(
PredictRequestResponseLoggingConfig.newBuilder().build())
.build();
Operation resultOperation =
Operation.newBuilder()
Expand Down Expand Up @@ -172,6 +174,8 @@ public void createEndpointTest2() throws Exception {
ModelDeploymentMonitoringJobName.of(
"[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]")
.toString())
.setPredictRequestResponseLoggingConfig(
PredictRequestResponseLoggingConfig.newBuilder().build())
.build();
Operation resultOperation =
Operation.newBuilder()
Expand Down Expand Up @@ -236,6 +240,8 @@ public void createEndpointTest3() throws Exception {
ModelDeploymentMonitoringJobName.of(
"[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]")
.toString())
.setPredictRequestResponseLoggingConfig(
PredictRequestResponseLoggingConfig.newBuilder().build())
.build();
Operation resultOperation =
Operation.newBuilder()
Expand Down Expand Up @@ -303,6 +309,8 @@ public void createEndpointTest4() throws Exception {
ModelDeploymentMonitoringJobName.of(
"[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]")
.toString())
.setPredictRequestResponseLoggingConfig(
PredictRequestResponseLoggingConfig.newBuilder().build())
.build();
Operation resultOperation =
Operation.newBuilder()
Expand Down Expand Up @@ -370,6 +378,8 @@ public void getEndpointTest() throws Exception {
ModelDeploymentMonitoringJobName.of(
"[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]")
.toString())
.setPredictRequestResponseLoggingConfig(
PredictRequestResponseLoggingConfig.newBuilder().build())
.build();
mockEndpointService.addResponse(expectedResponse);

Expand Down Expand Up @@ -423,6 +433,8 @@ public void getEndpointTest2() throws Exception {
ModelDeploymentMonitoringJobName.of(
"[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]")
.toString())
.setPredictRequestResponseLoggingConfig(
PredictRequestResponseLoggingConfig.newBuilder().build())
.build();
mockEndpointService.addResponse(expectedResponse);

Expand Down Expand Up @@ -564,6 +576,8 @@ public void updateEndpointTest() throws Exception {
ModelDeploymentMonitoringJobName.of(
"[PROJECT]", "[LOCATION]", "[MODEL_DEPLOYMENT_MONITORING_JOB]")
.toString())
.setPredictRequestResponseLoggingConfig(
PredictRequestResponseLoggingConfig.newBuilder().build())
.build();
mockEndpointService.addResponse(expectedResponse);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,39 +45,37 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
static {
java.lang.String[] descriptorData = {
"\n+google/cloud/aiplatform/v1/annotation."
+ "proto\022\032google.cloud.aiplatform.v1\032\034googl"
+ "e/api/annotations.proto\032\037google/api/fiel"
+ "d_behavior.proto\032\031google/api/resource.pr"
+ "oto\0326google/cloud/aiplatform/v1/user_act"
+ "ion_reference.proto\032\034google/protobuf/str"
+ "uct.proto\032\037google/protobuf/timestamp.pro"
+ "to\"\316\004\n\nAnnotation\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\037\n\022"
+ "payload_schema_uri\030\002 \001(\tB\003\340A\002\022,\n\007payload"
+ "\030\003 \001(\0132\026.google.protobuf.ValueB\003\340A\002\0224\n\013c"
+ "reate_time\030\004 \001(\0132\032.google.protobuf.Times"
+ "tampB\003\340A\003\0224\n\013update_time\030\007 \001(\0132\032.google."
+ "protobuf.TimestampB\003\340A\003\022\021\n\004etag\030\010 \001(\tB\003\340"
+ "A\001\022O\n\021annotation_source\030\005 \001(\0132/.google.c"
+ "loud.aiplatform.v1.UserActionReferenceB\003"
+ "\340A\003\022G\n\006labels\030\006 \003(\01322.google.cloud.aipla"
+ "tform.v1.Annotation.LabelsEntryB\003\340A\001\032-\n\013"
+ "LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:"
+ "\0028\001:\225\001\352A\221\001\n$aiplatform.googleapis.com/An"
+ "notation\022iprojects/{project}/locations/{"
+ "location}/datasets/{dataset}/dataItems/{"
+ "data_item}/annotations/{annotation}B\323\001\n\036"
+ "com.google.cloud.aiplatform.v1B\017Annotati"
+ "onProtoP\001ZDgoogle.golang.org/genproto/go"
+ "ogleapis/cloud/aiplatform/v1;aiplatform\252"
+ "\002\032Google.Cloud.AIPlatform.V1\312\002\032Google\\Cl"
+ "oud\\AIPlatform\\V1\352\002\035Google::Cloud::AIPla"
+ "tform::V1b\006proto3"
+ "proto\022\032google.cloud.aiplatform.v1\032\037googl"
+ "e/api/field_behavior.proto\032\031google/api/r"
+ "esource.proto\0326google/cloud/aiplatform/v"
+ "1/user_action_reference.proto\032\034google/pr"
+ "otobuf/struct.proto\032\037google/protobuf/tim"
+ "estamp.proto\"\316\004\n\nAnnotation\022\021\n\004name\030\001 \001("
+ "\tB\003\340A\003\022\037\n\022payload_schema_uri\030\002 \001(\tB\003\340A\002\022"
+ ",\n\007payload\030\003 \001(\0132\026.google.protobuf.Value"
+ "B\003\340A\002\0224\n\013create_time\030\004 \001(\0132\032.google.prot"
+ "obuf.TimestampB\003\340A\003\0224\n\013update_time\030\007 \001(\013"
+ "2\032.google.protobuf.TimestampB\003\340A\003\022\021\n\004eta"
+ "g\030\010 \001(\tB\003\340A\001\022O\n\021annotation_source\030\005 \001(\0132"
+ "/.google.cloud.aiplatform.v1.UserActionR"
+ "eferenceB\003\340A\003\022G\n\006labels\030\006 \003(\01322.google.c"
+ "loud.aiplatform.v1.Annotation.LabelsEntr"
+ "yB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va"
+ "lue\030\002 \001(\t:\0028\001:\225\001\352A\221\001\n$aiplatform.googlea"
+ "pis.com/Annotation\022iprojects/{project}/l"
+ "ocations/{location}/datasets/{dataset}/d"
+ "ataItems/{data_item}/annotations/{annota"
+ "tion}B\323\001\n\036com.google.cloud.aiplatform.v1"
+ "B\017AnnotationProtoP\001ZDgoogle.golang.org/g"
+ "enproto/googleapis/cloud/aiplatform/v1;a"
+ "iplatform\252\002\032Google.Cloud.AIPlatform.V1\312\002"
+ "\032Google\\Cloud\\AIPlatform\\V1\352\002\035Google::Cl"
+ "oud::AIPlatform::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.api.AnnotationsProto.getDescriptor(),
com.google.api.FieldBehaviorProto.getDescriptor(),
com.google.api.ResourceProto.getDescriptor(),
com.google.cloud.aiplatform.v1.UserActionReferenceProto.getDescriptor(),
Expand Down Expand Up @@ -113,7 +111,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
registry.add(com.google.api.ResourceProto.resource);
com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
descriptor, registry);
com.google.api.AnnotationsProto.getDescriptor();
com.google.api.FieldBehaviorProto.getDescriptor();
com.google.api.ResourceProto.getDescriptor();
com.google.cloud.aiplatform.v1.UserActionReferenceProto.getDescriptor();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,31 +41,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
static {
java.lang.String[] descriptorData = {
"\n0google/cloud/aiplatform/v1/annotation_"
+ "spec.proto\022\032google.cloud.aiplatform.v1\032\034"
+ "google/api/annotations.proto\032\037google/api"
+ "/field_behavior.proto\032\031google/api/resour"
+ "ce.proto\032\037google/protobuf/timestamp.prot"
+ "o\"\314\002\n\016AnnotationSpec\022\021\n\004name\030\001 \001(\tB\003\340A\003\022"
+ "\031\n\014display_name\030\002 \001(\tB\003\340A\002\0224\n\013create_tim"
+ "e\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003"
+ "\0224\n\013update_time\030\004 \001(\0132\032.google.protobuf."
+ "TimestampB\003\340A\003\022\021\n\004etag\030\005 \001(\tB\003\340A\001:\214\001\352A\210\001"
+ "\n(aiplatform.googleapis.com/AnnotationSp"
+ "ec\022\\projects/{project}/locations/{locati"
+ "on}/datasets/{dataset}/annotationSpecs/{"
+ "annotation_spec}B\327\001\n\036com.google.cloud.ai"
+ "platform.v1B\023AnnotationSpecProtoP\001ZDgoog"
+ "le.golang.org/genproto/googleapis/cloud/"
+ "aiplatform/v1;aiplatform\252\002\032Google.Cloud."
+ "AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatform\\"
+ "V1\352\002\035Google::Cloud::AIPlatform::V1b\006prot"
+ "o3"
+ "spec.proto\022\032google.cloud.aiplatform.v1\032\037"
+ "google/api/field_behavior.proto\032\031google/"
+ "api/resource.proto\032\037google/protobuf/time"
+ "stamp.proto\"\314\002\n\016AnnotationSpec\022\021\n\004name\030\001"
+ " \001(\tB\003\340A\003\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\0224\n\013"
+ "create_time\030\003 \001(\0132\032.google.protobuf.Time"
+ "stampB\003\340A\003\0224\n\013update_time\030\004 \001(\0132\032.google"
+ ".protobuf.TimestampB\003\340A\003\022\021\n\004etag\030\005 \001(\tB\003"
+ "\340A\001:\214\001\352A\210\001\n(aiplatform.googleapis.com/An"
+ "notationSpec\022\\projects/{project}/locatio"
+ "ns/{location}/datasets/{dataset}/annotat"
+ "ionSpecs/{annotation_spec}B\327\001\n\036com.googl"
+ "e.cloud.aiplatform.v1B\023AnnotationSpecPro"
+ "toP\001ZDgoogle.golang.org/genproto/googlea"
+ "pis/cloud/aiplatform/v1;aiplatform\252\002\032Goo"
+ "gle.Cloud.AIPlatform.V1\312\002\032Google\\Cloud\\A"
+ "IPlatform\\V1\352\002\035Google::Cloud::AIPlatform"
+ "::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.api.AnnotationsProto.getDescriptor(),
com.google.api.FieldBehaviorProto.getDescriptor(),
com.google.api.ResourceProto.getDescriptor(),
com.google.protobuf.TimestampProto.getDescriptor(),
Expand All @@ -84,7 +82,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
registry.add(com.google.api.ResourceProto.resource);
com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
descriptor, registry);
com.google.api.AnnotationsProto.getDescriptor();
com.google.api.FieldBehaviorProto.getDescriptor();
com.google.api.ResourceProto.getDescriptor();
com.google.protobuf.TimestampProto.getDescriptor();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,43 +45,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
static {
java.lang.String[] descriptorData = {
"\n)google/cloud/aiplatform/v1/artifact.pr"
+ "oto\022\032google.cloud.aiplatform.v1\032\034google/"
+ "api/annotations.proto\032\037google/api/field_"
+ "behavior.proto\032\031google/api/resource.prot"
+ "o\032&google/cloud/aiplatform/v1/value.prot"
+ "o\032\034google/protobuf/struct.proto\032\037google/"
+ "protobuf/timestamp.proto\"\224\005\n\010Artifact\022\021\n"
+ "\004name\030\001 \001(\tB\003\340A\003\022\024\n\014display_name\030\002 \001(\t\022\013"
+ "\n\003uri\030\006 \001(\t\022\014\n\004etag\030\t \001(\t\022@\n\006labels\030\n \003("
+ "\01320.google.cloud.aiplatform.v1.Artifact."
+ "LabelsEntry\0224\n\013create_time\030\013 \001(\0132\032.googl"
+ "e.protobuf.TimestampB\003\340A\003\0224\n\013update_time"
+ "\030\014 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022"
+ "9\n\005state\030\r \001(\0162*.google.cloud.aiplatform"
+ ".v1.Artifact.State\022\024\n\014schema_title\030\016 \001(\t"
+ "\022\026\n\016schema_version\030\017 \001(\t\022)\n\010metadata\030\020 \001"
+ "(\0132\027.google.protobuf.Struct\022\023\n\013descripti"
+ "on\030\021 \001(\t\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005"
+ "value\030\002 \001(\t:\0028\001\"5\n\005State\022\025\n\021STATE_UNSPEC"
+ "IFIED\020\000\022\013\n\007PENDING\020\001\022\010\n\004LIVE\020\002:\206\001\352A\202\001\n\"a"
+ "iplatform.googleapis.com/Artifact\022\\proje"
+ "cts/{project}/locations/{location}/metad"
+ "ataStores/{metadata_store}/artifacts/{ar"
+ "tifact}B\321\001\n\036com.google.cloud.aiplatform."
+ "v1B\rArtifactProtoP\001ZDgoogle.golang.org/g"
+ "enproto/googleapis/cloud/aiplatform/v1;a"
+ "iplatform\252\002\032Google.Cloud.AIPlatform.V1\312\002"
+ "\032Google\\Cloud\\AIPlatform\\V1\352\002\035Google::Cl"
+ "oud::AIPlatform::V1b\006proto3"
+ "oto\022\032google.cloud.aiplatform.v1\032\037google/"
+ "api/field_behavior.proto\032\031google/api/res"
+ "ource.proto\032\034google/protobuf/struct.prot"
+ "o\032\037google/protobuf/timestamp.proto\"\224\005\n\010A"
+ "rtifact\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\014display_na"
+ "me\030\002 \001(\t\022\013\n\003uri\030\006 \001(\t\022\014\n\004etag\030\t \001(\t\022@\n\006l"
+ "abels\030\n \003(\01320.google.cloud.aiplatform.v1"
+ ".Artifact.LabelsEntry\0224\n\013create_time\030\013 \001"
+ "(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013u"
+ "pdate_time\030\014 \001(\0132\032.google.protobuf.Times"
+ "tampB\003\340A\003\0229\n\005state\030\r \001(\0162*.google.cloud."
+ "aiplatform.v1.Artifact.State\022\024\n\014schema_t"
+ "itle\030\016 \001(\t\022\026\n\016schema_version\030\017 \001(\t\022)\n\010me"
+ "tadata\030\020 \001(\0132\027.google.protobuf.Struct\022\023\n"
+ "\013description\030\021 \001(\t\032-\n\013LabelsEntry\022\013\n\003key"
+ "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"5\n\005State\022\025\n\021ST"
+ "ATE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\010\n\004LIVE\020\002"
+ ":\206\001\352A\202\001\n\"aiplatform.googleapis.com/Artif"
+ "act\022\\projects/{project}/locations/{locat"
+ "ion}/metadataStores/{metadata_store}/art"
+ "ifacts/{artifact}B\321\001\n\036com.google.cloud.a"
+ "iplatform.v1B\rArtifactProtoP\001ZDgoogle.go"
+ "lang.org/genproto/googleapis/cloud/aipla"
+ "tform/v1;aiplatform\252\002\032Google.Cloud.AIPla"
+ "tform.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035"
+ "Google::Cloud::AIPlatform::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.api.AnnotationsProto.getDescriptor(),
com.google.api.FieldBehaviorProto.getDescriptor(),
com.google.api.ResourceProto.getDescriptor(),
com.google.cloud.aiplatform.v1.ValueProto.getDescriptor(),
com.google.protobuf.StructProto.getDescriptor(),
com.google.protobuf.TimestampProto.getDescriptor(),
});
Expand Down Expand Up @@ -118,10 +114,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
registry.add(com.google.api.ResourceProto.resource);
com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
descriptor, registry);
com.google.api.AnnotationsProto.getDescriptor();
com.google.api.FieldBehaviorProto.getDescriptor();
com.google.api.ResourceProto.getDescriptor();
com.google.cloud.aiplatform.v1.ValueProto.getDescriptor();
com.google.protobuf.StructProto.getDescriptor();
com.google.protobuf.TimestampProto.getDescriptor();
}
Expand Down
Loading