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

Commit 3935d8f

Browse files
feat: making network arg optional in aiplatform v1 custom_job.proto (#999)
- [ ] Regenerate this pull request now. feat: added SHARED_RESOURCES enum to aiplatform v1 model.proto docs: doc edits to aiplatform v1 dataset_service.proto, job_service.proto, model_service.proto, pipeline_service.proto, saved_query.proto, study.proto, types.proto PiperOrigin-RevId: 463932566 Source-Link: googleapis/googleapis@37aaa1e Source-Link: https://github.com/googleapis/googleapis-gen/commit/081281ce1f8dbf0a7282ae3ecc601fea58355db4 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDgxMjgxY2UxZjhkYmYwYTcyODJhZTNlY2M2MDFmZWE1ODM1NWRiNCJ9 feat: making network arg optional in aiplatform v1beta1 custom_job.proto feat: DeploymentResourcePool and DeployementResourcePoolService added to aiplatform v1beta1 model.proto (cl/463147866) docs: doc edits to aiplatform v1beta1 job_service.proto, model_service.proto, pipeline_service.proto, saved_query.proto, study.proto, types.proto PiperOrigin-RevId: 463932106 Source-Link: googleapis/googleapis@efbe03d Source-Link: https://github.com/googleapis/googleapis-gen/commit/e012128b7d3fc99a996d5a95d3765d406bf2797e Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTAxMjEyOGI3ZDNmYzk5YTk5NmQ1YTk1ZDM3NjVkNDA2YmYyNzk3ZSJ9
1 parent 49fb069 commit 3935d8f

File tree

69 files changed

+1662
-1114
lines changed

Some content is hidden

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

69 files changed

+1662
-1114
lines changed

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

+34-34
Original file line numberDiff line numberDiff line change
@@ -100,44 +100,44 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
100100
+ "ebAccessUrisEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030"
101101
+ "\002 \001(\t:\0028\001:i\352Af\n#aiplatform.googleapis.co"
102102
+ "m/CustomJob\022?projects/{project}/location"
103-
+ "s/{location}/customJobs/{custom_job}\"\266\003\n"
103+
+ "s/{location}/customJobs/{custom_job}\"\271\003\n"
104104
+ "\rCustomJobSpec\022J\n\021worker_pool_specs\030\001 \003("
105105
+ "\0132*.google.cloud.aiplatform.v1.WorkerPoo"
106106
+ "lSpecB\003\340A\002\022:\n\nscheduling\030\003 \001(\0132&.google."
107107
+ "cloud.aiplatform.v1.Scheduling\022\027\n\017servic"
108-
+ "e_account\030\004 \001(\t\0224\n\007network\030\005 \001(\tB#\372A \n\036c"
109-
+ "ompute.googleapis.com/Network\022\037\n\022reserve"
110-
+ "d_ip_ranges\030\r \003(\tB\003\340A\001\022I\n\025base_output_di"
111-
+ "rectory\030\006 \001(\0132*.google.cloud.aiplatform."
112-
+ "v1.GcsDestination\022B\n\013tensorboard\030\007 \001(\tB-"
113-
+ "\340A\001\372A\'\n%aiplatform.googleapis.com/Tensor"
114-
+ "board\022\036\n\021enable_web_access\030\n \001(\010B\003\340A\001\"\206\003"
115-
+ "\n\016WorkerPoolSpec\022C\n\016container_spec\030\006 \001(\013"
116-
+ "2).google.cloud.aiplatform.v1.ContainerS"
117-
+ "pecH\000\022L\n\023python_package_spec\030\007 \001(\0132-.goo"
118-
+ "gle.cloud.aiplatform.v1.PythonPackageSpe"
119-
+ "cH\000\022E\n\014machine_spec\030\001 \001(\0132\'.google.cloud"
120-
+ ".aiplatform.v1.MachineSpecB\006\340A\001\340A\005\022\032\n\rre"
121-
+ "plica_count\030\002 \001(\003B\003\340A\001\022=\n\nnfs_mounts\030\004 \003"
122-
+ "(\0132$.google.cloud.aiplatform.v1.NfsMount"
123-
+ "B\003\340A\001\0227\n\tdisk_spec\030\005 \001(\0132$.google.cloud."
124-
+ "aiplatform.v1.DiskSpecB\006\n\004task\"w\n\rContai"
125-
+ "nerSpec\022\026\n\timage_uri\030\001 \001(\tB\003\340A\002\022\017\n\007comma"
126-
+ "nd\030\002 \003(\t\022\014\n\004args\030\003 \003(\t\022/\n\003env\030\004 \003(\0132\".go"
127-
+ "ogle.cloud.aiplatform.v1.EnvVar\"\252\001\n\021Pyth"
128-
+ "onPackageSpec\022\037\n\022executor_image_uri\030\001 \001("
129-
+ "\tB\003\340A\002\022\031\n\014package_uris\030\002 \003(\tB\003\340A\002\022\032\n\rpyt"
130-
+ "hon_module\030\003 \001(\tB\003\340A\002\022\014\n\004args\030\004 \003(\t\022/\n\003e"
131-
+ "nv\030\005 \003(\0132\".google.cloud.aiplatform.v1.En"
132-
+ "vVar\"_\n\nScheduling\022*\n\007timeout\030\001 \001(\0132\031.go"
133-
+ "ogle.protobuf.Duration\022%\n\035restart_job_on"
134-
+ "_worker_restart\030\003 \001(\010B\322\001\n\036com.google.clo"
135-
+ "ud.aiplatform.v1B\016CustomJobProtoP\001ZDgoog"
136-
+ "le.golang.org/genproto/googleapis/cloud/"
137-
+ "aiplatform/v1;aiplatform\252\002\032Google.Cloud."
138-
+ "AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatform\\"
139-
+ "V1\352\002\035Google::Cloud::AIPlatform::V1b\006prot"
140-
+ "o3"
108+
+ "e_account\030\004 \001(\t\0227\n\007network\030\005 \001(\tB&\340A\001\372A "
109+
+ "\n\036compute.googleapis.com/Network\022\037\n\022rese"
110+
+ "rved_ip_ranges\030\r \003(\tB\003\340A\001\022I\n\025base_output"
111+
+ "_directory\030\006 \001(\0132*.google.cloud.aiplatfo"
112+
+ "rm.v1.GcsDestination\022B\n\013tensorboard\030\007 \001("
113+
+ "\tB-\340A\001\372A\'\n%aiplatform.googleapis.com/Ten"
114+
+ "sorboard\022\036\n\021enable_web_access\030\n \001(\010B\003\340A\001"
115+
+ "\"\206\003\n\016WorkerPoolSpec\022C\n\016container_spec\030\006 "
116+
+ "\001(\0132).google.cloud.aiplatform.v1.Contain"
117+
+ "erSpecH\000\022L\n\023python_package_spec\030\007 \001(\0132-."
118+
+ "google.cloud.aiplatform.v1.PythonPackage"
119+
+ "SpecH\000\022E\n\014machine_spec\030\001 \001(\0132\'.google.cl"
120+
+ "oud.aiplatform.v1.MachineSpecB\006\340A\001\340A\005\022\032\n"
121+
+ "\rreplica_count\030\002 \001(\003B\003\340A\001\022=\n\nnfs_mounts\030"
122+
+ "\004 \003(\0132$.google.cloud.aiplatform.v1.NfsMo"
123+
+ "untB\003\340A\001\0227\n\tdisk_spec\030\005 \001(\0132$.google.clo"
124+
+ "ud.aiplatform.v1.DiskSpecB\006\n\004task\"w\n\rCon"
125+
+ "tainerSpec\022\026\n\timage_uri\030\001 \001(\tB\003\340A\002\022\017\n\007co"
126+
+ "mmand\030\002 \003(\t\022\014\n\004args\030\003 \003(\t\022/\n\003env\030\004 \003(\0132\""
127+
+ ".google.cloud.aiplatform.v1.EnvVar\"\252\001\n\021P"
128+
+ "ythonPackageSpec\022\037\n\022executor_image_uri\030\001"
129+
+ " \001(\tB\003\340A\002\022\031\n\014package_uris\030\002 \003(\tB\003\340A\002\022\032\n\r"
130+
+ "python_module\030\003 \001(\tB\003\340A\002\022\014\n\004args\030\004 \003(\t\022/"
131+
+ "\n\003env\030\005 \003(\0132\".google.cloud.aiplatform.v1"
132+
+ ".EnvVar\"_\n\nScheduling\022*\n\007timeout\030\001 \001(\0132\031"
133+
+ ".google.protobuf.Duration\022%\n\035restart_job"
134+
+ "_on_worker_restart\030\003 \001(\010B\322\001\n\036com.google."
135+
+ "cloud.aiplatform.v1B\016CustomJobProtoP\001ZDg"
136+
+ "oogle.golang.org/genproto/googleapis/clo"
137+
+ "ud/aiplatform/v1;aiplatform\252\002\032Google.Clo"
138+
+ "ud.AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatfo"
139+
+ "rm\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006p"
140+
+ "roto3"
141141
};
142142
descriptor =
143143
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(

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

+30-16
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*
2424
* <pre>
2525
* Represents the spec of a CustomJob.
26-
* Next Id: 14
26+
* Next Id: 15
2727
* </pre>
2828
*
2929
* Protobuf type {@code google.cloud.aiplatform.v1.CustomJobSpec}
@@ -399,7 +399,7 @@ public com.google.protobuf.ByteString getServiceAccountBytes() {
399399
*
400400
*
401401
* <pre>
402-
* The full name of the Compute Engine
402+
* Optional. The full name of the Compute Engine
403403
* [network](/compute/docs/networks-and-firewalls#networks) to which the Job
404404
* should be peered. For example, `projects/12345/global/networks/myVPC`.
405405
* [Format](/compute/docs/reference/rest/v1/networks/insert)
@@ -412,7 +412,9 @@ public com.google.protobuf.ByteString getServiceAccountBytes() {
412412
* If this field is left unspecified, the job is not peered with any network.
413413
* </pre>
414414
*
415-
* <code>string network = 5 [(.google.api.resource_reference) = { ... }</code>
415+
* <code>
416+
* string network = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
417+
* </code>
416418
*
417419
* @return The network.
418420
*/
@@ -432,7 +434,7 @@ public java.lang.String getNetwork() {
432434
*
433435
*
434436
* <pre>
435-
* The full name of the Compute Engine
437+
* Optional. The full name of the Compute Engine
436438
* [network](/compute/docs/networks-and-firewalls#networks) to which the Job
437439
* should be peered. For example, `projects/12345/global/networks/myVPC`.
438440
* [Format](/compute/docs/reference/rest/v1/networks/insert)
@@ -445,7 +447,9 @@ public java.lang.String getNetwork() {
445447
* If this field is left unspecified, the job is not peered with any network.
446448
* </pre>
447449
*
448-
* <code>string network = 5 [(.google.api.resource_reference) = { ... }</code>
450+
* <code>
451+
* string network = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
452+
* </code>
449453
*
450454
* @return The bytes for network.
451455
*/
@@ -964,7 +968,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
964968
*
965969
* <pre>
966970
* Represents the spec of a CustomJob.
967-
* Next Id: 14
971+
* Next Id: 15
968972
* </pre>
969973
*
970974
* Protobuf type {@code google.cloud.aiplatform.v1.CustomJobSpec}
@@ -1978,7 +1982,7 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) {
19781982
*
19791983
*
19801984
* <pre>
1981-
* The full name of the Compute Engine
1985+
* Optional. The full name of the Compute Engine
19821986
* [network](/compute/docs/networks-and-firewalls#networks) to which the Job
19831987
* should be peered. For example, `projects/12345/global/networks/myVPC`.
19841988
* [Format](/compute/docs/reference/rest/v1/networks/insert)
@@ -1991,7 +1995,9 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) {
19911995
* If this field is left unspecified, the job is not peered with any network.
19921996
* </pre>
19931997
*
1994-
* <code>string network = 5 [(.google.api.resource_reference) = { ... }</code>
1998+
* <code>
1999+
* string network = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
2000+
* </code>
19952001
*
19962002
* @return The network.
19972003
*/
@@ -2010,7 +2016,7 @@ public java.lang.String getNetwork() {
20102016
*
20112017
*
20122018
* <pre>
2013-
* The full name of the Compute Engine
2019+
* Optional. The full name of the Compute Engine
20142020
* [network](/compute/docs/networks-and-firewalls#networks) to which the Job
20152021
* should be peered. For example, `projects/12345/global/networks/myVPC`.
20162022
* [Format](/compute/docs/reference/rest/v1/networks/insert)
@@ -2023,7 +2029,9 @@ public java.lang.String getNetwork() {
20232029
* If this field is left unspecified, the job is not peered with any network.
20242030
* </pre>
20252031
*
2026-
* <code>string network = 5 [(.google.api.resource_reference) = { ... }</code>
2032+
* <code>
2033+
* string network = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
2034+
* </code>
20272035
*
20282036
* @return The bytes for network.
20292037
*/
@@ -2042,7 +2050,7 @@ public com.google.protobuf.ByteString getNetworkBytes() {
20422050
*
20432051
*
20442052
* <pre>
2045-
* The full name of the Compute Engine
2053+
* Optional. The full name of the Compute Engine
20462054
* [network](/compute/docs/networks-and-firewalls#networks) to which the Job
20472055
* should be peered. For example, `projects/12345/global/networks/myVPC`.
20482056
* [Format](/compute/docs/reference/rest/v1/networks/insert)
@@ -2055,7 +2063,9 @@ public com.google.protobuf.ByteString getNetworkBytes() {
20552063
* If this field is left unspecified, the job is not peered with any network.
20562064
* </pre>
20572065
*
2058-
* <code>string network = 5 [(.google.api.resource_reference) = { ... }</code>
2066+
* <code>
2067+
* string network = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
2068+
* </code>
20592069
*
20602070
* @param value The network to set.
20612071
* @return This builder for chaining.
@@ -2073,7 +2083,7 @@ public Builder setNetwork(java.lang.String value) {
20732083
*
20742084
*
20752085
* <pre>
2076-
* The full name of the Compute Engine
2086+
* Optional. The full name of the Compute Engine
20772087
* [network](/compute/docs/networks-and-firewalls#networks) to which the Job
20782088
* should be peered. For example, `projects/12345/global/networks/myVPC`.
20792089
* [Format](/compute/docs/reference/rest/v1/networks/insert)
@@ -2086,7 +2096,9 @@ public Builder setNetwork(java.lang.String value) {
20862096
* If this field is left unspecified, the job is not peered with any network.
20872097
* </pre>
20882098
*
2089-
* <code>string network = 5 [(.google.api.resource_reference) = { ... }</code>
2099+
* <code>
2100+
* string network = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
2101+
* </code>
20902102
*
20912103
* @return This builder for chaining.
20922104
*/
@@ -2100,7 +2112,7 @@ public Builder clearNetwork() {
21002112
*
21012113
*
21022114
* <pre>
2103-
* The full name of the Compute Engine
2115+
* Optional. The full name of the Compute Engine
21042116
* [network](/compute/docs/networks-and-firewalls#networks) to which the Job
21052117
* should be peered. For example, `projects/12345/global/networks/myVPC`.
21062118
* [Format](/compute/docs/reference/rest/v1/networks/insert)
@@ -2113,7 +2125,9 @@ public Builder clearNetwork() {
21132125
* If this field is left unspecified, the job is not peered with any network.
21142126
* </pre>
21152127
*
2116-
* <code>string network = 5 [(.google.api.resource_reference) = { ... }</code>
2128+
* <code>
2129+
* string network = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
2130+
* </code>
21172131
*
21182132
* @param value The bytes for network to set.
21192133
* @return This builder for chaining.

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

+8-4
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public interface CustomJobSpecOrBuilder
167167
*
168168
*
169169
* <pre>
170-
* The full name of the Compute Engine
170+
* Optional. The full name of the Compute Engine
171171
* [network](/compute/docs/networks-and-firewalls#networks) to which the Job
172172
* should be peered. For example, `projects/12345/global/networks/myVPC`.
173173
* [Format](/compute/docs/reference/rest/v1/networks/insert)
@@ -180,7 +180,9 @@ public interface CustomJobSpecOrBuilder
180180
* If this field is left unspecified, the job is not peered with any network.
181181
* </pre>
182182
*
183-
* <code>string network = 5 [(.google.api.resource_reference) = { ... }</code>
183+
* <code>
184+
* string network = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
185+
* </code>
184186
*
185187
* @return The network.
186188
*/
@@ -189,7 +191,7 @@ public interface CustomJobSpecOrBuilder
189191
*
190192
*
191193
* <pre>
192-
* The full name of the Compute Engine
194+
* Optional. The full name of the Compute Engine
193195
* [network](/compute/docs/networks-and-firewalls#networks) to which the Job
194196
* should be peered. For example, `projects/12345/global/networks/myVPC`.
195197
* [Format](/compute/docs/reference/rest/v1/networks/insert)
@@ -202,7 +204,9 @@ public interface CustomJobSpecOrBuilder
202204
* If this field is left unspecified, the job is not peered with any network.
203205
* </pre>
204206
*
205-
* <code>string network = 5 [(.google.api.resource_reference) = { ... }</code>
207+
* <code>
208+
* string network = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
209+
* </code>
206210
*
207211
* @return The bytes for network.
208212
*/

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

+10-10
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
139139
*
140140
*
141141
* <pre>
142-
* A list of bool values.
142+
* A list of double values.
143143
* </pre>
144144
*
145145
* <code>repeated double values = 1;</code>
@@ -154,7 +154,7 @@ public java.util.List<java.lang.Double> getValuesList() {
154154
*
155155
*
156156
* <pre>
157-
* A list of bool values.
157+
* A list of double values.
158158
* </pre>
159159
*
160160
* <code>repeated double values = 1;</code>
@@ -168,7 +168,7 @@ public int getValuesCount() {
168168
*
169169
*
170170
* <pre>
171-
* A list of bool values.
171+
* A list of double values.
172172
* </pre>
173173
*
174174
* <code>repeated double values = 1;</code>
@@ -537,7 +537,7 @@ private void ensureValuesIsMutable() {
537537
*
538538
*
539539
* <pre>
540-
* A list of bool values.
540+
* A list of double values.
541541
* </pre>
542542
*
543543
* <code>repeated double values = 1;</code>
@@ -553,7 +553,7 @@ public java.util.List<java.lang.Double> getValuesList() {
553553
*
554554
*
555555
* <pre>
556-
* A list of bool values.
556+
* A list of double values.
557557
* </pre>
558558
*
559559
* <code>repeated double values = 1;</code>
@@ -567,7 +567,7 @@ public int getValuesCount() {
567567
*
568568
*
569569
* <pre>
570-
* A list of bool values.
570+
* A list of double values.
571571
* </pre>
572572
*
573573
* <code>repeated double values = 1;</code>
@@ -582,7 +582,7 @@ public double getValues(int index) {
582582
*
583583
*
584584
* <pre>
585-
* A list of bool values.
585+
* A list of double values.
586586
* </pre>
587587
*
588588
* <code>repeated double values = 1;</code>
@@ -601,7 +601,7 @@ public Builder setValues(int index, double value) {
601601
*
602602
*
603603
* <pre>
604-
* A list of bool values.
604+
* A list of double values.
605605
* </pre>
606606
*
607607
* <code>repeated double values = 1;</code>
@@ -619,7 +619,7 @@ public Builder addValues(double value) {
619619
*
620620
*
621621
* <pre>
622-
* A list of bool values.
622+
* A list of double values.
623623
* </pre>
624624
*
625625
* <code>repeated double values = 1;</code>
@@ -637,7 +637,7 @@ public Builder addAllValues(java.lang.Iterable<? extends java.lang.Double> value
637637
*
638638
*
639639
* <pre>
640-
* A list of bool values.
640+
* A list of double values.
641641
* </pre>
642642
*
643643
* <code>repeated double values = 1;</code>

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public interface DoubleArrayOrBuilder
2727
*
2828
*
2929
* <pre>
30-
* A list of bool values.
30+
* A list of double values.
3131
* </pre>
3232
*
3333
* <code>repeated double values = 1;</code>
@@ -39,7 +39,7 @@ public interface DoubleArrayOrBuilder
3939
*
4040
*
4141
* <pre>
42-
* A list of bool values.
42+
* A list of double values.
4343
* </pre>
4444
*
4545
* <code>repeated double values = 1;</code>
@@ -51,7 +51,7 @@ public interface DoubleArrayOrBuilder
5151
*
5252
*
5353
* <pre>
54-
* A list of bool values.
54+
* A list of double values.
5555
* </pre>
5656
*
5757
* <code>repeated double values = 1;</code>

0 commit comments

Comments
 (0)