@@ -44,6 +44,7 @@ private BatchPredictionJob() {
44
44
name_ = "" ;
45
45
displayName_ = "" ;
46
46
model_ = "" ;
47
+ serviceAccount_ = "" ;
47
48
state_ = 0 ;
48
49
partialFailures_ = java .util .Collections .emptyList ();
49
50
}
@@ -395,6 +396,13 @@ private BatchPredictionJob(
395
396
unmanagedContainerModel_ = subBuilder .buildPartial ();
396
397
}
397
398
399
+ break ;
400
+ }
401
+ case 234 :
402
+ {
403
+ java .lang .String s = input .readStringRequireUtf8 ();
404
+
405
+ serviceAccount_ = s ;
398
406
break ;
399
407
}
400
408
default :
@@ -5793,6 +5801,65 @@ public com.google.cloud.aiplatform.v1beta1.BatchDedicatedResources getDedicatedR
5793
5801
return getDedicatedResources ();
5794
5802
}
5795
5803
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
+
5796
5863
public static final int MANUAL_BATCH_TUNING_PARAMETERS_FIELD_NUMBER = 8 ;
5797
5864
private com .google .cloud .aiplatform .v1beta1 .ManualBatchTuningParameters
5798
5865
manualBatchTuningParameters_ ;
@@ -6761,6 +6828,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
6761
6828
if (unmanagedContainerModel_ != null ) {
6762
6829
output .writeMessage (28 , getUnmanagedContainerModel ());
6763
6830
}
6831
+ if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (serviceAccount_ )) {
6832
+ com .google .protobuf .GeneratedMessageV3 .writeString (output , 29 , serviceAccount_ );
6833
+ }
6764
6834
unknownFields .writeTo (output );
6765
6835
}
6766
6836
@@ -6850,6 +6920,9 @@ public int getSerializedSize() {
6850
6920
com .google .protobuf .CodedOutputStream .computeMessageSize (
6851
6921
28 , getUnmanagedContainerModel ());
6852
6922
}
6923
+ if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (serviceAccount_ )) {
6924
+ size += com .google .protobuf .GeneratedMessageV3 .computeStringSize (29 , serviceAccount_ );
6925
+ }
6853
6926
size += unknownFields .getSerializedSize ();
6854
6927
memoizedSize = size ;
6855
6928
return size ;
@@ -6889,6 +6962,7 @@ public boolean equals(final java.lang.Object obj) {
6889
6962
if (hasDedicatedResources ()) {
6890
6963
if (!getDedicatedResources ().equals (other .getDedicatedResources ())) return false ;
6891
6964
}
6965
+ if (!getServiceAccount ().equals (other .getServiceAccount ())) return false ;
6892
6966
if (hasManualBatchTuningParameters () != other .hasManualBatchTuningParameters ()) return false ;
6893
6967
if (hasManualBatchTuningParameters ()) {
6894
6968
if (!getManualBatchTuningParameters ().equals (other .getManualBatchTuningParameters ()))
@@ -6975,6 +7049,8 @@ public int hashCode() {
6975
7049
hash = (37 * hash ) + DEDICATED_RESOURCES_FIELD_NUMBER ;
6976
7050
hash = (53 * hash ) + getDedicatedResources ().hashCode ();
6977
7051
}
7052
+ hash = (37 * hash ) + SERVICE_ACCOUNT_FIELD_NUMBER ;
7053
+ hash = (53 * hash ) + getServiceAccount ().hashCode ();
6978
7054
if (hasManualBatchTuningParameters ()) {
6979
7055
hash = (37 * hash ) + MANUAL_BATCH_TUNING_PARAMETERS_FIELD_NUMBER ;
6980
7056
hash = (53 * hash ) + getManualBatchTuningParameters ().hashCode ();
@@ -7238,6 +7314,8 @@ public Builder clear() {
7238
7314
dedicatedResources_ = null ;
7239
7315
dedicatedResourcesBuilder_ = null ;
7240
7316
}
7317
+ serviceAccount_ = "" ;
7318
+
7241
7319
if (manualBatchTuningParametersBuilder_ == null ) {
7242
7320
manualBatchTuningParameters_ = null ;
7243
7321
} else {
@@ -7371,6 +7449,7 @@ public com.google.cloud.aiplatform.v1beta1.BatchPredictionJob buildPartial() {
7371
7449
} else {
7372
7450
result .dedicatedResources_ = dedicatedResourcesBuilder_ .build ();
7373
7451
}
7452
+ result .serviceAccount_ = serviceAccount_ ;
7374
7453
if (manualBatchTuningParametersBuilder_ == null ) {
7375
7454
result .manualBatchTuningParameters_ = manualBatchTuningParameters_ ;
7376
7455
} else {
@@ -7516,6 +7595,10 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.BatchPredictionJob
7516
7595
if (other .hasDedicatedResources ()) {
7517
7596
mergeDedicatedResources (other .getDedicatedResources ());
7518
7597
}
7598
+ if (!other .getServiceAccount ().isEmpty ()) {
7599
+ serviceAccount_ = other .serviceAccount_ ;
7600
+ onChanged ();
7601
+ }
7519
7602
if (other .hasManualBatchTuningParameters ()) {
7520
7603
mergeManualBatchTuningParameters (other .getManualBatchTuningParameters ());
7521
7604
}
@@ -9152,6 +9235,137 @@ public Builder clearDedicatedResources() {
9152
9235
return dedicatedResourcesBuilder_ ;
9153
9236
}
9154
9237
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
+
9155
9369
private com .google .cloud .aiplatform .v1beta1 .ManualBatchTuningParameters
9156
9370
manualBatchTuningParameters_ ;
9157
9371
private com .google .protobuf .SingleFieldBuilderV3 <
0 commit comments