@@ -199,6 +199,13 @@ private DeployedModel(
199199 privateEndpoints_ = subBuilder .buildPartial ();
200200 }
201201
202+ break ;
203+ }
204+ case 138 :
205+ {
206+ java .lang .String s = input .readStringRequireUtf8 ();
207+ predictionResourcesCase_ = 17 ;
208+ predictionResources_ = s ;
202209 break ;
203210 }
204211 case 146 :
@@ -253,6 +260,7 @@ public enum PredictionResourcesCase
253260 com .google .protobuf .AbstractMessage .InternalOneOfEnum {
254261 DEDICATED_RESOURCES (7 ),
255262 AUTOMATIC_RESOURCES (8 ),
263+ SHARED_RESOURCES (17 ),
256264 PREDICTIONRESOURCES_NOT_SET (0 );
257265 private final int value ;
258266
@@ -275,6 +283,8 @@ public static PredictionResourcesCase forNumber(int value) {
275283 return DEDICATED_RESOURCES ;
276284 case 8 :
277285 return AUTOMATIC_RESOURCES ;
286+ case 17 :
287+ return SHARED_RESOURCES ;
278288 case 0 :
279289 return PREDICTIONRESOURCES_NOT_SET ;
280290 default :
@@ -401,6 +411,82 @@ public com.google.cloud.aiplatform.v1beta1.AutomaticResources getAutomaticResour
401411 return com .google .cloud .aiplatform .v1beta1 .AutomaticResources .getDefaultInstance ();
402412 }
403413
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+
404490 public static final int ID_FIELD_NUMBER = 1 ;
405491 private volatile java .lang .Object id_ ;
406492 /**
@@ -943,6 +1029,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
9431029 if (privateEndpoints_ != null ) {
9441030 output .writeMessage (14 , getPrivateEndpoints ());
9451031 }
1032+ if (predictionResourcesCase_ == 17 ) {
1033+ com .google .protobuf .GeneratedMessageV3 .writeString (output , 17 , predictionResources_ );
1034+ }
9461035 if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (modelVersionId_ )) {
9471036 com .google .protobuf .GeneratedMessageV3 .writeString (output , 18 , modelVersionId_ );
9481037 }
@@ -992,6 +1081,9 @@ public int getSerializedSize() {
9921081 if (privateEndpoints_ != null ) {
9931082 size += com .google .protobuf .CodedOutputStream .computeMessageSize (14 , getPrivateEndpoints ());
9941083 }
1084+ if (predictionResourcesCase_ == 17 ) {
1085+ size += com .google .protobuf .GeneratedMessageV3 .computeStringSize (17 , predictionResources_ );
1086+ }
9951087 if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (modelVersionId_ )) {
9961088 size += com .google .protobuf .GeneratedMessageV3 .computeStringSize (18 , modelVersionId_ );
9971089 }
@@ -1038,6 +1130,9 @@ public boolean equals(final java.lang.Object obj) {
10381130 case 8 :
10391131 if (!getAutomaticResources ().equals (other .getAutomaticResources ())) return false ;
10401132 break ;
1133+ case 17 :
1134+ if (!getSharedResources ().equals (other .getSharedResources ())) return false ;
1135+ break ;
10411136 case 0 :
10421137 default :
10431138 }
@@ -1087,6 +1182,10 @@ public int hashCode() {
10871182 hash = (37 * hash ) + AUTOMATIC_RESOURCES_FIELD_NUMBER ;
10881183 hash = (53 * hash ) + getAutomaticResources ().hashCode ();
10891184 break ;
1185+ case 17 :
1186+ hash = (37 * hash ) + SHARED_RESOURCES_FIELD_NUMBER ;
1187+ hash = (53 * hash ) + getSharedResources ().hashCode ();
1188+ break ;
10901189 case 0 :
10911190 default :
10921191 }
@@ -1310,6 +1409,9 @@ public com.google.cloud.aiplatform.v1beta1.DeployedModel buildPartial() {
13101409 result .predictionResources_ = automaticResourcesBuilder_ .build ();
13111410 }
13121411 }
1412+ if (predictionResourcesCase_ == 17 ) {
1413+ result .predictionResources_ = predictionResources_ ;
1414+ }
13131415 result .id_ = id_ ;
13141416 result .model_ = model_ ;
13151417 result .modelVersionId_ = modelVersionId_ ;
@@ -1429,6 +1531,13 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeployedModel other
14291531 mergeAutomaticResources (other .getAutomaticResources ());
14301532 break ;
14311533 }
1534+ case SHARED_RESOURCES :
1535+ {
1536+ predictionResourcesCase_ = 17 ;
1537+ predictionResources_ = other .predictionResources_ ;
1538+ onChanged ();
1539+ break ;
1540+ }
14321541 case PREDICTIONRESOURCES_NOT_SET :
14331542 {
14341543 break ;
@@ -1928,6 +2037,152 @@ public Builder clearAutomaticResources() {
19282037 return automaticResourcesBuilder_ ;
19292038 }
19302039
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+
19312186 private java .lang .Object id_ = "" ;
19322187 /**
19332188 *
0 commit comments