@@ -44,6 +44,7 @@ private BatchPredictionJob() {
4444name_ ="" ;
4545displayName_ ="" ;
4646model_ ="" ;
47+ serviceAccount_ ="" ;
4748state_ =0 ;
4849partialFailures_ =java .util .Collections .emptyList ();
4950 }
@@ -395,6 +396,13 @@ private BatchPredictionJob(
395396unmanagedContainerModel_ =subBuilder .buildPartial ();
396397 }
397398
399+ break ;
400+ }
401+ case 234 :
402+ {
403+ java .lang .String s =input .readStringRequireUtf8 ();
404+
405+ serviceAccount_ =s ;
398406break ;
399407 }
400408default :
@@ -5793,6 +5801,65 @@ public com.google.cloud.aiplatform.v1beta1.BatchDedicatedResources getDedicatedR
57935801return getDedicatedResources ();
57945802 }
57955803
5804+ public static final int SERVICE_ACCOUNT_FIELD_NUMBER =29 ;
5805+ private volatile java .lang .Object serviceAccount_ ;
5806+ /**
5807+ *
5808+ *
5809+ * <pre>
5810+ * The service account that the DeployedModel's container runs as. If not
5811+ * specified, a system generated one will be used, which
5812+ * has minimal permissions and the custom container, if used, may not have
5813+ * enough permission to access other GCP resources.
5814+ * Users deploying the Model must have the `iam.serviceAccounts.actAs`
5815+ * permission on this service account.
5816+ * </pre>
5817+ *
5818+ * <code>string service_account = 29;</code>
5819+ *
5820+ * @return The serviceAccount.
5821+ */
5822+ @ java .lang .Override
5823+ public java .lang .String getServiceAccount () {
5824+ java .lang .Object ref =serviceAccount_ ;
5825+ if (ref instanceof java .lang .String ) {
5826+ return (java .lang .String )ref ;
5827+ }else {
5828+ com .google .protobuf .ByteString bs = (com .google .protobuf .ByteString )ref ;
5829+ java .lang .String s =bs .toStringUtf8 ();
5830+ serviceAccount_ =s ;
5831+ return s ;
5832+ }
5833+ }
5834+ /**
5835+ *
5836+ *
5837+ * <pre>
5838+ * The service account that the DeployedModel's container runs as. If not
5839+ * specified, a system generated one will be used, which
5840+ * has minimal permissions and the custom container, if used, may not have
5841+ * enough permission to access other GCP resources.
5842+ * Users deploying the Model must have the `iam.serviceAccounts.actAs`
5843+ * permission on this service account.
5844+ * </pre>
5845+ *
5846+ * <code>string service_account = 29;</code>
5847+ *
5848+ * @return The bytes for serviceAccount.
5849+ */
5850+ @ java .lang .Override
5851+ public com .google .protobuf .ByteString getServiceAccountBytes () {
5852+ java .lang .Object ref =serviceAccount_ ;
5853+ if (ref instanceof java .lang .String ) {
5854+ com .google .protobuf .ByteString b =
5855+ com .google .protobuf .ByteString .copyFromUtf8 ((java .lang .String )ref );
5856+ serviceAccount_ =b ;
5857+ return b ;
5858+ }else {
5859+ return (com .google .protobuf .ByteString )ref ;
5860+ }
5861+ }
5862+
57965863public static final int MANUAL_BATCH_TUNING_PARAMETERS_FIELD_NUMBER =8 ;
57975864private com .google .cloud .aiplatform .v1beta1 .ManualBatchTuningParameters
57985865manualBatchTuningParameters_ ;
@@ -6761,6 +6828,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
67616828if (unmanagedContainerModel_ !=null ) {
67626829output .writeMessage (28 ,getUnmanagedContainerModel ());
67636830 }
6831+ if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (serviceAccount_ )) {
6832+ com .google .protobuf .GeneratedMessageV3 .writeString (output ,29 ,serviceAccount_ );
6833+ }
67646834unknownFields .writeTo (output );
67656835 }
67666836
@@ -6850,6 +6920,9 @@ public int getSerializedSize() {
68506920com .google .protobuf .CodedOutputStream .computeMessageSize (
6851692128 ,getUnmanagedContainerModel ());
68526922 }
6923+ if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (serviceAccount_ )) {
6924+ size +=com .google .protobuf .GeneratedMessageV3 .computeStringSize (29 ,serviceAccount_ );
6925+ }
68536926size +=unknownFields .getSerializedSize ();
68546927memoizedSize =size ;
68556928return size ;
@@ -6889,6 +6962,7 @@ public boolean equals(final java.lang.Object obj) {
68896962if (hasDedicatedResources ()) {
68906963if (!getDedicatedResources ().equals (other .getDedicatedResources ()))return false ;
68916964 }
6965+ if (!getServiceAccount ().equals (other .getServiceAccount ()))return false ;
68926966if (hasManualBatchTuningParameters () !=other .hasManualBatchTuningParameters ())return false ;
68936967if (hasManualBatchTuningParameters ()) {
68946968if (!getManualBatchTuningParameters ().equals (other .getManualBatchTuningParameters ()))
@@ -6975,6 +7049,8 @@ public int hashCode() {
69757049hash = (37 *hash ) +DEDICATED_RESOURCES_FIELD_NUMBER ;
69767050hash = (53 *hash ) +getDedicatedResources ().hashCode ();
69777051 }
7052+ hash = (37 *hash ) +SERVICE_ACCOUNT_FIELD_NUMBER ;
7053+ hash = (53 *hash ) +getServiceAccount ().hashCode ();
69787054if (hasManualBatchTuningParameters ()) {
69797055hash = (37 *hash ) +MANUAL_BATCH_TUNING_PARAMETERS_FIELD_NUMBER ;
69807056hash = (53 *hash ) +getManualBatchTuningParameters ().hashCode ();
@@ -7238,6 +7314,8 @@ public Builder clear() {
72387314dedicatedResources_ =null ;
72397315dedicatedResourcesBuilder_ =null ;
72407316 }
7317+ serviceAccount_ ="" ;
7318+
72417319if (manualBatchTuningParametersBuilder_ ==null ) {
72427320manualBatchTuningParameters_ =null ;
72437321 }else {
@@ -7371,6 +7449,7 @@ public com.google.cloud.aiplatform.v1beta1.BatchPredictionJob buildPartial() {
73717449 }else {
73727450result .dedicatedResources_ =dedicatedResourcesBuilder_ .build ();
73737451 }
7452+ result .serviceAccount_ =serviceAccount_ ;
73747453if (manualBatchTuningParametersBuilder_ ==null ) {
73757454result .manualBatchTuningParameters_ =manualBatchTuningParameters_ ;
73767455 }else {
@@ -7516,6 +7595,10 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.BatchPredictionJob
75167595if (other .hasDedicatedResources ()) {
75177596mergeDedicatedResources (other .getDedicatedResources ());
75187597 }
7598+ if (!other .getServiceAccount ().isEmpty ()) {
7599+ serviceAccount_ =other .serviceAccount_ ;
7600+ onChanged ();
7601+ }
75197602if (other .hasManualBatchTuningParameters ()) {
75207603mergeManualBatchTuningParameters (other .getManualBatchTuningParameters ());
75217604 }
@@ -9152,6 +9235,137 @@ public Builder clearDedicatedResources() {
91529235return dedicatedResourcesBuilder_ ;
91539236 }
91549237
9238+ private java .lang .Object serviceAccount_ ="" ;
9239+ /**
9240+ *
9241+ *
9242+ * <pre>
9243+ * The service account that the DeployedModel's container runs as. If not
9244+ * specified, a system generated one will be used, which
9245+ * has minimal permissions and the custom container, if used, may not have
9246+ * enough permission to access other GCP resources.
9247+ * Users deploying the Model must have the `iam.serviceAccounts.actAs`
9248+ * permission on this service account.
9249+ * </pre>
9250+ *
9251+ * <code>string service_account = 29;</code>
9252+ *
9253+ * @return The serviceAccount.
9254+ */
9255+ public java .lang .String getServiceAccount () {
9256+ java .lang .Object ref =serviceAccount_ ;
9257+ if (!(ref instanceof java .lang .String )) {
9258+ com .google .protobuf .ByteString bs = (com .google .protobuf .ByteString )ref ;
9259+ java .lang .String s =bs .toStringUtf8 ();
9260+ serviceAccount_ =s ;
9261+ return s ;
9262+ }else {
9263+ return (java .lang .String )ref ;
9264+ }
9265+ }
9266+ /**
9267+ *
9268+ *
9269+ * <pre>
9270+ * The service account that the DeployedModel's container runs as. If not
9271+ * specified, a system generated one will be used, which
9272+ * has minimal permissions and the custom container, if used, may not have
9273+ * enough permission to access other GCP resources.
9274+ * Users deploying the Model must have the `iam.serviceAccounts.actAs`
9275+ * permission on this service account.
9276+ * </pre>
9277+ *
9278+ * <code>string service_account = 29;</code>
9279+ *
9280+ * @return The bytes for serviceAccount.
9281+ */
9282+ public com .google .protobuf .ByteString getServiceAccountBytes () {
9283+ java .lang .Object ref =serviceAccount_ ;
9284+ if (ref instanceof String ) {
9285+ com .google .protobuf .ByteString b =
9286+ com .google .protobuf .ByteString .copyFromUtf8 ((java .lang .String )ref );
9287+ serviceAccount_ =b ;
9288+ return b ;
9289+ }else {
9290+ return (com .google .protobuf .ByteString )ref ;
9291+ }
9292+ }
9293+ /**
9294+ *
9295+ *
9296+ * <pre>
9297+ * The service account that the DeployedModel's container runs as. If not
9298+ * specified, a system generated one will be used, which
9299+ * has minimal permissions and the custom container, if used, may not have
9300+ * enough permission to access other GCP resources.
9301+ * Users deploying the Model must have the `iam.serviceAccounts.actAs`
9302+ * permission on this service account.
9303+ * </pre>
9304+ *
9305+ * <code>string service_account = 29;</code>
9306+ *
9307+ * @param value The serviceAccount to set.
9308+ * @return This builder for chaining.
9309+ */
9310+ public Builder setServiceAccount (java .lang .String value ) {
9311+ if (value ==null ) {
9312+ throw new NullPointerException ();
9313+ }
9314+
9315+ serviceAccount_ =value ;
9316+ onChanged ();
9317+ return this ;
9318+ }
9319+ /**
9320+ *
9321+ *
9322+ * <pre>
9323+ * The service account that the DeployedModel's container runs as. If not
9324+ * specified, a system generated one will be used, which
9325+ * has minimal permissions and the custom container, if used, may not have
9326+ * enough permission to access other GCP resources.
9327+ * Users deploying the Model must have the `iam.serviceAccounts.actAs`
9328+ * permission on this service account.
9329+ * </pre>
9330+ *
9331+ * <code>string service_account = 29;</code>
9332+ *
9333+ * @return This builder for chaining.
9334+ */
9335+ public Builder clearServiceAccount () {
9336+
9337+ serviceAccount_ =getDefaultInstance ().getServiceAccount ();
9338+ onChanged ();
9339+ return this ;
9340+ }
9341+ /**
9342+ *
9343+ *
9344+ * <pre>
9345+ * The service account that the DeployedModel's container runs as. If not
9346+ * specified, a system generated one will be used, which
9347+ * has minimal permissions and the custom container, if used, may not have
9348+ * enough permission to access other GCP resources.
9349+ * Users deploying the Model must have the `iam.serviceAccounts.actAs`
9350+ * permission on this service account.
9351+ * </pre>
9352+ *
9353+ * <code>string service_account = 29;</code>
9354+ *
9355+ * @param value The bytes for serviceAccount to set.
9356+ * @return This builder for chaining.
9357+ */
9358+ public Builder setServiceAccountBytes (com .google .protobuf .ByteString value ) {
9359+ if (value ==null ) {
9360+ throw new NullPointerException ();
9361+ }
9362+ checkByteStringIsUtf8 (value );
9363+
9364+ serviceAccount_ =value ;
9365+ onChanged ();
9366+ return this ;
9367+ }
9368+
91559369private com .google .cloud .aiplatform .v1beta1 .ManualBatchTuningParameters
91569370manualBatchTuningParameters_ ;
91579371private com .google .protobuf .SingleFieldBuilderV3 <