@@ -199,6 +199,13 @@ private DeployedModel(
199
199
privateEndpoints_ = subBuilder .buildPartial ();
200
200
}
201
201
202
+ break ;
203
+ }
204
+ case 138 :
205
+ {
206
+ java .lang .String s = input .readStringRequireUtf8 ();
207
+ predictionResourcesCase_ = 17 ;
208
+ predictionResources_ = s ;
202
209
break ;
203
210
}
204
211
case 146 :
@@ -253,6 +260,7 @@ public enum PredictionResourcesCase
253
260
com .google .protobuf .AbstractMessage .InternalOneOfEnum {
254
261
DEDICATED_RESOURCES (7 ),
255
262
AUTOMATIC_RESOURCES (8 ),
263
+ SHARED_RESOURCES (17 ),
256
264
PREDICTIONRESOURCES_NOT_SET (0 );
257
265
private final int value ;
258
266
@@ -275,6 +283,8 @@ public static PredictionResourcesCase forNumber(int value) {
275
283
return DEDICATED_RESOURCES ;
276
284
case 8 :
277
285
return AUTOMATIC_RESOURCES ;
286
+ case 17 :
287
+ return SHARED_RESOURCES ;
278
288
case 0 :
279
289
return PREDICTIONRESOURCES_NOT_SET ;
280
290
default :
@@ -401,6 +411,82 @@ public com.google.cloud.aiplatform.v1beta1.AutomaticResources getAutomaticResour
401
411
return com .google .cloud .aiplatform .v1beta1 .AutomaticResources .getDefaultInstance ();
402
412
}
403
413
414
+ public static final int SHARED_RESOURCES_FIELD_NUMBER = 17 ;
415
+ /**
416
+ *
417
+ *
418
+ * <pre>
419
+ * The resource name of the shared DeploymentResourcePool to deploy on.
420
+ * Format:
421
+ * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
422
+ * </pre>
423
+ *
424
+ * <code>string shared_resources = 17 [(.google.api.resource_reference) = { ... }</code>
425
+ *
426
+ * @return Whether the sharedResources field is set.
427
+ */
428
+ public boolean hasSharedResources () {
429
+ return predictionResourcesCase_ == 17 ;
430
+ }
431
+ /**
432
+ *
433
+ *
434
+ * <pre>
435
+ * The resource name of the shared DeploymentResourcePool to deploy on.
436
+ * Format:
437
+ * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
438
+ * </pre>
439
+ *
440
+ * <code>string shared_resources = 17 [(.google.api.resource_reference) = { ... }</code>
441
+ *
442
+ * @return The sharedResources.
443
+ */
444
+ public java .lang .String getSharedResources () {
445
+ java .lang .Object ref = "" ;
446
+ if (predictionResourcesCase_ == 17 ) {
447
+ ref = predictionResources_ ;
448
+ }
449
+ if (ref instanceof java .lang .String ) {
450
+ return (java .lang .String ) ref ;
451
+ } else {
452
+ com .google .protobuf .ByteString bs = (com .google .protobuf .ByteString ) ref ;
453
+ java .lang .String s = bs .toStringUtf8 ();
454
+ if (predictionResourcesCase_ == 17 ) {
455
+ predictionResources_ = s ;
456
+ }
457
+ return s ;
458
+ }
459
+ }
460
+ /**
461
+ *
462
+ *
463
+ * <pre>
464
+ * The resource name of the shared DeploymentResourcePool to deploy on.
465
+ * Format:
466
+ * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
467
+ * </pre>
468
+ *
469
+ * <code>string shared_resources = 17 [(.google.api.resource_reference) = { ... }</code>
470
+ *
471
+ * @return The bytes for sharedResources.
472
+ */
473
+ public com .google .protobuf .ByteString getSharedResourcesBytes () {
474
+ java .lang .Object ref = "" ;
475
+ if (predictionResourcesCase_ == 17 ) {
476
+ ref = predictionResources_ ;
477
+ }
478
+ if (ref instanceof java .lang .String ) {
479
+ com .google .protobuf .ByteString b =
480
+ com .google .protobuf .ByteString .copyFromUtf8 ((java .lang .String ) ref );
481
+ if (predictionResourcesCase_ == 17 ) {
482
+ predictionResources_ = b ;
483
+ }
484
+ return b ;
485
+ } else {
486
+ return (com .google .protobuf .ByteString ) ref ;
487
+ }
488
+ }
489
+
404
490
public static final int ID_FIELD_NUMBER = 1 ;
405
491
private volatile java .lang .Object id_ ;
406
492
/**
@@ -943,6 +1029,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
943
1029
if (privateEndpoints_ != null ) {
944
1030
output .writeMessage (14 , getPrivateEndpoints ());
945
1031
}
1032
+ if (predictionResourcesCase_ == 17 ) {
1033
+ com .google .protobuf .GeneratedMessageV3 .writeString (output , 17 , predictionResources_ );
1034
+ }
946
1035
if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (modelVersionId_ )) {
947
1036
com .google .protobuf .GeneratedMessageV3 .writeString (output , 18 , modelVersionId_ );
948
1037
}
@@ -992,6 +1081,9 @@ public int getSerializedSize() {
992
1081
if (privateEndpoints_ != null ) {
993
1082
size += com .google .protobuf .CodedOutputStream .computeMessageSize (14 , getPrivateEndpoints ());
994
1083
}
1084
+ if (predictionResourcesCase_ == 17 ) {
1085
+ size += com .google .protobuf .GeneratedMessageV3 .computeStringSize (17 , predictionResources_ );
1086
+ }
995
1087
if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (modelVersionId_ )) {
996
1088
size += com .google .protobuf .GeneratedMessageV3 .computeStringSize (18 , modelVersionId_ );
997
1089
}
@@ -1038,6 +1130,9 @@ public boolean equals(final java.lang.Object obj) {
1038
1130
case 8 :
1039
1131
if (!getAutomaticResources ().equals (other .getAutomaticResources ())) return false ;
1040
1132
break ;
1133
+ case 17 :
1134
+ if (!getSharedResources ().equals (other .getSharedResources ())) return false ;
1135
+ break ;
1041
1136
case 0 :
1042
1137
default :
1043
1138
}
@@ -1087,6 +1182,10 @@ public int hashCode() {
1087
1182
hash = (37 * hash ) + AUTOMATIC_RESOURCES_FIELD_NUMBER ;
1088
1183
hash = (53 * hash ) + getAutomaticResources ().hashCode ();
1089
1184
break ;
1185
+ case 17 :
1186
+ hash = (37 * hash ) + SHARED_RESOURCES_FIELD_NUMBER ;
1187
+ hash = (53 * hash ) + getSharedResources ().hashCode ();
1188
+ break ;
1090
1189
case 0 :
1091
1190
default :
1092
1191
}
@@ -1310,6 +1409,9 @@ public com.google.cloud.aiplatform.v1beta1.DeployedModel buildPartial() {
1310
1409
result .predictionResources_ = automaticResourcesBuilder_ .build ();
1311
1410
}
1312
1411
}
1412
+ if (predictionResourcesCase_ == 17 ) {
1413
+ result .predictionResources_ = predictionResources_ ;
1414
+ }
1313
1415
result .id_ = id_ ;
1314
1416
result .model_ = model_ ;
1315
1417
result .modelVersionId_ = modelVersionId_ ;
@@ -1429,6 +1531,13 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeployedModel other
1429
1531
mergeAutomaticResources (other .getAutomaticResources ());
1430
1532
break ;
1431
1533
}
1534
+ case SHARED_RESOURCES :
1535
+ {
1536
+ predictionResourcesCase_ = 17 ;
1537
+ predictionResources_ = other .predictionResources_ ;
1538
+ onChanged ();
1539
+ break ;
1540
+ }
1432
1541
case PREDICTIONRESOURCES_NOT_SET :
1433
1542
{
1434
1543
break ;
@@ -1928,6 +2037,152 @@ public Builder clearAutomaticResources() {
1928
2037
return automaticResourcesBuilder_ ;
1929
2038
}
1930
2039
2040
+ /**
2041
+ *
2042
+ *
2043
+ * <pre>
2044
+ * The resource name of the shared DeploymentResourcePool to deploy on.
2045
+ * Format:
2046
+ * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
2047
+ * </pre>
2048
+ *
2049
+ * <code>string shared_resources = 17 [(.google.api.resource_reference) = { ... }</code>
2050
+ *
2051
+ * @return Whether the sharedResources field is set.
2052
+ */
2053
+ @ java .lang .Override
2054
+ public boolean hasSharedResources () {
2055
+ return predictionResourcesCase_ == 17 ;
2056
+ }
2057
+ /**
2058
+ *
2059
+ *
2060
+ * <pre>
2061
+ * The resource name of the shared DeploymentResourcePool to deploy on.
2062
+ * Format:
2063
+ * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
2064
+ * </pre>
2065
+ *
2066
+ * <code>string shared_resources = 17 [(.google.api.resource_reference) = { ... }</code>
2067
+ *
2068
+ * @return The sharedResources.
2069
+ */
2070
+ @ java .lang .Override
2071
+ public java .lang .String getSharedResources () {
2072
+ java .lang .Object ref = "" ;
2073
+ if (predictionResourcesCase_ == 17 ) {
2074
+ ref = predictionResources_ ;
2075
+ }
2076
+ if (!(ref instanceof java .lang .String )) {
2077
+ com .google .protobuf .ByteString bs = (com .google .protobuf .ByteString ) ref ;
2078
+ java .lang .String s = bs .toStringUtf8 ();
2079
+ if (predictionResourcesCase_ == 17 ) {
2080
+ predictionResources_ = s ;
2081
+ }
2082
+ return s ;
2083
+ } else {
2084
+ return (java .lang .String ) ref ;
2085
+ }
2086
+ }
2087
+ /**
2088
+ *
2089
+ *
2090
+ * <pre>
2091
+ * The resource name of the shared DeploymentResourcePool to deploy on.
2092
+ * Format:
2093
+ * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
2094
+ * </pre>
2095
+ *
2096
+ * <code>string shared_resources = 17 [(.google.api.resource_reference) = { ... }</code>
2097
+ *
2098
+ * @return The bytes for sharedResources.
2099
+ */
2100
+ @ java .lang .Override
2101
+ public com .google .protobuf .ByteString getSharedResourcesBytes () {
2102
+ java .lang .Object ref = "" ;
2103
+ if (predictionResourcesCase_ == 17 ) {
2104
+ ref = predictionResources_ ;
2105
+ }
2106
+ if (ref instanceof String ) {
2107
+ com .google .protobuf .ByteString b =
2108
+ com .google .protobuf .ByteString .copyFromUtf8 ((java .lang .String ) ref );
2109
+ if (predictionResourcesCase_ == 17 ) {
2110
+ predictionResources_ = b ;
2111
+ }
2112
+ return b ;
2113
+ } else {
2114
+ return (com .google .protobuf .ByteString ) ref ;
2115
+ }
2116
+ }
2117
+ /**
2118
+ *
2119
+ *
2120
+ * <pre>
2121
+ * The resource name of the shared DeploymentResourcePool to deploy on.
2122
+ * Format:
2123
+ * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
2124
+ * </pre>
2125
+ *
2126
+ * <code>string shared_resources = 17 [(.google.api.resource_reference) = { ... }</code>
2127
+ *
2128
+ * @param value The sharedResources to set.
2129
+ * @return This builder for chaining.
2130
+ */
2131
+ public Builder setSharedResources (java .lang .String value ) {
2132
+ if (value == null ) {
2133
+ throw new NullPointerException ();
2134
+ }
2135
+ predictionResourcesCase_ = 17 ;
2136
+ predictionResources_ = value ;
2137
+ onChanged ();
2138
+ return this ;
2139
+ }
2140
+ /**
2141
+ *
2142
+ *
2143
+ * <pre>
2144
+ * The resource name of the shared DeploymentResourcePool to deploy on.
2145
+ * Format:
2146
+ * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
2147
+ * </pre>
2148
+ *
2149
+ * <code>string shared_resources = 17 [(.google.api.resource_reference) = { ... }</code>
2150
+ *
2151
+ * @return This builder for chaining.
2152
+ */
2153
+ public Builder clearSharedResources () {
2154
+ if (predictionResourcesCase_ == 17 ) {
2155
+ predictionResourcesCase_ = 0 ;
2156
+ predictionResources_ = null ;
2157
+ onChanged ();
2158
+ }
2159
+ return this ;
2160
+ }
2161
+ /**
2162
+ *
2163
+ *
2164
+ * <pre>
2165
+ * The resource name of the shared DeploymentResourcePool to deploy on.
2166
+ * Format:
2167
+ * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
2168
+ * </pre>
2169
+ *
2170
+ * <code>string shared_resources = 17 [(.google.api.resource_reference) = { ... }</code>
2171
+ *
2172
+ * @param value The bytes for sharedResources to set.
2173
+ * @return This builder for chaining.
2174
+ */
2175
+ public Builder setSharedResourcesBytes (com .google .protobuf .ByteString value ) {
2176
+ if (value == null ) {
2177
+ throw new NullPointerException ();
2178
+ }
2179
+ checkByteStringIsUtf8 (value );
2180
+ predictionResourcesCase_ = 17 ;
2181
+ predictionResources_ = value ;
2182
+ onChanged ();
2183
+ return this ;
2184
+ }
2185
+
1931
2186
private java .lang .Object id_ = "" ;
1932
2187
/**
1933
2188
*
0 commit comments